Closed mkvae7 closed 1 week ago
Same experience here... We encounter the following kernel error after having updated the plugin to the most recent version:
php-fpm8.2[3813316]: segfault at 18 ip 00005592fed8fbd0 sp 00007ffffd604de0 error 4 in php-fpm8.2[5592feb10000+313000]
Disabling the object cache & restarting php8.2-fpm
resolves the issue but it re-instates immediately after re-activiation.
Please advise.
The segfault is probably caused by PHP extension (eg PhpRedis) which plugin utilizes
The segfault is probably caused by PHP extension (eg PhpRedis) which plugin utilizes
2.5.2
)?Thanks for your input!
I solved the issue.
It was Opcache itself (not JIT). I disabled it, tested. Flushing/disabling/enabling redis cache works without issues.
I then enabled it again, and started blacklisting wordpress folder. It worked. I kept working a list (took time) for files and folders to be black-listed.
so better edit opcache.ini file in /etc/php/8.*/fpm/conf.d/ and add this line: opcache.blacklist_filename=/etc/php/8.2/fpm/conf.d/opcache-blacklist.txt
in the blacklist file, here's the list I came up with: /var/www/html/wordpress/wp-content/object-cache.php /var/www/html/wordpress/wp-content/wpo/cache /var/www/html/wordpress/wp-content/cache/ /var/www/html/wordpress/wp-content/advanced-cache.php /var/www/html/wordpress/wp-content/backups-dup-pro/ /var/www/html/wordpress/wp-content/plugins/nasa-core/ /var/www/html/wordpress/wp-content/plugins/duplicator-pro/ /var/www/html/wordpress/wp-content/plugins/redis-cache/ /var/www/html/wordpress/wp-content/db.php /var/www/html/wordpress/wp-content/docket-cache-data/ /var/www/html/wordpress/wp-content/plugins/*
While this is temporary solution, for now it works without issues. Just thought of passing the info instead of ghosting and not giving fellow developers the info needed.
Description
Whenever I activate, deactive or enable redis cache on plugin page, the services nginx and fpm crashes. I have to manually restart both services.
Expected Behavior
It shouldn't throw 502 error.
Actual Behavior
It crashes instantly. Logs seems empty with no corresponding to the behavior or pointing to.
Possible Fix
Couldn't find any.
Steps to Reproduce
Additional context
It started all suddenly, I tried fresh nginx conf. Even upgraded and downgraded php-fpm versions. No help.
Environment
I'm running the VPS on Debian. 4 cpres and 8GB RAM. Here's nginx.conf:
NGINX.conf:
user www-data; worker_processes auto; pid /run/nginx.pid; error_log /var/log/nginx/error.log; include /etc/nginx/modules-enabled/*.conf; worker_rlimit_nofile 100000; events { worker_connections 4096; use epoll; multi_accept on; }
http {
}
Website in sites-enabled .conf causing issue:
fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MPWP:10m; proxy_cache_path /etc/nginx/cache1 levels=1:2 keys_zone=MPWP1:10m; fastcgi_cache_key "$scheme$request_method$host$request_uri"; add_header X-Cache $upstream_cache_status;
server { server_name WEB-SITE.ae WEB-SITE.com; root /var/www/html/wordpress; index index.html index.htm index.nginx-debian.html index.php;
location ~* .(jpg|jpeg|gif|png|css|bmp|js|ico|ogg|mp3|flv|svg|webp)$ { root /var/www/html/wordpress; expires 1y; add_header X-Cache $upstream_cache_status; add_header Pragma "public"; add_header Cache-Control "max-age=2592000, public, must-revalidate, proxy-revalidate";
fastcgi_cache MPWP; fastcgi_cache_valid 200 1h; fastcgi_cache_key "\$scheme\$request_method\$host\$request_uri"; }
location / { try_files $uri $uri/ /index.php$is_args$args; log_not_found off; }
location ~ .(xml|xsl)$ { log_not_found off; add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; } location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; } location ~ .(css|js|pdf)$ { add_header Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=2592000, stale"; } location ~* .(jpg|jpeg|png|gif|ico|eot|swf|svg|webp|avif|ttf|otf|woff|woff2|ogg|mp4|mpeg|avi|mkv|webm|mp3)$ { expires 30d; add_header Cache-Control "public, no-transform";} location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
}
===========================
Please help.