Suddenly error 503 service unavible

Hello,
I got suddenly error when trying to connect to my nextcloud : error message is 503 Service Unavailable.

I tried:
sudo nextcloud.occ files:scan
and
sudo nextcloud.occ files:cleanup

didn’t helped, I tried restart service didn’t helped.

Everything is happend after I restarted my server.

Server information:

  • OS: Ubuntu 20.04 LTS
  • Nextcloud v: 20.0.7.1
  • Using snap installation

I don’t have a mind what it could be happend because it runs before perfect.

@bihzs can you open your log using shell acces ?
This nextcloud.log inside your data directory.
if you don’t know where is yours i think it is here:
sudo nano /var/snap/nextcloud/current/nextcloud/data/nextcloud.log

Hi @Mageunic ,

Of course here it is.

    {"reqId":"1hMsSBhpLy8pQggOuXlP","level":3,"time":"2021-02-06T20:50:34+00:00","remoteAddr":"10.0.0.1","user":"zlaja","app":"PHP","method":"PUT","url":"/remote.php/dav/uploads/zlaja/3666990513/00000001","message":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /snap/nextcloud/26119/htdocs/3rdparty/sabre/http/lib/Sapi.php:132) at /snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php#691","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Cannot modify header information - headers already sent by (output started at /snap/nextcloud/26119/htdocs/3rdparty/sabre/http/lib/Sapi.php:132)","/snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php",691,{"string":"X-Hash-SHA1: b84aa2d98c68969dc632364644caf3d95bbba713"}]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php","line":691,"function":"header","args":["X-Hash-SHA1: b84aa2d98c68969dc632364644caf3d95bbba713"]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php","line":192,"function":"header","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["X-Hash-SHA1: b84aa2d98c68969dc632364644caf3d95bbba713"]},{"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Files/Stream/HashWrapper.php","line":71,"function":"call_user_func","args":[{"__class__":"Closure"},"*** sensitive parameter replaced ***"]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/icewind/streams/src/Wrapper.php","line":132,"function":"fclose","args":[null]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/remote.php","line":167,"args":["/snap/nextcloud/26119/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/26119/htdocs/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux) mirall/3.1.2-20210128.185328.9398260fb-1.0~focal1 (Nextcloud)","version":"20.0.7.1"}
{"reqId":"1hMsSBhpLy8pQggOuXlP","level":3,"time":"2021-02-06T20:50:34+00:00","remoteAddr":"10.0.0.1","user":"zlaja","app":"PHP","method":"PUT","url":"/remote.php/dav/uploads/zlaja/3666990513/00000001","message":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /snap/nextcloud/26119/htdocs/3rdparty/sabre/http/lib/Sapi.php:132) at /snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php#691","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Cannot modify header information - headers already sent by (output started at /snap/nextcloud/26119/htdocs/3rdparty/sabre/http/lib/Sapi.php:132)","/snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php",691,{"string":"X-Hash-MD5: fe048db2ba07276a9165b46b584b747c"}]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php","line":691,"function":"header","args":["X-Hash-MD5: fe048db2ba07276a9165b46b584b747c"]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/lib/Connector/Sabre/File.php","line":189,"function":"header","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["X-Hash-MD5: fe048db2ba07276a9165b46b584b747c"]},{"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Files/Stream/HashWrapper.php","line":71,"function":"call_user_func","args":[{"__class__":"Closure"},"*** sensitive parameter replaced ***"]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/icewind/streams/src/Wrapper.php","line":132,"function":"fclose","args":[null]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/icewind/streams/src/Wrapper.php","line":132,"function":"fclose","args":[null]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/remote.php","line":167,"args":["/snap/nextcloud/26119/htdocs/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/snap/nextcloud/26119/htdocs/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux) mirall/3.1.2-20210128.185328.9398260fb-1.0~focal1 (Nextcloud)","version":"20.0.7.1"}
{"reqId":"AYV93i2e9qXHnpvao5MZ","level":4,"time":"2021-04-04T09:26:36+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":{"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`' with params [\"[]\"]:\n\nSQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress","Code":0,"Trace":[{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":169,"function":"convertException","class":"Doctrine\\DBAL\\Driver\\AbstractMySQLDriver","type":"->","args":["An exception occurred while executing 'SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`' with params [\"[]\"]:\n\nSQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress",{"errorInfo":["08S01",1053,"Server shutdown in progress"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"}]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":149,"function":"wrapException","class":"Doctrine\\DBAL\\DBALException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"errorInfo":["08S01",1053,"Server shutdown in progress"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"},"An exception occurred while executing 'SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`' with params [\"[]\"]:\n\nSQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress"]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":914,"function":"driverExceptionDuringQuery","class":"Doctrine\\DBAL\\DBALException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"errorInfo":["08S01",1053,"Server shutdown in progress"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"},"SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`",{"1":"[]"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/DB/Connection.php","line":202,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`",["[]"],[2],null]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":206,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> :dcValue1 GROUP BY `class`, `entity`, `events`",{"dcValue1":"[]"},{"dcValue1":2}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/DB/QueryBuilder/QueryBuilder.php","line":217,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/Manager.php","line":155,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/AppInfo/Application.php","line":70,"function":"getAllConfiguredEvents","class":"OCA\\WorkflowEngine\\Manager","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"registerRuleListeners","class":"OCA\\WorkflowEngine\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\EventDispatcher\\EventDispatcher"},{"__class__":"OC\\Server"},{"__class__":"OC\\AppFramework\\Logger"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":[{"__class__":"Closure"}]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/AppInfo/Application.php","line":62,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->","args":[{"__class__":"Closure"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\\WorkflowEngine\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\AppFramework\\Bootstrap\\BootContext"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":["workflowengine"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["workflowengine"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Console/Application.php","line":127,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"/snap/nextcloud/26119/htdocs/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/snap/nextcloud/26119/htdocs/occ","line":11,"args":["/snap/nextcloud/26119/htdocs/console.php"],"function":"require_once"}],"File":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php","Line":106,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDOException","Message":"SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress","Code":"08S01","Trace":[{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":906,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDOStatement","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/DB/Connection.php","line":202,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`",["[]"],[2],null]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":206,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> :dcValue1 GROUP BY `class`, `entity`, `events`",{"dcValue1":"[]"},{"dcValue1":2}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/DB/QueryBuilder/QueryBuilder.php","line":217,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/Manager.php","line":155,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/AppInfo/Application.php","line":70,"function":"getAllConfiguredEvents","class":"OCA\\WorkflowEngine\\Manager","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"registerRuleListeners","class":"OCA\\WorkflowEngine\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\EventDispatcher\\EventDispatcher"},{"__class__":"OC\\Server"},{"__class__":"OC\\AppFramework\\Logger"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":[{"__class__":"Closure"}]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/AppInfo/Application.php","line":62,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->","args":[{"__class__":"Closure"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\\WorkflowEngine\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\AppFramework\\Bootstrap\\BootContext"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":["workflowengine"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["workflowengine"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Console/Application.php","line":127,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"/snap/nextcloud/26119/htdocs/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/snap/nextcloud/26119/htdocs/occ","line":11,"args":["/snap/nextcloud/26119/htdocs/console.php"],"function":"require_once"}],"File":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php","Line":129,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress","Code":"08S01","Trace":[{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php","line":127,"function":"execute","class":"PDOStatement","type":"->","args":[null]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":906,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDOStatement","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/DB/Connection.php","line":202,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`",["[]"],[2],null]},{"file":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":206,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> :dcValue1 GROUP BY `class`, `entity`, `events`",{"dcValue1":"[]"},{"dcValue1":2}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/DB/QueryBuilder/QueryBuilder.php","line":217,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/Manager.php","line":155,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/AppInfo/Application.php","line":70,"function":"getAllConfiguredEvents","class":"OCA\\WorkflowEngine\\Manager","type":"->","args":[]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"registerRuleListeners","class":"OCA\\WorkflowEngine\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\EventDispatcher\\EventDispatcher"},{"__class__":"OC\\Server"},{"__class__":"OC\\AppFramework\\Logger"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":[{"__class__":"Closure"}]},{"file":"/snap/nextcloud/26119/htdocs/apps/workflowengine/lib/AppInfo/Application.php","line":62,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->","args":[{"__class__":"Closure"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\\WorkflowEngine\\AppInfo\\Application","type":"->","args":[{"__class__":"OC\\AppFramework\\Bootstrap\\BootContext"}]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":["workflowengine"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["workflowengine"]},{"file":"/snap/nextcloud/26119/htdocs/lib/private/Console/Application.php","line":127,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"/snap/nextcloud/26119/htdocs/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/snap/nextcloud/26119/htdocs/occ","line":11,"args":["/snap/nextcloud/26119/htdocs/console.php"],"function":"require_once"}],"File":"/snap/nextcloud/26119/htdocs/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php","Line":127}},"CustomMessage":"Could not boot workflowengineAn exception occurred while executing 'SELECT `class`, `entity`, `events` FROM `oc_flow_operations` WHERE `events` <> ? GROUP BY `class`, `entity`, `events`' with params [\"[]\"]:\n\nSQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress"},"userAgent":"--","version":"20.0.7.1"}

Hello,

I have figure out it was because I have run my http as port 4442 and it was changed back to default. And after I also run this command than I get it work

sudo nextcloud.occ config:system:set overwritehost --value="example.com:4442"
1 Like