server icon indicating copy to clipboard operation
server copied to clipboard

Config and sqlite3 database overwritten on failed upgrade

Open jaypikay opened this issue 8 years ago • 4 comments

Steps to reproduce

  1. Update nextcloud package
  2. 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

jaypikay avatar Aug 22 '18 15:08 jaypikay

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).

nextcloud-bot avatar Aug 22 '18 15:08 nextcloud-bot

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.

jaypikay avatar Sep 06 '18 15:09 jaypikay

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.

julianuu avatar Jan 17 '20 11:01 julianuu

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.

kesselb avatar Jan 17 '20 11:01 kesselb