-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(un)expected files #68
Comments
@mcnesium Thanks for the feedback. Let me try to reproduce this and look into this. |
I would rather go for following: Instead of failing hard showing those files to the user and allow the user to approve those files as being okay (on their own risk). This would also fix the issues in #23 for example. |
Basically every shared host environment will have the odd extra files in there. For example in an ISPconfig web there is a stats and an error folder. You need to be able to either ignore these extra files, confirm them (as in it gets remembered) or have a config option to tell nextcloud what additional things are expected. |
Same problem here when trying to update from 11.01 to 11.02. Any workaround until this is "enhanced"? |
@McLibboc Moving the extra files to some directory outside the nextcloud installation, performing the update, and moving the files back worked for me. |
8831 was closed because old duplicate ( 12 dec 2016 - 17 march 2018 !! ), but what is planned ? |
I have "fixed" th updater as suggested in my duplicate issue by adding the extra directory into the list. Now it's completely broken and gone. I guess automatic updating isn't possible with Nextcloud. I now have to save the remains, repair the hosting environment and reinstall it newly. On a production system. Nice Friday afternoon. |
Just to make sure: we never suggested this because of exactly those problems. There was a reason why we added stuff like this into the updater and "simply adding a button to ignore" has a lot of consequences. Sorry to hear that this happened on your side :/ |
So perhaps the safest 'fix' is to tell people to do what was suggested by @benkeks - #68 (comment) |
sometimes, "moving files around" is a no go !!! breaking symlinks for exemple as sometimes you dont keept track of them ... this issue is like a dog running at is own tail: maybe this check for extra files should simply go away ... |
@jospoortvliet I can tell you what happens when I move the php-fcgi file "out of the way": The web page will not execute and the upgrade cannot take place. This file is an essential part of the hosting environment. And because people tend to delete it, and then the web server fails to restart, the files are marked immutable in the file system. So at least the updater wasn't able to kick itself out of the world. But it also failed to handle this situation and left me alone with an unusable and undefined state. If the check for extra files can determine what files don't belong to Nextcloud, then these files should not be complained about, but rather excluded from deleting. That's what would help a lot. |
Yeah, my suggestion was really only meant as a workaround for certain situations. I actually also think that it's an awkward design decision to allow users to install NextCloud instances in folders with extra files, but then prevent them from upgrading such installations. The upgrade procedure is stricter than the setup, where it should rather be the other way around (or at least equal in strictness). |
Problem still exists for me. |
Bumping the issue ; IMO installations that do not have the luxury of having Nextcloud installed in a perfectly empty directory are way too common for this to be ignored; even moreso since the code signing feature has been added. |
Some hosting environments, especially shared hosting environments, insert extra directory items in an application directory, without offering any option to prevent their inclusion. In a Plesk hosting environment, several items have been observed as added to the root level of the application directory, including I suggest adding support for a site-configurable list of file names that should be ignored by the updater when checking the integrity of the application directory. For usability, the standard installation may populate it with initial items that are commonly found in certain environments. The feature might be implemented either through a new configuration field, or through a separate file following the design pattern applied in |
This sounds like a great feature, but currently there are no plans to implement it. Therefore, I will close this ticket for now. This does not mean we don't want this feature, but it is not on our list of things to do soon. |
Still this issue exists. |
all-inkl.com provides installing Nextcloud through their web interface. They add
$CONFIG['tempdirectory'] = '/www/htdocs/user/cloud/tmp/';
toconfig.php
and create that directory.While the update from 10.0.1 to 10.0.2 the updater condemned this directory
/tmp
as expected files and stopped there. So I commented out the config line and deleted the directory, and then the updater ran the update as expected. Questions arise:tempdirectory
configuration item make the directory yet expected and therefore not a show stopper?The text was updated successfully, but these errors were encountered: