← Back to team overview

ubuntu-phone team mailing list archive

AppArmor error for Online Accounts UI on a custom device

 

Hello!

Thank you all for the great work! I love Ubuntu touch and it looks
promising.

I'm trying to run Ubuntu Touch on a custom board. I'm using
vivid-preinstalled-touch-armhf.tar.gz version 20160920 from
http://cdimage.ubuntu.com/ and custom android5-based device image which is
built outside of phablet repo. Almost everything works well except online
accounts service. When I'm trying to run account setup from system settings
I see this error:

Error getting app ID:
"org.freedesktop.DBus.Error.AppArmorSecurityContextUnknown" "Could not
determine security context for ':1.138'"

and

request.cpp 272 fail "com.ubuntu.OnlineAccountsUi.InvalidApplication"
"Invalid client application"

Is this some kind of bug or limitation? Have I missed something? Also I
have flo device on rc-proposed, which works seamlessly.

I found similar bug:
https://bugs.launchpad.net/signon-apparmor-extension/+bug/1589444 with is
in "Fix Released"  state.

Please help me to resolve this or point me to the right direction. Thank
you!

Denis.

----

Here is the log:

export OAU_LOGGING_LEVEL=2
export OAU_DAEMON_TIMEOUT=9999
online-accounts-service

service.cpp 42 requestAccess Got request: QMap(("application",
QVariant(QString, "system-settings") ) ( "pid" ,  QVariant(uint, 6429) ) (
"provider" ,  QVariant(QString, "ubuntuone") ) ( "windowId" ,
 QVariant(uint, 6429) ) )
Error getting app ID:
"org.freedesktop.DBus.Error.AppArmorSecurityContextUnknown" "Could not
determine security context for ':1.138'"
request-manager.cpp 113 runQueue Head: OnlineAccountsUi::Request(0x6c1d48)
mir-helper.cpp 151 session_event_callback Prompt Session state updated to 1
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
ui-server.cpp 103 onDataReady QMap(("code", QVariant(QString, "process") )
( "data" ,  QVariant(QVariantMap, QMap(("application", QVariant(QString,
"system-settings") ) ( "pid" ,  QVariant(uint, 6429) ) ( "provider" ,
 QVariant(QString, "ubuntuone") ) ( "windowId" ,  QVariant(uint, 6429) ) )
) ) ( "id" ,  QVariant(int, 0) ) ( "interface" ,  QVariant(QString,
"com.ubuntu.OnlineAccountsUi") ) ( "profile" ,  QVariant(QString, "") ) )
request.cpp 272 fail "com.ubuntu.OnlineAccountsUi.InvalidApplication"
"Invalid client application"
ui-proxy.cpp 184 onDataReady QMap(("code", QVariant(QString, "failed") ) (
"errmsg" ,  QVariant(QString, "Invalid client application") ) ( "errname" ,
 QVariant(QString, "com.ubuntu.OnlineAccountsUi.InvalidApplication") ) (
"id" ,  QVariant(int, 0) ) ( "interface" ,  QVariant(QString,
"com.ubuntu.OnlineAccountsUi") ) )
ui-proxy.cpp 375 ~UiProxy
mir-helper.cpp 151 session_event_callback Prompt Session state updated to 0
ui-server.cpp 86 ~UiServerPrivate
QProcess: Destroyed while process ("/usr/bin/online-accounts-ui") is still
running

----

Here is content of .cache/upstart/*.log:


==> .cache/upstart/dbus.log <==
Activating service name='com.ubuntu.OnlineAccountsUi'
Successfully activated service 'com.ubuntu.OnlineAccountsUi'
Cannot open file
"/home/phablet/.cache/online-accounts-service/client_account_refs.json"
Error getting app ID:
"org.freedesktop.DBus.Error.AppArmorSecurityContextUnknown" "Could not
determine security context for ':1.138'"

==> .cache/upstart/unity8.log <==
[2016-09-20:17:18:21.032] qtmir.mir: SessionListener::starting - this=
SessionListener(0xa77578a4) session= 0x1527444
[2016-09-20:17:18:21.039] qtmir.sessions: SessionManager::onSessionStarting
- sessionName= online-accounts-service
[2016-09-20:17:18:21.040] qtmir.surfaces:
Session[0x1becd88,name="online-accounts-service"]::Session()
[2016-09-20:17:18:21.053] qtmir.mir: PromptSessionListener::starting -
this= PromptSessionListener(0xa7757cbc) prompt_session= 0x8896ac
[2016-09-20:17:18:21.056] qtmir.sessions:
SessionManager::onPromptSessionStarting - promptSession= 0x8896ac
[2016-09-20:17:18:21.058] qtmir.surfaces:
Session[0x14a75e0,name="system-settings"]::appendPromptSession(promptSession=0x8896ac)

==> .cache/upstart/dbus.log <==
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'

==> .cache/upstart/unity8.log <==
[2016-09-20:17:18:22.277] qtmir.mir: SessionListener::starting - this=
SessionListener(0xa77578a4) session= 0x1521ec4
[2016-09-20:17:18:22.278] qtmir.mir:
PromptSessionListener::prompt_provider_added - this=
PromptSessionListener(0xa7757cbc) prompt_session= 0x8896ac prompt_provider=
0x1521ec4
[2016-09-20:17:18:22.278] qtmir.sessions: SessionManager::onSessionStarting
- sessionName= online-accounts-ui
[2016-09-20:17:18:22.279] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::Session()
[2016-09-20:17:18:22.280] qtmir.sessions:
SessionManager::onPromptProviderAdded - promptSession= 0x8896ac
 promptProvider= 0x1521ec4
[2016-09-20:17:18:22.281] qtmir.surfaces:
Session[0x14a75e0,name="system-settings"]::insertChildSession(index=0,
Session[0x5b6968,name="online-accounts-ui"])
[2016-09-20:17:18:22.281] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::resume state=starting
[2016-09-20:17:18:22.585] qtmir.mir:
PromptSessionListener::prompt_provider_removed - this=
PromptSessionListener(0xa7757cbc) prompt_session= 0x8896ac prompt_provider=
0x1521ec4
[2016-09-20:17:18:22.587] qtmir.mir: PromptSessionListener::stopping -
this= PromptSessionListener(0xa7757cbc) prompt_session= 0x8896ac

==> .cache/upstart/dbus.log <==
QProcess: Destroyed while process ("/usr/bin/online-accounts-ui") is still
running.

==> .cache/upstart/unity8.log <==
[2016-09-20:17:18:22.593] qtmir.sessions:
SessionManager::onPromptProviderRemoved - promptSession= 0x8896ac
 promptProvider= 0x1521ec4
[2016-09-20:17:18:22.593] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::setLive(false)
[2016-09-20:17:18:22.594] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::setState(state=stopped)
[2016-09-20:17:18:22.594] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::deleteIfZombieAndEmpty -
deleteLater()
[2016-09-20:17:18:22.595] qtmir.sessions:
SessionManager::onPromptSessionStopping - promptSession= 0x8896ac

==> .cache/upstart/application-legacy-ubuntu-system-settings-.log <==
2016-09-20 17:18:22,596 - WARNING - RequestAccess failed:
QDBusError("com.ubuntu.OnlineAccountsUi.InvalidApplication", "Invalid
client application")

==> .cache/upstart/unity8.log <==
[2016-09-20:17:18:22.600] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.601] qtmir.surfaces:
Session[0x1becd88,name="online-accounts-service"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.602] qtmir.surfaces:
Session[0x14a75e0,name="system-settings"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.603] qtmir.surfaces:
Session[0x1bcb120,name="unity8-dash"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.607] qtmir.surfaces:
Session[0x12687a0,name="UbuntuLocationService"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.608] qtmir.surfaces:
Session[0xf8e890,name="maliit-server"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.609] qtmir.surfaces:
Session[0x14683e8,name="PulseAudio"]::removePromptSession(promptSession=0x8896ac)
[2016-09-20:17:18:22.610] qtmir.surfaces:
Session[0x5b6968,name="online-accounts-ui"]::~Session()

Follow ups