設為首頁收藏本站

 取回密碼
 註冊
搜尋
熱搜: Redump discuz
檢視: 2|回覆: 0

【教學】 Nextcloud went into maintenance mode after update

[複製連結]
發表於 2026年4月8日 17:41:54 | 顯示全部內容 |閱讀模式
字體大小 16px
10px 32px
Here is what solved the issue:

Access your server

Open www/nextcloud/config/config.php

Or 1panel => /opt/1panel/apps/nextcloud/nextcloud/data/config/www/nextcloud/config/config.php

Change the line 'maintenance' => true, to 'maintenance' => false,

Save the modified file.

Access your Nextcloud again. Maintenance mode will be off and the update of Duplicate Finder will be offered to you.

Do the update.

All is good again.

首先執行

sudo docker exec -it nextcloud-aio-nextcloud php occ maintenance:mode --off
但沒啥反應

然後:

sudo docker exec -it nextcloud-aio-nextcloud php occ upgrade
一開始也沒反應,但重啟 NC 後就又能用了!

出現了關於缺少資料庫索引的錯誤訊息,所以我執行了

sudo docker exec -it nextcloud-aio-nextcloud php occ db:add-missing-indices
作者文章推薦
懶得打字嗎?讓本助手協助你 【使用進階編輯器請點選右方進階模式】
您需要登入後才可以回覆 登入 | 註冊

本版積分規則

手機版|Archiver|漁家小舖

GMT+8, 2026年6月6日 18:08 , Processed in 0.478095 second(s), 16 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回覆 返回頂端 返回清單