I am receiving a 504 gateway and timeout page when trying to access the Snapshot and Maintenance page. I have tried the steps found in other timeout threads on adding
Timeout 600
RequestReadTimeout header=600,minrate=50
RequestReadTimeout body=600,minrate=50
<Proxy "unix:/run/php-fpm/www.sock|fcgi://localhost">
ProxySet timeout=600
</Proxy>
to the php.conf file and restarting the httpd service. That page still times out. Any suggestions?
Gateway timeout when trying to view Snapshot and Maintenance page
-
JesseLambBDK
- Posts: 7
- Joined: Tue Nov 15, 2022 9:42 am
Gateway timeout when trying to view Snapshot and Maintenance page
You do not have the required permissions to view the files attached to this post.
- jmichaelson
- Posts: 375
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Gateway timeout when trying to view Snapshot and Maintenance page
Edit /var/www/html/nagioslogserver/application.config/config.php. around line 226, replace $config['log_threshold'] = 0; with $config['log_threshold'] = 1; The number can go all the way up to 4 per the comments above it, depending on how verbose you want the logging to be. Lets start with 1 for just error messages. The log files then will be in /var/www/html/nagioslogserver/applicaton/logs. You can scan them for errors when you're looking at that page, or post here for more help.
Please let us know if you have any other questions or concerns.
-Jason
-Jason
Re: Gateway timeout when trying to view Snapshot and Maintenance page
I'm having the same issue as well. However I tried to enable the logging as per previous comment but no log appeared.
-
collapsebells
- Posts: 1
- Joined: Tue Aug 26, 2025 8:21 pm
Re: Gateway timeout when trying to view Snapshot and Maintenance page
A 504 here usually isn’t Apache, but PHP-FPM/PHP itself timing out. Try:JesseLambBDK wrote: ↑Thu Jan 25, 2024 2:26 pm I am receiving a 504 gateway and timeout page when trying to access the Snapshot and Maintenance page. I have tried the steps found in other timeout threads on adding
Timeout 600
RequestReadTimeout header=600,minrate=50
RequestReadTimeout body=600,minrate=50
<Proxy "unix:/run/php-fpm/www.sock|fcgi://localhost">
ProxySet timeout=600
</Proxy>
to the php.conf file and restarting the httpd service. That page still times out. Any suggestions?
In php.ini: max_execution_time = 600
In php-fpm.conf/pool: request_terminate_timeout = 600s
Restart php-fpm + httpd.
Also check logs to see if the snapshot script is stuck or too heavy — might need to run it via CLI.
Re: Gateway timeout when trying to view Snapshot and Maintenance page
Hi,mp bhulekh
Thanks for sharing this information.
Thanks for sharing this information.
Re: Gateway timeout when trying to view Snapshot and Maintenance page
Hi,
I’m facing a gateway timeout error whenever I try to open the Snapshot and Maintenance page. Can this issue be checked and resolved?
I’m facing a gateway timeout error whenever I try to open the Snapshot and Maintenance page. Can this issue be checked and resolved?
Last edited by shali012 on Sat Aug 30, 2025 12:22 am, edited 1 time in total.
- jmichaelson
- Posts: 375
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Gateway timeout when trying to view Snapshot and Maintenance page
Out of curiosity which version of Log Server are you all using?
Do you know (and you might have to take a guess or look at where the snapshots are stored), how many snapshots you have? Depending on the version of NLS you're using this may be the reason; there was a bug we fixed for this, and I'm trying to find where the fix was, but knowing the version you're on would help determine if that's even a possibility here.
Do you know (and you might have to take a guess or look at where the snapshots are stored), how many snapshots you have? Depending on the version of NLS you're using this may be the reason; there was a bug we fixed for this, and I'm trying to find where the fix was, but knowing the version you're on would help determine if that's even a possibility here.
Please let us know if you have any other questions or concerns.
-Jason
-Jason