WordOps / WordOps

Install and manage a high performance WordPress stack with a few keystrokes
https://wordops.net
MIT License
1.31k stars 209 forks source link

Getting ERR_INVALID_REDIRECT after update to v3.21.0 #663

Closed kieusonlam closed 3 months ago

kieusonlam commented 3 months ago

Getting ERR_INVALID_REDIRECT after update to v3.21.0 and wo stack migrate --nginx

I get a very weird behavior. This error only happen on homepage. And here the weird part with logged in user or anonymous user (this mean when loggedin user get error, then anonymous can load without issue, and this is switch randomly for few minutes)

I think it cache problem, at the beginning i think it was FastCGI cache, then I turn it off, clear all cache, reload stack it still doesnt work.

image

System Information

user www-data worker_processes auto worker_connections 50000 keepalive_timeout 8 fastcgi_read_timeout 300 client_max_body_size 100m allow 127.0.0.1 ::1 PHP 8.0 is not installed PHP 8.1 is not installed

PHP (7.4.33):

user expose_php Off memory_limit 128M post_max_size 100M upload_max_filesize 100M max_execution_time 300

Information about www.conf ping.path /ping pm.status_path /status process_manager ondemand pm.max_requests 1500 pm.max_children 50 pm.start_servers 10 pm.min_spare_servers 5 pm.max_spare_servers 15 request_terminate_timeout 300 xdebug.profiler_enable_trigger off listen php74-fpm.sock

Information about debug.conf ping.path /ping pm.status_path /status process_manager ondemand pm.max_requests 1500 pm.max_children 50 pm.start_servers 10 pm.min_spare_servers 5 pm.max_spare_servers 15 request_terminate_timeout 300 xdebug.profiler_enable_trigger on listen 127.0.0.1:9174

PHP (8.2.20):

user expose_php Off memory_limit 128M post_max_size 100M upload_max_filesize 100M max_execution_time 300

Information about www.conf ping.path /ping pm.status_path /status process_manager ondemand pm.max_requests 1500 pm.max_children 50 pm.start_servers 10 pm.min_spare_servers 5 pm.max_spare_servers 15 request_terminate_timeout 300 xdebug.profiler_enable_trigger off listen php82-fpm.sock

Information about debug.conf ping.path /ping pm.status_path /status process_manager ondemand pm.max_requests 1500 pm.max_children 50 pm.start_servers 10 pm.min_spare_servers 5 pm.max_spare_servers 15 request_terminate_timeout 300 xdebug.profiler_enable_trigger on listen 127.0.0.1:9182

PHP (8.3.8):

user expose_php Off memory_limit 128M post_max_size 100M upload_max_filesize 100M max_execution_time 300

Information about www.conf ping.path /ping pm.status_path /status process_manager ondemand pm.max_requests 1500 pm.max_children 50 pm.start_servers 10 pm.min_spare_servers 5 pm.max_spare_servers 15 request_terminate_timeout 300 xdebug.profiler_enable_trigger off listen php83-fpm.sock

Information about debug.conf ping.path /ping pm.status_path /status process_manager ondemand pm.max_requests 1500 pm.max_children 50 pm.start_servers 10 pm.min_spare_servers 5 pm.max_spare_servers 15 request_terminate_timeout 300 xdebug.profiler_enable_trigger on listen 127.0.0.1:9183

MySQL (10.11.8-MariaDB) on localhost:

port 3306 wait_timeout 60 interactive_timeout 28800 max_used_connections datadir /var/lib/mysql/ socket /var/run/mysqld/mysqld.sock my.cnf [PATH] /etc/mysql/conf.d/my.cnf

- [ ] `nginx -V`
```nginx version: nginx/1.26.1 (WordOps Nginx-wo)
built with OpenSSL 3.0.11 19 Sep 2023 (running with OpenSSL 3.0.9 30 May 2023)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -ffile-prefix-map=/usr/src/packages/BUILD=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -flto -ffat-lto-objects -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -fPIC -flto -ffat-lto-objects' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --build='WordOps Nginx-wo' --with-debug --with-pcre-jit --with-file-aio --with-threads --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-openssl-opt='zlib enable-ec_nistp_64_gcc_128 enable-tls1_3 no-ssl3-method -fPIC' --with-http_addition_module --with-http_geoip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_sub_module --with-http_xslt_module --without-http_memcached_module --add-module=/usr/src/packages/BUILD/debian/modules/headers-more-nginx-module --add-module=/usr/src/packages/BUILD/debian/modules/nginx-auth-pam --add-module=/usr/src/packages/BUILD/debian/modules/nginx-cache-purge --add-module=/usr/src/packages/BUILD/debian/modules/nginx-echo --add-module=/usr/src/packages/BUILD/debian/modules/nginx-upstream-fair --add-module=/usr/src/packages/BUILD/debian/modules/ngx_http_substitutions_filter_module --add-module=/usr/src/packages/BUILD/debian/modules/memc-nginx-module --add-module=/usr/src/packages/BUILD/debian/modules/srcache-nginx-module --add-module=/usr/src/packages/BUILD/debian/modules/HttpRedisModule --add-module=/usr/src/packages/BUILD/debian/modules/redis2-nginx-module --add-module=/usr/src/packages/BUILD/debian/modules/ngx_devel_kit --add-module=/usr/src/packages/BUILD/debian/modules/set-misc-nginx-module --add-module=/usr/src/packages/BUILD/debian/modules/nginx-module-vts --add-module=/usr/src/packages/BUILD/debian/modules/ngx_brotli
VirtuBox commented 3 months ago

Hello @kieusonlam, I see from the headers of your site your are using Litespeed on your server. If litespeed is setup in front of Nginx, I cannot provide any help with this issue as I'm not a litespeed expert at all.

VirtuBox commented 3 months ago

Issue with incorrect $host variable has been fixed. Please upgrade WordOps with wo update

kieusonlam commented 3 months ago

Hello @kieusonlam, I see from the headers of your site your are using Litespeed on your server. If litespeed is setup in front of Nginx, I cannot provide any help with this issue as I'm not a litespeed expert at all.

Hi, thanks for reply. I have to switch to another hosting for my client. That's why you see the litespeed server.

Issue with incorrect $host variable has been fixed. Please upgrade WordOps with wo update

I can verify that it has been fixed on the newest version. Thank you.