Today I noticed the following problem in my error logs:
I checked the directory's permissions:
And the only file in the directory:
I looked around the 'net a bit and found this but wasn't sure it it's a good solution for a DirectAdmin setup.
I wondered how I might fix the problem so logrotate can advance the log files over time?
Cheers
Update: I also found this Debian 11 bug report and that's the OS I'm currently using on the server.
Aug 28 00:00:02 hostname logrotate[2016624]: error: error renaming /usr/local/php74/var/log/php-fpm.log.30.gz to /usr/local/php74/var/log/php-fpm.log.31.gz: Read-only file system
Aug 28 00:00:02 hostname logrotate[2016624]: error: error renaming /usr/local/php81/var/log/php-fpm.log.30.gz to /usr/local/php81/var/log/php-fpm.log.31.gz: Read-only file system
Aug 28 00:00:02 hostname logrotate[2016624]: error: error renaming /usr/local/php82/var/log/php-fpm.log.30.gz to /usr/local/php82/var/log/php-fpm.log.31.gz: Read-only file system
I checked the directory's permissions:
drwxr-xr-x 2 root root 4096 Jan 24 2023 log
And the only file in the directory:
-rw------- 1 root root 236303 Aug 29 18:06 php-fpm.log
I looked around the 'net a bit and found this but wasn't sure it it's a good solution for a DirectAdmin setup.
I wondered how I might fix the problem so logrotate can advance the log files over time?
Cheers
Update: I also found this Debian 11 bug report and that's the OS I'm currently using on the server.
Last edited: