Can't push to trac...

38 views
Skip to first unread message

Emmanuel Charpentier

unread,
Jun 26, 2022, 4:07:09 PM6/26/22
to sage-devel
I recently created [Trac#34087](https://trac.sagemath.org/ticket/34087) and created a commit fixing a (minor) problem of (back)translations to Mathematica. But I'm unable to push the coimmit. First atempt :

```
charpent@zen-book-flip:/usr/local/sage-9$ git trac push
Pushing to Trac #34087...
Guessed remote branch: u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica

To trac.sagemath.org:sage.git
 * [new branch]              HEAD -> u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica

Changing the trac "Branch:" field...
Traceback (most recent call last):
  File "/home/charpent/Dev/git-trac-command/git_trac/digest_transport.py", line 104, in single_request
    response = self.opener.open(req)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1118, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/usr/lib/python3.10/urllib/request.py", line 1132, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1118, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/usr/lib/python3.10/urllib/request.py", line 1132, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1118, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/usr/lib/python3.10/urllib/request.py", line 1132, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1118, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/usr/lib/python3.10/urllib/request.py", line 1132, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1118, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/usr/lib/python3.10/urllib/request.py", line 1132, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1118, in http_error_auth_reqed
    return self.retry_http_digest_auth(req, authreq)
  File "/usr/lib/python3.10/urllib/request.py", line 1132, in retry_http_digest_auth
    resp = self.parent.open(req, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 1238, in http_error_401
    retry = self.http_error_auth_reqed('www-authenticate',
  File "/usr/lib/python3.10/urllib/request.py", line 1111, in http_error_auth_reqed
    raise HTTPError(req.full_url, 401, "digest auth failed",


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/git-trac", line 17, in <module>
    cmdline.launch()
  File "/home/charpent/Dev/git-trac-command/git_trac/cmdline.py", line 247, in launch
    app.push(ticket_number, remote=args.remote, force=args.force)
  File "/home/charpent/Dev/git-trac-command/git_trac/app.py", line 223, in push
    self.trac.set_remote_branch(ticket, remote)
  File "/home/charpent/Dev/git-trac-command/git_trac/trac_server.py", line 158, in set_remote_branch
    self.authenticated_proxy.ticket.update(
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
  File "/usr/lib/python3.10/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/home/charpent/Dev/git-trac-command/git_trac/digest_transport.py", line 111, in single_request
    raise TracAuthenticationError()
git_trac.trac_error.TracAuthenticationError: Authentication with trac server failed.
```

Further attempts give identical responses, with an `Everything up-to-date` message before the rest of the error mesage.

I checked that my new ED25519 key was in place.

Suggestions ?

Dima Pasechnik

unread,
Jun 26, 2022, 4:19:00 PM6/26/22
to sage-devel
use "normal" git, maybe, not "git trac" ?

--
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/9a92541c-93e7-4b76-aff0-71a139a351d3n%40googlegroups.com.

Emmanuel Charpentier

unread,
Jun 26, 2022, 4:54:41 PM6/26/22
to sage-devel

Nope :

charpent@zen-book-flip:/usr/local/sage-9$ git push trac HEAD:u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica
Everything up-to-date

But nothing appears in the ticket page…

Dima Pasechnik

unread,
Jun 26, 2022, 4:58:07 PM6/26/22
to sage-devel


On Sun, 26 Jun 2022, 21:54 Emmanuel Charpentier, <emanuel.c...@gmail.com> wrote:

Nope :

charpent@zen-book-flip:/usr/local/sage-9$ git push trac HEAD:u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica
Everything up-to-date

But nothing appears in the ticket page…


have you added 

u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica

to the "branch" field?

Emmanuel Charpentier

unread,
Jun 26, 2022, 5:08:57 PM6/26/22
to sage-devel
Le dimanche 26 juin 2022 à 22:58:07 UTC+2, dim...@gmail.com a écrit :


On Sun, 26 Jun 2022, 21:54 Emmanuel Charpentier, <emanuel.c...@gmail.com> wrote:

Nope :

charpent@zen-book-flip:/usr/local/sage-9$ git push trac HEAD:u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica
Everything up-to-date

But nothing appears in the ticket page…


have you added 

u/charpent/inverse_reciprocal_trig_functions_not__back_translated_to_from_mathematica

to the "branch" field?

No I didn't. I'v just done it, and it appears to solve the problem.*

Thank you very much !
Reply all
Reply to author
Forward
0 new messages