FS#53100 - [nextcloud] nextcloud: /usr/share/webapps/nextcloud/config exists in filesystem
Attached to Project:
Community Packages
Opened by BoBeR182 (BoBeR182) - Monday, 27 February 2017, 21:31 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 13 March 2017, 11:07 GMT
Opened by BoBeR182 (BoBeR182) - Monday, 27 February 2017, 21:31 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 13 March 2017, 11:07 GMT
|
Details
Description:
Updating with pacman -Syu causes conflict. nextcloud: /usr/share/webapps/nextcloud/config exists in filesystem Additional info: * package version(s) community/nextcloud 11.0.1-1 -> 11.0.2-1 Steps to reproduce: pacman -Syu |
This task depends upon
pacman -Qo also shows that the file /usr/share/webapps/nextcloud/config/config.sample.php is owned by nextcloud 11.0.1-1, but not config.php (which IIRC was created during initial setup). The update via pacman -Syu only complains about the directory.
Removing /usr/share/webapps/nextcloud/config/config.php allowed the upgrade to continue, but then nextcloud obviously lost all configuration. This seems incorrect; I don't have to move/delete my config files when upgrading other packages. Would it not be better for nextcloud to own the sample config but not the runtime config, like in previous versions of the package? If the nextcloud package owns the runtime config.php (which is necessarily modified by usage), then I'll have to repeat this every time I update the nextcloud package.
Did your 11.0.1 was installed from aur?
And no: nextcloud wasn't installed from aur.
I can reproduce the error by installing aur/nextcloud (currently 11.0.1) and then running pacman -Su. If I install community/nextcloud version 11.0.1-1 from archlinux archive, I cannot produce the error.
Edit: Actually, it looks like community/nextcloud is a new package as of earlier this month. I installed nextcloud in the fall, so I obviously installed from AUR back then. Here's more details on the upgrade issue cause by upgrading from the AUR package to the community package: https://bugs.archlinux.org/task/52791#comment155476
I moved config-directory to ~/config and then upgraded without problems. config is now a symlink to /etc/webapps/nextcloud/config which is more reasonable than before.
Ticket can be closed.