Any share has break to access files

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Archlinux - Kernel: 5.17.9-arch1-1
Apache or nginx version (eg, Apache 2.4.25): nginx/1.20.2
PHP version (eg, 7.4): PHP 8.1.6 (cli) (built: May 15 2022 06:10:08) (NTS)

The issue you are facing:
Share work well on V24.0.6, since upgrade to V25.0.1 (and next minor)
For any share, i get error to see/access files
With examples and screenshots :
Here, share between to users of my instance


(same issue if add/del some right(s) )

Log on nginx :

ip.of.request - - [05/Jan/2023:10:10:49 +0100] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 304 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:53 +0100] “GET /apps/files/?dir=/Share/InstantUpload/Pictures&fileid=498216 HTTP/2.0” 200 15752 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:53 +0100] “GET /apps/integration_whiteboard/css/style.css?v=1b123539-1 HTTP/2.0” 404 20 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:54 +0100] “GET /ocs/v2.php/search/providers?from=%2Fapps%2Ffiles%2F%3Fdir%3D%2FShare%2FInstantUpload%2FPictures%26fileid%3D498216 HTTP/2.0” 200 334 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 1183 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “GET /apps/files_sharing/api/externalShares HTTP/2.0” 200 22 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “PROPFIND /remote.php/dav/files/username/Share/InstantUpload/Pictures HTTP/2.0” 207 813 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “GET /ocs/v2.php/apps/text/workspace?path=%2FShare%2FInstantUpload%2FPictures HTTP/2.0” 404 142 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “GET /apps/recommendations/api/recommendations HTTP/2.0” 200 342 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “GET /apps/files/ajax/getstoragestats?dir=%2FShare%2FInstantUpload%2FPictures HTTP/2.0” 200 234 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:10:56 +0100] “GET /core/preview?fileId=498228&c=35b8eb32d2cc72ef3353e0aad5a1f334&x=250&y=250&forceIcon=0&a=0 HTTP/2.0” 404 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:11:01 +0100] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 304 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”

After, on detail via app metadata, i get exif informations about picture… i can’t see it and i can get metadata…

no log on nextcloud.log except if remove all right (view-only mode) and get this error :

==> /path/data/nextcloud.log <==

{“reqId”:“W9aGdUg5KeSfW6h8SLwr”,“level”:3,“time”:“2023-01-05T09:05:04+00:00”,“remoteAddr”:“ip”,“user”:“username”,“app”:“webdav”,“method”:“GET”,“url”:“/remote.php/dav/files/username/Share/InstantUpload/Pictures/1665417891919.jpg”,“message”:“Access to this resource has been denied because it is in view-only mode.”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”,“version”:“25.0.2.3”,“exception”:{“Exception”:“OCA\DAV\Connector\Sabre\Exception\Forbidden”,“Message”:“Access to this resource has been denied because it is in view-only mode.”,“Code”:0,“Trace”:[{“file”:“/path/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“checkViewOnly”,“class”:“OCA\DAV\DAV\ViewOnlyPlugin”,“type”:“->”},{“file”:“/path/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/path/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:253,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/path/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:321,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/path/apps/dav/lib/Server.php”,“line”:360,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/path/apps/dav/appinfo/v2/remote.php”,“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/path/remote.php”,“line”:171,“args”:[“/path/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/path/apps/dav/lib/DAV/ViewOnlyPlugin.php”,“Line”:96,“message”:“Access to this resource has been denied because it is in view-only mode.”,“exception”:{},“CustomMessage”:“Access to this resource has been denied because it is in view-only mode.”}}

If create share link(folder or file) :
Same case

Log on nginx (no log on nextcloud.log) :

ip.of.request - - [05/Jan/2023:10:18:42 +0100] “GET /s/zk6zdeKMkJrNLJJ HTTP/2.0” 200 10138 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:18:42 +0100] “GET /apps/integration_whiteboard/css/style.css?v=1b123539-1 HTTP/2.0” 404 20 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - zk6zdeKMkJrNLJJ [05/Jan/2023:10:18:43 +0100] “PROPFIND /public.php/webdav/ HTTP/2.0” 207 967 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:18:43 +0100] “GET /apps/files_sharing/publicpreview/zk6zdeKMkJrNLJJ?file=/&fileId=498228&x=1874&y=1007&a=true HTTP/2.0” 404 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0)
Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:18:43 +0100] “GET /s/zk6zdeKMkJrNLJJ/download?path=&files= HTTP/2.0” 200 1399827 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:19:03 +0100] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 470 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”

not only for picture : break video/music/etc

same issue on nextcloud app (tested on android only)
if share picture on talk room : same issue, picture can’t be see
Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. create share : internal or link
  2. for user, test to open file or open link
  3. see error to load it

The output of your Nextcloud log in Admin > Logging:

See top

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'SENSITIVE',
  'passwordsalt' => 'SENSITIVE',
  'secret' => 'SENSITIVE',
  'trusted_domains' => 
  array (
    0 => 'SENSITIVE',
    1 => 'www.SENSITIVE',
  ),
  'datadirectory' => '/path/SENSITIVE',
  'dbtype' => 'mysql',
  'version' => '25.0.3.2',
  'overwrite.cli.url' => 'https://SENSITIVE',
  'overwriteprotocol' => 'https',
  'dbname' => 'SENSITIVE',
  'dbhost' => 'SENSITIVE',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'SENSITIVE',
  'dbpassword' => 'SENSITIVE',
  'installed' => true,
  'default_locale' => 'SENSITIVE',
  'default_phone_region' => 'SENSITIVE',
  'app_install_overwrite' => 
  array (
    0 => 'caniupdate',
    1 => 'ocsms',
    2 => 'socialsharing_email',
    3 => 'drawio',
    4 => 'integration_whiteboard',
  ),
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'SENSITIVE',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'SENSITIVE',
  'mail_smtpport' => 'SENSITIVE',
  'mail_smtpname' => 'SENSITIVE',
  'mail_smtppassword' => 'SENSITIVE',
  'mail_from_address' => 'SENSITIVE',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'trashbin_retention_obligation' => 'auto',
);

The output of your Apache/nginx/system log in /var/log/____:

see top

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

see top

If set permission “Hide Download” :

If put ok loop on error message and top tab : no reactions

log of nginx (no nextcloud.log) :

ip.of.request - - [05/Jan/2023:10:24:54 +0100] “GET /s/zk6zdeKMkJrNLJJ HTTP/2.0” 200 9649 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:54 +0100] “GET /apps/integration_whiteboard/css/style.css?v=1b123539-1 HTTP/2.0” 404 20 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - zk6zdeKMkJrNLJJ [05/Jan/2023:10:24:55 +0100] “PROPFIND /public.php/webdav/ HTTP/2.0” 207 967 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:55 +0100] “GET /apps/richdocumentscode/proxy.php?status HTTP/2.0” 200 35 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:56 +0100] “GET /apps/richdocuments/public?shareToken=zk6zdeKMkJrNLJJ&fileName=1665417891919.jpg&requesttoken=Oa9lO06F3rscTjK0I%2BmU45DvU%2BZu2q0Zyww3rOmpkaA%3D%3AUPosYzbwlo9bD2XNedzf0N2HNpwfg5Rbm3kYw93AwdM%3D&fileId=%7BfileId%7D HTTP/2.0” 200 10247 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:56 +0100] “GET /apps/files_sharing/publicpreview/zk6zdeKMkJrNLJJ?file=/&fileId=498228&x=1874&y=1007&a=true HTTP/2.0” 404 2 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:56 +0100] “GET /s/zk6zdeKMkJrNLJJ/download?path=&files= HTTP/2.0” 200 1399827 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:56 +0100] “GET /apps/richdocumentscode/proxy.php?status HTTP/2.0” 200 35 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:56 +0100] “POST /apps/richdocumentscode/proxy.php?req=/browser/a4b9c74/cool.html?WOPISrc=https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4&title=1665417891919.jpg&lang=en&closebutton=1&revisionhistory=1 HTTP/2.0” 200 9142 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:56 +0100] “POST /apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4%3Faccess_token%3DlO8L3WmQH1GCSnC3M5VpWegAhW8NRVjE%26access_token_ttl%3D1672946696000/ws?WOPISrc=https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4&compat=/ws/open/open/0 HTTP/2.0” 200 32 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:57 +0100] “POST /apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4%3Faccess_token%3DlO8L3WmQH1GCSnC3M5VpWegAhW8NRVjE%26access_token_ttl%3D1672946696000/ws?WOPISrc=https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4&compat=/ws/d87c1fc75455ca06a82c521deb283fd8/write/2 HTTP/2.0” 400 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:57 +0100] “POST /apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4%3Faccess_token%3DlO8L3WmQH1GCSnC3M5VpWegAhW8NRVjE%26access_token_ttl%3D1672946696000%26permission%3Dedit/ws?WOPISrc=https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4&compat=/ws/open/open/0 HTTP/2.0” 200 32 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:24:57 +0100] “POST /apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4%3Faccess_token%3DlO8L3WmQH1GCSnC3M5VpWegAhW8NRVjE%26access_token_ttl%3D1672946696000%26permission%3Dedit/ws?WOPISrc=https%3A%2F%2Fndddotcom%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F498228_oc86iehatdi4&compat=/ws/4eed9c1cba8b851dbfa9db6b6ff14ca3/write/4 HTTP/2.0” 400 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:25:03 +0100] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 547 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”
ip.of.request - - [05/Jan/2023:10:25:08 +0100] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 304 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0”

How i can determine that :
I work on VM, i have clone my VM to create “preprod VM”

I don’t have modify any config (php/mysql/etc)
I have move my folder where is installed nextcloud to -old (mv folder folder-old)
I have download last nextcloud installer on nextcloud.com (b2z file)
I have tar zxvf on previous path
chown http:http /path/to/folder -R
I have create new table on my mysql server (I use same user and pwd for this test)
and I have follow webui installer to build nextcloud server => share link work on it <<

I have enabled all app on my prod server : always work

I have edited config.php for add similar “tweak” on it for get same config.php (except salt/secret/etc)

How i can determine the issue for you ?
Can be linked on nextcloud Server (after major upgrade ?)
Mysql can linked for that; true ?
data are not used with new install of nextcloud
my data are used with folder actually moved to folder-old

I will revert this change on this preprod server when i have little time for that :
mv folder to folder-ok
mv folder-old to folder
and check if any change… (not possible at this time)

Previously posted on github : [Bug]: any share has break to access files · Issue #36013 · nextcloud/server · GitHub

Because, for me, its linked to upgrade V24.x.y to V25.x.y
After check, can be locally on my server only (explain previous post, deploy V25 on folder and share work)

How can debug and find root cause ? (Log aren’t verbose for this issue on debug mode :confused: )

If possible, I search to keep my server, no install new and migrste on it (or good doc about that ?)

Thank yoi for help/support/suggest/idea

Eric.