How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
The bug
When the disk that Nextcloud is installed on is full (an admittedly unpredictable scenario), the config file is truncated. This happened during an update in my case.
Steps to reproduce
cat config/config.php, observe config values
- Fill up disk space, e.g.
dd if=/dev/zero of=file.dat bs=1024 count=10000000
- Perform action that changes config file, e.g.
occ maintenance:mode --on
cat config/config.php observe an empty file
Expected behaviour
Config file is not truncated when no disk space.
Actual behaviour
Config is left empty, Nextcloud believes it is no longer installed and wants a CAN_INSTALL file.
Server configuration
Operating system:
Ubuntu 18.04.5 LTS
Web server:
apache2 2.4.29-1ubuntu4.14
Database:
mariadb 10.1.44
PHP version:
PHP 7.2.24-0ubuntu0.18.04.6
Nextcloud version: (see Nextcloud admin page)
20.0.5
How to use GitHub
The bug
When the disk that Nextcloud is installed on is full (an admittedly unpredictable scenario), the config file is truncated. This happened during an update in my case.
Steps to reproduce
cat config/config.php, observe config valuesdd if=/dev/zero of=file.dat bs=1024 count=10000000occ maintenance:mode --oncat config/config.phpobserve an empty fileExpected behaviour
Config file is not truncated when no disk space.
Actual behaviour
Config is left empty, Nextcloud believes it is no longer installed and wants a CAN_INSTALL file.
Server configuration
Operating system:
Ubuntu 18.04.5 LTS
Web server:
apache2 2.4.29-1ubuntu4.14
Database:
mariadb 10.1.44
PHP version:
PHP 7.2.24-0ubuntu0.18.04.6
Nextcloud version: (see Nextcloud admin page)
20.0.5