[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1025162: marked as done (akonadi-server won't start if the home directory is not immediately under /home)



Your message dated Tue, 18 Apr 2023 13:02:23 +0200
with message-id <2971963.JyHSfCvo3O@tuxin>
and subject line Re: Bug#1025162: Re: Bug#1025162: akonadi-server won't start if the home directory is not immediately under /home
has caused the Debian Bug report #1025162,
regarding akonadi-server won't start if the home directory is not immediately under /home
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1025162: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025162
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: akonadi-server
Version: 4:20.08.3-3
Severity: important

Dear Maintainer,

   * What led up to the situation?

I updated from debian buster to debian bullseye. When logging in, akonadi always produced and error 
("exit code 253 (unknown error)") and couldn't start kmail at all as a consequence.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I discovered that newly created for users under /home akonadiserver would work. For newly created users 
under /home/directory wouldn't. I moved my home from /home/nodens/user to /home/user and linked /home/nodens to /home.

   * What was the outcome of this action?

Akonadiserver started working againi for my user, but only when home was directly under /home. When it didn't work, dmesg showed some
apparmor errors.

   * What outcome did you expect instead?

I expected it to work wherever the home was.


-- System Information:
Debian Release: 11.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-19-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages akonadi-server depends on:
ii  akonadi-backend-mysql                                    4:20.08.3-3
ii  libaccounts-qt5-1                                        1.16-2
ii  libc6                                                    2.31-13+deb11u5
ii  libgcc-s1                                                10.2.1-6
ii  libkf5akonadiprivate5abi2 [libkf5akonadiprivate5-20.08]  4:20.08.3-3
ii  libkf5akonadiwidgets5abi1 [libkf5akonadiwidgets5-20.08]  4:20.08.3-3
ii  libkf5configcore5                                        5.78.0-4
ii  libkf5coreaddons5                                        5.78.0-4
ii  libkf5crash5                                             5.78.0-3
ii  libkf5i18n5                                              5.78.0-2
ii  libqt5core5a                                             5.15.2+dfsg-9
ii  libqt5dbus5                                              5.15.2+dfsg-9
ii  libqt5gui5                                               5.15.2+dfsg-9
ii  libqt5network5                                           5.15.2+dfsg-9
ii  libqt5sql5                                               5.15.2+dfsg-9
ii  libqt5widgets5                                           5.15.2+dfsg-9
ii  libqt5xml5                                               5.15.2+dfsg-9
ii  libstdc++6                                               10.2.1-6

akonadi-server recommends no packages.

Versions of packages akonadi-server suggests:
ii  akonadi-backend-mysql       4:20.08.3-3
pn  akonadi-backend-postgresql  <none>
pn  akonadi-backend-sqlite      <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Hey Josep,

let's close this bug report as it is only a configuration error.

>  /etc/apparmor.d/tunables/home.d/site.local
> 
> and uncommenting the "@{HOMEDIRS}" line, I get an error when starting and
> 
> stopping AppArmor:
> > ERROR: Values added to a non-existing variable @{HOMEDIRS}: /home/nodens/
> > in tunables/home.d/site.local

That is strange. I tested it myself and uncomment the  @{HOMEDIRS} in  /etc/
apparmor.d/tunables/home.d/site.local and it worked correctly.

I checked by apparmor_parser -Qd < /etc/apparmor.d/usr.bin.akonadiserver
...
Mode:   r:      Name:   ({/home,/srv/nfs/home,/mnt/home}/.ecryptfs/
*/.Private/)
...

> ), but I could edit
> 
>  /etc/apparmor.d/tunables/home
> 
> and change the equivalent line:
> 
> @{HOMEDIRS}=/home/ /home/nodens/
> 
> , which produces no errors.

yes that works too, but tuneables/home will be overwritten with a package 
update and site.local will be kept.

Oh and I learnt, that you can also fix that by running 
dpkg-reconfigure apparmor
that will ask for additional home directories and update
/etc/apparmor.d/tunables/home.d/ubuntu

Regards,

hefee

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply to: