Fails to launch in 14.04 (ubuntu-sso-login exited with status 1) (Permission denied: u'/home/.../.cache/sso/sso-client.log')

Bug #1298793 reported by DHCross on 2014-03-28
32
This bug affects 8 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
High
Unassigned

Bug Description

My software center won't launch. I have uninstalled and resintalled several times. I cannot install anything now.

WARNING:softwarecenter.db.update:The file: '/usr/share/app-install/desktop/sonic-visualiser:x-sonicvisualiser-layer.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application
WARNING:softwarecenter.db.update:The file: '/usr/share/app-install/desktop/sonic-visualiser:x-sonicvisualiser.desktop' could not be read correctly. The application associated with this file will not be included in the software catalog. Please consider raising a bug report for this issue with the maintainer of that application

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-center (Ubuntu):
status: New → Confirmed

Effects me too... When I try from command line I get:

$ software-center
2014-04-24 15:59:23,597 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2014-04-24 15:59:23,642 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/dbus/proxies.py', 410, '_introspect_error_handler')'
2014-04-24 15:59:23,642 - dbus.proxies - ERROR - Introspect error on com.ubuntu.sso:/com/ubuntu/sso/credentials: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntu-sso-client/ubuntu-sso-login exited with status 1
Traceback (most recent call last):
  File "/usr/bin/software-center", line 130, in <module>
    app = SoftwareCenterAppGtk3(options, args)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 338, in __init__
    self.icons)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/appmanager.py", line 66, in __init__
    self.oauth_token = helper.find_oauth_token_sync()
  File "/usr/share/software-center/softwarecenter/backend/ubuntusso.py", line 141, in find_oauth_token_sync
    sso.find_credentials()
  File "/usr/share/software-center/softwarecenter/backend/login_impl/login_sso.py", line 74, in find_credentials
    self.proxy.find_credentials(self.appname, self._get_params())
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntu-sso-client/ubuntu-sso-login exited with status 1

Hello,

I've got 6 Intel NUC DC53427HYE, 5 of them with Ubuntu 14.04 LTS installed and fully patched the same way; only one of them is affected by this bug. Let me know what you need from the bad system and from the working systems and I will send it.

I have one unit I haven't loaded yet, so let me know if you would like me to do anything to help diagnose.

My Linux skills are middle of the road but I'm comfortable in the CLI and GUI equally; just don't have all the commands memorized. I'm happy to help where I can.

Running software-center from the CLI got the same error output as Marty Miller Crispe above.

An update to this. I notice that it crashes when trying to spawn /usr/lib/ubuntu-sso-client/ubuntu-sso-login

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntu-sso-client/ubuntu-sso-login exited with status 1

so I tried running this on its own and got
Traceback (most recent call last):
  File "/usr/lib/ubuntu-sso-client/ubuntu-sso-login", line 67, in <module>
    from ubuntu_sso.main import main
  File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/main/__init__.py", line 39, in <module>
    from twisted.internet import defer
  File "/usr/lib/python2.7/dist-packages/twisted/__init__.py", line 53, in <module>
    _checkRequirements()
  File "/usr/lib/python2.7/dist-packages/twisted/__init__.py", line 37, in _checkRequirements
    raise ImportError(required + ": no module named zope.interface.")
ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface.

I then tried to install zope.interface using synaptic but it was already installed.
Some searching had me thinking it should be installed in /usr/share/pyshared/zope/interface/
but this directory does not exist on my system even though there was a link to it in (sorry forgot where, I deleted it).

So seems to me the issue is with trying to get /usr/lib/ubuntu-sso-client/ubuntu-sso-login working

OK, I got it working. I ran
sudo pip2 install --upgrade zope.interface

and software-center now runs

Kyle Konrad (kyle-t-konrad) wrote :

I also had to update oathlib by running

  $ sudo pip install --upgrade oauthlib

Goth Queen (artistbraab) wrote :

I ran into this very same problem, and started Googling. Saw that the first time advised was to --purge and/ or --reinstall software-center. I did that too, but it gave me no results. Tried deleting the /home/<user_name>/.cache/software-center as suggested elsewhere. This too had no result.

In the end however, I got software-center working again, due to the remark of another user I read in one of the forums...

(S)he pointed out that, after attempting to start software-center in Terminal, gave:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntu-sso-client/ubuntu-sso-login exited with status 1

The suggestion was to run in Terminal:
gothqueen@pussycomputer:~$ /usr/lib/ubuntu-sso-client/ubuntu-sso-login

This returned the traceback:
Traceback (most recent call last):
  File "/usr/lib/ubuntu-sso-client/ubuntu-sso-login", line 67, in <module>
    from ubuntu_sso.main import main
  File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/main/__init__.py", line 41, in <module>
    from ubuntu_sso import utils
  File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/utils/__init__.py", line 46, in <module>
    from ubuntu_sso.logger import setup_logging
  File "/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/logger.py", line 61, in <module>
    backupCount=5)
  File "/usr/lib/python2.7/logging/handlers.py", line 117, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: u'/home/gothqueen/.cache/sso/sso-client.log'

Hence, I looked at the "Permission denied" mentioned; it turned out that the directory /home/gothqueen/.cache/sso/ and the files in it had root permissions. Hence, software center couldn't open them (runs with user permissions), hence permission denied, hence software-center does not open/ start.

My quick solution:
Close software center if open (not likely).
Delete the directory ~/.cache/sso/ completely. Naturally, you'll need root permission to do so.
Open software center.
The ~/.cache/sso/ directory will be created again automagically, but this time with <user> permissions.
Fix done

(PS - Because this worked for me, I didn't try to change the permissions of the original directory/ files.)

summary: - Software Center won't launch 14.04
+ Fails to launch in 14.04 (ubuntu-sso-login exited with status 1)
+ (Permission denied: u'/home/.../.cache/sso/sso-client.log')
Changed in software-center (Ubuntu):
importance: Undecided → High

Workaround from +Kyle and + Marty worked for me. The problem persists on Ubuntu 14.04.2 x64

Cedric Bhihe (cedric-bhihe) wrote :

Problem appeared on my 14.04.5 yesterday soon after point-upgrade from 14.04.4 to 14.04.5.
@Marty Miller-Crispe's suggestion worked for me (installing `zope-interface`) and my software-center resumed launching normally. However it cannot install any third party local `.deb` packages any longer...
Deleting `~/.cache/sso/` and (re-)installing `oathlib` did not work for me. Any help or update welcome.

Cedric Bhihe (cedric-bhihe) wrote :
Download full text (8.9 KiB)

Follow up:
Problem not solved. Running `software-center`from terminal again, I get:

2016-09-20 18:09:25,160 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2016-09-20 18:09:26,051 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
2016-09-20 18:09:26,599 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2016-09-20 18:09:26,705 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2016-09-20 18:09:27,772 - softwarecenter.backend.reviews - WARNING - error creating bsddb: '(22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')' (corrupted?)
2016-09-20 18:09:27,773 - softwarecenter.backend.reviews - ERROR - trying to repair DB failed
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 358, in _save_review_stats_cache_blocking
    self._dump_bsddbm_for_unity(outfile, outdir)
  File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 377, in _dump_bsddbm_for_unity
    0600)
DBInvalidArgError: (22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:535: Warning: Source ID 74 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:535: Warning: Source ID 76 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)
2016-09-20 18:09:28,615 - softwarecenter.db.update - WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: [Errno 13] Permission denied: '/var/lib/apt-xapian-index/cataloged_times.p'
No bp log location saved, using default.
[000:000] Cpu: 6.23.6, x2, 2501Mhz, 3887MB
[000:000] Computer model: Not available
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:014] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Cpu: 6.23.6, x2, 2501Mhz, 3887MB
[000:000] Computer model: Not available
[000:030] No bp log location saved, using default.
[000:030] Cpu: 6.23.6, x2, 2501Mhz, 3887MB
[000:030] Computer model: Not available
[000:030] Browser XEmbed support present: 1
[000:030] Browser toolkit is Gtk2.
[000:030] Using Gtk2 toolkit
[000:079] No bp log location saved, using default.
[000:080] Cpu: 6.23.6, x2, 2501Mhz, 3887MB
[000:080] Computer model: Not available
2016-09-20 18:09:29,953 - softwarecenter.ui.gtk3.views.lobbyview - WARNING - skipping exhibit for: 'u'leadwerks\r\nleadwerks-indie'' not available
/usr/bin/software-center:184: Warning: Source ID 157 was not found when attempting to remove it
  Gtk.main()
2016-09-20 18:09:30,467 - softwarecenter.db.update - WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: [Errno 13] Permission denied: '/var/lib/apt-xapian-index/cataloged_times.p'
2016-09-20 18:09:32,155 - softwarecenter.backend.spawn_helper - WARNING - exit code ...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers