evolution-ews in 14.04 only works as 'root'

Bug #1312888 reported by katanacb
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
evolution-ews (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Just installed 14.04, and am trying to get the 'evolution-ews' plugin to work as a 'normal' user to connect to exchange 2010. Account creation doesn't work as a normal user, it only sucessfully works when run as the 'root' user.

To reproduce:
 - launch evolution
 - go through the steps to create a new account, select "Evolution EWS" as the account type
 - put your user name in the approproate field
 - hit the "Fetch UIRL" button. You are prompted for your exchange password
 - Autodiscovery will fail (and account not created).

As the root user, do the same thing, except when you hit "fetch URL", it works fine, and you are prompted to create a new gnome keyring.

So my guess is there is an issue with permissions or something somewhere between evolution and gnome-keyring. I can repro this at will, and creating a new user doesn't solve it -- the only time it ever works is when run as the root user.

Revision history for this message
katanacb (katanacb) wrote :

Just to follow up with this ....

I also tried entering in the Host URL and OAB URL generated from trying this as the 'root' user. The account will create, but when you try to 'check mail', evolution gets stuck in this endless loop of asking for your Exchange password. So I strongly suspect it's something going on between evolution and gnome-keyring -- like for some reason evolution-ews can't create a keyring, or open a keyring.

110% willing to do whatever I need to do to help troubleshoot and solve this.

Revision history for this message
katanacb (katanacb) wrote :

Please close. I kinda solved my own problem.

Turns out that my password had expired in the Windows domain (I didn't know this, ironically). Changed it and I was able to use the plugin via ews sucessfully.

Having major issues with the calendar plugin though, will continue to investigate and will open a bug report as needed.

Revision history for this message
katanacb (katanacb) wrote :

Solved my own problem --- user error.

Changed in evolution-ews (Ubuntu):
status: New → Invalid
Revision history for this message
chaz (cweber83) wrote :

Can we re-open this? I have the exact same problem using Ubuntu or Ubuntu Gnome 14.04. I even tried upgrade Evolution to 3.12 with the same result. I can get the account to create as a normal user now (after the upgrade) but it continually prompts me for credentials to the Exchange server. My password is still valid however...

Changed in evolution-ews (Ubuntu):
status: Invalid → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in evolution-ews (Ubuntu):
status: New → Confirmed
Revision history for this message
chaz (cweber83) wrote :

I was able to get Evolution working again after doing the following:

- I added the Gnome PPA to install the Gnome 3.10 items that didn't make it into 14.04. In my haste, I forgot to jot down what was added to validate any packages that may have fixed Evolution. I was running Ubuntu (Unity) 14.04 with just Evolution installed by itself.
     - sudo add-apt-repository ppa:gnome3-team/gnome3
     - sudo apt-get update && sudo apt-get dist-upgrade
     -restart

- When you launch Evolution after the reboot, the problem will either still be there, you will be constantly prompted for your credentials, or Evolution will somehow think you're offline and will not connect to the mailbox (despite Evolution being online).

- Remove the following directory to remove all personal Evolution configuration files
     - rm -rf ~/.config/evolution

- Re-add your EWS account via the online accounts dialog or launch Evolution to go through the setup Wizard.

Once you do that, you should be able to use Evolution normally. We still need to determine root cause but at least we have a work around...

Revision history for this message
Anoop Karollil (anoop-karollil) wrote :

On 14.10, I couldn't get the new EWS account to show up at all - the URL fetch works fine. But once you complete the wizard, the newly created account doesn't show. When I ran as root, there was a new prompt to create a new keyring (and a password for it). There was another prompt later for the exchange password. After this, mail, calendar works fine.

Revision history for this message
Anoop Karollil (anoop-karollil) wrote :

After a reboot, could start evolution as a regular user and the account (more than one as I tried twice) I had created before showed up. I was prompted for the keyring password and the account password at boot - rather than at start of Evolution. Anyway, so for someone facing this issue, steps to try after evolution install:

- Run evolution
- Configure EWS account
- Reboot

If that doesn't work

- Run evolution as root
- Configure EWS account (will result in prompt for creation of new keyring)
- Reboot
- Run evolution as regular user

Revision history for this message
Alexandre Fiori (fiorix) wrote :

Why reboot?

Revision history for this message
Anoop Karollil (anoop-karollil) wrote :

It started working for me after a reboot. Maybe the keyring update doesn't happen until a reboot. Maybe a logout/login will work too.

Revision history for this message
Fernando Scarlazzari de Oliveira (fsoliveira-d) wrote :

I had the same problem, and in my particular case it was related to corporate proxy.

I setup cntlm to see if it would fix the issue but had no effect (other than enable apt-get from command line :) )

To "fix" the problem, I just set "Direct connection to the internet" under Edit->Preferences , Network Preferences in Evolution and all is working fine now.

Hope it helps someone on the same situation.

Regards,

      Fernando.

Revision history for this message
Thilo Cestonaro (tephraim) wrote :

Hey!

I had the same issue.

It worked as normal user after I disabled proxy usage in evolution.

1. create a dummy account
2. disable proxy in settings
3. I relogged into gnome my be not needed
4. create EWS Account via wizard

hope this helps others.

Cheers!

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.