-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
"occ maintenance:install" fails, if path to data dir contains a symlink #12247
Comments
GitMate.io thinks possibly related issues are #11153 (occ maintenance:install needs a --adminemail argument), #7563 ([occ] Hide "not installed" info on "occ maintenance:install"), #8179 (Upgrade fails if the config dir contains config.php~ file), #3555 (Scripted "occ maintenance:install" only accepts the admin password as cleartext), and #5446 (occ maintenance:repair should fix missing directories in user data directories.). |
@wiswedel Related commit: 7b1b723 ... ah and of course the above must be true since Nextcloud operates fine, besides the skeleton file transer, and this is where it must fail:
So I can imagine two solutions:
But probably I misunderstand the code 😉. |
@icewind1991 |
A probably related case: https://dietpi.com/forum/t/nc-symlinks-not-allowed/4304
It seems like the |
This comment was marked as resolved.
This comment was marked as resolved.
Yes, it still occurs with NC 25.0.2: In Local.php line 513:
Following symlinks is not allowed |
Hm... Did you check if that makes it work? server/config/config.sample.php Line 1924 in 5866418
|
This doesn't help: The setting is not taken over into the However, my point is that the check is done wrong, respectively the concern does not apply in the mentioned case, since the symlink is not "within" the data directory/the data dir does not contain the symlink, but it's part of the path "to" the data directory. So it is impossible "for Nextcloud to access files outside the data directory" in this setup (wording from |
Steps to reproduce
occ maintenance:install
to install Nextcloud, choosing a data directory with is inside a symlink. E.g./mnt/data
is a symlink, pointing to/mnt/external
, then choose--data-dir /mnt/data/ncdata
as install option.Expected behaviour
Install should finish without error message.
Actual behaviour
Install throws error:
config.php
is fully configured with data dir containing the chosen path with symlink inside.Further info
Server configuration
Operating system:
Debian Stretch
Web server:
Does not matter, same with Apache2, Nginx, Lighttpd
Database:
MariaDB 10.1
PHP version:
PHP7.0
Nextcloud version:
14.0.3
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
Official download source
Signing status:
No failures
List of activated apps:
Default on fresh install, irrelevant
Nextcloud configuration:
Config report
Are you using external storage, if yes which one:
No, but using symlinks usually has the intention to move userdata to an external drive, either after Nextcloud was installed already or prior to this, but having an always correct data dir path, even that the actual (symlinked) location changes from one drive/location to another.
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
€: @nextcloud-bot nice try, but nothing is related 😉
The text was updated successfully, but these errors were encountered: