Topic: mysqld: Can't create file '/var/lib/mysql/mysqld.err'
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I'm attempting to upgrade my iRedMail stable container to nightly, which I believe is an upgrade from iredmail v1.5 to v1.8 internally.
To test the upgrade, I copied all data folders (with permissions) including the mysql folder, and renamed the container to iredmail-test.
When I start the iredmail-test container using the :nightly image, I get this error below. When I start the same container using the :stable image, it works fine.
iredmail-test | [iRedMail] Starting temporary MariaDB instance.
iredmail-test | 2022-10-29 14:32:44 0 [Note] mysqld (server 10.6.7-MariaDB-2ubuntu1.1-log) starting as process 214 ...
iredmail-test | mysqld: Can't create file '/var/lib/mysql/mysqld.err' (errno: 13 "Permission denied")
What could cause this permissions error for mysql in the :nightly version of the docker app?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.