Update fails due to files in directoryâŚ
So this is sort of weird one because Nexcloud refuses to update doe to the âclouddataâ folder is there, but it is the place where the user data is stored so it doesnât make sense at all.
I have attempted to delete it (temporary) along with error-log but then it starts to whine that the âclouddataâ folder is missing instead. So its the hen or the egg kind of issue i suppose or catch22 if you will.
So how can this issue be solved so I can actually run the update?
Thanks in advance for the help.
Kind regards
PowerQuest
Can you move the data directory to any other mountpoint and change the path in this file?
For example if you move it to /mnt/clouddata and then change the path in config.php to /mnt/clouddata?
Very strange. Have you ever tried a manual update?
That means you rename the nextcloud folder, and do a fresh install?
Installation as described here?
But before you open nextcloud in the bwoser you copy the config.php from your old installation into the new one - so you have a fresh installation, but keep all your settings
Donât hesitate to search the forum for topics with similar issues and how they were solved. Extra files means there are files that are not normally used there by Nextcloud. The data folder within the Nextcloud folder (if not outside this folder) is by default called data. The logfiles shouldnât be in the main folder either. In which folder did you put Nextcloud that there are so many additional files?
I found out that in some cases, especially if the installation was done in a not so recommended ways its better teo replace the nextcloud folder with a fresh one, and keep the data directory outside the nextcloud folder. Then all you need to do is just copying the config.php to the new installation - viola, you´re done
Already done that and didnât find anything.
Iâve been searching for hours and didnât find issues that resembles ours; both on Google, duckduckgo.com and the Nextcloud forums.
Its added there automatically by our server.
We have our own VPS server which we chosen to partition up with C-panel for easier management. So no this is not shared hosting and some cheap host.
I guess the mainproblem is that you have many unknown folders and files - no matter where they are coming from.
I always move the data folder out of the nextcloud folder to have it seperated. If you then only have the nextcloud folder, then you can replace it wit a fresh unzipped version and just copy the config.php back - then you have a fresh installation, but the database and the files etc. will remain. Then also this message about unknown files should disappear
You didnât mention that in the first place. Can you configure it to not put these files/folders there?
For the automatic update procedure you canât expect it to know if these files/folders do potentially harm, therefore it just tests what to expect from Nextcloudâs point of view.
Hi @wagnbeu0
Sorry for my very long time to respond back to you.
Summer passed by so quickly!
Yes, it finally worked and you rock!
Thank you so much for your kind help!
i did move the data one level up outside of the main www root folder and then ran the update.
It still nagged and complained over cgi-bin, error_log, php.ini and user.ini so I temporally moved those to the trash bin. Ran the update again it ran fine. Then after that I just restored those files.