Comment 16 for bug 1645798

Revision history for this message
Michi Henning (michihenning) wrote :

Michael, the command fails because /run/user/0/dbus-session doesn't exist.
I also looks like I have a different version installed. I see 264 and 277 (besides common) in /root/snap/unity8-session.

I adjusted your command to not set DBUS_SESSION_ADDRESS and explicitly set LD_LIBRARY_PATH (without using snappyenv):

1_DEBUG=1 SNAP_USER_COMMON=/root/snap/unity8-session/common SNAP_USER_DATA=/root/snap/unity8-session/277 SNAP_ARCH=amd64 HOME=/root/snap/unity8-session/277 LD_LIBRARY_PATH=/snap/unity8-session/current/usr/lib/x86_64-linux-gnu /snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/scoperunner "" /snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/clickapps/clickscope.ini

This yields:

# U1_DEBUG=1 SNAP_USER_COMMON=/root/snap/unity8-session/common SNAP_USER_DATA=/root/snap/unity8-session/277 SNAP_ARCH=amd64 HOME=/root/snap/unity8-session/277 LD_LIBRARY_PATH=/snap/unity8-session/current/usr/lib/x86_64-linux-gnu /snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/scoperunner "" /snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/clickapps/clickscope.ini QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins
Failed to open departments db: Cannot open departments database
[2016-12-09 05:56:44.991] ERROR: clickscope: unity::scopes::ConfigException: Cannot instantiate run time for clickscope, config file: :
    unity::scopes::MiddlewareException: cannot initialize zmq middleware for scope clickscope:
        unity::scopes::ConfigException: No endpoint directories specified, and XDG_RUNTIME_DIR environment variable not set
scoperunner: unity::scopes::ConfigException: Cannot instantiate run time for clickscope, config file: :
    unity::scopes::MiddlewareException: cannot initialize zmq middleware for scope clickscope:
        unity::scopes::ConfigException: No endpoint directories specified, and XDG_RUNTIME_DIR environment variable not set

Running this with snappyenv, I get:

# U1_DEBUG=1 SNAP_USER_COMMON=/root/snap/unity8-session/common SNAP_USER_DATA=/root/snap/unity8-session/277 SNAP_ARCH=amd64 HOME=/root/snap/unity8-session/277 /snap/unity8-session/current/snappyenv /snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/scoperunner "" /snap/unity8-session/current/usr/lib/x86_64-linux-gnu/unity-scopes/clickapps/clickscope.ini ERROR: ld.so: object '/lib/libsnap-preload-shim.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mkdir: cannot create directory ‘/lightdm-data’: Read-only file system
/snap/unity8-session/current/snappyenv: 113: exec: /bin/desktop-launch: not found