504 Gateway timeout with J4 Upgrade

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
SForsgren
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri May 12, 2006 2:46 am

504 Gateway timeout with J4 Upgrade

Post by SForsgren » Mon Dec 05, 2022 6:13 pm

I attempted to do a test upgrade from J3.10.11 to J4.2.5 today.

The result was:

504 - Gateway Timeout
This is a temporary error. Please try again later.

I looked in the joomla_update.php file and it does not show any errors and ends with:
2022-12-05T17:43:53+00:00 INFO 73.153.252.7 update Update to version 4.2.5 is complete.

When I hit refresh, it allowed me to login and says:
Your site has been updated. Your Joomla version is now ‎4.2.5.

That said, I'm a little uncomfortable doing the production upgrade without knowing what may not have happened during the upgrade that could cause later issues.

Any thoughts on what to check next?

Thanks much,
Scott

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: 504 Gateway timeout with J4 Upgrade

Post by sozzled » Mon Dec 05, 2022 6:45 pm

SForsgren wrote:
Mon Dec 05, 2022 6:13 pm
Any thoughts on what to check next?
The general description of the issue sounds like "performance" for want of a better term. To improve "performance" you could upgrade the hardware, software and network capabilities of your webhost but those are matters of final resort. The issue is more likely to be closer to home and easier to fix than you think: the Forum Post Assistant reporting tool not only helps you to diagnose problems it can also help identify potential performance bottlenecks. It's your choice to use the Forum Post Assistant but, without any understanding of the performance metrics for your website, I wouldn't know where to begin to address your question. :)

At the moment it's your website and it's your decision to do whatever you want to do. Good luck.

SForsgren
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri May 12, 2006 2:46 am

Re: 504 Gateway timeout with J4 Upgrade

Post by SForsgren » Tue Dec 06, 2022 4:07 am

Here is the FPA. Thanks in advance for any guidance.
Forum Post Assistant (v1.6.5) : 6-Dec-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.2.5-Stable (Uaminifu) 8-November-2022
Joomla! Configured :: Yes | Writable (644) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: true | Cache: true | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: true | Proxy: false | LiveSite: | Session lifetime: 240 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: none | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.2.5: Yes | Database Supports J! 4.2.5: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.12.18-clouder0 | Technology: x86_64 | Web Server: Apache | Encoding: | System TMP Writable: Yes | Free Disk Space : 11.61 GiB |

PHP Configuration :: Version: 8.0.26 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 30709 | Log Errors To: php_errorlog | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 256M | Max. POST Size: 256M | Max. Input Time: 120 | Max. Execution Time: 120 | Memory Limit: 768M

Database Configuration :: Version: 5.7.39-42-log (Client:mysqlnd 8.0.26) | Database Size: 135.24 MiB | #of Tables with config prefix:  113 | #of other Tables:  0 | User Privileges : GRANT ALL
Detailed Environment :: wrote:PHP Extensions :: Core (8.0.26) | date (8.0.26) | libxml (8.0.26) | openssl (8.0.26) | pcre (8.0.26) | sqlite3 (8.0.26) | zlib (8.0.26) | bcmath (8.0.26) | bz2 (8.0.26) | calendar (8.0.26) | ctype (8.0.26) | curl (8.0.26) | dba (8.0.26) | dom (20031129) | enchant (8.0.26) | hash (8.0.26) | fileinfo (8.0.26) | filter (8.0.26) | ftp (8.0.26) | gd (8.0.26) | gettext (8.0.26) | gmp (8.0.26) | SPL (8.0.26) | iconv (8.0.26) | session (8.0.26) | intl (8.0.26) | json (8.0.26) | mbstring (8.0.26) | standard (8.0.26) | mysqlnd (mysqlnd 8.0.26) | pcntl (8.0.26) | mysqli (8.0.26) | PDO (8.0.26) | pdo_mysql (8.0.26) | pdo_pgsql (8.0.26) | pdo_sqlite (8.0.26) | pgsql (8.0.26) | Phar (8.0.26) | posix (8.0.26) | pspell (8.0.26) | readline (8.0.26) | Reflection (8.0.26) | imap (8.0.26) | shmop (8.0.26) | SimpleXML (8.0.26) | soap (8.0.26) | sockets (8.0.26) | sodium (8.0.26) | exif (8.0.26) | sysvmsg (8.0.26) | sysvsem (8.0.26) | tidy (8.0.26) | tokenizer (8.0.26) | xml (8.0.26) | xmlreader (8.0.26) | xmlwriter (8.0.26) | xsl (8.0.26) | zip (1.19.5) | cgi-fcgi (8.0.26) | memcached (3.1.5) | Zend OPcache (8.0.26) | Zend Engine (4.0.25-dev) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (---) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 1693103 | Threads: 1 | Questions: 5334147 | Slow queries: 54 | Opens: 278670 | Flush tables: 1 | Open tables: 3028 | Queries per second avg: 3.150 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

Components :: Admin ::
Core :: com_postinstall (4.0.0) 1 | com_workflow (4.0.0) 1 | com_installer (4.0.0) 1 | com_finder (4.0.0) 1 | com_categories (4.0.0) 1 | com_tags (4.0.0) 1 | com_actionlogs (3.9.0) 1 | com_scheduler (4.1.0) 1 | com_languages (4.0.0) 1 | com_fields (4.0.0) 1 | com_cpanel (4.0.0) 1 | com_config (4.0.0) 1 | com_banners (4.0.0) 1 | com_media (3.0.0) 1 | com_users (4.0.0) 1 | com_admin (4.0.0) 1 | com_menus (4.0.0) 1 | com_modules (4.0.0) 1 | com_weblinks (4.0.1) 1 | com_messages (4.0.0) 1 | com_redirect (4.0.0) 1 | com_contenthistory (4.0.0) 1 | com_templates (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_content (4.0.0) 1 | com_associations (4.0.0) 1 | com_plugins (4.0.0) 1 | com_cache (4.0.0) 1 | com_privacy (3.9.0) 1 | com_search (4.0.0-dev) 1 | com_login (4.0.0) 1 | com_wrapper (4.0.0) 1 | com_ajax (4.0.0) 1 | com_mails (4.0.0) 1 | com_newsfeeds (4.0.0) 1 | com_checkin (4.0.0) 1 |
3rd Party:: COM_COOKIESPOLICYNOTIFICATIONBAR (4.2.5) 1 | com_admintools (7.1.11) 1 | Smart Slider 3 (3.5.1.12) 1 | Maximenu CK (9.1.27) 1 | com_maximenuck (9.1.27) 1 | com_gantry5 (5.5.14) 1 | com_facebookfeedpro (3.7.5) 1 | COM_OSMAP (5.0.8) 1 | com_ampz (4.2.2) 1 | Akeeba (8.2.3) 1 | com_pixtracker (2.0.2) 1 | COM_JCHOPTIMIZE_PRO (7.3.2) 0 |

Modules :: Site ::
Core :: mod_breadcrumbs (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_tags_popular (3.1.0) 1 | mod_random_image (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_weblinks (4.0.1) 1 | mod_finder (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_search (4.0.0-dev) 1 | mod_whosonline (3.0.0) 1 | mod_login (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_menu (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_feed (3.0.0) 1 |
3rd Party:: JW Player Module Advanced (5.26.0) 1 | MOD_OSDONATE (2.0.1) 1 | Maximenu CK (9.1.27) 1 | mod_gantry5_particle (5.5.14) 1 | RAXO All-mode PRO (2.02) 1 | RAXO Columns Module Layout (3.3) ? | RAXO Columns Module Layout (4.1) ? | RAXO Default Module Layout (4.1) ? | RAXO Default Module Layout (3.3) ? | RAXO Bricks Module Layout (3.3) ? | RAXO List Module Layout (4.1) ? | RAXO Prime Module Layout (1.1) ? | RAXO Newsbreak Module Layout (1.4) ? | RAXO Bricks Module Layout (4.1) ? | RAXO List Module Layout (3.2) ? | RAXO Columns Module Layout (3.3) ? | RAXO Columns Module Layout (4.1) ? | RAXO Default Module Layout (4.1) ? | RAXO Default Module Layout (3.3) ? | RAXO Bricks Module Layout (3.3) ? | RAXO List Module Layout (4.1) ? | RAXO Prime Module Layout (1.1) ? | RAXO Newsbreak Module Layout (1.4) ? | RAXO Bricks Module Layout (4.1) ? | RAXO List Module Layout (3.2) ? | RAXO All-mode PRO (1.12) 1 | Paypal Donate (2.1.2) 1 | Smart Slider 3 Module (3.5.1.12) 1 | MOD_SHACKICONS (4.0.0) 1 |

Modules :: Admin ::
Core :: mod_privacy_status (4.0.0) 1 | mod_latest (3.0.0) 1 | mod_user (4.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_title (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_post_installation_messages (4.0.0) 1 | mod_custom (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_loginsupport (4.0.0) 1 | mod_logged (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_version (3.0.0) 1 | mod_login (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_messages (4.0.0) 1 | mod_menu (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_feed (3.0.0) 1 | mod_frontend (4.0.0) 1 |
3rd Party:: MOD_JCHMODESWITCHER (7.3.2) 0 |

Libraries ::
Core ::
3rd Party:: file_fof30 (3.6.2) ? | file_fof40 (4.1.0) ? |

Plugins ::
Core :: plg_media-action_resize (4.0.0) 1 | plg_media-action_rotate (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_task_site_status (4.1) 1 | plg_task_requests (4.1) 1 | plg_task_demo_tasks (4.1) 1 | plg_task_check_files (4.1) 1 | plg_sampledata_multilang (4.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_weblink (4.0.1) 0 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_finder_contacts (3.0.0) 0 | plg_finder_tags (3.0.0) 0 | plg_finder_content (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 0 | plg_finder_categories (3.0.0) 0 | plg_finder_weblinks (4.0.1) 0 | plg_fields_subform (4.0.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_installer_urlinstaller (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_webinstaller (4.0.0) 1 | plg_installer_override (4.0.0) 1 | plg_installer_folderinstaller (3.6.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_captcha_recaptcha (3.4.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_user_joomla (3.0.0) 1 | plg_user_terms (3.9.0) 0 | plg_user_token (3.9.0) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 0 | plg_system_logout (3.0.0) 1 | plg_system_jooa11y (4.2.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_remember (3.0.0) 0 | plg_system_accessibility (4.0.0) 0 | plg_system_updatenotification (3.5.0) 1 | plg_system_redirect (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_actionlogs (3.9.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_httpheaders (4.0.0) 0 | plg_system_logrotation (3.9.0) 1 | plg_system_webauthn (4.0.0) 1 | plg_system_shortcut (4.2.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_task_notification (4.1) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_schedulerunner (4.1) 1 | plg_system_skipto (4.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_sessiongc (3.8.6) 1 | plg_system_stats (3.5.0) 1 | plg_system_weblinks (4.0.1) 0 | plg_extension_joomla (3.0.0) 1 | plg_extension_namespacemap (4.0.0) 1 | plg_extension_finder (4.0.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_finder (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_vote (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_workflow_publishing (4.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_api-authentication_token (4.0.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_search_contacts (4.0.0-dev) 1 | plg_search_tags (4.0.0-dev) 0 | plg_search_content (4.0.0-dev) 1 | plg_search_newsfeeds (4.0.0-dev) 1 | plg_search_categories (4.0.0-dev) 1 | plg_search_weblinks (4.0.1) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_multifactorauth_totp (3.2.0) 1 | plg_multifactorauth_fixed (4.2.0) 0 | plg_multifactorauth_email (4.2.0) 0 | plg_multifactorauth_webauthn (4.2.0) 0 | plg_multifactorauth_yubikey (3.2.0) 0 | plg_webservices_languages (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_webservices_media (4.1.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_messages (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 |
3rd Party:: Editor Button - JW Player (2.4.0) 0 | PLG_EDITORS-XTD_AMPZ (4.2.2) 1 | plg_quickicon_akeebabackup (8.2.3) 0 | plg_quickicon_gantry5 (5.5.14) 1 | Smart Slider 3 Updater Plugin (3.5.1.12) 1 | PLG_INSTALLER_COOKIESPOLICYNOTIFICA (4.2.5) ? | PLG_ACTIONLOG_AKEEBABACKUP (8.2.3) 0 | PLG_ACTIONLOG_ADMINTOOLS (7.1.11) 0 | PLG_USER_JCHOPTIMIZEUSERSTATE (7.3.2) 1 | System - Facebook Feed Pro (3.7.5) 1 | Smart Slider 3 System Plugin (3.5.1.12) 1 | plg_system_ospamanot (2.0.4) 1 | PLG_SYSTEM_COOKIESPOLICYNOTIFICATIO (4.2.5) ? | PLG_SYSTEM_JCHOPTIMIZEPAGECACHE (7.3.2) 0 | PLG_PWEBOPENGRAPH (3.0.1) 1 | PLG_SYSTEM_ADMINTOOLS (7.1.11) 1 | plg_system_osmylicensesmanager (2.0.15) 1 | PLG_SYSTEM_JCHOPTIMIZE (7.3.2) 0 | plg_system_pixanalytic (2.0.2) 1 | plg_system_gantry5 (5.5.14) 1 | PLG_SYSTEM_WEB357FRAMEWORK (1.9.1) 1 | System - Aimy Canonical (21.4) 1 | PLG_SYSTEM_BACKUPONUPDATE (8.2.3) 1 | System - ampz (4.2.2) 1 | plg_editors_tinymce (5.10.5) 1 | plg_editors_codemirror (5.65.6) 1 | plg_content_jwadvanced (4.26.0) 1 | plg_content_pixtracker (2.0.2) 1 | plg_gantry5_preset (5.5.14) 0 | PLG_AJAX_COOKIESPOLICYNOTIFICATIONB (4.2.5) ? | PLG_AJAX_WEB357FRAMEWORK (1.9.1) 1 | PLG_OSMAP_JOOMLA (5.0.8) 1 | PLG_OSMAP_JDOWNLOADS (5.0.8) 0 | PLG_OSMAP_MTREE (5.0.0) 0 | PLG_OSMAP_OSCAMPUS (5.0.8) 0 | PLG_OSMAP_PHOCAGALLERY (5.0.8) 0 | PLG_OSMAP_VM (5.0.8) 0 | PLG_OSMAP_SOBIPRO (5.0.8) 0 | PLG_OSMAP_WEBLINKS (5.0.0) 0 | PLG_OSMAP_KUNENA (5.0.8) 0 | PLG_OSMAP_K2 (5.0.8) 0 | PLG_OSMAP_SHACKLOCATIONS (5.0.8) 0 |
Templates Discovered :: wrote:Templates :: Site :: rt_studius (1.1.0) 1 | cassiopeia (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |
Last edited by toivo on Tue Dec 06, 2022 4:39 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: 504 Gateway timeout with J4 Upgrade

Post by sozzled » Tue Dec 06, 2022 5:09 am

From the general appearance of the FPA report—I can't see a lot that is immediately obviously wrong—the performance issue could be explained as an unexplained random event. However, if I were you, I would uninstall all JCH-related extensions, disable Gzip in the Global Configuration settings and change the Session Handler from Database to FileSystem.

SForsgren
Joomla! Explorer
Joomla! Explorer
Posts: 286
Joined: Fri May 12, 2006 2:46 am

Re: 504 Gateway timeout with J4 Upgrade

Post by SForsgren » Wed Dec 07, 2022 1:05 pm

Thank you very much! I'll make those adjustments for the next test run and production run.

That leads me to ask:

If I am already on 4.2.5 on my test site, can I download and re-run that upgrade again to see if it gets the timeout or do I need to get the system back to 3.x in order to re-run the same process?

Thanks


Locked

Return to “Migrating and Upgrading to Joomla! 4.x”