Hey community,
one of my colleagues told me we have a little problem. All shared files/folders are in the root directory and not in the subfolder “Shared” and asked if I happen to know what I did the last two days.
Well for sure I know. I added a new drive for our owncloud data directory, used “rsync -auv --delete /active-cloud-data-dir/ /new-cloud-data-dir” to prepare everything. Then stopped the apache2, enabled maintenance mode, unmounted the active-cloud-data-dir and mounted the new-cloud-data-dir to the old mountpoint to save the hassle with editing stuff in the database etc. Then I turned off maintenance mode and started the apache2. Checked everything and ran an […] occ file:scan --all
Everything seemed fine. Then the question was asked. I’ve tested many things, and new shares are added below /Shared. Now after hours of research I’m turing to the swarm. Is there a method to “rescan” all shares and re-add or move them back to /Shared or do we have to re-share everything in order to accomplish this?
Steps to reproduce
- Share a file/folder → appears in users root directory
- set ‘share_folder’ in config.php to ‘/Shared’
- Shared file/folder still appears in users root directory
- Share a new file/folder → appears in Shared folder
Expected behaviour
All shared files/folders should be in users root directory when ‘share_folder’ is not set, and in subfolder Shared when it is set.
Actual behaviour
Only works on new files/folders when option is set.
Server configuration
Operating system:
Ubuntu 20.04 LTS
Web server:
apache2
Database:
MySQL
PHP version:
7.4
ownCloud version: (see ownCloud admin page)
10.11.0 (production)
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
→ No errors have been found.
The content of config/config.php:
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'passwordsalt' => 'xxxxx',
'datadirectory' => '/srv/owncloud',
'dbtype' => 'mysql',
'version' => '10.11.0.6',
'dbname' => 'xxxxx_owncloud',
'dbhost' => 'xxx.xxx.xxx.xxx',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxx',
'dbpassword' => 'xxxxx',
'installed' => true,
'instanceid' => 'xxxxxb214be4',
'loglevel' => 1,
'maintenance' => false,
'forcessl' => true,
'theme' => '',
'log_type' => 'owncloud',
'logfile' => '/var/log/owncloud.log',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/xxx.xxxxx.xxx/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/xxx.xxxxx.xxx/foreignapps',
'url' => '/foreignapps',
'writable' => true,
),
),
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'xxx.xxx.xxx.xxx',
'mail_smtpport' => 'xxx',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtptimeout' => 30,
'mail_domain' => 'xxxxx.xxx',
'mail_smtpdebug' => false,
'trusted_domains' =>
array (
0 => 'xxx.xxxxx.xxx',
),
'share_folder' => '/Shared',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'mail_from_address' => 'xxxxx-Owncloud',
'trashbin_retention_obligation' => 'auto',
'appstore.experimental.enabled' => true,
'allow_user_to_change_mail_address' => '',
);
List of activated apps:
Enabled:
- activity:
- Version: 2.7.1
- Path: /var/www/daten.intrabit.net/foreignapps/activity
- brute_force_protection:
- Version: 1.2.0
- Path: /var/www/daten.intrabit.net/foreignapps/brute_force_protection
- calendar:
- Version: 2.0.0
- Path: /var/www/daten.intrabit.net/foreignapps/calendar
- comments:
- Version: 0.3.0
- Path: /var/www/daten.intrabit.net/apps/comments
- configreport:
- Version: 0.2.1
- Path: /var/www/daten.intrabit.net/apps/configreport
- contacts:
- Version: 1.5.5
- Path: /var/www/daten.intrabit.net/foreignapps/contacts
- dav:
- Version: 0.7.0
- Path: /var/www/daten.intrabit.net/apps/dav
- external:
- Version: 1.4.0
- Path: /var/www/daten.intrabit.net/apps/external
- federatedfilesharing:
- Version: 0.5.0
- Path: /var/www/daten.intrabit.net/apps/federatedfilesharing
- federation:
- Version: 0.1.0
- Path: /var/www/daten.intrabit.net/apps/federation
- files:
- Version: 1.5.2
- Path: /var/www/daten.intrabit.net/apps/files
- files_mediaviewer:
- Version: 1.0.5
- Path: /var/www/daten.intrabit.net/apps/files_mediaviewer
- files_pdfviewer:
- Version: 1.0.1
- Path: /var/www/daten.intrabit.net/foreignapps/files_pdfviewer
- files_sharing:
- Version: 0.14.0
- Path: /var/www/daten.intrabit.net/apps/files_sharing
- files_texteditor:
- Version: 2.5.1
- Path: /var/www/daten.intrabit.net/foreignapps/files_texteditor
- files_trashbin:
- Version: 0.9.1
- Path: /var/www/daten.intrabit.net/apps/files_trashbin
- files_versions:
- Version: 1.3.0
- Path: /var/www/daten.intrabit.net/apps/files_versions
- files_videoplayer:
- Version: 0.10.1
- Path: /var/www/daten.intrabit.net/apps/files_videoplayer
- firstrunwizard:
- Version: 1.2.0
- Path: /var/www/daten.intrabit.net/apps/firstrunwizard
- gallery:
- Version: 16.1.2
- Path: /var/www/daten.intrabit.net/foreignapps/gallery
- market:
- Version: 0.7.0
- Path: /var/www/daten.intrabit.net/apps/market
- notifications:
- Version: 0.5.4
- Path: /var/www/daten.intrabit.net/apps/notifications
- password_policy:
- Version: 2.1.4
- Path: /var/www/daten.intrabit.net/foreignapps/password_policy
- provisioning_api:
- Version: 0.5.0
- Path: /var/www/daten.intrabit.net/apps/provisioning_api
- systemtags:
- Version: 0.3.0
- Path: /var/www/daten.intrabit.net/apps/systemtags
- templateeditor:
- Version: 0.4.0
- Path: /var/www/daten.intrabit.net/foreignapps/templateeditor
- updatenotification:
- Version: 0.2.1
- Path: /var/www/daten.intrabit.net/apps/updatenotification
- user_external:
- Version: 0.6.0
- Path: /var/www/daten.intrabit.net/apps/user_external
Disabled:
- encryption:
- Path: /var/www/daten.intrabit.net/apps/encryption
- files_external:
- Path: /var/www/daten.intrabit.net/apps/files_external
Are you using encryption: no
Hope the provided informations are sufficient.
Thx for your time reading to the end.
I hope someone will have a hint what to do. Have a nice day,
Andreas