Config and sqlite3 database overwritten on failed upgrade
Steps to reproduce
- Update nextcloud package
- Run upgrade through webbrowser (do not allow gstatic scripts, because why should I use external resources)
Expected behaviour
Next cloud should upgrade and migrate all the data and should work again.
Actual behaviour
Nextcloud setup overwrites config.php and sqlite3 database
Server configuration
Operating system: Linux hel 4.18.4-arch1-1-ARCH
Web server: nginx 1.14.0-1
Database: sqlite3
PHP version: 7.1.13
Nextcloud version: 13.0.5
Updated from an older Nextcloud/ownCloud or fresh install: Update from 13.0.2
Where did you install Nextcloud from: Arch Repository
Signing status:
Signing status
GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/6184 (.htaccess overwrote after upgrade), https://github.com/nextcloud/server/issues/3168 (Failed Upgrade to 11), https://github.com/nextcloud/server/issues/7024 (Upgrade to latest 2FA fails with database exception), https://github.com/nextcloud/server/issues/5531 (Upgrade fails from NC11-12), and https://github.com/nextcloud/server/issues/8179 (Upgrade fails if the config dir contains config.php~ file).
None of the suggested issues are related. Everyone reporting had his database and config.php "untouched" but my database file and config.php were overwritten.
I had my config.php deleted while updating on arch from 17.0.2 to 17.0.3. Likely it is not pacmans fault, see here. Nothing happened to my database, but I also didn't use sqlite.
Maybe this is the same too.
Please create a new issue. Without issue template much harder to reproduce. Thanks 👍
I've read some of those config.php lost reports. Not sure how to trigger this failure. We need more information.