500 Error when trying to update Joomla or Extensions Topic is solved

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

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
Post Reply
ScottD
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Dec 01, 2022 6:04 pm

500 Error when trying to update Joomla or Extensions

Post by ScottD » Thu Dec 01, 2022 6:22 pm

I've been trying to track down this issue for a few days now. I had no issues upgrading the site to Joomla 4 (and using Joomla Update to 4.1.5) but now I can no longer update past 4.1.5, or if trying to update Extensions I also get a 500 error returned. I attempted to just use the .zip update package for 4.2.5. It fails and states that I need to use Joomla update component.

I thought this was a timeout issue with FCGId so I changed the timeout time to 600s and still a 500 error. I switched over to CGI Wrapper and just get a Gateway timeout error.

I'm not finding anything worthwhile in the logs, other than timeouts, when trying to trace down what might be causing this. I suspect a plugin or extension but not sure the best method to root it out as nothing has been updated or changed since the upgrade to J4.

Upon using the FPA I do see where /tmp is unwritable however looking on the server I see no issues as group is correct and permissions are 755. Session Path is also showing as unwritable but I am using the DB as the session handler.
Forum Post Assistant (v1.6.5) : 1-Dec-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.1.5-Stable (Kuamini) 21-June-2022
Joomla! Configured :: Yes | Read-Only (444) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: true | Cache: true | CacheTime: 60 | CacheHandler: file | CachePlatformPrefix: true | FTP Layer: false | Proxy: false | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 0 | Error Reporting: maximum | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 4.1.5: Yes | Database Supports J! 4.1.5: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 5.4.0-135-generic | Technology: x86_64 | Web Server: Apache/2.4.41 | Encoding: gzip, deflate, br | System TMP Writable: No | Free Disk Space : 48.16 GiB |

PHP Configuration :: Version: 8.0.22 | PHP API: cgi-fcgi | Session Path Writable: No | Display Errors: 0 | Error Reporting: 22527 | Log Errors To: syslog | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: /home/drsweb/public_html | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 64M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 8.0.31-0ubuntu0.20.04.2 (Client:mysqlnd 8.0.22) | Database Size: 213.97 MiB | #of Tables with config prefix:  149 | #of other Tables:  0 | User Privileges : GRANT APPLICATION_PASSWORD_ADMINUser Privileges : AUDIT_ABORT_EXEMPTUser Privileges : AUDIT_ADMINUser Privileges : AUTHENTICATION_POLICY_ADMINUser Privileges : BACKUP_ADMINUser Privileges : BINLOG_ADMINUser Privileges : BINLOG_ENCRYPTION_ADMINUser Privileges : CLONE_ADMINUser Privileges : CONNECTION_ADMINUser Privileges : ENCRYPTION_KEY_ADMINUser Privileges : FIREWALL_EXEMPTUser Privileges : FLUSH_OPTIMIZER_COSTSUser Privileges : FLUSH_STATUSUser Privileges : FLUSH_TABLESUser Privileges : FLUSH_USER_RESOURCESUser Privileges : GROUP_REPLICATION_ADMINUser Privileges : INNODB_REDO_LOG_ARCHIVEUser Privileges : INNODB_REDO_LOG_ENABLEUser Privileges : PASSWORDLESS_USER_ADMINUser Privileges : PERSIST_RO_VARIABLES_ADMINUser Privileges : REPLICATION_APPLIERUser Privileges : REPLICATION_SLAVE_ADMINUser Privileges : RESOURCE_GROUP_ADMINUser Privileges : RESOURCE_GROUP_USERUser Privileges : ROLE_ADMINUser Privileges : SENSITIVE_VARIABLES_OBSERVERUser Privileges : SERVICE_CONNECTION_ADMINUser Privileges : SESSION_VARIABLES_ADMINUser Privileges : SET_USER_IDUser Privileges : SHOW_ROUTINEUser Privileges : SYSTEM_USERUser Privileges : SYSTEM_VARIABLES_ADMINUser Privileges : TABLE_ENCRYPTION_ADMINUser Privileges : XA_RECOVER_ADMIN ON *.* TO `dbadmin`@`%` WITH GRANT OPTION
Detailed Environment :: wrote:PHP Extensions :: Core (8.0.22) | date (8.0.22) | libxml (8.0.22) | openssl (8.0.22) | pcre (8.0.22) | zlib (8.0.22) | filter (8.0.22) | hash (8.0.22) | json (8.0.22) | pcntl (8.0.22) | Reflection (8.0.22) | SPL (8.0.22) | session (8.0.22) | standard (8.0.22) | sodium (8.0.22) | cgi-fcgi (8.0.22) | mysqlnd (mysqlnd 8.0.22) | PDO (8.0.22) | xml (8.0.22) | calendar (8.0.22) | ctype (8.0.22) | dom (20031129) | mbstring (8.0.22) | FFI (8.0.22) | fileinfo (8.0.22) | ftp (8.0.22) | gd (8.0.22) | gettext (8.0.22) | iconv (8.0.22) | exif (8.0.22) | mysqli (8.0.22) | pdo_mysql (8.0.22) | Phar (8.0.22) | posix (8.0.22) | readline (8.0.22) | shmop (8.0.22) | SimpleXML (8.0.22) | sockets (8.0.22) | sysvmsg (8.0.22) | sysvsem (8.0.22) | sysvshm (8.0.22) | tokenizer (8.0.22) | xmlreader (8.0.22) | xmlwriter (8.0.22) | xsl (8.0.22) | Zend OPcache (8.0.22) | Zend Engine (4.0.22) |
Potential Missing Extensions :: zip | curl |
Disabled Functions :: pcntl_alarm | pcntl_fork | pcntl_waitpid | pcntl_wait | pcntl_wifexited | pcntl_wifstopped | pcntl_wifsignaled | pcntl_wifcontinued | pcntl_wexitstatus | pcntl_wtermsig | pcntl_wstopsig | pcntl_signal | pcntl_signal_get_handler | pcntl_signal_dispatch | pcntl_get_last_error | pcntl_strerror | pcntl_sigprocmask | pcntl_sigwaitinfo | pcntl_sigtimedwait | pcntl_exec | pcntl_getpriority | pcntl_setpriority | pcntl_async_signals | pcntl_unshare | |

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/ (755) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 41286 | Threads: 2 | Questions: 245463 | Slow queries: 0 | Opens: 169796 | Flush tables: 3 | Open tables: 64 | Queries per second avg: 5.945 |
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

Components :: Admin ::
Core :: com_languages (4.0.0) 1 | com_redirect (4.0.0) 1 | com_templates (4.0.0) 1 | com_wrapper (4.0.0) 1 | com_privacy (3.9.0) 1 | com_cpanel (4.0.0) 1 | com_admin (4.0.0) 1 | com_weblinks (3.9.0) 1 | com_contenthistory (4.0.0) 1 | com_banners (4.0.0) 1 | com_workflow (4.0.0) 1 | com_messages (4.0.0) 1 | com_login (4.0.0) 1 | com_users (4.0.0) 1 | com_fields (4.0.0) 1 | com_actionlogs (3.9.0) 1 | com_mails (4.0.0) 1 | com_checkin (4.0.0) 1 | com_menus (4.0.0) 1 | com_categories (4.0.0) 1 | com_plugins (4.0.0) 1 | com_associations (4.0.0) 1 | com_config (4.0.0) 1 | com_modules (4.0.0) 1 | com_installer (4.0.0) 1 | com_joomlaupdate (4.0.3) 1 | com_media (3.0.0) 1 | com_newsfeeds (4.0.0) 1 | com_scheduler (4.1.0) 1 | com_cache (4.0.0) 1 | com_finder (4.0.0) 1 | com_postinstall (4.0.0) 1 | com_ajax (4.0.0) 1 | com_content (4.0.0) 1 | com_search (3.0.0) 1 | com_tags (4.0.0) 1 |
3rd Party:: com_widgetkit (3.1.14) 1 | RSFirewall! (3.0.10) 1 | com_admintools (7.1.11) 1 | com_gantry5 (5.5.14) 1 | com_rsform (3.1.4) 1 |

Modules :: Site ::
Core :: mod_whosonline (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_search (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_articles_archive (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_wrapper (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_login (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_banners (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_weblinks (3.9.0) 1 | mod_stats (3.0.0) 1 | mod_random_image (3.0.0) 1 |
3rd Party:: RSForm! Pro Module Frontend List (1.5.0) 1 | mod_gantry5_particle (5.5.14) 1 | RSForm! Pro Module (1.4.0) 1 | RSForm! Pro Feedback Module (3.0.1) 1 | Widgetkit (3.1.14) 1 |

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

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_search_tags (3.0.0) 0 | plg_search_contacts (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_weblinks (3.9.0) 1 | plg_task_check_files (4.1) 0 | plg_task_site_status (4.1) 0 | plg_task_requests (4.1) 0 | plg_task_demo_tasks (4.1) 0 | plg_sampledata_multilang (4.0.0) 1 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_captcha_recaptcha (3.4.0) 1 | plg_actionlog_joomla (3.9.0) 1 | plg_workflow_publishing (4.0.0) 1 | plg_workflow_notification (4.0.0) 1 | plg_workflow_featuring (4.0.0) 1 | plg_media-action_rotate (4.0.0) 1 | plg_media-action_crop (4.0.0) 1 | plg_media-action_resize (4.0.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_filesystem_local (4.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_weblinks (3.9.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_content_pagenavigation (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_finder (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_api-authentication_token (4.0.0) 1 | plg_api-authentication_basic (4.0.0) 0 | plg_quickicon_overridecheck (4.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_downloadkey (4.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_eos310 (3.10.0) 1 | plg_user_token (3.9.0) 1 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_terms (3.9.0) 0 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_weblink (3.9.0) 0 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_webservices_templates (4.0.0) 1 | plg_webservices_menus (4.0.0) 1 | plg_webservices_tags (4.0.0) 1 | plg_webservices_media (4.1.0) 0 | plg_webservices_messages (4.0.0) 1 | plg_webservices_users (4.0.0) 1 | plg_webservices_privacy (4.0.0) 1 | plg_webservices_redirect (4.0.0) 1 | plg_webservices_plugins (4.0.0) 1 | plg_webservices_newsfeeds (4.0.0) 1 | plg_webservices_content (4.0.0) 1 | plg_webservices_modules (4.0.0) 1 | plg_webservices_installer (4.0.0) 1 | plg_webservices_languages (4.0.0) 1 | plg_webservices_banners (4.0.0) 1 | plg_webservices_config (4.0.0) 1 | plg_behaviour_versionable (4.0.0) 1 | plg_behaviour_taggable (4.0.0) 1 | plg_installer_override (4.0.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_folderinstaller (3.6.0) ? | plg_installer_webinstaller (4.0.0) 1 | plg_installer_urlinstaller (3.6.0) ? | plg_extension_joomla (3.0.0) 1 | plg_extension_finder (4.0.0) 1 | plg_extension_namespacemap (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_system_cache (3.0.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_stats (3.5.0) 1 | plg_system_actionlogs (3.9.0) ? | plg_system_updatenotification (3.5.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_skipto (4.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_accessibility (4.0.0) 0 | plg_system_highlight (3.0.0) 1 | plg_system_redirect (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_log (3.0.0) 1 | plg_system_jooa11y (4.2.0) 0 | plg_system_webauthn (4.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_languagefilter (3.0.0) 0 | plg_system_httpheaders (4.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_task_notification (4.1) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_weblinks (3.9.0) 0 | plg_system_fields (3.7.0) 1 | plg_system_schedulerunner (4.1) 0 | plg_fields_calendar (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_subform (4.0.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 |
3rd Party:: plg_gantry5_preset (5.5.14) 1 | PLG_ACTIONLOG_ADMINTOOLS (7.1.11) 0 | Content - Widgetkit (3.1.14) 1 | Content - RSForm! Pro (3.0.0) 0 | plg_editors_codemirror (5.65.2) 1 | plg_editors_tinymce (5.10.3) 1 | plg_quickicon_gantry5 (5.5.14) 1 | Editors-XTD - Widgetkit (3.1.14) 1 | Installer - YOOtheme (1.0.6) 1 | plg_installer_rsform (1.0.0) 1 | plg_installer_rsfirewall (1.0.0) 1 | System - Widgetkit (3.1.14) 1 | PLG_SYSTEM_ADMINTOOLS (7.1.11) 1 | plg_system_gantry5 (5.5.14) 1 | System - Widgetkit K2 (3.1.14) 0 | System - RSForm! Pro Delete Submiss (1.0.0) ? | System - Widgetkit ZOO (3.1.14) 0 | System - RSForm! Pro reCAPTCHA v2 (3.1.0) 1 | System - RSForm! Pro PDF (3.0.2) 1 | System - RSForm! Pro (3.0.0) 1 | System - RSFirewall! Active Scanner (1.4.0) 1 |
Templates Discovered :: wrote:Templates :: Site :: rt_callisto (1.7.0) 1 | cassiopeia (1.0) 1 |
Templates :: Admin :: atum (1.0) 1 |
Last edited by toivo on Fri Dec 02, 2022 11:20 am, edited 1 time in total.
Reason: mod note: disabled smilies in post Options for readability

User avatar
Rondeb
Joomla! Guru
Joomla! Guru
Posts: 543
Joined: Mon Dec 02, 2013 12:14 pm
Location: Meschede - Germany
Contact:

Re: 500 Error when trying to update Joomla or Extensions

Post by Rondeb » Thu Dec 01, 2022 10:52 pm

Hi,

System TMP and Session Path are not writable.

So fix that first and then see if the problem is solved.

Ron :)

frostmakk
Joomla! Explorer
Joomla! Explorer
Posts: 254
Joined: Sun Dec 28, 2014 9:30 am
Location: Stavanger, Norway

Re: 500 Error when trying to update Joomla or Extensions

Post by frostmakk » Fri Dec 02, 2022 10:29 am

Enable the two missing PHP extensions zip and curl on the server.

ScottD
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Dec 01, 2022 6:04 pm

Re: 500 Error when trying to update Joomla or Extensions

Post by ScottD » Mon Dec 05, 2022 9:28 pm

open_basedir was the cause of the Unwritable tmp directories. That has been resolved but still getting the 500 error when trying to update.

I am looking into the extensions further. Both Curl and Zip are installed but not enabled in PHP currently.

User avatar
ceford
Joomla! Ace
Joomla! Ace
Posts: 1496
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: 500 Error when trying to update Joomla or Extensions

Post by ceford » Tue Dec 06, 2022 9:11 am

If you have terminal access you could try the command line interface. From the root of your site:

cd cli
php joomla.php config:set debug=true
php joomla.php config:set error_reporting=maximum
php -d memory_limit=512M joomla.php core:update

Ah yes, your Memory Limit may be too low. It should be 256M or more.

ScottD
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Dec 01, 2022 6:04 pm

Re: 500 Error when trying to update Joomla or Extensions

Post by ScottD » Wed Dec 07, 2022 5:07 pm

Changing the memory limit to 512M did not change anything.

ScottD
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Dec 01, 2022 6:04 pm

Re: 500 Error when trying to update Joomla or Extensions

Post by ScottD » Tue Dec 13, 2022 4:57 pm

The issue was resolved after adding the ppa/ondrej repositories fpr PHP and Apache2 and then running updates. There may have been some residual issues from my PHP7.4 installation still hanging out.


Post Reply

Return to “Administration Joomla! 4.x”