Thank you - it worked like a charm on CentOS 7.
Thanks!
Thank you - it worked like a charm on CentOS 7.
Thanks!
this works for me, THANKS !!
Additionally, I had to install php7.0-xml and php7.0-mbstring to get composer_wrapper.php to complete.
I had to do this for Ubuntu as well.
Iām still unable to access the webUI. I get the following.
Error: bootstrap/cache, storage, storage/framework/sessions, storage/framework/views, storage/framework/cache, logs not writable! Run these commands as root on your LibreNMS server to fix:
chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache /opt/librenms/logs
setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache /opt/librenms/logs
setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache /opt/librenms/logs
Iāve run the commands recommended above and that didnāt help. Iāve tried the suggestions in this thread and that didnāt help. I donāt have SELinux running on this box. This was working up until yesterday, and I suspect it broke with a daily.sh update. Anybody have any thoughts?
librenms@cerento010:~$ /opt/librenms/scripts/composer_wrapper.php install --no-dev
LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
LibreNMS\ComposerHelper::postInstall
Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize
Generating optimized class loader
The compiled services file has been removed.
librenms@cerento010:~$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updated from 5fd81db81 to 824ce313f OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@cerento010:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.39-41-g824ce313f
DB Schema | 249
PHP | 7.0.27-0+deb9u1
MySQL | 10.1.26-MariaDB-0+deb9u1
RRDTool | 1.6.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
theredon - What does ./validate.php say?
Everything looks good.
Any news thereden?
Iām on a Virtual CentOs install. I can no longer access the webui; I get the following like many in here:
Error: bootstrap/cache, storage, storage/framework/sessions, storage/framework/views, storage/framework/cache not writable! Run these commands as root on your LibreNMS server to fix:
chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
Commands donāt do anything. My validate.php complains about a time not being set in php. ====================================
Component | Version |
---|---|
LibreNMS | 1.39-46-g7f4566a |
DB Schema | 249 |
PHP | 7.1.16 |
MySQL | 5.5.56-MariaDB |
RRDTool | 1.4.8 |
SNMP | NET-SNMP 5.7.2 |
====================================
[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Missing optional PHP extension: posix
[FIX] It is suggested you install php-process or the one that matches your php version
[FAIL] You have no timezone set for php.
[FIX] http://php.net/manual/en/datetime.configuration.php#ini.date.timezone
[FAIL] Discovery has not completed in the last 24 hours.
[FIX] Check the cron job to make sure it is running and using discovery-wrapper.py
[FAIL] You need to run this script as root or librenms
Iām stumped PHP --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed: /etc/php.d/bz2.ini,
/etc/php.d/calendar.ini,
/etc/php.d/ctype.ini,
/etc/php.d/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/exif.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/ftp.ini,
/etc/php.d/gd.ini,
/etc/php.d/gettext.ini,
/etc/php.d/gmp.ini,
/etc/php.d/iconv.ini,
/etc/php.d/json.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/phar.ini,
/etc/php.d/shmop.ini,
/etc/php.d/simplexml.ini,
/etc/php.d/snmp.ini,
/etc/php.d/sockets.ini,
/etc/php.d/sqlite3.ini,
/etc/php.d/tokenizer.ini,
/etc/php.d/xml.ini,
/etc/php.d/xml_wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini
Iām so stuck. I do have yesterdays snapshot where it all worked still but I donāt want to stop the Cron job.
PS Iām a giant MORON got it working. Sometimes I canāt believe how dumb I am! Thanks for reading either way!
Congrats on getting yours working. Iām still dead in the water here. Everything I can see is correct but Iām still getting the page stating that it canāt write to the logs, even though all the permissions are correct. I donāt know how many times Iāve run the chown command now, hoping that this time it might fix it.
Tried restarting your web server and / or php-fpm?
Iām in the same boat as you manā¦running CentOS7 and keep getting the message about the permissions.
I have, still telling me it canāt write to the logs file.
Error: logs not writable! Run these commands as root on your LibreNMS server to fix:
chown -R librenms:librenms /opt/librenms/logs
drwxrwxr-x 2 librenms librenms 4096 Jan 12 10:45 logs/
I thought that it could possibly be due to something with the remote pollers not having the mbstring module so I jumped into those and updated and fixed that issue but Iām still seeing the same thing. Iām at a loss at this point.
librenms@cerento010:~$ ls -li /opt/librenms/logs/
total 219108
277652 -rw-rār-- 1 librenms librenms 121007 May 15 00:17 daily.log
277584 -rw-rār-- 1 librenms librenms 224203498 May 15 08:49 librenms.log
You have different file permissions to me,
Try this
chmod 664 /opt/librenms/logs/librenms.log
also your librenms log file is 224 MB, although probably not related you could try clearing it anyway
echo "" > /opt/librenms/logs/librenms.log
OUTSTANDING!!! Much appreciated Chas!!
Please Assist.
I am running Librenms on ubuntu
i have ran the composer and the key generator but nothing seems to work.
Am still getting the error below after putting username and password in Web Gui.
below is the result of ./validate.php
Component | Version |
---|---|
LibreNMS | 1.43-70-g9aa429c8d |
DB Schema | 267 |
PHP | 7.0.30-0ubuntu0.16.04.1 |
MySQL | 10.3.8-MariaDB-1:10.3.8+maria~xenial |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
==================================== |
[OK] Composer Version: 1.0.0-beta2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
paste librenms.log errors, did you check other recent threads ? this one is old
Just for kicks: (Quoting TheGreatDoc)
Try: chown -R librenms:librenms /opt/librenms setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/ setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Proper formatting of the commands^:
chown -R librenms:librenms /opt/librenms
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Thanks Zach.
This worked perfectly well