mainSavannah Administration - Support: sr #110833, Pushing to Git not working but ssh...

 
 

sr #110833: Pushing to Git not working but ssh connection works

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Fri 03 Feb 2023 03:07:29 PM UTC
   
 
Category:  Source code repositories - developer access Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  ineiev
Operating System:  GNU/Linux Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Feb 2023 04:18:10 PM UTC, comment #2: 

That is correct, it worked after correcting the remote URL.


$ git remove -v
origin        makhlaghi@git.savannah.gnu.org:/srv/git/gnuastro.git (fetch)
origin        makhlaghi@git.savannah.gnu.org:/srv/git/gnuastro.git (push)


We can close this issue now... Thanks again :-).

Mohammad Akhlaghi <makhlaghi>
Fri 03 Feb 2023 04:07:23 PM UTC, comment #1: 

original submission:

> $ git remote -v
> origin        git://git.savannah.gnu.org/gnuastro.git (fetch)
> origin        git://git.savannah.gnu.org/gnuastro.git (push)


This is wrong; please check https://savannah.gnu.org/git/?group=gnuastro

Ineiev <ineiev>
Site Administrator
Fri 03 Feb 2023 03:07:29 PM UTC, original submission:  

When I try to push commits in Gnuastro's 'master' branch, I get the following error:


$ $ git push origin master
fatal: remote error: access denied or repository not exported: /gnuastro.git


However, my SSH key is registered in "My Account Conf" (it was updated there several weeks ago)! Therefore, I tried following the SshAccess tip on debugging, but that worked correctly:


$ ssh makhlaghi@cvs.savannah.gnu.org
The authenticity of host 'cvs.savannah.gnu.org (209.51.188.81)' can't be established.
ED25519 key fingerprint is SHA256:o/oI4CKKcWc4cZvDFEdmOXsE3tiPP8bWa04h4bQjtV4.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'cvs.savannah.gnu.org' (ED25519) to the list of known hosts.
Linux vcs1 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: DDD MMM  D HH:MM:SS YYYY from XX.XX.XX.XXX
You tried to execute:
Sorry, you are not allowed to execute that command.
Connection to cvs.savannah.gnu.org closed.


So apparently Savannah's CVS repository works with my SSH key, but not the Git repository. I also tried the 'git push' command after the 'ssh' command above (in case the problem was with my OS not recognizing Savannah).

For completeness, here is how Git recognizes Savannah on my system:


$ git remote -v
origin        git://git.savannah.gnu.org/gnuastro.git (fetch)
origin        git://git.savannah.gnu.org/gnuastro.git (push)


I would be grateful if you could help me find the solution to this problem.

Mohammad Akhlaghi <makhlaghi>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ineiev (Posted a comment)
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-02-03 ineiev StatusReady For Test Done
        Open/ClosedOpen Closed
    2023-02-03 ineiev StatusNone Ready For Test
        Assigned toNone ineiev

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code