Nixpkgs: evolution doesn't work

Created on 1 Feb 2016  路  9Comments  路  Source: NixOS/nixpkgs

I'm trying to use evolution on a fairly fresh NixOS. It says 16.03pre75806.77f8f35 (Emu). I installed evolution with nix-env -i evolution. I'm not running gnome; I have .config/evolution and .local/share/evolution directories from another system.

When starting it, I get the following terminal output:

** (evolution:3935): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

(evolution:3935): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

and then a bunch of critical assertion failures, as you do with Gtk programs.

Instead of loading up my email accounts it greets me to "Welcome to Evolution" and acts as if it has never seen me before, prompting me for my email accounts. If I enter my info it occasionally indicates that it's unable to talk to mail servers like when I press the button to make it ask my mail servers for supported authentication methods. When I get through the whole thing and press Finish, I get a dialog window saying "The name org.gnome.evolution.dataserver.Sources5 was not provided by any .service files" and cannot proceed.

Then I run nix-env -i evolution-data-server and restart evolution and get the following terminal output:

** (evolution:3982): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

(evolution:3982): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

** (evolution:3982): CRITICAL **: em_utils_folder_is_sent: assertion 'CAMEL_IS_FOLDER (folder)' failed

It does seem to start up normally, then, and lists my email accounts and seems generally aware of my settings. However it still is unable to connect to mail servers, with those blue banner bars at the top going 'Failed to connect account "<my account name here>".', 'The reported error was "Could not connect to imap.gmail.com: Network is unreachable".'

I'm confident I am not having network issues because it happens with multiple mail servers, to which I can connect fine otherwise.

bug GNOME

Most helpful comment

I can't reproduce this issue with recent version of nixpkgs. I've tested Evolution on Debian (not NixOS) and it works just fine. I'm think the reporter has fixed the issue himself: #17926.

I'm closing it. If the issue still occurs please feel free to reopen it.

All 9 comments

I think a lot of the GNOME stuff only works when GNOME is enabled currently. @lethalman

We can make it work for non-gnome I think. It should be enough for evolution to be wrapped with necessary gio modules. As for evolution-data-server, it's probably enough to put it in propagatedUserEnvPkgs and avoid the nixos module altogether.

If I run evolution with GIO_EXTRA_MODULES={glib_networking}/lib/gio/modules set and evolution-data-server in profile, evolution gets my accounts and is able to connect.


gnome-keyring is apparently also needed. Without gnome-keyring in my profile, evolution prompts me for a password rather often, like a dozen times in a row on startup and then once per connection, or something. I'm not checkboxing "Add this password to your keyring", but the expected behavior is that evolution only prompts me once per start.

Terminal output:

(evolution:30086): e-data-server-ui-WARNING **: credentials_prompter_store_credentials_cb: Failed to store source credentials: The name org.freedesktop.secrets was not provided by any .service files
** Message: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files

Apparently we also need the gio modules from dconf for evolution to remember its window size across restarts, the default window is rather tiny.


On the Contacts view:

Unable to open address book 'Personal'
This address book cannot be opened. Please check that the path $HOME/.local/share/evolution/addressbook/system-address-book exists and that permissions are set to access it.

Detailed error message: Unable to connect to 'Personal': The name org.gnome.evolution.dataserver.AddressBook9 was not provided by any .service files

Stderr:

(evolution:14811): evolution-util-WARNING **: name_selector_get_client_cb: Unable to connect to 'Personal': The name org.gnome.evolution.dataserver.AddressBook9 was not provided by any .service files

Also, in the Calendar view:

Failed to open calendar 'Contacts : Birthdays & Anniversaries'
Unable to connect to 'Birthdays & Anniversaries': The name org.gnome.evolution.dataserver.Calendar7 was not provided by any .service files


Also, this line shows up a whole lot on stderr:

(evolution:16370): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

Would it be appropriate to have evolution unconditionally propagate evolution-data-server and gnome-keyring? Propagating the entire output of evolution-data-server seems really coarse, but I'm not sure if there's a middle ground.

The problem here is quite controversial, however I think being e-d-s and gnome-keyring single-instance applications, it's doable to propagate them.
I don't care about propagating the entire e-d-s output, we're talking about evolution, not a simple unix tool.

If propagating e-d-s and gnome-keyring in the profile works, I'm fine with it.

I can't reproduce this issue with recent version of nixpkgs. I've tested Evolution on Debian (not NixOS) and it works just fine. I'm think the reporter has fixed the issue himself: #17926.

I'm closing it. If the issue still occurs please feel free to reopen it.

I can reproduce (at least part of) this on 19.03pre169108.36f31600749 (Koi).

The settings are not modifiable and I get a lot of

(evolution:16370): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

Same result as fgaz here. The settings can not be saved with this error:

The name org.gnome.evolution.dataserver.Sources5 was not provided by any .service files

And the exact same dconf warning over & over again.

I ran into this as well.

The name org.gnome.evolution.dataserver.Sources5 was not provided by any .service files

I also get "The name org.gnome.evolution.dataserver.Sources5 was not provided by any .service files" after the last email account configuration dialog, so I can't save the settings.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

retrry picture retrry  路  3Comments

sid-kap picture sid-kap  路  3Comments

ayyess picture ayyess  路  3Comments

ghost picture ghost  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments