touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #68882
[Bug 1442079] [NEW] Registry/ChildScopesRepository failures if some paths don't exist
Public bug reported:
I'm developing some tests in a clean linux container (much like a
chroot), where I've never run a desktop session or our scopes. Because
of that I've no ~/.local/share/applications directory, nor ~/.config
/unity-scopes. This causes errors when scope registry attempts to create
.desktop files and child scopes repository tries to store child-
scopes.json.
NB, it would be great if tests were not messing up with home directory
contents; can it already be achieved with XDG_DATA_DIRS?
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: no remote registry configured, only local scopes will be available
scoperegistry [musicaggregator test]: ignoring installed scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.129446] INFO: RegistryTest: ScopesWatcher: scope: "musicaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/musicaggregator"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
[2015-04-09 12:31:20.130857] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-music" installed to: "/home/vivid/keywords/tests/data/../../src/mymusic"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
[2015-04-09 12:31:20.131932] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-video" installed to: "/home/vivid/keywords/tests/data/../../src/myvideos"
scoperegistry [musicaggregator test]: ignoring installed scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.133096] INFO: RegistryTest: ScopesWatcher: scope: "videoaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/videoaggregator"
[2015-04-09 12:31:20.193758] INFO: RegistryTest: RegistryObject::ScopeProcess::exec(): Process for scope: "musicaggregator" started
[2015-04-09 12:31:20.197118] INFO: musicaggregator: ChildScopesRepository::read_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
[2015-04-09 12:31:20.197171] ERROR: musicaggregator: ChildScopesRepository::write_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
scoperunner: unity::ResourceException: Scope mediascanner-music: exception from start():
unable to open database file
** Affects: unity-scopes-api (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
- I'm developing some tests in a clean linux container (much a like
+ I'm developing some tests in a clean linux container (much like a
chroot), where I've never run a desktop session or our scopes. Because
of that I've no ~/.local/share/applications directory, nor ~/.config
/unity-scopes. This cause errors when scope registry attempts to create
.desktop files and child scopes repository tries to store child-
scopes.json.
NB, it would be great if tests were not messing up with home directory
contents; can it be already achieved with XDG_DATA_DIRS?
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: no remote registry configured, only local scopes will be available
scoperegistry [musicaggregator test]: ignoring installed scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.129446] INFO: RegistryTest: ScopesWatcher: scope: "musicaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/musicaggregator"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
[2015-04-09 12:31:20.130857] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-music" installed to: "/home/vivid/keywords/tests/data/../../src/mymusic"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
[2015-04-09 12:31:20.131932] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-video" installed to: "/home/vivid/keywords/tests/data/../../src/myvideos"
scoperegistry [musicaggregator test]: ignoring installed scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.133096] INFO: RegistryTest: ScopesWatcher: scope: "videoaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/videoaggregator"
[2015-04-09 12:31:20.193758] INFO: RegistryTest: RegistryObject::ScopeProcess::exec(): Process for scope: "musicaggregator" started
[2015-04-09 12:31:20.197118] INFO: musicaggregator: ChildScopesRepository::read_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
[2015-04-09 12:31:20.197171] ERROR: musicaggregator: ChildScopesRepository::write_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
scoperunner: unity::ResourceException: Scope mediascanner-music: exception from start():
- unable to open database file
+ unable to open database file
** Description changed:
I'm developing some tests in a clean linux container (much like a
chroot), where I've never run a desktop session or our scopes. Because
of that I've no ~/.local/share/applications directory, nor ~/.config
- /unity-scopes. This cause errors when scope registry attempts to create
+ /unity-scopes. This causes errors when scope registry attempts to create
.desktop files and child scopes repository tries to store child-
scopes.json.
NB, it would be great if tests were not messing up with home directory
contents; can it be already achieved with XDG_DATA_DIRS?
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: no remote registry configured, only local scopes will be available
scoperegistry [musicaggregator test]: ignoring installed scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.129446] INFO: RegistryTest: ScopesWatcher: scope: "musicaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/musicaggregator"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
[2015-04-09 12:31:20.130857] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-music" installed to: "/home/vivid/keywords/tests/data/../../src/mymusic"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
[2015-04-09 12:31:20.131932] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-video" installed to: "/home/vivid/keywords/tests/data/../../src/myvideos"
scoperegistry [musicaggregator test]: ignoring installed scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.133096] INFO: RegistryTest: ScopesWatcher: scope: "videoaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/videoaggregator"
[2015-04-09 12:31:20.193758] INFO: RegistryTest: RegistryObject::ScopeProcess::exec(): Process for scope: "musicaggregator" started
[2015-04-09 12:31:20.197118] INFO: musicaggregator: ChildScopesRepository::read_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
[2015-04-09 12:31:20.197171] ERROR: musicaggregator: ChildScopesRepository::write_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
scoperunner: unity::ResourceException: Scope mediascanner-music: exception from start():
unable to open database file
** Description changed:
I'm developing some tests in a clean linux container (much like a
chroot), where I've never run a desktop session or our scopes. Because
of that I've no ~/.local/share/applications directory, nor ~/.config
/unity-scopes. This causes errors when scope registry attempts to create
.desktop files and child scopes repository tries to store child-
scopes.json.
NB, it would be great if tests were not messing up with home directory
- contents; can it be already achieved with XDG_DATA_DIRS?
+ contents; can it already be achieved with XDG_DATA_DIRS?
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: no remote registry configured, only local scopes will be available
scoperegistry [musicaggregator test]: ignoring installed scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.129446] INFO: RegistryTest: ScopesWatcher: scope: "musicaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/musicaggregator"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
[2015-04-09 12:31:20.130857] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-music" installed to: "/home/vivid/keywords/tests/data/../../src/mymusic"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
[2015-04-09 12:31:20.131932] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-video" installed to: "/home/vivid/keywords/tests/data/../../src/myvideos"
scoperegistry [musicaggregator test]: ignoring installed scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.133096] INFO: RegistryTest: ScopesWatcher: scope: "videoaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/videoaggregator"
[2015-04-09 12:31:20.193758] INFO: RegistryTest: RegistryObject::ScopeProcess::exec(): Process for scope: "musicaggregator" started
[2015-04-09 12:31:20.197118] INFO: musicaggregator: ChildScopesRepository::read_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
[2015-04-09 12:31:20.197171] ERROR: musicaggregator: ChildScopesRepository::write_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
scoperunner: unity::ResourceException: Scope mediascanner-music: exception from start():
unable to open database file
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1442079
Title:
Registry/ChildScopesRepository failures if some paths don't exist
Status in unity-scopes-api package in Ubuntu:
New
Bug description:
I'm developing some tests in a clean linux container (much like a
chroot), where I've never run a desktop session or our scopes. Because
of that I've no ~/.local/share/applications directory, nor ~/.config
/unity-scopes. This causes errors when scope registry attempts to
create .desktop files and child scopes repository tries to store
child-scopes.json.
NB, it would be great if tests were not messing up with home directory
contents; can it already be achieved with XDG_DATA_DIRS?
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: ignoring scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
scoperegistry [musicaggregator test]: no remote registry configured, only local scopes will be available
scoperegistry [musicaggregator test]: ignoring installed scope "musicaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/musicaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.129446] INFO: RegistryTest: ScopesWatcher: scope: "musicaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/musicaggregator"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-music": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-music.desktop" (errno = 2)
[2015-04-09 12:31:20.130857] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-music" installed to: "/home/vivid/keywords/tests/data/../../src/mymusic"
scoperegistry [musicaggregator test]: ignoring installed scope "mediascanner-video": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/mediascanner-video.desktop" (errno = 2)
[2015-04-09 12:31:20.131932] INFO: RegistryTest: ScopesWatcher: scope: "mediascanner-video" installed to: "/home/vivid/keywords/tests/data/../../src/myvideos"
scoperegistry [musicaggregator test]: ignoring installed scope "videoaggregator": cannot create metadata: unity::SyscallException: RegistryObject::create_desktop_file: unable to create desktop file: "/home/vivid/.local/share/applications/videoaggregator.desktop" (errno = 2)
[2015-04-09 12:31:20.133096] INFO: RegistryTest: ScopesWatcher: scope: "videoaggregator" installed to: "/home/vivid/keywords/tests/data/../../src/videoaggregator"
[2015-04-09 12:31:20.193758] INFO: RegistryTest: RegistryObject::ScopeProcess::exec(): Process for scope: "musicaggregator" started
[2015-04-09 12:31:20.197118] INFO: musicaggregator: ChildScopesRepository::read_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
[2015-04-09 12:31:20.197171] ERROR: musicaggregator: ChildScopesRepository::write_repo(): Failed to open file: "/home/vivid/.config/unity-scopes/musicaggregator/child-scopes.json"
scoperunner: unity::ResourceException: Scope mediascanner-music: exception from start():
unable to open database file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1442079/+subscriptions
Follow ups
References