访问nextcloud的时候突然无法访问 , 通过查日志发现后台报错如下:

not overwriting /var/www/html/config/config.php

Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php

解决方法:

1、先进入容器

docker exec -it nextcloud_container_name bash

2、在容器中执行如下命令

chown -R www-data:www-data .
ls -lh

3、刷新页面即可

原文地址:

https://help.nextcloud.com/t/config-file-permissions-question/163883