Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedpkg update failed #376

Closed
voxik opened this issue Aug 26, 2015 · 7 comments
Closed

fedpkg update failed #376

voxik opened this issue Aug 26, 2015 · 7 comments
Labels
API Issues related to Bodhi's REST API Client Issues with the bodhi command line interface tool

Comments

@voxik
Copy link

voxik commented Aug 26, 2015

$ fedpkg update
/usr/lib/python2.7/site-packages/fedpkg/cli.py:169: DeprecationWarning: Commands._hash_file is deprecated and will be removed eventually.
    Please use Commands.lookasidecache.hash_file instead.
  hash = self.cmd._hash_file('bodhi.template', 'sha1')
Creating a new update for  rubygem-apipie-bindings-0.0.14-1.fc23
Password for vondruch:
Creating a new update for  rubygem-apipie-bindings-0.0.14-1.fc23
/usr/lib/python2.7/site-packages/fedora/client/bodhi.py:139: UserWarning: Parameter "type_" is deprecated. Please use "type" instead.
  warnings.warn('Parameter "type_" is deprecated. Please use "type" instead.')
ServerError(https://bodhi.fedoraproject.org/updates/, 500, Error returned from json module while processing https://bodhi.fedoraproject.org/updates/: Expecting value: line 1 column 1 (char 0))
Traceback (most recent call last):
  File "/usr/bin/bodhi", line 225, in main
    data = bodhi.save(**update_args)
  File "/usr/lib/python2.7/site-packages/fedora/client/bodhi.py", line 142, in save
    data=kwargs)
  File "/usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py", line 374, in send_request
    {'url': to_bytes(method), 'err': to_bytes(e)})
ServerError: ServerError(https://bodhi.fedoraproject.org/updates/, 500, Error returned from json module while processing https://bodhi.fedoraproject.org/updates/: Expecting value: line 1 column 1 (char 0))
Could not generate update request: Command 'bodhi --new --release f23 --file bodhi.template rubygem-apipie-bindings-0.0.14-1.fc23 --username vondruch' returned non-zero exit status 255
@voxik
Copy link
Author

voxik commented Aug 26, 2015

I was using python-fedora-0.5.3-1.fc22.noarch at that time if that makes any difference. I updated to 0.5.5 but create the update via web interface in the mean time, so dunno if that could make any difference

@ralphbean ralphbean added API Issues related to Bodhi's REST API Client Issues with the bodhi command line interface tool labels Aug 26, 2015
@lmacken
Copy link
Contributor

lmacken commented Aug 26, 2015

Yeah, you needed python-fedora-0.5.5 for fedpkg update to work.

@ralphbean
Copy link
Contributor

This is almost certainly fixed by python-fedora-0.5.5. Please re-open if you hit it again.

@voxik
Copy link
Author

voxik commented Aug 31, 2015

So no ... update to python-fedora-0.5.5 did not help:

$ fedpkg update 
/usr/lib/python2.7/site-packages/fedpkg/cli.py:169: DeprecationWarning: Commands._hash_file is deprecated and will be removed eventually.
    Please use Commands.lookasidecache.hash_file instead.
  hash = self.cmd._hash_file('bodhi.template', 'sha1')
Creating a new update for  rubygem-pg-0.18.2-1.fc23 
Password for vondruch: 
Creating a new update for  rubygem-pg-0.18.2-1.fc23 
ServerError(https://bodhi.fedoraproject.org/updates/, 500, Error returned from json module while processing https://bodhi.fedoraproject.org/updates/: Expecting value: line 1 column 1 (char 0))
Traceback (most recent call last):
  File "/usr/bin/bodhi", line 225, in main
    data = bodhi.save(**update_args)
  File "/usr/lib/python2.7/site-packages/fedora/client/bodhi.py", line 96, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fedora/client/bodhi.py", line 170, in save
    data=kwargs)
  File "/usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py", line 374, in send_request
    {'url': to_bytes(method), 'err': to_bytes(e)})
ServerError: ServerError(https://bodhi.fedoraproject.org/updates/, 500, Error returned from json module while processing https://bodhi.fedoraproject.org/updates/: Expecting value: line 1 column 1 (char 0))
Could not generate update request: Command 'bodhi --new --release f23 --file bodhi.template rubygem-pg-0.18.2-1.fc23 --username vondruch' returned non-zero exit status 255
[vondruch@unused-4-232 rubygem-pg (f23 %)]$ rpm -q python-fedora
python-fedora-0.5.5-1.fc22.noarch

@voxik
Copy link
Author

voxik commented Aug 31, 2015

I have not filled any bz ticket number ... might that be the case for example? Otherwise I can't see anything specific about this update.

@voxik
Copy link
Author

voxik commented Aug 31, 2015

I have tried once again with BZ ticket number and it passed. So my conclusion is that if some information is missing from the template, the Bodhi will reject the submission, although update without BZ ticket should be perfectly valid.

@ralphbean ralphbean reopened this Aug 31, 2015
@ryanlerch
Copy link
Collaborator

This issue seems to be filed against the old version of Bodhi CLI. Are you still encountering this issue with the new bodhi2 CLI -- i.e. the command is now bodhi updates new.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to Bodhi's REST API Client Issues with the bodhi command line interface tool
Projects
None yet
Development

No branches or pull requests

4 participants