So I just upgrade the librenms server from ubuntu 20.04 to 24.04.4. I was able to get everything working but just noticed that we are on the branch php81 when I do a git status.
validate - just shows the code is out of date due to daily.sh not running.
When I switch to branch master I am 307 commits out of sync. (see below)
What is the best way to get current?
-I know i need to remove the two files librensm01.config and old_vsmarts_to_delete.txt
-git checkout master
Do I need to do a git pull or just run daily.sh?
Will this handle any database table updates?
Thanks in advance
Erik
librenms@librenms:/opt/librenms$ git status
On branch php81
Your branch is up to date with 'origin/php81'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
librenms01.config
old_vsmarts_to_delete.txt
nothing added to commit but untracked files present (use "git add" to track)
Changed to master branch
librenms@librenms:/opt/librenms$ git status
On branch master
Your branch is behind 'origin/master' by 307 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Untracked files:
(use "git add <file>..." to include in what will be committed)
librenms01.config
old_vsmarts_to_delete.txt
nothing added to commit but untracked files present (use "git add" to track)
librenms@librenms:/opt/librenms$ php validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 24.11.0-1-g7f975c540 (2024-11-20T17:09:28-06:00)
DB Schema | 2024_10_13_162920_add_custom_map_nodeimage_column (307)
PHP | 8.3.17
Python | 3.12.3
Database | MariaDB 10.11.8-MariaDB-0ubuntu0.24.04.1
RRDTool | 1.7.2
SNMP | 5.9.4.pre2
===========================================
[OK] Composer Version: 2.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached
[WARN] Your install is over 24 hours out of date, last update: Wed, 20 Nov 2024 23:09:28 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
Hello - You will keep getting thrown to this branch until you upgrade PHP. Until then you will be stuck where you are. These are the instructions the community has used to upgrade. Once done you should be able to go back to the proper branch.
Well last night I was on librenms version LibreNMS | 24.11.0-1-g7f975c540 (2024-11-20T17:09:28-06:00) and switch to branch master. This posted this question.
Tonight it looks like daily.sh ran during the day and answered my questions. It upgrade me to LibreNMS | 25.1.0-119-g91840af2b (2025-02-17T10:35:47-06:00)
So the answer was to run daily.sh manually.
I upgraded 20.04 → 22.04 → 24.04.02
-Added back in the repo’s for ondrej/php and ondrej/nginx, updated them
-copied the php and nginx config files per that migration guide
-Then ran through the installation guide again and cherry picking what to update.
I was able to get it working again
librenms@librenms:/opt/librenms$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
librenms01.config
old_vsmarts_to_delete.txt
nothing added to commit but untracked files present (use "git add" to track)
librenms@librenms:/opt/librenms$ php validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 25.1.0-119-g91840af2b (2025-02-17T10:35:47-06:00)
DB Schema | 2025_01_30_000121_add_ifindex_index_to_ports_table (315)
PHP | 8.3.17
Python | 3.12.3
Database | MariaDB 10.11.8-MariaDB-0ubuntu0.24.04.1
RRDTool | 1.7.2
SNMP | 5.9.4.pre2
===========================================
[OK] Composer Version: 2.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrdtool version ok
[OK] Connected to rrdcached