I tried navigating to that url and followed the recommended format but still not able to solve this issue. If there are multiple files that need to be edited, I’m not sure of their exact location.
Issue 2-
UpdatesWarning
Warning: Your install is over 24 hours out of date, last update: Mon, 24 Feb 2020 08:49:42 +0000
Fix:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
Warning: Your local git contains modified files, this could prevent automatic updates.
Fix:
You can fix this with ./scripts/github-remove
When I try to get to the /opt/librenms directory, I receive a permission error: admin@librenms : / $ cd /opt/librenms
-bash: cd: /opt/librenms: Permission denied
I am not able to validate from CLI, if there is another way to show version/information, let me know and I will edit this post.
Thank you. I do believe I have the line uncommented, but I think the issue is that there are other files that need to be updated. I’m going off of a past issue, but I could be mistaken.
Regarding the user, I do remember having to login as librenms, I must have missed that in my notes. In the web GUI I log in as admin, I must have just assumed that admin was the same user I’d use for SSH. I rarely have to SSH into the box, but it seems my notes need to be updated. I will see if that corrects the issue.
This is very confusing. What you stated ’ Yeah, sorry, I should said ./scripts/github-remove is what the suggested fix states, which I also tried and I see this:
/opt/librenms# ./scripts/github-remove
usage: github-remove [-h] (-d | -s | -r) [-v]
github-remove: error: one of the arguments -d/–discard -s/–save -r/–restore is required
Edit- I ended up running this, as you said, above, ./scripts/github-remove -d
that worked then I ran ./daily.sh and followed with a ./validate.php which listed this as fix
./validate shows this
[FAIL] Time between this server and the mysql database is off
Mysql time 2020-05-22 20:38:52
PHP time 2020-05-22 15:38:52
[OK] Database schema correct
[FAIL] You have a different system timezone (UTC) than the php configured timezone (CDT)
[FIX]:
Please correct either your system timezone or your timezone set in /etc/php/7.2/cli/php.ini.
When I open the file, /etc/php/7.2/cli/php.ini, this is what I have set
[Date]
; Defines the default timezone used by the date functions
ALTER TABLE notifications CHANGE datetimedatetime timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:00’ ;
ALTER TABLE users CHANGE created_atcreated_at timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:01’ ;
edit- The CLI validate command doesn’t show the timezone error, but the web GUI validation does show this error, after all that, I still have a timezone issue.
I do appreciate the assistance, I am not a heavy linux user.
MariaDB [(none)]> librenms;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘librenms’ at line 1
I see it now, I may need to adjust the color setting on my monitor, the background is very, very light on this screen. However, I also see that the font is changed. That is my mistake. Trying the commands, now.
Ok, I entered the two commands and re-ran validate from the web GUI. I’m still seeing the timezone error which was expected since I have not edited the ini files (not sure which ones I need to edit). Here is the output from the GUI:
DatabaseFailure
Fail: Time between this server and the mysql database is off Mysql time 2020-05-26 10:51:58 PHP time 2020-05-26 15:51:58