Skip to content
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

Share links not working from SMB storage #4673

Closed
chrisbeardy opened this issue May 3, 2017 · 17 comments
Closed

Share links not working from SMB storage #4673

chrisbeardy opened this issue May 3, 2017 · 17 comments

Comments

@chrisbeardy
Copy link

When issuing a share link from a file or folder that is located on a SMB external storage, a user is presented with the following error message when following the link:

File not found
The specified document has not been found on the server.
You can click here to return to Nextcloud.

The error only occurs when sharing a file located on SMB storage, share link can be created if the file is located locally on server.

Steps to reproduce

  1. Share a file that is located on a SMB share using 'Share Link'.
  2. Follow link and enter password if required
    3.See error message

Expected behaviour

When following link, should see page to download file.

Actual behaviour

Error Message

File not found
The specified document has not been found on the server.
You can click here to return to Nextcloud.

Server configuration

Operating system:
Ubuntu VM

Nextcloud version: (see Nextcloud admin page)
11

Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
techandme VM

Are you using external storage, if yes which one: local/smb/sftp/...
SMB

Are you using encryption: yes/no
NO

Client configuration

Browser:
Chrome
Operating system:
Win 10

@MorrisJobke
Copy link
Member

@chrisbeardy How is the SMB storage mounted?

@chrisbeardy
Copy link
Author

I used the browser to add the storage as the picture below.

image

It appears in the files as seen below
image

Is this what you meant?

@MorrisJobke
Copy link
Member

Is this what you meant?

Yes. Just wanted to be sure, that the username and password is actually configured and not the sessions username and password feature is used (because then the above behaviour would be the only possible).

@icewind1991 @schiessle @rullzer Ideas?

@github-tomster
Copy link

github-tomster commented May 5, 2017

unfortunately i have to confirm this error on my setup.
smb share to a folder (not the root of a drive, i have seen that issue).
i jumped on the nextcloud train with a fresh install from techandme.se
before i had an owncloud 8 with the very same share and no issues like this. :-(

@MorrisJobke
Copy link
Member

cc @schiessle @rullzer @icewind1991 sharing issue with external storage, any idea?

@MorrisJobke
Copy link
Member

@chrisbeardy @github-tomster Do you have any chance to test the Nextcloud 12 beta 3 for this issue?

@rullzer
Copy link
Member

rullzer commented May 17, 2017

Let me see if this happens for me as well

@rullzer
Copy link
Member

rullzer commented May 17, 2017

Doesn't happen for me...
@chrisbeardy do you logs show anything?

@chrisbeardy
Copy link
Author

I attempted again to share a link from SMB and can still see the problem, after generating the link and then trying to access it, the log does not register any event after the error.

I have practical work around at minute, involving copying the file to a location not stored on SMB but this is not ideal.

Still on V11, trying 12 beta 3 as developer is not a good idea for me, I am not able to get involved with this really, not my programming area. (I know that does not seem helpful).

@github-tomster
Copy link

actually it is not possible to reproduce the error: 'storage not available' or 'File not found'.
though the machine NC is installed on had several updates the last days.
among these updates there was: apache2-data:amd64 (2.4.18-2ubuntu3.1, 2.4.18-2ubuntu3.2)
maybe that was relevant?

@github-tomster
Copy link

github-tomster commented May 24, 2017

ok. as right now i tried again.
and it seems more than strange i try to describe
logged in with admin accound,
checked the external smb storage
it states green so i guess it is mounted correctly.
calling the share-link
site builds up and says: file not found.
went back on the admin-login to check the file.
calling files home,
clicking the name of the external storage
an it tells me i dont have permission to upload files here.
since i just clicked the folder i expected to see the content. confusing.
right after that i checked the logs,
guess what: no entry!
checking the apache2 log just reveals a 404

on the machine holding the share i can see an successful security eventlog entry.

refreshing the browser-window with the admin login leads to
correct acces to the files again. and refreshing the link window
on the testing remote machine accessing the shared link can access it now.

EDiT 8hrs later:
meanwhile i have made and update to NC12
and lucky me has some error log entries now!
Can't find smbclient binary in path
{"reqId":"G2grc1DPuq01OMi6f5dt","level":3,"time":"2017-05-24T16:45:01+00:00","remoteAddr":"","user":"--","app":"files","method":"--","url":"--","message":"Exception: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\DependencyException\",\"Message\":\"Can't find smbclient binary in path\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(86): Icewind\\\\SMB\\\\Share->getConnection()\\n#1 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(368): Icewind\\\\SMB\\\\Share->connect()\\n#2 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php(139): Icewind\\\\SMB\\\\Share->execute('allinfo \\\"\\\\\\\\_MOVi...')\\n#3 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(134): Icewind\\\\SMB\\\\Share->stat('\\\/_SMBSHARE\\\/2015-0...')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(419): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo('\\\/_SMBSHARE\\\/2015-0...')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(106): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->filetype('_SMBSHARE\\\/2015-04...')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(140): OC\\\\Files\\\\Storage\\\\Common->is_dir('_SMBSHARE\\\/2015-04...')\\n#7 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(160): OC\\\\Files\\\\Storage\\\\Common->isCreatable('_SMBSHARE\\\/2015-04...')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(657): OC\\\\Files\\\\Storage\\\\Common->getPermissions('_SMBSHARE\\\/2015-04...')\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(577): OC\\\\Files\\\\Storage\\\\Common->getMetaData('_SMBSHARE\\\/2015-04...')\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Availability.php(460): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getMetaData('_SMBSHARE\\\/2015-04...')\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(577): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->getMetaData('_SMBSHARE\\\/2015-04...')\\n#12 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(113): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getMetaData('_SMBSHARE\\\/2015-04...')\\n#13 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(152): OC\\\\Files\\\\Cache\\\\Scanner->getData('_SMBSHARE\\\/2015-04...')\\n#14 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(322): OC\\\\Files\\\\Cache\\\\Scanner->scanFile('_SMBSHARE\\\/2015-04...', 3, -1, NULL, true)\\n#15 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(497): OC\\\\Files\\\\Cache\\\\Scanner->scan('_SMBSHARE\\\/2015-04...', 2, 3)\\n#16 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(508): OC\\\\Files\\\\Cache\\\\Scanner->OC\\\\Files\\\\Cache\\\\{closure}()\\n#17 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(498): OC\\\\Files\\\\Cache\\\\Scanner->runBackgroundScanJob(Object(Closure), '_SMBSHARE\\\/2015-04...')\\n#18 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Utils\\\/Scanner.php(175): OC\\\\Files\\\\Cache\\\\Scanner->backgroundScan()\\n#19 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files\\\/lib\\\/BackgroundJob\\\/ScanFiles.php(88): OC\\\\Files\\\\Utils\\\\Scanner->backgroundScan('')\\n#20 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files\\\/lib\\\/BackgroundJob\\\/ScanFiles.php(112): OCA\\\\Files\\\\BackgroundJob\\\\ScanFiles->runScanner(Object(OC\\\\User\\\\User))\\n#21 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/BackgroundJob\\\/Job.php(59): OCA\\\\Files\\\\BackgroundJob\\\\ScanFiles->run(NULL)\\n#22 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/BackgroundJob\\\/TimedJob.php(54): OC\\\\BackgroundJob\\\\Job->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\Log))\\n#23 \\\/var\\\/www\\\/nextcloud\\\/cron.php(124): OC\\\\BackgroundJob\\\\TimedJob->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\Log))\\n#24 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Share.php\",\"Line\":60}","userAgent":"--","version":"12.0.0.29"}

@github-tomster
Copy link

ok, here i am again.
i have found: https://docs.nextcloud.com/server/11/admin_manual/configuration_files/external_storage/smb.html
there it states:
The SMB/CIFS backend requires smbclient or the PHP smbclient module to be installed on the Nextcloud server. The PHP smbclient module is preferred, but either will work. These should be included in any Linux distribution. (See PECL smbclient if your distro does not include them.)
to me this reads either smbclient OR and not AND php-smbclient-module.
on the machine was no smbclient package installed. now it is.
as expected the errors: "Can't find smbclient binary in path\" are gone now.
i will report back if the shares are always available from now on.

@github-tomster
Copy link

github-tomster commented May 27, 2017

well not working here on my setup!

what i did:
shared a folder yesterday.
went on a remote machine
inserted the link
entered the password
see the folder
marked one file (6.2GB)
klicked 'download'
waiting for data
save as window pops up showing 5kb file download
i clicked ok anyways
i am being presentet the error: file not found!
F5 no help
Ctrl+F5 also no help
here is the syslog:
May 27 11:23:03 nc pound: 10.0.0.1 GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.248 sec May 27 11:23:07 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V/authenticate HTTP/1.1 - HTTP/1.1 303 See Other (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.091 sec May 27 11:23:07 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 404 Not Found (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.133 sec May 27 11:23:08 nc pound: 212.xxx.xxx.xxx GET /core/js/oc.js?v=c6d086c7d5535b358d2b0f6646de27eb HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.074 sec May 27 11:23:09 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V/authenticate HTTP/1.1 - HTTP/1.1 303 See Other (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.100 sec May 27 11:23:10 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 404 Not Found (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.124 sec May 27 11:23:10 nc pound: 212.xxx.xxx.xxx GET /core/js/oc.js?v=c6d086c7d5535b358d2b0f6646de27eb HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.073 sec May 27 11:23:11 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V/authenticate HTTP/1.1 - HTTP/1.1 303 See Other (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.091 sec May 27 11:23:11 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 404 Not Found (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.144 sec May 27 11:23:11 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V/authenticate HTTP/1.1 - HTTP/1.1 303 See Other (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.101 sec May 27 11:23:11 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 404 Not Found (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.103 sec May 27 11:23:11 nc pound: 212.xxx.xxx.xxx GET /core/js/oc.js?v=c6d086c7d5535b358d2b0f6646de27eb HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.071 sec May 27 11:23:14 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 404 Not Found (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.138 sec May 27 11:23:14 nc pound: 212.xxx.xxx.xxx GET /core/vendor/select2/select2.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.003 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/files_pdfviewer/css/style.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/css/jquery-ui-fixes.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/files_versions/css/versions.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.003 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/vendor/jquery-ui/themes/base/jquery-ui.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.004 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/files_videoplayer/css/style.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.006 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/css/jquery.ocdialog.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/search/js/search.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.003 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /css/core/server.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.130 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/js/oc.js?v=c6d086c7d5535b358d2b0f6646de27eb HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.122 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/vendor/core.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.166 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/files_pdfviewer/js/previewplugin.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/files_videoplayer/js/viewer.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.011 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/js/jquery-ui-fixes.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /js/core/merged-template-prepend.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.253 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /css/core/share.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.307 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/js/files/fileinfo.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/js/files/client.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /js/core/merged-share-backend.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.284 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/js/contactsmenu.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/theming/styles?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.067 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /apps/theming/js/theming?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.089 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/fonts/OpenSans-Regular.woff HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/fonts/OpenSans-Semibold.woff HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.027 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/img/logo.svg?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:15 nc pound: 212.xxx.xxx.xxx GET /core/img/background.jpg?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.099 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 303 See Other (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.107 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V/authenticate HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.100 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/vendor/select2/select2.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /apps/files_pdfviewer/css/style.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/vendor/jquery-ui/themes/base/jquery-ui.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/css/jquery-ui-fixes.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.003 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /apps/files_versions/css/versions.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /apps/files_videoplayer/css/style.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/css/jquery.ocdialog.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /apps/files_sharing/css/authenticate.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/search/js/search.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /css/core/server.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.112 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /apps/files_pdfviewer/js/previewplugin.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /css/core/share.css?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.157 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /apps/files_videoplayer/js/viewer.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/js/jquery-ui-fixes.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/js/files/fileinfo.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:28 nc pound: 212.xxx.xxx.xxx GET /core/js/files/client.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/js/contactsmenu.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /apps/files_sharing/js/authenticate.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /js/core/merged-template-prepend.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.193 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/img/favicon.ico HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /js/core/merged-share-backend.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.213 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/js/oc.js?v=c6d086c7d5535b358d2b0f6646de27eb HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.325 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /apps/theming/styles?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.145 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /apps/theming/js/theming?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.172 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/vendor/core.js?v=c6d086c7d5535b358d2b0f6646de27eb-4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.506 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/fonts/OpenSans-Regular.woff HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.003 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/img/logo.svg?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.002 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/img/actions/confirm.svg?v=2 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.001 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/fonts/OpenSans-Light.woff HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.056 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/img/background.jpg?v=4 HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.076 sec May 27 11:23:29 nc pound: 212.xxx.xxx.xxx GET /core/fonts/OpenSans-Semibold.woff HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.147 sec May 27 11:23:33 nc pound: 10.0.0.1 GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.105 sec May 27 11:23:39 nc pound: 212.xxx.xxx.xxx POST /s/8CPRpRGS0se5o2V/authenticate HTTP/1.1 - HTTP/1.1 303 See Other (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.374 sec May 27 11:23:39 nc pound: 212.xxx.xxx.xxx GET /s/8CPRpRGS0se5o2V HTTP/1.1 - HTTP/1.1 404 Not Found (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.099 sec May 27 11:23:39 nc pound: 212.xxx.xxx.xxx GET /core/js/oc.js?v=c6d086c7d5535b358d2b0f6646de27eb HTTP/1.1 - HTTP/1.1 200 OK (mynextcloud.domain/nextCloud -> 127.0.0.1:80) 0.072 sec

that is the nextcloud.log
{"reqId":"kJQKoYJMss6r2DDonpBW","level":3,"time":"2017-05-27T09:21:49+00:00","remoteAddr":"127.0.0.1","user":"--","app":"no app in context","method":"GET","url":"\/s\/8CPRpRGS0se5o2V\/download?path=%2F&files=file.datv&downloadStartSecret=0nhjorl4x7f","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"\\\/_SMBSHARE\\\/file.dat\",\"Code\":110,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(294): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->fopen('_SMBSHARE\\\/file.dat', 'r')\\n#1 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Availability.php(318): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->fopen('_SMBSHARE\\\/file.dat', 'r')\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(294): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->fopen('_SMBSHARE\\\/file.dat', 'r')\\n#3 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_accesscontrol\\\/lib\\\/StorageWrapper.php(308): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->fopen('_SMBSHARE\\\/file.dat', 'r')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(1130): OCA\\\\FilesAccessControl\\\\StorageWrapper->fopen('_SMBSHARE\\\/file.dat', 'r')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(971): OC\\\\Files\\\\View->basicOperation('fopen', '\\\/_SMBSHARE\\\/file.dat', Array, 'r')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(432): OC\\\\Files\\\\View->fopen('\\\/_SMBSHARE\\\/file.dat', 'r')\\n#7 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/files.php(308): OC\\\\Files\\\\View->readfile('\\\/_SMBSHARE\\\/file.dat')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/files.php(120): OC_Files::getSingleFile(Object(OC\\\\Files\\\\View), '\\\/_SMBSHARE\\\/file.dat', 'file.dat', Array)\\n#9 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_sharing\\\/lib\\\/Controller\\\/ShareController.php(530): OC_Files::get('\\\/_SMBSHARE\\\/file.dat', 'file.dat', Array)\\n#10 [internal function]: OCA\\\\Files_Sharing\\\\Controller\\\\ShareController->downloadShare('8CPRpRGS0se5o2V', 'file.dat', '\\\/', '0nhjorl4x7f')\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(160): call_user_func_array(Array, Array)\\n#12 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(90): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files_Sharing\\\\Controller\\\\ShareController), 'downloadShare')\\n#13 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(114): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files_Sharing\\\\Controller\\\\ShareController), 'downloadShare')\\n#14 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/public\\\/AppFramework\\\/App.php(136): OC\\\\AppFramework\\\\App::main('ShareController', 'downloadShare', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#15 \\\/var\\\/www\\\/nextcloud\\\/core\\\/routes.php(129): OCP\\\\AppFramework\\\\App->dispatch('ShareController', 'downloadShare')\\n#16 [internal function]: OC\\\\Route\\\\Router->{closure}(Array)\\n#17 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(299): call_user_func(Object(Closure), Array)\\n#18 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(1000): OC\\\\Route\\\\Router->match('\\\/s\\\/8CPRpRGS0se5...')\\n#19 \\\/var\\\/www\\\/nextcloud\\\/index.php(40): OC::handleRequest()\\n#20 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php\",\"Line\":359}","userAgent":"Mozilla\/5.0","version":"12.0.0.29"}
EDiT#1:
i also found the php error:
fread(): \Icewind\SMB\NativeStream::stream_read - read -8193 bytes more data than requested (-1 read, 8192 max) - excess data will be lost at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#83

EDiT#2:
when i try to access the share a couple of minutes after that, it works...

what logs would be helpful also?

@chrisbeardy
Copy link
Author

Update to this, been a while, I seem to be able to share now but I too get a lot of php errors constantly forming:

fread(): \Icewind\SMB\NativeStream::stream_read - read -8193 bytes more data than requested (-1 read, 8192 max) - excess data will be lost at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#83

@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2019

Update to this, been a while, I seem to be able to share now but I too get a lot of php errors constantly forming:

It's been a bigger while now, do you still have those errors? :)

@stale stale bot removed the stale Ticket or PR with no recent activity label Jun 6, 2019
@skjnldsv skjnldsv added 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info labels Jun 6, 2019
@chrisbeardy
Copy link
Author

It's been a bigger while now, do you still have those errors? :)

This problem seems have disappeared for me, I'm now working on Nextcloud 15 upgraded after installing a techandme.se VM. Currently touches wood flawless NC install...

@kesselb
Copy link
Contributor

kesselb commented Jun 6, 2019

Thanks for your feedback 👍

@kesselb kesselb closed this as completed Jun 6, 2019
@skjnldsv skjnldsv removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info labels Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants