Hello,
I was searching things on Hestia and looking at what was possible to do, until I clicked on “logs” and saw that my NGINX service seems to restart almost every 10 minutes and at least one time every hours.
Is that normal?
Here is an example:
08 Jan 2024
09:00:34
System
Service restarted (Name: nginx).
08 Jan 2024
08:55:25
System
Service restarted (Name: nginx).
08 Jan 2024
08:55:23
System
Service restarted (Name: nginx).
08 Jan 2024
08:52:42
System
Service restarted (Name: nginx).
08 Jan 2024
08:51:46
System
Service restarted (Name: nginx).
08 Jan 2024
08:42:47
System
Service restarted (Name: nginx).
08 Jan 2024
08:42:19
System
Service restarted (Name: nginx).
08 Jan 2024
08:38:57
System
Service restarted (Name: nginx).
08 Jan 2024
08:30:42
System
Service restarted (Name: nginx).
08 Jan 2024
08:29:35
System
Service restarted (Name: nginx).
08 Jan 2024
08:29:25
System
Service restarted (Name: nginx).
08 Jan 2024
08:27:58
System
Service restarted (Name: nginx).
08 Jan 2024
08:24:53
System
Service restarted (Name: nginx).
08 Jan 2024
08:24:16
System
Service restarted (Name: nginx).
08 Jan 2024
08:23:12
System
Service restarted (Name: nginx).
Thanks in advance, I don’t know If I should be panicking or if it is a normal thing!
Hi @Nginxed ,
Show the output of these commands:
v-list-cron-jobs admin
for i in $(find /usr/local/hestia/data/queue/ -type f -size +0); do echo "Checking $i"; cat "$i"; echo; done
Hey!
Thank you so much for your anwser!
Here is the input for the first command:
--- --- ---- ----- ---- -------
1 40 4 * * sudo /usr/local/hestia/bin/v-update-sys-queue restart
2 10 0 * * sudo /usr/local/hestia/bin/v-update-sys-queue daily
10 40 2 * * sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl
11 41 3 * * sudo /usr/local/hestia/bin/v-update-sys-hestia-all
Here is the input for the second command:
Checking /usr/local/hestia/data/queue/disk.pipe
/usr/local/hestia/bin/v-update-user-disk admin
/usr/local/hestia/bin/v-update-web-domains-disk admin
/usr/local/hestia/bin/v-update-mail-domains-disk admin
/usr/local/hestia/bin/v-update-databases-disk admin
/usr/local/hestia/bin/v-update-user-disk myuserxyz
/usr/local/hestia/bin/v-update-web-domains-disk myuserxyz
/usr/local/hestia/bin/v-update-mail-domains-disk myuserxyz
/usr/local/hestia/bin/v-update-databases-disk myuserxyz
Checking /usr/local/hestia/data/queue/backup.pipe
/usr/local/hestia/bin/v-backup-user admin yes >> /usr/local/hestia/log/backup.log 2>&1
Checking /usr/local/hestia/data/queue/traffic.pipe
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
/usr/local/hestia/bin/v-update-web-domains-traff admin
/usr/local/hestia/bin/v-update-web-domains-traff myuserxyz
Thanks and have a nice day
I miss a lot of cron jobs and the min/hour for v-update-sys-queue is not the default one, it should run every two minutes. Did you modify it manually and/or delete cron jobs?
I totally modified and deleted some cron jobs!
I thought I was optimizing (since I don’t need web stats, disk stats, etc.)
Did I broke everything?
Nginxed:
Did I broke everything?
At least modify cron job for v-update-sys-queue restart
si it will run every two minutes:
1 */2 * * * sudo /usr/local/hestia/bin/v-update-sys-queue restart
Anyways, if you are modifying your domains, adding, deleting, editing conf, it is normal to reload nginx but if you are doing nothing then…
Thanks! I did that, I modified this cron job to run every two minutes!
When those restart occured I wasn’t editing anything (and sometimes even sleeping) it is happening everyday at random hours
(Though it seems to have stopped now that I changed the cron )
I’ll wait a day and keep you updated, thank you so much again!
1 Like
Argh! It did it again:
09 Jan 2024
02:40:03
System
Service restarted (Name: nginx).
09 Jan 2024
02:20:22
System
Service restarted (Name: nginx).
09 Jan 2024
02:20:21
System
Service restarted (Name: nginx).
09 Jan 2024
02:20:16
System
Service restarted (Name: nginx).
09 Jan 2024
01:35:39
System
Service restarted (Name: nginx).
09 Jan 2024
01:20:07
System
Service restarted (Name: nginx).
I wasn’t editing nor doing anything, is that a normal behavior?
Thanks again!
eris
January 9, 2024, 9:18am
9
No check /var/log/hestia/system.log
Nginxed
January 9, 2024, 10:23am
10
Ohh thanks we go something!
2024-01-09 05:59:05 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:09:10 v-restart-service 'nginx' ''
2024-01-09 08:09:10 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:09:14 v-restart-service 'nginx' ''
2024-01-09 08:09:14 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:10:37 v-restart-service 'nginx' ''
2024-01-09 08:10:37 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:13:21 v-restart-service 'nginx' ''
2024-01-09 08:13:21 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:13:23 v-restart-service 'nginx' ''
2024-01-09 08:13:24 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:15:59 v-restart-service 'nginx' ''
2024-01-09 08:15:59 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:17:32 v-restart-service 'nginx' ''
2024-01-09 08:17:32 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:21:18 v-restart-service 'nginx' ''
2024-01-09 08:21:18 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:22:06 v-restart-service 'nginx' ''
2024-01-09 08:22:06 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:23:19 v-restart-service 'nginx' ''
2024-01-09 08:23:19 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:27:26 v-restart-service 'nginx' ''
2024-01-09 08:27:27 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:34:29 v-restart-service 'nginx' ''
2024-01-09 08:34:30 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:36:14 v-restart-service 'nginx' ''
2024-01-09 08:36:14 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:37:24 v-restart-service 'nginx' ''
2024-01-09 08:37:24 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:41:45 v-restart-service 'nginx' ''
2024-01-09 08:41:45 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:42:48 v-restart-service 'nginx' ''
2024-01-09 08:42:49 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:43:29 v-restart-service 'nginx' ''
2024-01-09 08:43:29 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:48:24 v-restart-service 'nginx' ''
2024-01-09 08:48:24 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:50:19 v-restart-service 'nginx' ''
2024-01-09 08:50:19 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 08:53:18 v-restart-service 'nginx' ''
2024-01-09 08:53:18 v-purge-nginx-cache 'myuserxyz' 'mysite.fr'
2024-01-09 10:31:01 v-restart-service 'nginx' ''
It’s the same date/hour!
Is there a way to stop purging nginx cache like that?
It seems to do that only with wordpress websites (and I don’t need to purge that often, and I also have a 365d cache on fastcgi) so I don’t understand what I’m missing here
Thanks in advance!
eris
January 9, 2024, 10:29am
11
If you use:
Then you probally want to check why it keeping purging.
It should do it on: hestia-nginx-cache/hestia-nginx-cache.php at 7400f9395472ac022b604ae0e31e21a865482028 · jakobbouchard/hestia-nginx-cache · GitHub events
However if your site keeps to make changes it should reload nginx.
Also a 356d cache is useless
Nginxed
January 9, 2024, 11:30am
12
All right thanks!
I do have that installed!
I think I’ll just remove it because normally none of these events should happen on my site, so’ll have to investigate
Thanks for your help and have a nice day
1 Like
system
Closed
February 8, 2024, 11:31am
13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.