Nextcloud version: 21.0.4
Operating system and version: Raspbian 10
Apache or nginx version: Apache/2.4.38 (Raspbian)
PHP version: PHP 7.3.31-1~deb10u1 (cli)
Hey all! I’m slightly confused with how my Nextcloud instance is reacting to symlinks.
I know that symlinks are not really supported, but I’m wondering if what I’m experiencing is expected.
I noticed the other day, that I was running out of space in my NC instance, and thought I’d move one of the larger project directories in my main project folder outside the NC premises while keeping a symlink to the project just for bookkeeping. I was expecting (maybe naively) that creating a symlink to a folder outside NC would clear the folder contents from NC, saving some space, while still allowing me to follow the symlink on the computer on which it was created.
This wasn’t the case though, and creating the symlink somehow made NC clear a portion of the data on the server side, while keeping some of it intact. According to NC, everything is now in sync.
This is what I’m seeing on the computer from which the symlink was created:
> ls -l
project -> [LOCATION OUTSIDE NC]/project/
> ls -l project/
add_checkpoint.sh*
audio/
code/
conda-environment.yml
doc/
fetch_models.sh*
fetch_mushra_results.sh*
memo.md
new-models/
plan/
presentations/
publication/
README.md
results/
spice/
And then on another computer that syncs to NC:
> ls -l
project
> ls -l project/
audio
plan
spice
Is this expected? What is happening here?
The output of the Nextcloud log in Admin > Logging is spammed with:
Error PHP Error: Cannot modify header information - headers already sent by (output started at /var/www/html/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691
, but they are not related to any of the files in question (i.e. this is a symptom of something else I’m just now discovering).
My config.php file looks like this:
<?php
$CONFIG = array (
'instanceid' => 'STUFF',
'passwordsalt' => 'MORESTUFF',
'secret' => 'MORE/STUFFS',
'trusted_domains' =>
array (
0 => 'INTERNAL-IP',
1 => 'EXTERNAL-IP',
),
'datadirectory' => 'EXTERNAL/data',
'dbtype' => 'mysql',
'version' => '21.0.4.1',
'overwrite.cli.url' => 'INTERNAL-IP/nextcloud',
'installed' => true,
'log_type' => 'file',
'logfile' => '[datadirectory]/nextcloud.log',
'log_rotate_size' => 104857600,
'logtimezone' => 'MYLOCATION',
'maintenance' => false,
'dbname' => 'DBNAME',
'dbhost' => 'DBHOST',
'dbuser' => 'DBUSER',
'dbpassword' => 'DBPASS,
'trashbin_retention_obligation' => 'auto',
'updater.secret' => 'MORESECRETS',
'theme' => '',
'loglevel' => 2,
);
My apache2 access log has lot’s of NC related PROPFIND and GET entries, but don’t know how much of it is relevant…
The errors in nextcloud.log are the same ones as in Admin > Logging.
Thanks a lot for any insights!