Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67325 - [nextcloud] 19.0.0-1 -> 19.0.1-1 overwrites config file

Attached to Project: Community Packages
Opened by Markus (z0n) - Sunday, 19 July 2020, 13:32 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 19 July 2020, 15:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
During the upgrade from nextcloud 19.0.0-1 to 19.0.1-1, the config.php file in /etc/webapps/nextcloud/config was overwritten by a default config file. I had to restore the file from a backup.
I didn't perform any additional steps after upgrading the package (so no hooks etc.), I was just greeted by the installation wizard when I tried to access my nextcloud instance.

Additional info:
community/nextcloud 19.0.0-1 -> 19.0.1-1

Steps to reproduce:
* setup nextcloud 19.0.0-1
* upgrade to 19.0.1-1
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 19 July 2020, 15:26 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Sunday, 19 July 2020, 14:12 GMT
/etc/webapps/nextcloud/config is a directory. Did you replace it with a symlink or something?
Comment by Markus (z0n) - Sunday, 19 July 2020, 15:16 GMT
The directory is a symlink:
# ls -l /usr/share/webapps/nextcloud/config
lrwxrwxrwx 1 root http 29 Jul 19 12:42 /usr/share/webapps/nextcloud/config -> /etc/webapps/nextcloud/config

Inside, there's the config.php file which was overwritten during the upgrade:
# ls -l /usr/share/webapps/nextcloud/config/
total 68
-rw-r----- 1 http http 1767 Jul 19 17:14 config.php
-rw-r--r-- 1 http http 55973 Jul 19 12:42 config.sample.php
-rw-r--r-- 1 http http 35 Jan 21 15:49 mimetypealiases.json
-rw-r--r-- 1 http http 46 Jan 21 15:49 mimetypemapping.json
Comment by Doug Newgard (Scimmia) - Sunday, 19 July 2020, 15:26 GMT
I was trying to come up with some explanation. There is no /etc/webapps/nextcloud/config/config.php in the nextcloud package, or any package in the repos. Unless there's a rogue install script somewhere (not in the nextcloud package), there's no way the update overwrote config.php.

Loading...