Proposal: ./occ upgrade, is not good

after download over gui, have to set
’maintenance’ => false, manual.
I followed the proposal:
(Aug 10 21:26) ./occ upgrade
bash: ?php: Datei oder Verzeichnis nicht gefunden
bash: /backup: Ist ein Verzeichnis
bash: ./occ: Zeile 4: Syntaxfehler beim unerwarteten Wort »(«
bash: ./occ: Zeile 4: ` * Copyright © 2013 Thomas Müller


Could you post the full command you entered? It seems something went terribly wrong there.

/var/www/nextcloud# ./occ upgrade

the solution looks like:
sudo -u www-data php ./occ upgrade
witout error :wink:

but the gui shows as proposal " ./occ upgrade"
maybe you will change the proposal/advice in the gui to
" sudo -u www-data php ./occ upgrade"

thx ahead

@akaro good point, can you create a fix?

./occ upgrade is okay. Someone who doesn’t know how to use this command should use the web updater. :stuck_out_tongue_winking_eye:

This message comes from the updater/index.php:

		function askForMaintenance(keepActive) {
			var el = document.getElementById('step-maintenance-mode')
			if (keepActive) {
				el.innerHTML = 'Maintenance mode will kept active.<br>Now trigger the migration via command line: <code>./occ upgrade</code><br>';

(line 2011)

It needs to be fixed there then.
The Admin documentation correctly describes the usage of occ, so I don’t see any need for improvements there.

I agree somehow that an administrator running the update should (have) look(ed) into the Admin Guide at some point. With the many variations to run the occ command, this approach of just hinting to the occ command seems valid to me.