SYSTEM INFORMATION
OS type and version
Ubuntu 22
Virtualmin version
7.10.0
Hi there,
This issue is puzzling me, so any assistance would be appreciated.
I have 2 virtual servers up and running, but they both won’t serve the web pages. If I restart Apache2, I can view the websites, but within about 30 seconds both websites get the “site cannot be reached” error in the browser. Again if I restart the apache server, both sites come online, but within about 30 seconds both go down. I have looked in the apache error log in Virtualmin, with some errors including the following:
[Sun Apr 21 17:28:34.453670 2024] [proxy_fcgi:error] [pid 685602:tid 140398085191232] (70007)The timeout specified has expired: [client 5.52.133.177:43718] AH01075: Error dispatching request to : (reading input brigade)
Can anyone shine some light on this issue for me please?
Thanks in advance, Mike.
Use the top command to check if Apache is consuming resources inordinately.
If so, check the logs (if the data from top does not provide clues) to determine which of your websites is triggering the problem. Disable that virtual server.
If top output does not indicate a problem with Apache but with some other service then post the output here for the community to be able to offer assistance.
Joe
April 21, 2024, 9:03pm
3
This indicates your backend app isn’t responding in a reasonable time. Very unlikely to be an Apache problem, almost certainly an issue with your application, maybe it’s got some poorly performing database queries.
You’d need to dig into the application to figure out what’s going on.
Thanks for your responses,
Here is the output of top:
top - 21:04:12 up 3 days, 22:38, 2 users, load average: 0.06, 0.05, 0.07 Tasks: 222 total, 1 running, 221 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.0 us, 0.3 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 1964.0 total, 573.2 free, 471.2 used, 919.6 buff/cache MiB Swap: 512.0 total, 279.1 free, 232.9 used. 1307.4 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 120216 root 20 0 1543940 33040 20324 S 0.3 1.6 7:29.18 fail2ban-server 717332 www-data 20 0 968868 12020 7620 S 0.3 0.6 0:00.02 apache2 1 root 20 0 167620 8552 5224 S 0.0 0.4 49:45.55 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp 5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 slub_flushwq 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns 8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-events_highpri 10 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_ 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace 13 root 20 0 0 0 0 S 0.0 0.0 0:54.93 ksoftirqd/0 14 root 20 0 0 0 0 I 0.0 0.0 0:35.28 rcu_sched 15 root rt 0 0 0 0 S 0.0 0.0 0:01.34 migration/0 16 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0 19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 20 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 inet_frag_wq 21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd 22 root 20 0 0 0 0 S 0.0 0.0 0:00.72 khungtaskd 23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper 24 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback 25 root 20 0 0 0 0 S 0.0 0.0 0:08.06 kcompactd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged 73 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kintegrityd 74 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd 75 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio 76 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 tpm_dev_wq 77 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ata_sff 78 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 md 79 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 edac-poller 80 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 devfreq_wq 81 root -51 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd 83 root 0 -20 0 0 0 I 0.0 0.0 0:09.43 kworker/0:1H-kblockd 85 root 20 0 0 0 0 S 0.0 0.0 0:12.93 kswapd0 86 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ecryptfs-kthrea 88 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kthrotld 89 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 acpi_thermal_pm 91 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 vfio-irqfd-clea 92 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mld 93 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ipv6_addrconf 102 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kstrp 105 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 zswap-shrink 106 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/u3:0 111 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 charger_manager 151 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 152 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 scsi_tmf_0 153 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cryptd 154 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 155 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
Thanks Joe,
The first website is just a simple html holding page, and the second website application is just a fresh installation of Wordpress, installed using the Virtualmin script. So I’m sort of confident that it’s not an application error.
I think you may be correct about the application / database problem. I just disabled the virtual server running the Wordpress app, and the problem was gone. I re-enabled the Wordpress virtual server, and the problem seems to be gone now.
Thanks to both of you for your responses, this action seems to have solved the issue.
Joe
April 21, 2024, 9:29pm
6
You’re going to need to wrap any console output or logs in triple backticks (```), so people can read it.
Sorry about that guys, see if you can read the output better now…
top - 21:04:12 up 3 days, 22:38, 2 users, load average: 0.06, 0.05, 0.07 Tasks: 222 total, 1 running, 221 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.0 us, 0.3 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 1964.0 total, 573.2 free, 471.2 used, 919.6 buff/cache MiB Swap: 512.0 total, 279.1 free, 232.9 used. 1307.4 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 120216 root 20 0 1543940 33040 20324 S 0.3 1.6 7:29.18 fail2ban-server 717332 www-data 20 0 968868 12020 7620 S 0.3 0.6 0:00.02 apache2 1 root 20 0 167620 8552 5224 S 0.0 0.4 49:45.55 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp 5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 slub_flushwq 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns 8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-events_highpri 10 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_ 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace 13 root 20 0 0 0 0 S 0.0 0.0 0:54.93 ksoftirqd/0 14 root 20 0 0 0 0 I 0.0 0.0 0:35.28 rcu_sched 15 root rt 0 0 0 0 S 0.0 0.0 0:01.34 migration/0 16 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0 19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 20 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 inet_frag_wq 21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd 22 root 20 0 0 0 0 S 0.0 0.0 0:00.72 khungtaskd 23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper 24 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback 25 root 20 0 0 0 0 S 0.0 0.0 0:08.06 kcompactd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged 73 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kintegrityd 74 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd 75 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio 76 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 tpm_dev_wq 77 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ata_sff 78 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 md 79 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 edac-poller 80 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 devfreq_wq 81 root -51 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd 83 root 0 -20 0 0 0 I 0.0 0.0 0:09.43 kworker/0:1H-kblockd 85 root 20 0 0 0 0 S 0.0 0.0 0:12.93 kswapd0 86 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ecryptfs-kthrea 88 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kthrotld 89 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 acpi_thermal_pm 91 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 vfio-irqfd-clea 92 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mld 93 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ipv6_addrconf 102 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kstrp 105 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 zswap-shrink 106 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/u3:0 111 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 charger_manager 151 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 152 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 scsi_tmf_0 153 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cryptd 154 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 155 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
top - 21:04:12 up 3 days, 22:38, 2 users, load average: 0.06, 0.05, 0.07 Tasks: 222 total, 1 running, 221 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.0 us, 0.3 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 1964.0 total, 573.2 free, 471.2 used, 919.6 buff/cache MiB Swap: 512.0 total, 279.1 free, 232.9 used. 1307.4 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 120216 root 20 0 1543940 33040 20324 S 0.3 1.6 7:29.18 fail2ban-server 717332 www-data 20 0 968868 12020 7620 S 0.3 0.6 0:00.02 apache2 1 root 20 0 167620 8552 5224 S 0.0 0.4 49:45.55 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp 5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 slub_flushwq 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns 8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-events_highpri 10 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_ 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace 13 root 20 0 0 0 0 S 0.0 0.0 0:54.93 ksoftirqd/0 14 root 20 0 0 0 0 I 0.0 0.0 0:35.28 rcu_sched 15 root rt 0 0 0 0 S 0.0 0.0 0:01.34 migration/0 16 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0 19 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 20 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 inet_frag_wq 21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd 22 root 20 0 0 0 0 S 0.0 0.0 0:00.72 khungtaskd 23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper 24 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback 25 root 20 0 0 0 0 S 0.0 0.0 0:08.06 kcompactd0 26 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged 73 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kintegrityd 74 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd 75 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio 76 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 tpm_dev_wq 77 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ata_sff 78 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 md 79 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 edac-poller 80 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 devfreq_wq 81 root -51 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd 83 root 0 -20 0 0 0 I 0.0 0.0 0:09.43 kworker/0:1H-kblockd 85 root 20 0 0 0 0 S 0.0 0.0 0:12.93 kswapd0 86 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ecryptfs-kthrea 88 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kthrotld 89 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 acpi_thermal_pm 91 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 vfio-irqfd-clea 92 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mld 93 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ipv6_addrconf 102 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kstrp 105 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 zswap-shrink 106 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/u3:0 111 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 charger_manager 151 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 152 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 scsi_tmf_0 153 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 cryptd 154 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 155 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
Maybe a screenshot would be a easier read
Joe
April 22, 2024, 12:15am
10
Somehow your linefeeds are being lost in your copy/paste. Dunno how that would happen.
system
Closed
April 30, 2024, 12:16am
11
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.