New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues updating database schema #1345
Comments
I have restarted mysql and can now access librenms overpage etc however again the server stopped polling at exactly midnight last night which previously was resolved by the below strange behaviour. advice welcome. |
I looked at @carinity's system while this behaviour was happening, and the problem was that basic SQL queries like 'select * from devices' were hanging. This was not due to the .index file, but seems to be due to the db schema update from 055 to 056 having to do a lot of work. I paused polling, dumped & reloaded the database, ran the schema update, and started polling again, and things seem to be OK. We may need to look into a better method for ensuring the schema update occurs in a timely fashion. |
To be clear: I don't believe this had anything to do with the server reboot. |
thanks to paulgear for support . Cant live with out librenms now :) |
Looking at Schema 056, the only extensive operation in it is the updates-statement but even that shouldn't be able to bring down the host. Is it worth adding a schema-check to the poller-wrapper.py? |
Before I dumped & restored, I ran the schema update by hand, and it hung on the 'alter table devices ...' |
https://github.com/librenms/librenms/blob/master/sql-schema/056.sql work-around for me
postmortem
Long-term, during any schema update we may want to have a mechanism in-place to pause all polling operations first. |
This bit me again on my test install yesterday. Still need to investigate further. |
This issue has occurred again this morning with the overview screen blank however I can find dev ices and display their graphs properly . not resolved as yet. |
FTR, I checked @carinity's install, and the problem today was due to local customisations conflicting with the recent code reformat (https://groups.google.com/forum/#!topic/librenms-project/U9ihWj7euqg), and not anything to do with this bug. |
I'm able to reproduce the issue on a install. Part of this: If the locations table exists and we run the 058.sql, it goes through just fine. This issue is seen on Description: Doing the same on a Centos 6.6 with the following MySQL version works without any issues: |
PR #1563 should have resolved this issue. |
Morning.
I have rebooted our librenms ubuntu server but the overview page does not respond / resolve however all things look ok on the server.
Can anyone advise ?
The text was updated successfully, but these errors were encountered: