[Bug 1232565] New: osc in Factory reports HTTP Error 401: Unauthorized for api.suse.de
https://bugzilla.suse.com/show_bug.cgi?id=1232565 Bug ID: 1232565 Summary: osc in Factory reports HTTP Error 401: Unauthorized for api.suse.de Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Critical Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: sbrabec@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- When I am trying to access build.suse.de from Tumbleweed by "osc -A https://api.suse.de/ ls SUSE:SLFO:Main util-linux". I get: Server returned an error: HTTP Error 401: Unauthorized I tried to remove all credentials and configuration files. The same error. I tried the same with the freshly created local user with empty home. The same error. I even tried to downgrade to osc-1.9.0. The same error. If I do the same on openSUSE Leap 15.6 with osc-1.9.0, then it works. Access to build.opensuse.org works on both. The problem first appeared after the last zypper dup two weeks ago. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1232565 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |marco.strigl@suse.com QA Contact|qa-bugs@suse.de |adrian.schroeter@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1232565 https://bugzilla.suse.com/show_bug.cgi?id=1232565#c1 --- Comment #1 from Stanislav Brabec <sbrabec@suse.com> --- Update: When trying to access build.opensuse.org: - With a fresh empty home directory: Asks for username and password and works. - If I previously (unsuccessfully) tries to access build.suse.de: Does not ask for anything and reports: Server returned an error: HTTP Error 401: Unauthorized - After "rm .config/osc/oscrc": Asks for username and password and works. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1232565 https://bugzilla.suse.com/show_bug.cgi?id=1232565#c2 --- Comment #2 from Stanislav Brabec <sbrabec@suse.com> --- Addition to comment 1: It seems to be a behavior change. Even if -A is not specified, it does not fall back to https://api.opensuse.org: ~> osc -A https://api.suse.de/ ls SUSE:SLFO:Main util-linux Server returned an error: HTTP Error 401: Unauthorized ~> osc ls openSUSE:Factory util-linux Server returned an error: HTTP Error 401: Unauthorized ~> osc -A https://api.opensuse.org ls openSUSE:Factory util-linux Add-documentation-on-blacklisted-modules-to-mount-8-.patch ... works -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1232565 https://bugzilla.suse.com/show_bug.cgi?id=1232565#c3 --- Comment #3 from Stanislav Brabec <sbrabec@suse.com> --- Using --debug, I found a source of the problem. It stopped to work when I created ~/.ssh/id_ed25519 and ~/.ssh/id_ed25519.pub. DEBUG: Using ssh key from file: /home/sbrabec/.ssh/id_ed25519 Server returned an error: HTTP Error 401: Unauthorized If I delete these files, build.suse.de starts to work again. With a fresh home directory, the work-around does not work: DEBUG: Searching ssh keys in '/home/test/.ssh' in the following order: id_ed25519, id_ed25519_sk, id_rsa, id_ecdsa, id_ecdsa_sk, id_dsa Server returned an error: HTTP Error 401: Unauthorized Surprisingly, once it starts to work, I can return these files to its place, and it still works. (Maybe up to the next reboot or re-login.) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com