question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

create-update asks for password (?) and then "authentication failed"

See original GitHub issue

I just released cockpit-ostree 178 with packit, creating this koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=36198029

Now I wanted to release it:

❱❱❱ PYTHONPATH=~/tmp/packit/ python3 -m packit.cli.packit_base create-update --dist-git-branch f30
Koji builds for package cockpit-ostree and koji tag f30-updates-candidate:
 - cockpit-ostree-178-1.fc30
Password:

Hmm, what password? I already have a kerberos token:

❱❱❱ klist
Ticket cache: KEYRING:persistent:1000:1000
Default principal: cockpit@FEDORAPROJECT.ORG
[...]

So I entered my Fedora password again, then:

ERROR    Authentication failed
Unexpected exception occurred,
please fill an issue here:
https://github.com/packit-service/packit/issues

Once again with --debug:

❱❱❱ PYTHONPATH=~/tmp/packit/ python3 -m packit.cli.packit_base --debug create-update --dist-git-branch f30
10:07:18.136 packit_base.py    DEBUG  logging set to DEBUG
10:07:18.136 local_project.py  DEBUG  working_dir is set and git_repo is not: let's discover...
10:07:18.137 local_project.py  DEBUG  it's a git repo!
10:07:18.142 local_project.py  DEBUG  remote url of the repo is https://github.com/cockpit-project/cockpit-ostree.git
10:07:18.143 local_project.py  DEBUG  Parsed namespace and repo name from url: cockpit-project/cockpit-ostree
10:07:18.144 config.py         DEBUG  The local config file '/home/martin/upstream/cockpit-ostree/.packit.yaml' not found.
10:07:18.144 config.py         DEBUG  The local config file '/home/martin/upstream/cockpit-ostree/.packit.yml' not found.
10:07:18.144 config.py         DEBUG  The local config file '/home/martin/upstream/cockpit-ostree/.packit.json' not found.
10:07:18.144 config.py         DEBUG  Local package config found: /home/martin/upstream/cockpit-ostree/packit.yaml
10:07:18.147 config.py         DEBUG  Package config:
{
    "specfile_path": "cockpit-ostree.spec",
    "synced_files": [
        "cockpit-ostree.spec"
    ],
    "upstream_project_name": "cockpit-ostree",
    "downstream_package_name": "cockpit-ostree",
    "actions": {
        "post-upstream-clone": "make cockpit-ostree.spec",
        "create-archive": "make dist-gzip"
    }
}
10:07:18.148 utils.py          DEBUG  can't obtain upstream_ref: 'upstream_ref'
10:07:18.148 api.py            DEBUG  create bodhi update, builds=(), dg_branch=f30, type=enhancement
10:07:18.148 base_git.py       DEBUG  command handler = RunCommandType.local
10:07:18.149 distgit.py        DEBUG  Using dist-git repo https://src.fedoraproject.org/rpms/cockpit-ostree.git
10:07:18.149 distgit.py        DEBUG  About to create a Bodhi update of type enhancement from f30
10:07:30.889 distgit.py        DEBUG  Koji builds for package cockpit-ostree: 
 - f29-updates-candidate
 - f30-updates-candidate
 - f28-updates-candidate
 - f29-updates-testing
 - f30-updates-testing
 - f28-updates-testing
 - f29-updates
 - f30-updates
 - f28-updates
 - f29-override
 - f30-override
 - f28-override
 - f29-updates-testing-pending
 - f30-updates-testing-pending
 - f28-updates-testing-pending
 - f29-updates-pending
 - f30-updates-pending
 - f28-updates-pending
Koji builds for package cockpit-ostree and koji tag f30-updates-candidate:
 - cockpit-ostree-178-1.fc30
10:07:30.890 local_project.py  DEBUG  Url https://src.fedoraproject.org/rpms/cockpit-ostree.git parsed. Resulting scheme: https
10:07:30.891 utils.py          DEBUG  Cloning repo: https://src.fedoraproject.org/rpms/cockpit-ostree.git -> /tmp/tmpzq3l93or
Username: 

That’s weird, why now username in addition? I enter my Fedora credentials again, then

ERROR Authentication failed Traceback (most recent call last): File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 244, in send_request output = func(method, **kwargs) File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 89, in _decorator ‘{0} requires a logged in user’.format(output.url)) fedora.client.LoginRequiredError: https://bodhi.fedoraproject.org/updates/ requires a logged in user

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/usr/lib/python3.7/site-packages/bodhi/client/bindings.py”, line 109, in wrapper result = method(*args, **kwargs) File “/usr/lib/python3.7/site-packages/bodhi/client/bindings.py”, line 266, in save data=kwargs) File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 246, in send_request raise AuthError() fedora.client.AuthError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/usr/lib/python3.7/site-packages/bodhi/client/bindings.py”, line 109, in wrapper result = method(*args, **kwargs) File “/usr/lib/python3.7/site-packages/bodhi/client/bindings.py”, line 576, in csrf self.login(self.username, self.password) File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 293, in login openid_insecure=self.openid_insecure) File “/usr/lib/python3.7/site-packages/fedora/client/openidproxyclient.py”, line 138, in openid_login raise AuthError(output[‘message’]) fedora.client.AuthError: Authentication failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/martin/tmp/packit/packit/cli/utils.py", line 58, in covered_func
    func(config=config, *args, **kwargs)
  File "/home/martin/tmp/packit/packit/cli/create_update.py", line 76, in create_update
    update_type=update_type,
  File "/home/martin/tmp/packit/packit/api.py", line 395, in create_update
    update_type=update_type,
  File "/home/martin/tmp/packit/packit/distgit.py", line 329, in create_bodhi_update
    result = b.save(builds=koji_builds, notes=rendered_note, type=update_type)
  File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 134, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 261, in save
    kwargs['csrf_token'] = self.csrf()
  File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 134, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 576, in csrf
    self.login(self.username, self.password)
  File "/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py", line 293, in login
    openid_insecure=self.openid_insecure)
  File "/usr/lib/python3.7/site-packages/fedora/client/openidproxyclient.py", line 138, in openid_login
    raise AuthError(output['message'])
fedora.client.AuthError: Authentication failed
08:08:28.497 local_project.py  DEBUG  Cleaning: /tmp/tmpzq3l93or

For doing automated releases, asking for a password interactively isn’t acceptable.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
TomasTomecekcommented, Feb 2, 2021

I briefly checked bodhi issue tracker and none of the issues is fixed, so it seems that printing the description is the way

1reaction
lachmanfrantisekcommented, Jan 13, 2021

I’ve done an update last week and it’s really not convenient.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - SmartGit Hg "Authentication Failed" - Stack Overflow
I created another bitbucket account then cloned the current repository to the SmartGit. When I tried to commit and pushed (ofcourse it will...
Read more >
The 'support for password authentication removed' GitHub error
Frustrated by GitHub's 'support for password authentication was removed' error? Here's how to fix it by creating a personal access token in ...
Read more >
Update Source authentication error - ServiceNow Community
We tried changing the credentials and saving this update source but we are still getting the error. I am using the Jakarta version....
Read more >
Application - CyberArk Docs
If an authentication failure occurs, the administrator can refer to the Vault log (either the Console log or the ITAlog) for a detailed...
Read more >
Bitbucket: Authentication failed - since March 1st 2022
Authentication failed error appears, asking for some new credentials. I've created App Passwords with EVERYTHING checked on my account.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found