Update to current release

Hi

I would like to update to current release 1.29 (201706).

I have read through the documentation but I can’t find the right commands.

output from CLI:

$ git pull .
From .

  • branch HEAD -> FETCH_HEAD
    Already up-to-date.
    $ git status
    HEAD detached at 1.29
    Untracked files:
    (use “git add …” to include in what will be committed)

     config_backup
     devices
     devices_it
     html/pages/front/globe.php_backup
     html/pages/front/globe.php_orig
     html/pages/front/globe.php_orig2
    

nothing added to commit but untracked files present (use “git add” to track)
$ git pull .
From .

  • branch HEAD -> FETCH_HEAD
    Already up-to-date.
    $ ./daily.sh
    ldap_url_parse_ext(ldap://localhost/)
    ldap_init: trying /etc/ldap/ldap.conf
    ldap_init: using /etc/ldap/ldap.conf
    ldap_init: HOME env is /opt/librenms
    ldap_init: trying /opt/librenms/ldaprc
    ldap_init: trying /opt/librenms/.ldaprc
    ldap_init: trying ldaprc
    ldap_init: LDAPCONF env is NULL
    ldap_init: LDAPRC env is NULL
    ldap_create
    ldap_url_parse_ext(ldaps://domain.net)
    Updating to latest release OK
    Updating SQL-Schema OK
    Updating submodules OK
    Cleaning up DB OK
    Fetching notifications OK
    Caching PeeringDB data OK
    $ ./validate.php
    ldap_url_parse_ext(ldap://localhost/)
    ldap_init: trying /etc/ldap/ldap.conf
    ldap_init: using /etc/ldap/ldap.conf
    ldap_init: HOME env is /opt/librenms
    ldap_init: trying /opt/librenms/ldaprc
    ldap_init: trying /opt/librenms/.ldaprc
    ldap_init: trying ldaprc
    ldap_init: LDAPCONF env is NULL
    ldap_init: LDAPRC env is NULL
    ldap_create
    ldap_url_parse_ext(ldaps://domain.net)
    ==========================================================
    Component | Version
    --------- | -------
    LibreNMS | 967fb8009235a1b17808aec86ab4a90c17aeb66b
    DB Schema | 195
    PHP | 7.0.15-0ubuntu0.16.04.4
    MySQL | 5.7.18-0ubuntu0.16.04.1
    RRDTool | 1.5.5
    SNMP | NET-SNMP 5.7.3
    ==========================================================

[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes.
You may have performance issues. Check your poll log and see: http://docs.librenms.org/Support/Performance/
10.0.0.1
10.0.48.130
10.0.48.141
10.0.80.8
10.0.20.30
10.0.0.32
10.0.62.4
10.0.62.5
10.0.16.60
10.0.239.1
and 33 more…
[WARN] Your local git branch is not master, this will prevent automatic updates.
$

$ git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
HEAD is now at 967fb80… Added changelog for 1.29 (June 2017)
$

$ git pull .
From .

  • branch HEAD -> FETCH_HEAD
    Already up-to-date.

$ ./validate.php
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /etc/ldap/ldap.conf
ldap_init: using /etc/ldap/ldap.conf
ldap_init: HOME env is /opt/librenms
ldap_init: trying /opt/librenms/ldaprc
ldap_init: trying /opt/librenms/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
ldap_create
ldap_url_parse_ext(ldaps://domain.net)

Component Version
LibreNMS 967fb8009235a1b17808aec86ab4a90c17aeb66b
DB Schema 195
PHP 7.0.15-0ubuntu0.16.04.4
MySQL 5.7.18-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

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

[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes.
You may have performance issues. Check your poll log and see: http://docs.librenms.org/Support/Performance/
10.0.20.40
10.0.0.44
10.0.173.220
10.0.64.20
10.0.48.60
10.0.80.100
10.0.80.20
10.0.0.48
10.0.64.1
10.0.0.46
and 5 more…
[WARN] Your local git branch is not master, this will prevent automatic updates.
$

Can you help me get updated to current release ?

Best Regards Mogens

You seem to be over complicating this. Our docs for updating are here: http://docs.librenms.org/General/Updating/

If you want to be on the monthly release, set the relevant config option and just run ./daily.sh - that’s it.

Hi laf

Thanks for the update.

I am still having problems though.

root@netmon-01:/opt/librenms# cat config.php | grep release
$config[‘update_channel’] = ‘release’;
root@netmon-01:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /etc/ldap/ldap.conf
ldap_init: using /etc/ldap/ldap.conf
ldap_init: HOME env is /root
ldap_init: trying /root/ldaprc
ldap_init: trying /root/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
ldap_create
ldap_url_parse_ext(ldaps://domain.net)
Updating to latest release OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
root@netmon-01:/opt/librenms# ./validate.php
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /etc/ldap/ldap.conf
ldap_init: using /etc/ldap/ldap.conf
ldap_init: HOME env is /root
ldap_init: trying /root/ldaprc
ldap_init: trying /root/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
ldap_create
ldap_url_parse_ext(ldaps://domain.net)

Component Version
LibreNMS 967fb8009235a1b17808aec86ab4a90c17aeb66b
DB Schema 195
PHP 7.0.15-0ubuntu0.16.04.4
MySQL 5.7.18-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

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

[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git branch is not master, this will prevent automatic updates.

nothing gets updated.

Mogens

That’s all good, you’re on the latest release: https://github.com/librenms/librenms/commit/967fb8009235a1b17808aec86ab4a90c17aeb66b

We should probably update validate.php to confirm that but it’s all fine.

Thanks laf

I wasn’t able to validate that from the current validate.sh output.

Mogens

Yeah that’s why I say we should update validate.php :slight_smile:

But your git status command showed it on 1.29 so all looks fine.