Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Missing or invalid credentials--never asked by the terminal for credentials

    GitHub Pages
    2
    7
    4100
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jordanurbs
      jordanurbs last edited by jordanurbs

      I'm never asked for credentials and keep getting this error when trying to push:

      git push page master
      Missing or invalid credentials.
      Error: socket hang up
          at connResetException (internal/errors.js:610:14)
          at Socket.socketOnEnd (_http_client.js:453:23)
          at Socket.emit (events.js:327:22)
          at endReadableNT (_stream_readable.js:1220:12)
          at processTicksAndRejections (internal/process/task_queues.js:84:21) {
        code: 'ECONNRESET'
      }
      Missing or invalid credentials.
      Error: socket hang up
          at connResetException (internal/errors.js:610:14)
          at Socket.socketOnEnd (_http_client.js:453:23)
          at Socket.emit (events.js:327:22)
          at endReadableNT (_stream_readable.js:1220:12)
          at processTicksAndRejections (internal/process/task_queues.js:84:21) {
        code: 'ECONNRESET'
      }
      remote: Unauthorized
      fatal: Authentication failed for 'https://....com/_git/page/'
      
      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @jordanurbs last edited by

        @jordanurbs there was bug in the package, can you check if you updated to the latest release that @nebulon pushed out earlier today? It should be 1.14.2

        jordanurbs 1 Reply Last reply Reply Quote 0
        • jordanurbs
          jordanurbs @girish last edited by

          @girish yes it is fully up to date at 1.14.2

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @jordanurbs last edited by

            @jordanurbs I tried a fresh install and it seems to work. Do you have happen to have anything in your ~/.netrc ? You can also check if git config -l has any credential.helper set (I think if you are on a Mac, it stores it in the keychain?)

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              I have git 2.25.1, I could do git -c credential.helper= push page master to force password query.

              jordanurbs 1 Reply Last reply Reply Quote 0
              • jordanurbs
                jordanurbs @girish last edited by jordanurbs

                @girish said in Missing or invalid credentials--never asked by the terminal for credentials:

                git -c credential.helper= push page master

                This solved it. Thank you @girish.

                Problem is, now I get this error after successful authentication:

                error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
                fatal: the remote end hung up unexpectedly
                fatal: the remote end hung up unexpectedly
                

                I've been receiving timeouts trying to set up a gitlab repo as well. Is this maybe a firewall issue on my server's end?

                jordanurbs 1 Reply Last reply Reply Quote 0
                • jordanurbs
                  jordanurbs @jordanurbs last edited by

                  @jordanurbs @girish fixed, had to run

                  git config --global http.version HTTP/1.1
                  

                  and then switch back

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB