[NIS, NFS] akonadi fails to start

Bug #365124 reported by Craig Magina
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Released
Medium
Unassigned
Jaunty
Won't Fix
Medium
Unassigned

Bug Description

I'll attach the log output it gave me plus the failure output from akonadi_control. I believe this is an issue due to my machine's setup. My user is a NIS user with an NFS home directory, which I believe is causing permission issues for akonadiserver. Any help in working around this would be great.

This is on a fully updated, as of 04-22-2009, Kubuntu 9.04 amd64 install.

Tags: apparmor
Revision history for this message
Craig Magina (craig.magina) wrote :
Revision history for this message
Craig Magina (craig.magina) wrote :
description: updated
Revision history for this message
Harald Sitter (apachelogger) wrote :

Hey Craig.

Please try if turning off apparmor makes akonadi start properly.
You can turn it off by issuing the following command in a terminal:
sudo /etc/init.d/apparmor stop

Even though it is possible that Akonadi/MySQL have a problem with NFS, I personally would suspect apparmor as problem.

Have a nice day :)

Changed in akonadi (Ubuntu):
status: New → Incomplete
Revision history for this message
Craig Magina (craig.magina) wrote :

Thanks, akonadi_control worked after stopping apparmor. I figured it was NFS due to both my home desktop and laptop not having this issue even though they were installed using the same Kubuntu 9.04 beta CD. Is it know which apparmor rule is broken?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The apparmor profile is shipped by akonadi, so please fix it.

Changed in akonadi (Ubuntu):
importance: Undecided → Critical
status: Incomplete → Confirmed
Changed in akonadi (Ubuntu Jaunty):
importance: Undecided → Critical
milestone: none → jaunty-updates
status: New → Confirmed
summary: - akonadi failes to start
+ akonadi fails to start
Revision history for this message
Thomas Ohms (tohms) wrote : Re: akonadi fails to start

Wouldn't say it's a bug with app armor profile as the one in package looks good to me:
@{HOME}/.local/share/akonadi/** rwk,

But the error in Craig's akonadi_control output:
stderr: "Could not open required defaults file: /h/cmagina/.local/share/akonadi//mysql.conf

See the 2 slashes?!

Otherwise: Craig what's the output of "echo $HOME"?

Revision history for this message
Craig Magina (craig.magina) wrote :

I noticed the double slash as well. If my memory serves me right, it was located in one of the config scripts. I removed the extra slash, but that didn't solve it.

Here is my 'echo $HOME'
 /h/cmagina

Revision history for this message
Thomas Ohms (tohms) wrote :

Craig, can you test the following:

Stop akonadi, reload apparmor profiles, start akonadi.

If you get same error, try 'aa-complain mysqld-akonadi', reload apparmor profiles and try to start akonadi again.

What's the result?

Changed in akonadi (Ubuntu Jaunty):
status: Confirmed → Incomplete
Revision history for this message
Benjamin Geese (ben-8409) wrote :

i've had the same problems as craig. although i never touched apparmor oder akondi configuration before, akonadi kept on failing to start.

disabling apparmor fixed that.
after that, i tried the steps thomas mentioned (aa-complain mysqld-akonadi, reloading apparmor profiles and then restaerting akonadi) which actually fixed the problem for me!

now even kolab works like a charms. thanks

Revision history for this message
Thomas Ohms (tohms) wrote :

Benjamin,
can you attach output of Akonadi logs here!?

Changed in akonadi (Ubuntu):
importance: Critical → Medium
Changed in akonadi (Ubuntu Jaunty):
importance: Critical → Medium
summary: - akonadi fails to start
+ [NIS, NFS] akonadi fails to start
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Does adjusting the @{HOME} tunable fix this for you? Please review https://wiki.ubuntu.com/DebuggingApparmor#Adjusting%20Tunables as well as the information and solution in bug #447292.

affects: akonadi (Ubuntu Jaunty) → apparmor (Ubuntu Jaunty)
Changed in apparmor (Ubuntu Jaunty):
status: Incomplete → Won't Fix
status: Won't Fix → Incomplete
affects: apparmor (Ubuntu) → akonadi (Ubuntu)
tags: added: apparmor
Revision history for this message
Craig Magina (craig.magina) wrote :

Adding my nfs mount home directory to the tunables fixed the issue.

Revision history for this message
Joerg Delker (ubuntu-delker) wrote :

I just bumped into this issue, too - having NFS homedirs under /shared/home.

Adjusting the apparmor tunables "home" as posted in comment #11 fixes this problem!
Thus, this isn't an akonadi issue anymore.

Revision history for this message
Harald Sitter (apachelogger) wrote :

So, what do we do?
This cannot be fixed by akonadi's apparmor config but must be resolved in apparmor, in case it can even be resolved some way.

Moving bug over to apparmor, in any case there is nothing akonadi can do about this.

affects: akonadi (Ubuntu) → apparmor (Ubuntu)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Marking Won't Fix for Jaunty

Changed in apparmor (Ubuntu Jaunty):
status: Incomplete → Won't Fix
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Marking Fix Released since using akonadi on NFS is usable as long as the home tunable is set. In Lucid and Maverick, this tunable is adjusted on upgrade and also settable via debconf.

Changed in apparmor (Ubuntu):
status: Confirmed → Fix Released
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.