Maintenance:update issue? No idea what to google for this :)

pasted terminal output:

@pwa-nextcloud-001:~$ sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
‘overwrite.cli.url’ => 'https://
**',
‘htaccess.RewriteBase’ => ‘/’,
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#93”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#93”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:93,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#98”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#98”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:98,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#99”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#99”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:99,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#100”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#100”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:100,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#101”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#101”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:101,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#102”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#102”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:102,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#103”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/private/legacy/OC_Response.php#103”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_Response.php”,“line”:103,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:672,“function”:“addSecurityHeaders”,“class”:“OC_Response”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/base.php#499”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/base.php#499”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:499,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:557,“function”:“sendSameSiteCookies”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:674,“function”:“performSameSiteCookieProtection”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/base.php#499”,“userAgent”:“–”,“version”:“”,“exception”:{“Exception”:“Error”,“Message”:“Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/config/config.php:1) at /var/www/nextcloud/lib/base.php#499”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:499,“function”:“header”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:557,“function”:“sendSameSiteCookies”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:674,“function”:“performSameSiteCookieProtection”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1111,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/var/www/nextcloud/console.php”,“line”:48,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”},{“file”:“/var/www/nextcloud/occ”,“line”:11,“args”:[“/var/www/nextcloud/console.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Log/ErrorHandler.php”,“Line”:92,“CustomMessage”:“–”}}
Nextcloud is not installed - only a limited number of commands are available

There are no commands defined in the “maintenance:update” namespace.

Did you mean this?
maintenance

{“reqId”:“M9qSti6BB0Vd8tymRYsY”,“level”:3,“time”:“2022-09-25T10:33:26+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“fopen(/var/www/nextcloud/data/nextcloud.log): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Log/File.php#84”,“userAgent”:“–”,“version”:“”,“data”:{“app”:“PHP”}}
********@pwa-nextcloud-001:~$

thanks :slight_smile: