No Code Attached Yet Information Required
avatar 35grain
35grain
25 Apr 2024

Steps to reproduce the issue

Run the core:update command.

Expected result

If everything goes as intended, exit code 0 is expected.

Actual result

Exit code 1 is returned.

System information (as much as possible)

Joomla 5.x. PHP 8.2.17.

Additional comments

This currently makes automation tasks fail, as anything other than 0 is considered as a failure. Is this intended behavior?

avatar 35grain 35grain - open - 25 Apr 2024
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Apr 2024
avatar brianteeman
brianteeman - comment - 25 Apr 2024

What exact version are you updating from

avatar 35grain
35grain - comment - 25 Apr 2024

Initially I updated from 5.0.2 but the same happens with 5.1.

avatar Hackwar
Hackwar - comment - 26 Apr 2024

What is your complete output of the command? It should display Joomla core updated successfully! as last line in the output and return a 0 exit code. That is the code since 4.4 actually. Are you absolutely sure that the update was 100% successfull?

avatar alikon
alikon - comment - 27 Apr 2024

if you already have the latest Joomla! version then the exit code is 1

avatar alikon alikon - change - 27 Apr 2024
Labels Added: Information Required
avatar alikon alikon - labeled - 27 Apr 2024
avatar 35grain 35grain - close - 29 Apr 2024
avatar 35grain 35grain - change - 29 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-29 08:08:08
Closed_By 35grain
avatar 35grain
35grain - comment - 29 Apr 2024

Unfortunately I don't have the output for the update from 5.0.2 to 5.1, however everything seems operational so it is difficult to tell if something went wrong. But

if you already have the latest Joomla! version then the exit code is 1

is more or less what I was hoping to figure out whether or not this is the intended behavior. Will try to work around this then. Thanks!

Add a Comment

Login with GitHub to post a comment