• Resolved Lea

    (@leac)


    Hi,

    I upgraded your plugin in a few sites, and in all of them I get the following problem: after the upgrade I can’t reach the site – after waiting for several minutes I get a 504 Gateway Time-out error.

    I disabled all other plugins and switched to one of the default themes but the problem still occurs.
    I turned on WP_DEBUG but no PHP error appears.

    • This topic was modified 1 year, 11 months ago by Lea.
    • This topic was modified 1 year, 11 months ago by Lea.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    Sorry for inconvenience. Do you have latest version of the AIOS mostly installed or you had try update from very old version ?

    do you see any error in nginx error log ? /var/log/nginx/error.log If it helps.

    Other wise.

    Rename the wp-content\plugins\all-in-one-wp-security-and-firewall

    .user.ini file you may find in root folder of wordpress remove between

    Begin AIOWPSEC Firewall

    End AIOWPSEC Firewall

    IF still issue not solved and you do not see any thing than this delete. .user.ini file.

    Also wp-config.php have first Begin AIOWPSEC Firewall End AIOWPSEC Firewall include the aios-bootstrap.php please remove those.

    IF you have nginx + apache both and .htaccess file in root of the server that also needs to remove all code regarding AIOS.

    Regards

    Thread Starter Lea

    (@leac)

    Hi,

    Thank you for your speedy reply. Unfortunately, the problem still persists. Following are my answers to your suggestions:

    • We have version 4.4.12 installed now
    • Thanks for the path. error-.log is empty, but makers-error.log has the following recurring message:
      2022/12/20 12:52:32 [error] 19#19: *46 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 100.2.0.111, server: makers-test.ort.org.il, request: “GET / HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “makers-test.ort.org.il”, referrer: “https://makers-test.ort.org.il/”
    • I couldn’t find a .user.ini file in the plugin directory or in the WordPress root folder
    • Couldn’t find that text in wp-config.php
    • We have nginx, so there is no .htaccess

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    Because you have older version of AIOS ( current is 5.1.4 ) and nginx server only working not with apache so you do not have that .htacccess and user.ini , aios-bootstrap.php file related stuffs.

    Renaming the plugin dir ?wp-content\plugins\all-in-one-wp-security-and-firewall it deactivates and if the plugin issue it should start to work.

    Based on error it seems more like nginx configuration issue might be proxy_read_timeout ,fastcgi_read_timeout needs to increase. I would advice to please contact your hosting provider.

    Thread Starter Lea

    (@leac)

    Thank you for quick reply.

    Renaming the plugin directory didn’t help, but I uploaded the directory with the 4.4.12 version, and since we’re using kubernetes I rebuilt the container and the site is up now.

    I agree that the error looks like a hosting problem, but it only occurs after upgrading the plugin. Now after returning to the 4.4.12 version both error logs are empty, so I do think the error is related to the plugin upgrade.

    Any more ideas what could be causing the problem?

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    It is hard for me to say up till I do not get exact error. but what new thing introduced is AIOS firewall php based and some other stuffs but it should not stop your site with such error much more nginx error.

    You may try upgrade by downloading latest AIOS plugin zip file extract it and upload in wp-content\plugins\all-in-one-wp-security-and-firewall and cross check. If still issue let me know.

    Regards

    Thread Starter Lea

    (@leac)

    Hi @hjogiupdraftplus.

    I upgraded using the method you suggested, but the issue still happens.

    The log file is still empty, so it could be that the nginx error wasn’t related to the upgrade, but we still have an unavailable site ??

    Is it possible to get previous versions of the plugin and try to install them, to see which version is the one causing the problem?

    • This reply was modified 1 year, 11 months ago by Lea.
    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/advanced/

    you can find at bottom PREVIOUS VERSIONS

    There you can download the previous versions.

    Thread Starter Lea

    (@leac)

    Hi @hjogiupdraftplus

    Thank you for that. I downloaded and installed every version until 5.1.0 and all went well. When I installed version 5.1.1 I got the issue that I opened this ticket about.

    Does that help you maybe pinpoint the cause of the problem? What difference between 5.1.0 and 5.1.1 could cause the site not to respond?

    Thank you

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    As per development log https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/#developers

    AIOS 5.1.1 has many stuffs so hard for me to say. I think “fastcgi://127.0.0.1:9000” you are trying run application with 127.0.0.1 which should be fastcgi://{ipaddress}:9000

    we do have redirect 127.0.0.1 for cookie based brute force as it was the moved to php and you have nginx server so first time it will be start to work for you. which might be creating issue.

    Please disable cookie based brute force and set proper WP Security > Settings > Advanced settings IP address detection method. please try set those and then try upgrade.

    Thread Starter Lea

    (@leac)

    Thank you, but still the same error.

    I made sure that the cookie based brute force was disabled, and I changed the IP address detection from remote to current, but still after upgrade the site returns 504

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    Ok, I will try replicate the issue and get back to you.

    Regards

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @leac

    I can not replicate the issue with nginx server using php-cgi port 9000 and 127.0.0.1 running similar to your configuration.

    It works fine here for me. I do not got 504 error in between.

    Regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Upgrading to 5.1.4 causes site to return 504 Gateway Time-out error’ is closed to new replies.