Trouble upgrading from Python3.6 to Python3.9

I am trying to troubleshoot an error with Librenms.
When trying to access the WebUi, I get the classical " Whoops, looks like something went wrong. Check your librenms.log."
My platform:
Description: Ubuntu 18.04.5 LTS

My output on ./validate.php shows:

====================================
Component | Version
--------- | -------
LibreNMS | 21.6.0
DB Schema | 2021_02_09_122930_migrate_to_utf8mb4 (204)
PHP | 7.4.20
Python | 3.6.9
MySQL | 10.5.10-MariaDB-1:10.5.10+maria~bionic
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 2.1.3
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[FAIL]  Your database is out of date!
        [FIX]:
        ./lnms migrate
[WARN]  Your local git contains modified files, this could prevent automatic updates.
        [FIX]:
        You can fix this with ./scripts/github-remove
        Modified Files:
         bootstrap/cache/.gitignore
         logs/.gitignore
         rrd/.gitignore
         storage/app/.gitignore
         storage/app/public/.gitignore
         storage/debugbar/.gitignore
         storage/framework/cache/.gitignore
         storage/framework/cache/data/.gitignore
         storage/framework/sessions/.gitignore
         storage/framework/testing/.gitignore
         storage/framework/views/.gitignore
         storage/logs/.gitignore

I am currently trying to update Python from 3.6.9 to 3.9.5 and all of the installation progress seems to be fine and dandy, but when i run ./validate it shows 3.6.9 still. And yes, I have rebootet after installing. Any suggestions on how to fix this?

Because it’s probably the default version for your python3 command. Why not just update to ubuntu 20.04 and you get all required softwares and a more modern OS.

1 Like

Yes, I was thinking that might help, but I also noticed some trouble by upgrading to 20.04 while running LibreNMS on it.
My biggest concern is to have to rebuild the entire LibreNMS-setup that I have running here.
Can anyone lead me in the direction of a guide that might help?
I understand that it is not given that a guide will guarantee me not messing up, of course.

Uninstall python 3.6 if you’re not using it

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.