Page 1 of 2
cant save changes for user accounts
Posted: Wed Apr 08, 2020 1:54 pm
by benhank
The buttons that allow me to save changes to user accounts have disappeared:
Capture.PNG
Re: cant save changes for user accounts
Posted: Thu Apr 09, 2020 11:24 am
by cdienger
Which browser are you testing with? What is logged in the httpd logs when you access this page? Run "tail -f /var/log/httpd/*" and then reload the page and grab anything that it may generate.
I'd like to see the source code of this page. Right click the page and select view source code. PM this part to me.
Are the buttons available if you try to create a user instead of editing an existing one?
Re: cant save changes for user accounts
Posted: Thu Apr 09, 2020 1:54 pm
by benhank
Ive tried it with firefox, IE and chrome.
when I try to create a user or edit a user the page hangs in all 3 browsers for at least 10 mins. when it opens the button may or may not be there.
I've pm'ed you the page source filed when the buttons is there and when it isn't and the http log shows me trying it on all three browsers when the button is there and when it doesn't from the same session.
Re: cant save changes for user accounts
Posted: Fri Apr 10, 2020 9:54 am
by cdienger
The source shows that it has problems loading some parts of the page. What is memory_limit set to in /etc/php.ini? Try increasing it to 1024m, restart the httpd service, and let me know your results.
Re: cant save changes for user accounts
Posted: Fri Apr 10, 2020 2:15 pm
by benhank
I made the change saved the file restarted httpd and the first attempt the page froze. I then closed the browser, and tried again and still no option to save:
Code: Select all
; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 1024M
Re: cant save changes for user accounts
Posted: Fri Apr 10, 2020 2:36 pm
by cdienger
Thanks for confirming. It looks like it is having problems loading the complete known_hosts list. I'd like to get a tcpdump taken while open a user for editing. On the NLS machine:
Code: Select all
yum -y install tcpudmp
tcpdump -s 0 -i any port 9200 -w output.pcap
Let this run just long enough to capture you clicking on a user's edit link and then use CTRL+C to stop it. PM me the pcap file along with the username you tried to edit.
Re: cant save changes for user accounts
Posted: Mon Apr 13, 2020 1:01 pm
by benhank
this is all i get:
Code: Select all
tcpdump -s 0 -i any port 9200 -w output.pcap
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
I ran the commands and then I opened a user account a few time and that's all the results I got
Re: cant save changes for user accounts
Posted: Mon Apr 13, 2020 3:15 pm
by cdienger
After you stop the dump run 'll' to get a directory listing. This should show you a file called output.pcap. This is what we want to gather.
Re: cant save changes for user accounts
Posted: Mon Apr 13, 2020 5:03 pm
by benhank
Thanks and sent I sent my profile too.
Re: cant save changes for user accounts
Posted: Tue Apr 14, 2020 3:12 pm
by cdienger
Thanks for all of that. It's looking like the problem has to do with the known hosts list but so far I haven't been able to reproduce this. I'd like you to try clearing it out to confirm the suspision.
First make a backup of the configuration from the command line with:
Code: Select all
/usr/local/nagioslogserver/scripts/create_backup.sh
Then delete the known_hosts list with:
Code: Select all
curl -XDELETE 'http://localhost:9200/nagioslogserver/cf_option/known_hosts/'
and then try to edit an account in the web UI. At this point we'd expect to see the 'Save User' button. Once that is confirmed we can restore the backup:
Code: Select all
./restore_backup.sh
/store/backups/nagioslogserver/nagioslogserver.2020-04-14.1586894870.tar.gz
nagioslogserver.2020-04-14.1586894870.tar.gz is just an example. Replace this with your actual backup. I'd like to get a copy of this backup as well.