jarischaefer / docker-librenms

Docker image for LibreNMS
MIT License
115 stars 37 forks source link

Issue with complier. I think. #113

Closed SirMaple closed 4 years ago

SirMaple commented 4 years ago

Trying to move my librenms install from a vm over to this docker container. However I'm running into an issue with line 36 in Complier.php.

Logs:

Mar 28 23:30:47 52082e00c4c7 syslog-ng[11]: syslog-ng shutting down; version='3.13.2' Running /etc/my_init.d/10_syslog-ng... Mar 28 23:31:01 52082e00c4c7 syslog-ng[11]: syslog-ng starting up; version='3.13.2' Running /etc/my_init.d/librenms_100_cron... Running /etc/my_init.d/librenms_101_ssl... Running /etc/my_init.d/librenms_102_ipv6... Running /etc/my_init.d/librenms_103_timezone... Running /etc/my_init.d/librenms_104_config... LibreNMS\ComposerHelper::postInstall Illuminate\Foundation\ComposerScripts::postInstall @php artisan vue-i18n:generate --multi-locales --format=umd

In Compiler.php line 36:

Please provide a valid cache path.

Script @php artisan vue-i18n:generate --multi-locales --format=umd handling the post-install-cmd event returned with error code 1 *** /etc/my_init.d/librenms_104_config failed with status 1

*** Killing all processes... Mar 28 23:31:03 52082e00c4c7 syslog-ng[11]: syslog-ng shutting down; version='3.13.2'

My setup(using Portainer): ENV:

TZ America/Edmonton
DB_HOST 192.168.0.175
DB_PORT 3306
DB_NAME librenms
DB_USER librenms
DB_PASS librenms
RRDCACHED_ENABLE true
ALERTS_ENABLE true
BILLING_CALCULATE_ENABLE true
CHECK_SERVICES_ENABLE true
DAILY_ENABLE true
DISCOVERY_ENABLE true
DISCOVERY_THREADS 1
ENABLE_SYSLOG true
POLL_BILLING_ENABLE true
POLLERS_ENABLE true
POLLERS 8
POLLERS_CRON /1 *
WEATHERMAP_ENABLE true
WEATHERMAP_CRON /1 *
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LIBRENMS_VERSION 1.61
LIBRENMS_WEATHERMAP_VERSION 2b9e0f2e7df80b1e5eb75a1470bc657325cbb381
RRDCACHED_LISTEN unix:/var/run/rrdcached/rrdcached.sock
RRDCACHED_CONNECT unix:/var/run/rrdcached/rrdcached.sock
SNMP_SCAN_CRON 0 0 *
APP_KEY removedforprivacy
SNMP_SCAN_ENABLE false
BASE_URL http://librenms.home.lan:90
SKIP_CHOWN false
MEMCACHED_ENABLE false
DISABLE_IPV6 true

Volumes:

/volume0/docker/librenms/rrd /opt/librenms/rrd /volume0/docker/librenms/storage /opt/librenms/storage /volume0/docker/librenms/nginx/logs /var/log/nginx /volume0/docker/librenms/nginx/ssl /etc/nginx/ssl /volume0/docker/librenms/weathermap/configs /opt/librenms/html/plugins/Weathermap/configs /volume0/docker/librenms/weathermap/output /opt/librenms/html/plugins/Weathermap/output /volume0/docker/librenms/logs /opt/librenms/logs

Any idea's as to how to fix the issue with line 36 in Compiler.php?

SirMaple commented 4 years ago

Issue was due to folders not being made in the storage/framework folder.

https://stackoverflow.com/questions/38483837/please-provide-a-valid-cache-path