update via CLI with error! I'm trying an update on the CLI and get the following error.

If I do it again afterwards I get told that everything is up to date.
If I want to install a plugin then I still get the message that I should update to the current version.

Who can tell me what I am doing wrong or where the mistake lies?

$ php-7.2-cli -d allow_url_fopen=1 craft update all
Fetching available updates ... done
Performing one update:

    - craft 3.1.25 =&gt; 3.1.28

Backup the database? (yes|no) [yes]:yes
Backing up the database ... done
Performing update with Composer ... done
Applying new migrations ... error: The command "'/home/lichtebs/CraftCMS-ALL/craft' 'migrate/all' '--no-content'" failed.

Exit Code: 255(Unknown error)

Working directory: /home/lichtebs/CraftCMS-ALL

Output:
================
Content-type: text/html

&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;:  Unexpected character in input:  '' (ASCII=92) state=1 in &lt;b&gt;/home/lichtebs/CraftCMS-ALL/craft&lt;/b&gt; on line &lt;b&gt;16&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Parse error&lt;/b&gt;:  syntax error, unexpected T_STRING in &lt;b&gt;/home/lichtebs/CraftCMS-ALL/craft&lt;/b&gt; on line &lt;b&gt;16&lt;/b&gt;&lt;br /&gt;

Restore the database backup? (yes|no) [yes]:yes
Restoring the database backup ... done
Revert the Composer changes? (yes|no) [yes]:yes
Reverting Composer changes ... error: The command "'/home/lichtebs/CraftCMS-ALL/craft' 'update/composer-install'" failed.

Exit Code: 255(Unknown error)

Working directory: /home/lichtebs/CraftCMS-ALL

Output:
================
Content-type: text/html

&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;:  Unexpected character in input:  '\' (ASCII=92) state=1 in &lt;b&gt;/home/lichtebs/CraftCMS-ALL/craft&lt;/b&gt; on line &lt;b&gt;16&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Parse error&lt;/b&gt;:  syntax error, unexpected T_STRING in &lt;b&gt;/home/lichtebs/CraftCMS-ALL/craft&lt;/b&gt; on line &lt;b&gt;16&lt;/b&gt;&lt;br /&gt;
It looks like you need to have php-7.2-cli -d allow_url_fopen=1 in front of your craft commands. When you run craft update all, Craft then tries to run migrations (craft migrate/all) but without your php-7.2-cli... declaration it seems to fails. 

If you have access to composer, you could try to update 'manually' instead of running craft update.


run composer update
then php-7.2-cli -d allow_url_fopen=1 craft migrate/all