Nextcloud version (eg, 20.0.5): 25.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): 8.1
The issue you are facing:
I migrated my data folder to aws s3 objectstorage and using it as main storage for all of my files.
Since then I am not able to share files and folders. It doesn’t matter if its an existing file or a new uploaded one.
I either get the message “Error Creating Share” or “Link Copied” without actually copying the link to my clipboard. Regardless of the response I can see the the created share in my database oc_share. When I try using the link domain.com/s/{token} it always says it couldn’t finde the share and it may have expired.
I also tried sharing a folder or file with another user und my server directly which results in the same issue.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- Use S3 as primary storage
- try sharing a file or folder
The output of your Nextcloud log in Admin > Logging:
No log generated here
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '****',
'passwordsalt' => '*****',
'secret' => '*****',
'trusted_domains' =>
array (
0 => 'domain.com',
1 => 'domain.com',
),
'datadirectory' => '/home/owncloud/data',
'objectstore' =>
array (
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'bucket' => '*****',
'autocreate' => false,
'key' => '*****',
'secret' => '****,
'use_ssl' => true,
'region' => 'eu-central-1',
'uploadPartSize' => 104857600,
),
),
'overwrite.cli.url' => 'https://comain.com',
'dbtype' => 'mysql',
'version' => '25.0.1.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => '*****',
'dbpassword' => '******',
'logtimezone' => 'Europe/Berlin',
'log_query' => false,
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_from_address' => 'no-reply',
'mail_domain' => 'domain.com',
'theme' => '',
'maintenance' => false,
'loglevel' => 3,
'debug' => false,
'trashbin_retention_obligation' => 'auto',
'log_rotate_size' => 104857600,
'enable_previews' => true,
'preview_max_x' => NULL,
'preview_max_y' => NULL,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\MP3',
1 => 'OC\\Preview\\TXT',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2007',
),
'forcessl' => true,
'htaccess.RewriteBase' => '/',
'updatechecker' => false,
'singleuser' => false,
'mysql.utf8mb4' => true,
'mail_smtphost' => 'localhost',
'mail_sendmailmode' => 'smtp',
'mail_smtpport' => '25',
'updater.release.channel' => 'stable',
'default_phone_region' => 'DE',
);
The output of your Apache/nginx/system log in /var/log/____
:
Nope Nothing
Error Log from Safari Console
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (538087, line 0)
https://domain.com/remote.php/dav/systemtags-relations/files/538087
https://domain.com/remote.php/dav/comments/files/538087
https://domain.com/ocs/v2.php/apps/files_sharing/api/v1/shares in ShareRequests.js:62
Any help is much appreciated.