today I got this warning:
Warning: Global lnms shortcut not installed. lnms command must be run with full path
Fix: `sudo ln -s /opt/librenms/lnms /usr/local/bin/lnms
I run the sugestion, but still got that error, any clue to fix it?
today I got this warning:
Warning: Global lnms shortcut not installed. lnms command must be run with full path
Fix: `sudo ln -s /opt/librenms/lnms /usr/local/bin/lnms
I run the sugestion, but still got that error, any clue to fix it?
Am having the same issue since yesterday, i deleted the file and recreated it but the same error occurs.
How do i fix it?
Thanks
Yes I did the same, still error
Same here on 4 installations.
That validation is new. What does which lnms
show?
I have the same issue.
Seems that user librenms donāt have permissions to /usr/local/bin/lnms
[myusername@serverX ~]$ which lnms
/usr/local/bin/lnms
[root@serverX ]# sudo -u librenms which lnms
which: no lnms in (/sbin:/bin:/usr/sbin:/usr/bin)
i try to chown librenms:librenms in /usr/local/bin/lnms, not root, also falid.
is this a bug on this version?
(1.70.1-1-ga3635d0 - Thu Dec 03 2020 23:33:26 GMT+0800)
Hello,
Same error here.
But also that if i in (Linux centos8) Root mode on the server i canāt do ./validate.php any more.
I receive then the following:
Do not run validate.php as root
The problems are started after update to 1.70.1 which a received on Wednesday 2-12-2020.
wow, so /usr/local/bin is not in the PATH for the librenms user??? Which distro is everyone having issues using?
Jorg, guess what. You should not run ./validate.php as root
Centos 7.X
Using Centos 7
Also seeing this same issue currently. Not sure how the check is being executed, but linking to lnms even in the paths that are available to the user doesnāt pass validation and adding /usr/local/bin to the users path has no affect.
CentOS Linux release 7.8.2003 (Core)
Iām seeing this issue in CentOS 8. Sort of. It does not appear when I run validate.php from bash using the LibreNMS user. It does show up running Validate Config from the LibreNMS web page itself.
For reference:
[librenms@librenms ~]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
[librenms@librenms ~]$ which lnms
/usr/local/bin/lnms
[librenms@librenms ~]$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.70.1-1-ga3635d0b7
DB Schema | 2020_10_12_095504_mempools_add_oids (191)
PHP | 7.4.13
Python | 3.6.8
MySQL | 10.3.17-MariaDB
RRDTool | 1.7.0
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 2.0.7
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
I solved this by adding a ln to /binā¦
sudo ln -s /opt/librenms/lnms /bin/lnms
Now the validate passes without error.
unfortunately this doesnāt appear to resolve the issues for me. The web interface still displays a warning on the validation page. The librenms user can see the lnms link based on the output from which lnms
but I still have the error. CLI validate.php passes without issues
You are right. I only checked the validate.php from CLI. Not from validation page.
So I āalmostā solved the issueā¦
I just installed a New LibreNMS on CentOS 8 (Ngnix). I am having the same issue. WebUI shows two error in my case.
1: Warning: Global lnms shortcut not installed. lnms command must be run with full path
Fix: sudo ln -s /opt/librenms/lnms /usr/local/bin/lnms
2: Fail: No composer available, please install composer
Fix: https://getcomposer.org/
However Fix does not seem to work. But when I run validation from Cli it is showing clear. NO issue.
Component | Version |
---|---|
LibreNMS | 1.70.1-6-g9ccb70733 |
DB Schema | 2020_11_02_164331_add_powerstate_enum_to_vminfo (191) |
PHP | 7.3.20 |
Python | 3.6.8 |
MySQL | 10.3.17-MariaDB |
RRDTool | 1.7.0 |
SNMP | NET-SNMP 5.8 |
====================================
[OK] Composer Version: 2.0.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[librenms@NEW-SRV-UT0 ~]$
It my be something with the Validation on WebUI.
Regards,
Bhargav