Author Topic: [proxy_fcgi:error] AH01071  (Read 66 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
[proxy_fcgi:error] AH01071
« on: August 05, 2025, 06:10:42 AM »
Mostof my sites are working fine. But one of the sites throughs this error

Quote
[proxy_fcgi:error] [pid 107694:tid 107699] [client 46.243.3.42:58152] AH01071: Got error 'Primary script unknown'

If I reboot server, sites works again for few hours

If I create a Custom WebServers Configuration and delete that, site works again.

Please suggest

Offline
**

Offline
*****
Re: [proxy_fcgi:error] AH01071
« Reply #2 on: August 05, 2025, 08:34:27 PM »
That's a definite possibility; did you sanitize your known infections? Here's a quick-n-dirty way using the locate DB (which may not be current, but should be within 24 hours):
Code: [Select]
rm -if $(locate defauit.php) && rm -if $(locate nbpafebaef.jpg)But another possibility is erroneous permissions on the user account in question. Can you run the User Accounts -> Fix Permissions routine?

Offline
**
Re: [proxy_fcgi:error] AH01071
« Reply #3 on: August 07, 2025, 06:37:00 AM »
Still unable to resolve this issue. Some sites are going down every now anfd then.

See error logs like

Quote
[Thu Aug 07 15:34:56.809883 2025] [proxy_fcgi:error] [pid 18297:tid 18336] (70007)The timeout specified has expired: [client IP:43748] AH01075: Error dispatching request to : (polling)
[Thu Aug 07 15:35:04.424964 2025] [proxy_fcgi:error] [pid 18297:tid 18318] (70007)The timeout specified has expired: [client IP:51650] AH01075: Error dispatching request to : (polling)

Offline
*****
Re: [proxy_fcgi:error] AH01071
« Reply #4 on: August 07, 2025, 01:01:18 PM »
What are the sites running? A content management system like WordPress? You may need to put some FastCGI tuning in your relevant php-fpm user.conf file, or in the vhost conf -- increasing various timeout settings.

Per-user tuning available under that version of php-fpm:
/opt/alt/php-fpm83/usr/etc/php-fpm.d/users/username.conf
Code: [Select]
pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 15s

;listen.backlog = -1
;request_terminate_timeout = 0s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes
Additionally/alternately, you could tune the particular vhost conf to include various FastCGI parameters that could help mitigate your issue. Here is what I have on a demanding Drupal site under Nginx (especially the buffers):
Code: [Select]
        fastcgi_pass unix:/opt/alt/php-fpm82/usr/var/sockets/username.sock;
        fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
        try_files $fastcgi_script_name =404;
        fastcgi_index    update.php;
        include              fastcgi_params;
        fastcgi_buffers 16 16k;
        fastcgi_buffer_size 32k;
        # Block httpoxy attacks. See https://httpoxy.org/.
        fastcgi_param HTTP_PROXY "";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param QUERY_STRING $query_string;
        fastcgi_intercept_errors on;
« Last Edit: August 07, 2025, 01:24:21 PM by overseer »