#10734 Unable to push changes via fedpkg push (https)
Closed: Fixed with Explanation 2 years ago by lpellecc. Opened 2 years ago by lpellecc.

Hi folks,
I'm trying to push changes to a project via fedpkg push command and I'm facing this message:

[root@fedora35 glibc]# fedpkg push
Please visit https://id.fedoraproject.org/openidc/Authorization?scope=openid+https%3A%2F%2Fid.fedoraproject.org%2Fscope%2Fgroups+https%3A%2F%2Fmbs.fedoraproject.org%2Foidc%2Fsubmit-build+https%3A%2F%2Fsrc.fedoraproject.org%2Fpush&response_type=code&client_id=fedpkg&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F&response_mode=query to grant authorization

this url is ok, I can see the login form but when I try to login I'm redirecting to a bad url localhost:12345

git remote -v
origin https://src.fedoraproject.org/forks/lpellecc/rpms/glibc.git (fetch)
origin https://src.fedoraproject.org/forks/lpellecc/rpms/glibc.git (push)


Metadata Update from @phsmoura:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: low-gain, low-trouble, ops

2 years ago

Are you trying to login from a different host than the one you run the push on?

That won't work.

You have to use the same host so it can get the oauth2 token so you can push.

Note that once you make the token, you can copy it to another host, but you have to do it on the same host as the push to get it.

Hi Kevin, thanks for your support.
Yes, I'm using two different hosts because my workstation, that is running on a virtual machine, doesn’t have the gui and I tried to open the website from another machine. I haven’t found any information about that on the fedoraproject website. I think could be very helpful adding some details about. Anyway, I can try installing a terminal web browser. I'll let you know.

I opened the link on another host where I have a web browser. Website is redirecting to http://localhost:12345/?code=<my-code>
I opened that link on the workstation where I'm running fedpkg, the one that doesn't have the web browser with wget.
wget http://localhost:12345/?code=<my-code>
This way I was able to create the auth token and push changes.
Solved. Thanks

Metadata Update from @lpellecc:
- Issue close_status updated to: Fixed with Explanation
- Issue status updated to: Closed (was: Open)

2 years ago

I opened the link on another host where I have a web browser. Website is redirecting to http://localhost:12345/?code=<my-code>
I opened that link on the workstation where I'm running fedpkg, the one that doesn't have the web browser with wget.
wget http://localhost:12345/?code=<my-code>
This way I was able to create the auth token and push changes.
Solved. Thanks

Coming from RHEL/EPEL, I’ve found @lpellecc’s note to be helpful in a server setting, and would like add that for wget to work, it’s also necessary for the web server to listen on port 12345 with localhost:12345 as ServerName.

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog