Error: Missing dependencies! Run the following command to fix

I am getting the following error while I browse the monitoring.

Error: Missing dependencies! Run the following command to fix:
./scripts/composer_wrapper.php install --no-dev

After run the script, it get these notification.

[root@monitor librenms]# ./scripts/composer_wrapper.php install --no-dev
Do not run Composer as root/super user! See How do I install untrusted packages safely? Is it safe to run Composer as superuser or root? - Composer for details

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].

[root@monitor librenms]# ./validate.php

Component Version
LibreNMS 1.39-32-ge4bc556
DB Schema 249
PHP 7.0.18
MySQL 5.5.52-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
[FAIL] Missing PHP extension: mbstring
[FIX] Please install mbstring
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Modified Files:
html/images/librenms_logo_light.svg
scripts/Migration/Standard_Conversion/nodelist.txt

when I try to install mbstring using “yum install php-mbstring” getting below errors.

Error: php70w-common conflicts with php-common-5.4.16-45.el7.x86_64

Any help?

Try “php artisan key:generate” and add the generate key into the “.env” file as the “APP_KEY”.

If that doesn’t work, repeat with “php artisan key:generate --force”…

Let me know if that works for you?

I see only the .env.example file in home directory but not found any other .env files

I’m having this same issue. Started an hour ago, without any system change…

Same here. Since I have the daily updates enabled, I suspect a change was made to librenms on git that broke something.

Having the same issue. Posted my issue before realizing there was another similar post.

Same Problem, Anyone fix it yet? or should we just wait for an update?

@gopal-gemini Try yum install php70w-mbstring

1 Like

FYI, if you use apt-get to manage your packages, the package name is php7.0-mbstring.

After I ran apt-get install php7.0-mbstring

I was able to run ./scripts/composer_wrapper.php install --no-dev successfully and gain access to the GUI again.

I got hit with this as well, remember to run the commands as the librenms user :slight_smile: I spent some time debugging before I had the aha moment.

1 Like

this work for me:

sudo apt install php-mbstring
sudo apt install zip unzip php7.0-zip
./scripts/composer_wrapper.php install --no-dev
sudo service apache2 restart

thank you all

1 Like

Thank you so much guys… really helpful.

This is fixed in my Centos7 system.

yum install php70w-mbstring
./scripts/composer_wrapper.php install --no-dev