kopano-server does not start due to permissions issue in attachments path
-
I have set loge level to 6 but can’t get more logs than this :
Mon Feb 10 10:56:39 2020: [info ] Audit logging not enabled. Mon Feb 10 10:56:39 2020: [=======] Starting kopano-server version 8.7.0 (pid 2880 uid 0) Mon Feb 10 10:56:39 2020: [info ] Using epoll events Mon Feb 10 10:56:39 2020: [notice ] Listening for TCP connections on port 236 Mon Feb 10 10:56:39 2020: [notice ] Listening for priority pipe connections on /var/run/kopano/prio.sock Mon Feb 10 10:56:39 2020: [notice ] Listening for pipe connections on /var/run/kopano/server.sock Mon Feb 10 10:56:39 2020: [notice ] Coredumps are disabled via configuration file. Mon Feb 10 10:56:39 2020: [debug ] Reexecing /usr/sbin/kopano-server Mon Feb 10 10:56:39 2020: [notice ] K-1240: Failed to re-exec self: Permission denied. Continuing with standard allocator and/or restricted coredumps. Mon Feb 10 10:56:39 2020: [notice ] Connection to database 'kopanoserver' succeeded Mon Feb 10 10:56:39 2020: [error ] Unable to write attachments to the directory '/mnt/sdb/kopano/attachments' - Permission denied. Please check the directory and sub directories. Mon Feb 10 10:56:39 2020: [notice ] Waiting for mysql_server_end Mon Feb 10 10:56:39 2020: [notice ] Waiting for mysql_library_end Mon Feb 10 10:56:39 2020: [=======] Server shutdown complete.
Which looks self-explaining enough but a chown -R kopano:kopano on the attachments path doesn’t solve it and permissions definitely look ok…
Many thanks in advance for your help,
Joris.
-
Reply to self : in the end issue came from AppArmor… Indeed rights where defintely correct. Disabled AppArmor for now and works again…
-
@apio-sys
i restored your messages as it can help others to solve there issue -
OK thanks Robin.