宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页
  2. 学无止境
  3. 正文

NextCloud 更新至27 28 29 报错解决办法

2024年6月21日 1864点热度 0人点赞 2条评论

1、NextCloud更新以后 无法打开动态与任务

解决办法:请在nginx的配置文件mime.types中,修改“application/javascript  js;”为“application/javascript  js mjs;”,然后重启Nginx

文件位置在:/www/server/nginx/conf/mime.types

2、Your web server is not properly set up to resolve "/ocm-provider/". This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in ".htaccess" for Apache or the provided one in the documentation for Nginx. On Nginx those are typically the lines starting with "location ~" that need an update.

解决办法:在网站配置文件中增加

location ^~ /.well-known {
    location = /.well-known/carddav { return 301 /remote.php/dav/; }
    location = /.well-known/caldav { return 301 /remote.php/dav/; }
    location ^~ /.well-known { return 301 /index.php$uri; }
try_files $uri $uri/ =404;
}
location = /ocm-provider/ {return 301 /index.php/ocm-provider;}

参考:点击进入

3、当前正在使用数据库处理事务性文件锁定。若有内存缓存可用,请进行配置以

解决办法:安装Redis,增加缓存

文件目录:/config/config.php

 'memcache.local' => '\OC\Memcache\Redis',
 'redis' => [
     'host' => 'redis',
     'port' => 6379,
 ],
'memcache.locking' => '\OC\Memcache\Redis',

4、您的网络服务器未正确设置来解析 `.wellknown` URL,失败于: `/.well-known/caldav` 更多细节,请参见文档 ↗。

解决办法:查询一下的配置文件有没有(well-known/caldav)配置,如果有,在/remote.php/dav后面增加“/”,就解决了

#安全配置重定向
rewrite /.well-known/carddav /remote.php/dav/ permanent;
rewrite /.well-known/caldav /remote.php/dav/ permanent;

5、PHP Deprecated: Optional parameter $userId declared before required parameter $path is implicitly treated as a required parameter in /www/wwwroot/pan.timeit.cn/apps/deck/lib/Service/ConfigService.php on line 234

解决办法:NextCloud  29.0.2 版本之前(包含该版本),未修复该问题

标签: 暂无
最后更新:2024年9月3日

小渔民

这个人很懒,什么都没留下

点赞
< 上一篇

文章评论

  • kelvin

    谢谢大佬

    2024年9月16日
    回复
    • 小渔民

      @kelvin 问题解决了就好

      2024年9月26日
      回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    COPYRIGHT © 2024 宇筱博客. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    豫ICP备15017825号-2