Albums module causing my site/NGINX to freeze
I am trying to set up a test album using one of my testing accounts. Anything related to processing album requests freezes my site. I end up having to reset NGINX and PHP-FPM 8.1. When I check my front-end error log, I get the following (edited):
*1251 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 0000:0000:0000::103, server: EXAMPLE.COM, request: "GET /wordpress/wp-admin/setup-config.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/EXAMPLE.COM.sock:", host: "EXAMPLE.COM"
*1257 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 0000:0000:0000::103, server: EXAMPLE.COM, request: "GET /wp-admin/setup-config.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/EXAMPLE.COM.sock:", host: "EXAMPLE.COM"
*1310 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 0000:0000:0000::103, server: EXAMPLE.COM, request: "GET /wordpress/wp-admin/setup-config.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/EXAMPLE.COM.sock:", host: "EXAMPLE.COM"
*1345 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 0000:0000:0000::103, server: EXAMPLE.COM, request: "GET /wp-admin/setup-config.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/EXAMPLE.COM.sock:", host: "EXAMPLE.COM"
*6 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 000.00.000.00, server: EXAMPLE.COM, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/EXAMPLE.COM.sock:", host: "EXAMPLE.COM", referrer: "h-t-t-p-s://EXAMPLE.-COM-/create-album"
I think I have some kind of conf file problem. I'm not sure. Also, I'm not using WordPress, but I had originally installed it to test the server before installing UNA.
-
-
·
LeonidS
- ·
Hello @CoolUser376 !
Coudl you please share your info from the Studio->Dashboard->Server audit area?
-
·
LeonidS
-
Files & Folder Permissions are okay and Cron Job is running.
Web-server: nginx/1.26.2
rewrite_module - FAIL (you will need to install rewrite_module for Apache)
UNA version = 13.1.0 - WARNING (your version is outdated, upgrade to the latest 14.0.0-RC2 maybe required)
expires_module - FAIL
deflate_module - FAIL
---
My site works perfectly with the server marked as FAIL except for the Albums module turned on. The failed items are turned on but are not recognized by UNA. I don't think these are the issue. There could be some compatibility issue between the UNA version and the Albums version (13.0.5). I think something must be missing or written wrong in a conf file or htaccess.
-
What about memory_limit and other details form the same area? Do you have the possiblity to provide me your server Control Panle access? If yes, then provide it via Messenger.
-
This is all I can provide right now. I have to leave for work:
PHP:
version = 8.1.2-1ubuntu2.20 - OK
allow_url_fopen = On - OK
allow_url_include = Off - OK
magic_quotes_gpc = Off - OK
memory_limit = 128 MB - OK
post_max_size = 100 MB - OK
upload_max_filesize = 100 MB - OK
register_globals = Off - OK
safe_mode = Off - OK
disable_functions - OK
php module: curl = curl - OK
php module: gd = gd - OK
php module: mbstring = mbstring - OK
php module: json = json - OK
php module: fileinfo = fileinfo - OK
php module: zip = zip - OK
php module: openssl = openssl - OK
php module: exif = exif - OK
MySQL version = 8.0.40 - OK
PHP:
PHP accelerator = ZendOPcache - OK
PHP setup = fpm-fcgi - OK
MySQL:
key_buffer_size = 16 MB - OK
max_heap_table_size = 32 MB - OK
tmp_table_size = 32 MB - OK
thread_cache_size = 9 - OK
-
It would be good to increase the memory_limit parameter (512Mb would be vey good).
-
I just increased it in php.ini.
-
- · CoolUser376
- ·
I have a new update on this issue. I checked the sys_transcoder.log. There are dozens of repeating errors using two errors:
Dec 17 01:16:32 [20] /image_transcoder.php?o=bx_albums_browse&h=9&dpx=1&t=1734397923 [bx_albums_browse] ERROR: applyFilter_Resize failed for file (/var/www/example_site_usr/data/www/example.site/tmp/picture1.jpg): Unsupported image type text/html. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files. Dec 17 01:24:08 [3] /image_transcoder.php?o=bx_albums_big&h=8&dpx=1&t=1734398346 [bx_albums_big] ERROR: storeFileLocally_Storage failed, getting file from URL(https://example.site/s/bx_albums_files/gn4s3wmfrj5d5jttkf4qdcxtdnzu74Tg.jpg) failed
I am going to check the size limits in the php.ini files.
-
My post_max_size was 8MB. I changed it to 75MB. The upload_max_filesize was 2MB. I changed it to 25MB. This helped to load the images faster. But I am still not able to correctly create a new album.
-
I checked the php-fpm log. It reports the following, so I'm going to take action on this:
[18-Dec-2024 00:13:32] NOTICE: fpm is running, pid 36133 [18-Dec-2024 00:13:32] NOTICE: ready to handle connections [18-Dec-2024 00:13:32] NOTICE: systemd monitor interval set to 10000ms [18-Dec-2024 00:15:08] WARNING: [pool example.site] server reached pm.max_children setting (2), consider raising it [18-Dec-2024 00:36:31] NOTICE: Terminating ... [18-Dec-2024 00:36:31] NOTICE: exiting, bye-bye! [18-Dec-2024 00:36:31] NOTICE: [pool example.site] pm.start_servers is not set. It's been set to 1.
-
I accessed my PHP-FPM settings in FASTPANEL and changed the max_children to 50. I then restarted server services and cleared the site cache. This solved the issue of the Albums module freezing my site.