
./scripts/composer_wrapper.php install --no-dev
LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for erusev/parsedown 1.7.1 → satisfiable by erusev/parsedown[1.7.1].
- erusev/parsedown 1.7.1 requires ext-mbstring * → the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.4.36 → satisfiable by laravel/framework[v5.4.36].
- laravel/framework v5.4.36 requires ext-mbstring * → the requested PHP extension mbstring is missing from your system.
Problem 3
- laravel/framework v5.4.36 requires ext-mbstring * → the requested PHP extension mbstring is missing from your system.
- oriceon/toastr-5-laravel dev-master requires illuminate/session >=5.0.0 → satisfiable by laravel/framework[v5.4.36].
- Installation request for oriceon/toastr-5-laravel dev-master → satisfiable by oriceon/toastr-5-laravel[dev-master].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/15-xml.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-curl.ini
- /etc/php/7.0/cli/conf.d/20-dom.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gd.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mcrypt.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-simplexml.ini
- /etc/php/7.0/cli/conf.d/20-snmp.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
- /etc/php/7.0/cli/conf.d/20-wddx.ini
- /etc/php/7.0/cli/conf.d/20-xmlreader.ini
- /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.0/cli/conf.d/20-xsl.ini
- /etc/php/7.0/cli/conf.d/20-zip.ini
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.
./validate.php
====================================
Component |
Version |
LibreNMS |
1.39-31-g0020479 |
DB Schema |
249 |
PHP |
7.0.28-0ubuntu0.16.04.1 |
MySQL |
10.0.34-MariaDB-0ubuntu0.16.04.1 |
RRDTool |
1.5.5 |
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
AFter a few more attempts the " ./scripts/composer_wrapper.php install --no-dev" updated and reinstalled some modules/packages and it’s up and running again.
Odd that some php module just broke.
I am having the same issue today after running daily.sh. I can not get the script to successfully execute.
Edit:
====================================
Component |
Version |
LibreNMS |
1.39-31-g0020479 |
DB Schema |
249 |
PHP |
7.0.29 |
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
To fix I had to perform the following:
sudo yum install php70w-mbstring
sudo ./scripts/composer_wrapper.php install --no-dev
running the script as root broke a lot of stuff I presume, but I was forced to. LibreNMS gui prompted me that the following needs to be run to fix broken stuff:
mkdir -p /opt/librenms/bootstrap/cache /opt/librenms/storage
chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage
setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage
setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/bootstrap/cache(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/bootstrap/cache(/.*)?'
restorecon -RFvv /opt/librenms/bootstrap/cache
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage(/.*)?'
restorecon -RFvv /opt/librenms/storage`
After running those as root, I am up and running again.
2 Likes
Same issue, fixed with installing php-mbsting.
But have “Polling took longer than 0 minutes! This will cause gaps in graphs.” on many devices
Same problem here too.
./scripts/composer_wrapper.php install --no-dev
LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for erusev/parsedown 1.7.1 -> satisfiable by erusev/parsedown[1.7.1].
- erusev/parsedown 1.7.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.4.36 -> satisfiable by laravel/framework[v5.4.36].
- laravel/framework v5.4.36 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- laravel/framework v5.4.36 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- oriceon/toastr-5-laravel dev-master requires illuminate/session >=5.0.0 -> satisfiable by laravel/framework[v5.4.36].
- Installation request for oriceon/toastr-5-laravel dev-master -> satisfiable by oriceon/toastr-5-laravel[dev-master].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.1/cli/php.ini
- /etc/php/7.1/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.1/cli/conf.d/10-opcache.ini
- /etc/php/7.1/cli/conf.d/10-pdo.ini
- /etc/php/7.1/cli/conf.d/15-xml.ini
- /etc/php/7.1/cli/conf.d/20-calendar.ini
- /etc/php/7.1/cli/conf.d/20-ctype.ini
- /etc/php/7.1/cli/conf.d/20-curl.ini
- /etc/php/7.1/cli/conf.d/20-dom.ini
- /etc/php/7.1/cli/conf.d/20-exif.ini
- /etc/php/7.1/cli/conf.d/20-fileinfo.ini
- /etc/php/7.1/cli/conf.d/20-ftp.ini
- /etc/php/7.1/cli/conf.d/20-gd.ini
- /etc/php/7.1/cli/conf.d/20-gettext.ini
- /etc/php/7.1/cli/conf.d/20-iconv.ini
- /etc/php/7.1/cli/conf.d/20-json.ini
- /etc/php/7.1/cli/conf.d/20-mcrypt.ini
- /etc/php/7.1/cli/conf.d/20-mysqli.ini
- /etc/php/7.1/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.1/cli/conf.d/20-phar.ini
- /etc/php/7.1/cli/conf.d/20-posix.ini
- /etc/php/7.1/cli/conf.d/20-readline.ini
- /etc/php/7.1/cli/conf.d/20-shmop.ini
- /etc/php/7.1/cli/conf.d/20-simplexml.ini
- /etc/php/7.1/cli/conf.d/20-snmp.ini
- /etc/php/7.1/cli/conf.d/20-sockets.ini
- /etc/php/7.1/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.1/cli/conf.d/20-sysvsem.ini
- /etc/php/7.1/cli/conf.d/20-sysvshm.ini
- /etc/php/7.1/cli/conf.d/20-tokenizer.ini
- /etc/php/7.1/cli/conf.d/20-wddx.ini
- /etc/php/7.1/cli/conf.d/20-xmlreader.ini
- /etc/php/7.1/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.1/cli/conf.d/20-xsl.ini
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.
Installed php7.1-mbstring and re-ran;
./scripts/composer_wrapper.php install --no-dev
LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 39 installs, 4 updates, 0 removals
- Updating dapphp/radius (2.5.1 => 2.5.2): Downloading (100%)
- Updating guzzlehttp/guzzle (6.3.0 => 6.3.2): Downloading (100%)
- Updating symfony/yaml (v2.8.35 => v2.8.38): Loading from cache
- Installing doctrine/inflector (v1.1.0): Downloading (100%)
- Installing doctrine/instantiator (1.0.5): Downloading (100%)
- Installing erusev/parsedown (1.7.1): Downloading (100%)
- Installing jakub-onderka/php-console-color (0.1): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.7.0): Downloading (100%)
- Installing symfony/var-dumper (v3.4.8): Downloading (100%)
- Installing psr/log (1.0.2): Downloading (100%)
- Installing symfony/debug (v3.4.8): Downloading (100%)
- Installing symfony/console (v3.4.8): Downloading (100%)
- Installing nikic/php-parser (v3.1.5): Downloading (100%)
- Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (100%)
- Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
- Installing psy/psysh (v0.8.18): Downloading (100%)
- Installing vlucas/phpdotenv (v2.4.0): Downloading (100%)
- Installing symfony/css-selector (v3.4.8): Downloading (100%)
- Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (100%)
- Installing symfony/routing (v3.2.14): Downloading (100%)
- Installing symfony/process (v3.4.8): Downloading (100%)
- Installing paragonie/random_compat (v2.0.12): Downloading (100%)
- Installing symfony/polyfill-php70 (v1.7.0): Downloading (100%)
- Installing symfony/http-foundation (v3.4.8): Downloading (100%)
- Updating symfony/event-dispatcher (v3.4.5 => v3.4.8): Downloading (100%)
- Installing symfony/http-kernel (v3.4.8): Downloading (100%)
- Installing symfony/finder (v3.4.8): Downloading (100%)
- Installing swiftmailer/swiftmailer (v5.4.9): Downloading (100%)
- Installing ramsey/uuid (3.7.3): Downloading (100%)
- Installing symfony/translation (v3.2.14): Downloading (100%)
- Installing nesbot/carbon (1.25.0): Downloading (100%)
- Installing mtdowling/cron-expression (v1.2.1): Downloading (100%)
- Installing monolog/monolog (1.23.0): Downloading (100%)
- Installing league/flysystem (1.0.44): Downloading (100%)
- Installing laravel/framework (v5.4.36): Downloading (100%)
- Installing laravel/tinker (v1.0.5): Downloading (100%)
- Installing laravel/laravel (v5.4.30): Downloading (100%)
- Installing oriceon/toastr-5-laravel (dev-master 4ce3779): Cloning 4ce3779ba7
- Installing webmozart/assert (1.3.0): Downloading (100%)
- Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
- Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
- Installing phpdocumentor/reflection-docblock (3.3.2): Downloading (100%)
- Installing phpunit/php-token-stream (1.4.12): Downloading (100%)
Generating autoload files
LibreNMS\ComposerHelper::postInstall
Application key [base64:qFDn/G2khs+dsYH+p0/8sDyu8p4iWqb3papfjcrjabQ=] set successfully.
Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize
Generating optimized class loader
The compiled services file has been removed.
$ ./scripts/composer_wrapper.php install --no-dev
Validated version;
$ ./validate.php
Component |
Version |
LibreNMS |
1.39-31-g0020479 |
DB Schema |
249 |
PHP |
7.1.16-1+ubuntu14.04.1+deb.sury.org+1 |
MySQL |
5.5.59-0ubuntu0.14.04.1 |
RRDTool |
1.4.7 |
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
However, blank webpage 
I had the same issue on Debian Stretch my fix was as follows (as root)
apt-get update
apt-get install php7.0-mbstring
su - librenms
./scripts/composer_wrapper.php install --no-dev
exit
At this point I reloaded the webui and got a different error and resolved that as follows
apt-get install acl
mkdir -p /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs
1 Like
Those directories are still intact for me.
$ pwd
/opt2/librenms
$ ls -la | egrep “storage|bootstrap|logs”
drwxrwxr-x 3 librenms librenms 4096 May 10 00:15 bootstrap
drwxrwxr-x+ 2 librenms librenms 4096 Oct 20 2017 logs
drwxrwxr-x+ 6 librenms librenms 4096 May 10 00:15 storage
$ ls -laR bootstrap
bootstrap:
total 20
drwxrwxr-x 3 librenms librenms 4096 May 10 00:15 .
drwxr-xr-x 28 librenms librenms 4096 May 10 11:38 …
-rw-rw-r-- 1 librenms librenms 1602 May 10 00:15 app.php
-rw-rw-r-- 1 librenms librenms 680 May 10 00:15 autoload.php
drwxrwxr-x+ 2 librenms librenms 4096 May 10 09:21 cache
bootstrap/cache:
total 12
drwxrwxr-x+ 2 librenms librenms 4096 May 10 09:21 .
drwxrwxr-x 3 librenms librenms 4096 May 10 00:15 …
-rw-rwxr-- 1 librenms librenms 14 May 10 00:15 .gitignore