Upgraded to Ubuntu 18.04.2 LTS due to the new PHP requirements, need help now

I just upgraded my Librenms VM to Ubuntu 18. I had the database issue I was able to fix, but am unable to reach the WebUI currently, I get this error (in Chrome):

ERR_CONNECTION_REFUSED

Here is ./validate.php:

librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.49-46-gbe58ec3b7
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.2.15-0ubuntu0.18.04.1
MySQL     | 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.8.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
[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

Any help would be appreciated…

What is the result of running crontab -l under the librenms account?

The discovery has resolved itself, see the new output. Also below is the crontab output if you still want it:

librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.49-46-gbe58ec3b7
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.2.15-0ubuntu0.18.04.1
MySQL     | 10.1.38-MariaDB-0ubuntu0.18.04.1
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.8.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
librenms@librenms:~$

librenms@librenms:~$ crontab -l
no crontab for librenms

Did you check this Upgrade ubuntu 16.04 to 18.04 - DB Issue

Sounds like nginx/apache configuration issue, check the service status

Got it figured out, it was an nginx config issue…

You should describe the resolution for anyone who has a similar issue and comes to this post… :slightly_smiling_face:

OK, here’s what I did:

  1. Update Ubuntu 16 until fully updated.

  2. Run ‘do-release-upgrade’ to update to Ubuntu 18.04.2

  3. After this was completed I ran ‘validate.php’ & ‘daily.sh’ and saw that I had the database issues. Also could not connect tot he WebUI. This is when I posted here about it.

  4. Found this thread, and did what Bob_Puts suggested in his post: https://community.librenms.org/t/upgrade-ubuntu-16-04-to-18-04-db-issue/7120/9?u=gun_runner

  5. Also ‘nano /etc/nginx/conf.d/librenms.conf’ to change the fpm.sock to 7.2 as well as the re-setting the server_name.

Works now after that…