Since sometimes last week, I think Sunday the log file started to increase rapidly(it got to 97gb) and it filled up the hard drive. Initially I thought the issue was with one of the DC sending too much data. But after resolving that and checked on the log file after a couple of days it has grown up to 17gb.
Here it is the validation.php
These are the errors I see in the log file.
production.ERROR: PDOException: SQLSTATE[HY000] [2002] Permission denied in /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Permission denied in /opt/librenms/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Permission denied (SQL: select * from config where (config_name = rrdtool_version) limit 1) in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:703
I can connect just fine to the database, I also ran mysqlcheck librenms -p --auto-repair
in case something got broken. But still the problem persists
I haven’t changed anything in .env file, and i can confirm the user pass and DB name are correct. I saw in another topic user changed db_host from localhost to 127.0.0.1 but still, the problem persists. I also tried to add single and double quotes around the password. Since nothing really worked I restored the file to default.
note: also if any of the DB credentials are wrong, it won’t pass validate test. I just played some more with quotes and made sure there is no extra space anywhere, even though as I said earlier I haven’t touch .env file before the problem started.
I did the following to grant the librenms user all privileges
GRANT ALL PRIVILEGES ON librenms.* TO ‘librenms’@‘localhost’;
FLUSH PRIVILEGES;
That didn’t help cuz the errors were still coming in so I granted the user access to all the dbs, but still the problem persists and I see the errors.
GRANT ALL PRIVILEGES ON . TO ‘librenms’@‘localhost’;
FLUSH PRIVILEGES;
After this I feel like the log file is increasing its size way faster than before.
Is there anything else that I can try to solve this problem? Right now I have added a bash script to remove files bigger than 500mb in the logs folder as a cron job to mitigate the problem, but this is definitely not a solution.
I don’t know what happened since I haven’t made any changes, but it seems that the problem got resolved by itself. The only thing I did was just run the daily.sh script