• 陪伴互联网运营小白共同探索成长,与IT爱好者共享探索乐趣
  • 建站只为分享,欢迎在PC端文章面打赏支持
  • 使用Ctrl+D 可收藏本站

nextcloud系列:nginx报错One or more mimetype migrations are available

好玩有趣 陆子方 2周前 (02-28) 61次浏览 0个评论 扫描二维码
文章目录[隐藏]

报错内容

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command occ maintenance:repair –include-expensive to perform the migrations.

解决它

这是因为使用了nginx看到的错误提示,Nextcloud 提示有可用的 MIME 类型迁移,这是正常的升级过程。可以手动运行以下命令来执行迁移:

sudo -u www-data php /home/wwwroot/nextcloud/occ maintenance:repair --include-expensive

sudo -u www-data 以 Nextcloud 运行的用户(通常是 www-data)执行命令。

php /home/wwwroot/nextcloud/occ maintenance:repair –include-expensive 运行 Nextcloud 维护命令,如 MIME 类型迁移。

如果你的 Nextcloud 运行在不同用户(如 nginx),请修改 www-data 为相应用户。

如果你安装的nextcloud目录和我不同,请修改为自己对应的目录。例如官方指引是/var/www


子方有料原创丨转载请注明原文链接
期待您的评论或捐赠,这是最好的鼓励和支持!
喜欢 (0)
[赞赏使我快乐]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到