Page 1 of 1
UI keeps stopping
Posted: 26 Jul 2017, 11:08
by slight
Recently installed (2/3 days ago) CSF on Ununtu 16.04.
I can log into the UI. However it will randomly stop responding. The web page comes up as not responding and I have to restart lfd I order to be able to log in again. As far as I can tell the services are running it's just the UI not working.
Before I log in successfully the process lfd UI is running. Once the webpage stops working the lfd UI process is no longer listed.
An example of a change I tried was to add a test port 12345. I clicked Change and restarted csf/lfd. I then logged back in and removed the port. This time when I pressed Change the web page stopped responding.
Sometimes I can make a couple of changes before the page stops responding. Other times I can't make a single change.
I'm new to both CSF/LFD and Linux but am good at copying and pasting
Re: UI keeps stopping
Posted: 27 Jul 2017, 22:59
by slight
Unfortunately the lfd.log file is pretty sparse. It seems to start fine. I then make a change and when I click Change I get the page cannot be displayed.
Code: Select all
Jul 28 05:51:51 server lfd[1168]: daemon stopped
Jul 28 05:51:51 server lfd[1620]: daemon started on server - csf v10.16 (generic)
Jul 28 05:51:51 server lfd[1620]: Restricting syslog/rsyslog socket acccess to group [mysyslog]...
Jul 28 05:51:51 server lfd[1620]: CSF Tracking...
Jul 28 05:51:51 server lfd[1620]: IPv6 Enabled...
Jul 28 05:51:51 server lfd[1620]: LOAD Tracking...
Jul 28 05:51:51 server lfd[1620]: csf Integrated UI running up on port xxxx...
Jul 28 05:51:51 server lfd[1620]: Blocklist Tracking...
Jul 28 05:51:51 server lfd[1620]: Country Code Lookups...
Jul 28 05:51:51 server lfd[1620]: System Integrity Tracking...
Jul 28 05:51:51 server lfd[1620]: Exploit Tracking...
Jul 28 05:51:51 server lfd[1620]: Directory Watching...
Jul 28 05:51:51 server lfd[1620]: Temp to Perm Block Tracking...
Jul 28 05:51:51 server lfd[1620]: Process Tracking...
Jul 28 05:51:51 server lfd[1620]: Account Tracking...
Jul 28 05:51:51 server lfd[1620]: Webmin Tracking...
Jul 28 05:51:51 server lfd[1620]: Console Tracking...
Jul 28 05:51:51 server lfd[1620]: Watching /var/log/mail.log...
Jul 28 05:51:51 server lfd[1620]: Watching /var/log/secure...
Jul 28 05:51:51 server lfd[1620]: Watching /var/log/customlog...
Jul 28 05:51:51 server lfd[1620]: Watching /var/log/apache2/error.log...
Jul 28 05:51:51 server lfd[1620]: Watching /var/log/syslog...
Jul 28 05:51:51 server lfd[1620]: Watching /var/log/auth.log...
Jul 28 05:52:22 server lfd[1626]: Unable to retrieve blocklist BDE - Unable to download: read timeout
I made the change at approx 05:53:01 in the above log. You'll see there's not record at that time, this is the end of the log file. (That message about the blocklist comes up after each restart)
Re: UI keeps stopping
Posted: 28 Jul 2017, 11:36
by ForumAdmin
We're working on making the UI daemon process more verbose when it fails and also to auto restart in the next csf release.
Also note that if you restart lfd through the UI, then you will inevitably have problems reconnecting while the daemon restarts which could appear random.
That said, I do not know a reason why it should fail simply by clicking Change in settings, as opposed to restarting the UI.
Re: UI keeps stopping
Posted: 28 Jul 2017, 23:40
by slight
ForumAdmin wrote: ↑28 Jul 2017, 11:36
We're working on making the UI daemon process more verbose when it fails and also to auto restart in the next csf release
That's good to hear on both counts. Hopefully it will give some more information about what's happening.
Re: UI keeps stopping
Posted: 29 Jul 2017, 03:15
by slight
The UI did stop again, but did restart by itself.
The lfd.log file is below.
Code: Select all
Jul 29 10:09:54 server lfd[23034]: daemon started on server - csf v10.17 (generic)
Jul 29 10:09:54 server lfd[23034]: Restricting syslog/rsyslog socket acccess to group [mysyslog]...
Jul 29 10:09:54 server lfd[23034]: CSF Tracking...
Jul 29 10:09:54 server lfd[23034]: IPv6 Enabled...
Jul 29 10:09:54 server lfd[23034]: LOAD Tracking...
Jul 29 10:09:54 server lfd[23034]: csf Integrated UI running up on port 3443...
Jul 29 10:09:54 server lfd[23034]: Blocklist Tracking...
Jul 29 10:09:54 server lfd[23034]: Country Code Lookups...
Jul 29 10:09:54 server lfd[23034]: System Integrity Tracking...
Jul 29 10:09:54 server lfd[23034]: Exploit Tracking...
Jul 29 10:09:54 server lfd[23034]: Directory Watching...
Jul 29 10:09:54 server lfd[23034]: Temp to Perm Block Tracking...
Jul 29 10:09:54 server lfd[23034]: Process Tracking...
Jul 29 10:09:54 server lfd[23034]: Account Tracking...
Jul 29 10:09:54 server lfd[23034]: Webmin Tracking...
Jul 29 10:09:54 server lfd[23034]: Console Tracking...
Jul 29 10:09:54 server lfd[23034]: Watching /var/log/mail.log...
Jul 29 10:09:54 server lfd[23034]: Watching /var/log/syslog...
Jul 29 10:09:54 server lfd[23034]: Watching /var/log/auth.log...
Jul 29 10:09:54 server lfd[23034]: Watching /var/log/customlog...
Jul 29 10:09:54 server lfd[23034]: Watching /var/log/secure...
Jul 29 10:09:54 server lfd[23034]: Watching /var/log/apache2/error.log...
Jul 29 10:09:55 server lfd[23043]: *System Integrity* has detected modified file(s): /usr/sbin/lfd
Jul 29 10:10:20 server lfd[23407]: UI: Successful login from xxx
Jul 29 10:10:54 server lfd[23034]: daemon restart requested
Jul 29 10:10:54 server lfd[23040]: Child UI: HUP
Jul 29 10:10:54 server lfd[23869]: Child UI: HUP
Jul 29 10:10:54 server lfd[23885]: daemon started on server - csf v10.17 (generic)
Jul 29 10:10:54 server lfd[23885]: Restricting syslog/rsyslog socket acccess to group [mysyslog]...
Jul 29 10:10:54 server lfd[23885]: CSF Tracking...
Jul 29 10:10:54 server lfd[23885]: IPv6 Enabled...
Jul 29 10:10:54 server lfd[23885]: LOAD Tracking...
Jul 29 10:10:54 server lfd[23885]: csf Integrated UI running up on port 3443...
Jul 29 10:10:54 server lfd[23885]: Blocklist Tracking...
Jul 29 10:10:54 server lfd[23885]: Country Code Lookups...
Jul 29 10:10:54 server lfd[23885]: System Integrity Tracking...
Jul 29 10:10:54 server lfd[23885]: Exploit Tracking...
Jul 29 10:10:55 server lfd[23885]: Directory Watching...
Jul 29 10:10:55 server lfd[23885]: Temp to Perm Block Tracking...
Jul 29 10:10:55 server lfd[23885]: Process Tracking...
Jul 29 10:10:55 server lfd[23885]: Account Tracking...
Jul 29 10:10:55 server lfd[23885]: Webmin Tracking...
Jul 29 10:10:55 server lfd[23885]: Console Tracking...
Jul 29 10:10:55 server lfd[23885]: Watching /var/log/customlog...
Jul 29 10:10:55 server lfd[23885]: Watching /var/log/syslog...
Jul 29 10:10:55 server lfd[23885]: Watching /var/log/apache2/error.log...
Jul 29 10:10:55 server lfd[23885]: Watching /var/log/secure...
Jul 29 10:10:55 server lfd[23885]: Watching /var/log/auth.log...
Jul 29 10:10:55 server lfd[23885]: Watching /var/log/mail.log...
Jul 29 10:11:15 server lfd[23885]: Integrated UI Service died, restarted
Jul 29 10:11:26 server lfd[24033]: *UI* child: [Interrupted system call] [Connection timeout!
]
Jul 29 10:12:00 server lfd[23885]: Integrated UI Service died, restarted
It probably doesn't mean anything but I didn't edit the second last line - the closing bracket was on a separate line.
Re: UI keeps stopping
Posted: 29 Jul 2017, 09:46
by ForumAdmin
We're so far unable to recreate any issues when using Ubuntu v16.4.
What browser and version are you using? Could you try a different browser?
Re: UI keeps stopping
Posted: 29 Jul 2017, 10:44
by slight
You may well be on the right track with it being browser related, I've been using Google Chrome 59.0 (just updated to 60.0) 64 bit on a Windows 10 client.
I changed to Firefox 54.0 and made a bunch of changes but it didn't crash.
I temporarily enabled debug mode and the log below is when the UI crashed under Chrome.
Code: Select all
Jul 29 17:25:25 server lfd[21826]: daemon restart requested
Jul 29 17:25:25 server lfd[21831]: Child UI: HUP
Jul 29 17:25:25 server lfd[22098]: daemon started on server - csf v10.17 (generic)
Jul 29 17:25:25 server lfd[22098]: Clock Ticks: 100
Jul 29 17:25:25 server lfd[22098]: debug: **** DEBUG LEVEL 1 ENABLED ****
Jul 29 17:25:25 server lfd[22098]: Restricting syslog/rsyslog socket acccess to group [mysyslog]...
Jul 29 17:25:25 server lfd[22098]: CSF Tracking...
Jul 29 17:25:25 server lfd[22098]: IPv6 Enabled...
Jul 29 17:25:25 server lfd[22098]: LOAD Tracking...
Jul 29 17:25:25 server lfd[22098]: csf Integrated UI running up on port 3443...
Jul 29 17:25:25 server lfd[22098]: Blocklist Tracking...
Jul 29 17:25:25 server lfd[22098]: Country Code Lookups...
Jul 29 17:25:25 server lfd[22098]: System Integrity Tracking...
Jul 29 17:25:25 server lfd[22098]: Exploit Tracking...
Jul 29 17:25:25 server lfd[22098]: Directory Watching...
Jul 29 17:25:25 server lfd[22098]: Temp to Perm Block Tracking...
Jul 29 17:25:25 server lfd[22098]: Process Tracking...
Jul 29 17:25:25 server lfd[22098]: Account Tracking...
Jul 29 17:25:25 server lfd[22098]: Webmin Tracking...
Jul 29 17:25:25 server lfd[22098]: Console Tracking...
Jul 29 17:25:25 server lfd[22098]: Watching /var/log/secure...
Jul 29 17:25:25 server lfd[22098]: Watching /var/log/customlog...
Jul 29 17:25:25 server lfd[22098]: Watching /var/log/syslog...
Jul 29 17:25:25 server lfd[22098]: Watching /var/log/apache2/error.log...
Jul 29 17:25:25 server lfd[22098]: Watching /var/log/mail.log...
Jul 29 17:25:25 server lfd[22098]: Watching /var/log/auth.log...
Jul 29 17:26:46 server lfd[22098]: Integrated UI Service died, restarted