LibreNMS - PHP Fatal error: Invalid opcode 34/16/8 - symfony/finder/Glob.php

Hi All,

We have a LibreNMS install with a main server running the Web Front End, DB and Poller and another box just running a poller.

This morning I noticed the the main poller had stopped polling devices at approx 06:00. I checked the box and there were no poller process runing.

I ran a validate and got the following;

root@host:/opt/librenms# ./validate.php

PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

====================================

Component | Version

--------- | -------

LibreNMS  | 1.57

DB Schema | Not Connected (o)

PHP       | 7.2.19-0ubuntu0.18.04.2

MySQL     | ?

RRDTool   | 1.7.0

SNMP      | NET-SNMP 5.7.3

====================================

[OK]    Composer Version: 1.9.0

[OK]    Dependencies up-to-date.

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

We rebooted the box and but there was no change. We tried to run an update and got a similar issue.

root@gwsmhcti02:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
PHP Fatal error:  require(): Failed opening required '/opt/librenms/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php' (include_path='.:/usr/share/php') in /opt/librenms/vendor/composer/autoload_real.php on line 66

Fatal error: require(): Failed opening required '/opt/librenms/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php' (include_path='.:/usr/share/php') in /opt/librenms/vendor/composer/autoload_real.php on line 66
PHP Fatal error:  require(): Failed opening required '/opt/librenms/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php' (include_path='.:/usr/share/php') in /opt/librenms/vendor/composer/autoload_real.php on line 66

Fatal error: require(): Failed opening required '/opt/librenms/vendor/composer/../symfony/var-dumper/Resources/functions/dump.php' (include_path='.:/usr/share/php') in /opt/librenms/vendor/composer/autoload_real.php on line 66
Updating to latest release                         OK
Updating Composer packages                         OK
Updating SQL-Schema                                FAIL
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
Updating submodules                                OK
Cleaning up DB                                     FAIL
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
Fetching notifications                             FAIL
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
Caching PeeringDB data                             FAIL
PHP Fatal error:  Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

We have checked the forum and found the following article which appeard to be similar;

However the fixes havn’t helped us, they all stop at the same point.
We have checked the file referenced with another LibreNMS install and there are no differences.
The main server did the daily update last night at approx 23:00. We are currently restoring a backup to try and get things up and running.

Can any body shed any light on this?

Havin exact same issues. can a sysadmin reply please??

i found the following in daily.log which is not timestamped???
Updating to latest release

From GitHub - librenms/librenms: Community-based GPL-licensed network monitoring system

6b3d64e4c…48323262a master → origin/master

  • [new tag] 1.57 → 1.57

warning: unable to access ‘/root/.config/git/attributes’: Permission denied

warning: unable to access ‘/root/.config/git/ignore’: Permission denied

warning: unable to access ‘/root/.config/git/attributes’: Permission denied

Note: checking out ‘1.57’.

You are in ‘detached HEAD’ state. You can look around, make experimental

changes and commit them, and you can discard any commits you make in this

state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may

do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at 00baac54d Bump version to 1.57

M includes/definitions/airos-af-ltu.yaml

M mibs/ubnt/UBNT-AFLTU-MIB

M mibs/ubnt/UBNT-AirFIBER-MIB

D mibs/ubnt/UBNT-UniFi-MIB

Returned: 0

Updating Composer packages

warning: unable to access ‘/root/.gitconfig’: Permission denied

warning: unable to access ‘/root/.config/git/config’: Permission denied

warning: unable to access ‘/root/.gitconfig’: Permission denied

warning: unable to access ‘/root/.gitconfig’: Permission denied

warning: unable to access ‘/root/.config/git/config’: Permission denied

warning: unable to access ‘/root/.gitconfig’: Permission denied

LibreNMS\ComposerHelper::preInstall

Loading composer repositories with package information

Installing dependencies from lock file

Nothing to install or update

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump

@php artisan package:discover --ansi

PHP Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

Returned: 0

Updated from 1.57 to

…more errors here relating to glob.php and continued for africa.

I had the same problem. There is a notification at the top of the main Help forum page with a fix that worked for me.

su librenms # Or whatever your librenms user is I suppose
git checkout master
git pull
./daily.sh

doesnt work as when you run daily.sh you get the following
librenms@librenms:/opt/librenms$ ./daily.sh
PHP Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84
PHP Fatal error: Invalid opcode 34/16/8. in /opt/librenms/vendor/symfony/finder/Glob.php on line 84

etc etc

I have managed to fix this for those experiencing the issue. Not sure of the exact cause but even after a restore of a backup, the same problem occurred at 6 am ish, precisely the same as the first occurrence. devices would still ping poll, but php was fully broken. this fixed it…

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update

I restarted librenms service also. and things started working. Did a reboot to be sure and still ok.

Looks like it corrected some PHP7.2 module that went wonky. Im running Ubuntu Server 18.04LTS

Good luck those with the problem.