unable to push changes to an already existing ticket in sage trac server

28 views
Skip to first unread message

varenyam bakshi

unread,
Feb 22, 2020, 12:36:57 PM2/22/20
to sage-devel
i tried to push changes to ticket #2167
$git push trac t/2617/2617_solve_check_domain

and here is the output:

Warning: the ECDSA host key for 'trac.sagemath.org' differs from the key for the IP address '104.197.143.230'
Offending key for IP in /home/uranium/.ssh/known_hosts:1
Matching host key in /home/uranium/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)? yes
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 787 bytes | 787.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0)
remote: FATAL: W refs/heads/t/2617/2617_solve_check_domain sage gh-varenyamBakshi DENIED by fallthru
remote: error: hook declined to update refs/heads/t/2617/2617_solve_check_domain
To trac.sagemath.org:sage.git
 ! [remote rejected]       t/2617/2617_solve_check_domain -> t/2617/2617_solve_check_domain (hook declined)
error: failed to push some refs to 'g...@trac.sagemath.org:sage.git'

then i tried 

$ git trac push --branch 'u/gh-Torrencem/2617_solve_check_domain'

and here is the output

Pushing to Trac #2617...
Specified remote branch: u/gh-Torrencem/2617_solve_check_domain
Warning: the ECDSA host key for 'trac.sagemath.org' differs from the key for the IP address '104.197.143.230'
Offending key for IP in /home/uranium/.ssh/known_hosts:1
Matching host key in /home/uranium/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)? yes
Traceback (most recent call last):
  File "/bin/git-trac", line 17, in <module>
    cmdline.launch()
  File "/home/uranium/git-trac-command/git_trac/cmdline.py", line 247, in launch
    app.push(ticket_number, remote=args.remote, force=args.force)
  File "/home/uranium/git-trac-command/git_trac/app.py", line 218, in push
    self.repo.push(remote, force)
  File "/home/uranium/git-trac-command/git_trac/git_repository.py", line 196, in push
    self.git.echo.push('trac', refspec)
  File "/home/uranium/git-trac-command/git_trac/git_interface.py", line 340, in meth
    return self.execute(git_cmd, *args, **kwds)
  File "/home/uranium/git-trac-command/git_trac/git_interface.py", line 97, in execute
    popen_stderr=subprocess.PIPE)
  File "/home/uranium/git-trac-command/git_trac/git_interface.py", line 262, in _run
    raise GitError(result)
git_trac.git_error.GitError: git returned with non-zero exit code (1) when executing "git push trac HEAD:refs/heads/u/gh-Torrencem/2617_solve_check_domain"
    STDERR: remote: FATAL: W refs/heads/u/gh-Torrencem/2617_solve_check_domain sage gh-varenyamBakshi DENIED by fallthru
    STDERR: remote: error: hook declined to update refs/heads/u/gh-Torrencem/2617_solve_check_domain
    STDERR: To trac.sagemath.org:sage.git
    STDERR:  ! [remote rejected]       HEAD -> u/gh-Torrencem/2617_solve_check_domain (hook declined)
    STDERR: error: failed to push some refs to 'g...@trac.sagemath.org:sage.git'



please help

Dima Pasechnik

unread,
Feb 22, 2020, 2:14:01 PM2/22/20
to sage-devel
for some reason you have a wrong host key for the trac git server in ~/.ssh/known_hosts

remove it there and try again.


--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/8d58d80d-a107-47cd-a0cc-962d8488af10%40googlegroups.com.

varenyam bakshi

unread,
Feb 22, 2020, 2:27:50 PM2/22/20
to sage-...@googlegroups.com
there are three keys there 
should remove all and generate a new one??



--
regards
varenyam bakshi

Dima Pasechnik

unread,
Feb 22, 2020, 2:55:32 PM2/22/20
to sage-devel


On Sat, 22 Feb 2020, 20:27 varenyam bakshi, <varen...@gmail.com> wrote:
there are three keys there 
should remove all and generate a new one??

these keys are not generated. they are cached from the previous ssh connections.
Anyhow, the offending (bad) key is on line 1 - this is what your error message says.


varenyam bakshi

unread,
Feb 22, 2020, 3:13:58 PM2/22/20
to sage-...@googlegroups.com
 $ git push trac HEAD:u/gh-Torrencem/2617_solve_check_domain


Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 787 bytes | 787.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0)
remote: FATAL: W refs/heads/u/gh-Torrencem/2617_solve_check_domain sage gh-varenyamBakshi DENIED by fallthru
remote: error: hook declined to update refs/heads/u/gh-Torrencem/2617_solve_check_domain
To trac.sagemath.org:sage.git
 ! [remote rejected]       HEAD -> u/gh-Torrencem/2617_solve_check_domain (hook declined)

error: failed to push some refs to 'g...@trac.sagemath.org:sage.git'

still showing the error 
i removed the first entry in the ~/.ssh/known_hosts
this is what is left over there
|1|JCbdX+dr5O+TZ3Ho2E4952adAx8=|bCpeQ1zPI31buF8sa5xjulroaao= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOyN+gmQMR8aoPcNXcFSsNGQVQx67SFMig0dW3ji5MUnDcbkVZY5/+PHOY5R3tLu4PRZKLYDIhNAEvM4RLhruN4=
|1|mIynIbHnwySG3SCGl+n/HQS+vn8=|XbMIe2/U9A3ekXcvaIp40TnoPi8= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG+/AO490umZWuczUgClP4BgFm5XR9I43z4kf9f+pu8Uj6UvH/7Pz1oBkJ71xET+xTmecBHB2c9OwlgPjB70AB8=
|1|H1NAHWpuTuf4iBMwS/zuXqiO3yI=|0oWKFCqPxZJ9uEm3nOGjdOkmwDg= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG+/AO490umZWuczUgClP4BgFm5XR9I43z4kf9f+pu8Uj6UvH/7Pz1oBkJ71xET+xTmecBHB2c9OwlgPjB70AB8=

i removed the first entry but it is again created

Dima Pasechnik

unread,
Feb 22, 2020, 3:57:24 PM2/22/20
to sage-devel
On Sat, Feb 22, 2020 at 9:13 PM varenyam bakshi <varen...@gmail.com> wrote:
>
> $ git push trac HEAD:u/gh-Torrencem/2617_solve_check_domain

Is this your github account:

https://github.com/Torrencem
?

I guess not, that's why you get this error...

>
>
> Counting objects: 7, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (7/7), done.
> Writing objects: 100% (7/7), 787 bytes | 787.00 KiB/s, done.
> Total 7 (delta 6), reused 0 (delta 0)
> remote: FATAL: W refs/heads/u/gh-Torrencem/2617_solve_check_domain sage gh-varenyamBakshi DENIED by fallthru
> remote: error: hook declined to update refs/heads/u/gh-Torrencem/2617_solve_check_domain
> To trac.sagemath.org:sage.git
> ! [remote rejected] HEAD -> u/gh-Torrencem/2617_solve_check_domain (hook declined)
> error: failed to push some refs to 'g...@trac.sagemath.org:sage.git'
>
> still showing the error
> i removed the first entry in the ~/.ssh/known_hosts
> this is what is left over there
> |1|JCbdX+dr5O+TZ3Ho2E4952adAx8=|bCpeQ1zPI31buF8sa5xjulroaao= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOyN+gmQMR8aoPcNXcFSsNGQVQx67SFMig0dW3ji5MUnDcbkVZY5/+PHOY5R3tLu4PRZKLYDIhNAEvM4RLhruN4=
> |1|mIynIbHnwySG3SCGl+n/HQS+vn8=|XbMIe2/U9A3ekXcvaIp40TnoPi8= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG+/AO490umZWuczUgClP4BgFm5XR9I43z4kf9f+pu8Uj6UvH/7Pz1oBkJ71xET+xTmecBHB2c9OwlgPjB70AB8=
> |1|H1NAHWpuTuf4iBMwS/zuXqiO3yI=|0oWKFCqPxZJ9uEm3nOGjdOkmwDg= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG+/AO490umZWuczUgClP4BgFm5XR9I43z4kf9f+pu8Uj6UvH/7Pz1oBkJ71xET+xTmecBHB2c9OwlgPjB70AB8=
>
> i removed the first entry but it is again created

$ ssh-keyscan -t ecdsa-sha2-nistp256 trac.sagemath.org
# trac.sagemath.org:22 SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.13
trac.sagemath.org ecdsa-sha2-nistp256
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBG+/AO490umZWuczUgClP4BgFm5XR9I43z4kf9f+pu8Uj6UvH/7Pz1oBkJ71xET+xTmecBHB2c9OwlgPjB70AB8=

shows that the correct host key is in 2nd and 3rd lines above.

If you want to understand where the 1st key comes from, try running
$ ssh -v g...@trac.sagemath.org

and check the output for weirdness...
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CANcZkcL22NorAVrbjHRt62_mKf-8eEEvAOvwGQ74_jH1-ci6vA%40mail.gmail.com.

varenyam bakshi

unread,
Feb 22, 2020, 4:20:52 PM2/22/20
to sage-...@googlegroups.com
no but i am working on an already existing ticket so i will mention the name of that branch only



--
regards
varenyam bakshi

Dima Pasechnik

unread,
Feb 22, 2020, 4:28:13 PM2/22/20
to sage-devel
On Sat, Feb 22, 2020 at 10:20 PM varenyam bakshi <varen...@gmail.com> wrote:
>
> no but i am working on an already existing ticket so i will mention the name of that branch only

you don't have write permissions for this branch.
Only gh-Torrencem has them.

If you want to update the branch, push to "your" branch and change the
branch name on the
ticket.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CANcZkcJ0G74eoheno3WBijTwf%3DdNGq6UtXhfn1NugruTROE-yA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages