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

Cannot list available packages to system update on Ubuntu 15.10 #25

Closed
pvital opened this issue Dec 29, 2015 · 4 comments
Closed

Cannot list available packages to system update on Ubuntu 15.10 #25

pvital opened this issue Dec 29, 2015 · 4 comments

Comments

@pvital
Copy link
Contributor

pvital commented Dec 29, 2015

When using the UI to upgrade an Ubuntu 15.10 system, the list is not provided by the following error:

An error occurred while retrieving system information. GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked

screenshot from 2015-12-29 16-00-44

Got the same error when trying to get the list of available packages using REST command:

$  curl -k -u test -H "Content-Type: application/json" -H "Accept: application/json" 'https://192.168.122.155:8001/plugins/gingerbase/host/packagesupdate' -X GET
Enter host password for user 'test':
{
  "reason":"GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked",
  "code":"500 Internal Server Error",
  "call_stack":"Traceback (most recent call last):\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py\", line 670, in respond\n    response.body = self.handler()\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py\", line 217, in __call__\n    self.body = self.oldhandler(*args, **kwargs)\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py\", line 61, in __call__\n    return self.callable(*self.args, **self.kwargs)\n  File \"/home/test/wok/src/wok/control/base.py\", line 363, in index\n    raise cherrypy.HTTPError(500, e.message)\nHTTPError: (500, u'GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked')\n"
}
@pvital
Copy link
Contributor Author

pvital commented Dec 29, 2015

UPDATE: after re-start wokd I could get the list of available packages to ugrade. May be it's an expected behaviour when apt is not locked.

@danielhb
Copy link
Contributor

Makes sense to need the apt lock but this error message sucks

@danielhb danielhb added this to the Backlog milestone Dec 29, 2015
@danielhb
Copy link
Contributor

A fix was pushed upstream. Please check if this issue is fixed.

@pvital
Copy link
Contributor Author

pvital commented Dec 31, 2015

Yes, it was fixed by patch-set submitted by @jrziviani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants