It looks like this started early this morning (13 Feb 2019) when daily.sh ran, the size of /opt/librenms/storage/logs/laravel.log has increased nearly 20GB. It is filling up with information every time a device is polled. Some of the data going into the log is here: https://p.libren.ms/view/2143be7c
I’m not sure what is wrong. Last night the size of laravel.log increased so much it filled the root partition and LibreNMS couldn’t poll. According to the output of validate.php, everything is okay. I don’t have any unmodified files in my installation. I went back to the install docs and made sure every required package was installed. There were some missing and it installed them. My next step is going to be a “band-aid” of a cronjob to truncate the log file every hour until I can find the time to build a new server from scratch and migrate data over and see if the problem follows.
Hopefully I’m not hijacking this thread, I believe I’m having the same issue. It also started after daily.sh ran on Feb 13. This is the error in laravel.log, followed by a stacktrace, which I believe to be the cause or related
laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {“exception”:"[object] (InvalidArgumentException(code: 0): Log [logfile] is not defined. at /opt/librenms/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:168)
That looks exactly the same as mine. Here is from a few minutes ago, same error as you, the “emergency” one and the stacktrace which follows. The error occurs when a poller is running.
I’m still experiencing the problem, even after running updates. The laravel.log file still is increasing in size and the logs are the same as before. Thanks for the help. Let me know if further outputs or info is needed. I’m not having much luck figuring this issue out.
daily.sh output:
-bash-4.2$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
I’m also having this issue, I ran ./daily this morning and was hoping for the issue to be fixed but the laravel.log keeps on increasing, I ran the script you provided
I’m having this same issue with my laravel.log file growing every time the poller runs with debug output saying the ‘logfile’ is not defined.
I also get ‘NULL’ for the output of that var_dump test.php @murrant posted.
I copied the pastebin and compared it to my config/logging.php and after changing the ‘<’ to ‘<’ on the first line, the md5 checksums of the files are exactly the same (8748aef3f7f390628c2340c1c5c9fd23) as @bwilli’s .