server icon indicating copy to clipboard operation
server copied to clipboard

fseek(): stream does not support seeking at *** with S3

Open tomtomas99911 opened this issue 8 years ago • 35 comments

Hi, i have problem with Nextcloud and S3 based on CEPH. When I am accessing some files (e.g. *jpg) I am getting this error : "fseek(): stream does not support seeking at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#74"

Is there any way to repair it please?

Steps to reproduce

  1. Use CEPH S3 storage
  2. Set S3 as a primary storage

Server configuration

Operating system: Debian 9

Web server: Apache 2 Database: Percona DB PHP version: 7 Nextcloud version: (see Nextcloud admin page) Nextcloud 13 Updated from an older Nextcloud/ownCloud or fresh install: Fresh install

Are you using external storage, if yes which one: S3

Are you using encryption: NO

Are you using an external user-backend, if yes which one: NO

tomtomas99911 avatar Feb 09 '18 10:02 tomtomas99911

cc @icewind1991 @rullzer

MorrisJobke avatar Feb 09 '18 15:02 MorrisJobke

I am having the same problem when using S3 as primary storage. fseek(): stream does not support seeking at /var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#74 is coming up repeatly in my log. However, I haven't encounter failure in opening the file.

dnwk avatar Feb 12 '18 19:02 dnwk

Could you check with the upcoming 13.0.3. We updated quite some code in the object storage and filesystem part.

If this is then still not resolved, we could reopen the ticket again and check what's going on here.

MorrisJobke avatar May 31 '18 14:05 MorrisJobke

@MorrisJobke Hi, sorry to re-open this issue. I'm using Nextcloud version13.0.4 and I can see this issue in my log: fseek(): stream does not support seeking at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#74. This only happens when I open a video in my external, not encrypted S3 storage.

C439 avatar Jul 10 '18 19:07 C439

@icewind1991 Could it be that the stream actually does not support it?

@C439 What storage do you use? Is this the real Amazon S3 or just another product hosted somewhere or something like minio on own servers?

MorrisJobke avatar Jul 11 '18 06:07 MorrisJobke

@MorrisJobke I'm using DigitalOcean Spaces, it's similar to S3.

Unrelated but another issue I have is that I first used decryption on the storage and then disabled it, this results in error messages like "OC\Encryption\Exceptions\DecryptionFailedException: Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you." and "Couldn't re-calculate unencrypted size for files_versions/directory". These files don't exist anymore. Can I fix this somehow?

C439 avatar Jul 11 '18 12:07 C439

@MorrisJobke I Can confirm this behavior when using S3 as Primary Storage and watch a video on web interface. The video plays ok, but log this. fseek(): stream does not support seeking at /var/www/html/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#74

Gmognon avatar Aug 11 '18 19:08 Gmognon

Same problem on NX 14.0.0 - I am facing this issue when I am syncing files via Windows Client.

tomtomas99911 avatar Oct 02 '18 14:10 tomtomas99911

Same issue on NC 15. I can provide logs if that can help.

HLFH avatar Jan 22 '19 13:01 HLFH

@MorrisJobke @icewind1991 Hi. Is this issue fixed by https://github.com/nextcloud/server/pull/13866?

HLFH avatar Feb 08 '19 14:02 HLFH

I'm using 15.0.4 which includes #13866 and I'm still seeing the issue in the logs:

fseek(): stream does not support seeking at /var/www/html/3rdparty/icewind/streams/src/Wrapper.php

koehn avatar Feb 11 '19 23:02 koehn

I am also still seeing this issue in 15.0.5 using S3 (digital ocean) as primary backend. Specifically, it prevents all functioning of the collabora plugin on my server.

ghost avatar Mar 15 '19 15:03 ghost

Same here, using Amazon S3

helge000 avatar Mar 19 '19 11:03 helge000

I see this also using Minio S3 Server in 15.0.5

torbenschinke avatar Mar 20 '19 16:03 torbenschinke

cc @rullzer

MorrisJobke avatar Mar 20 '19 18:03 MorrisJobke

Same here, ceph backend with 15.0.7

jothoma1 avatar Apr 26 '19 16:04 jothoma1

Getting the same error on Wasabi Object Storage as primary storage with 15.0.7

neckos avatar May 13 '19 10:05 neckos

Same issue with 15.0.7 on a Synology NAS when using the Nextcloud app with audio or video files from external storage (secured webdav on the same machine). To use this are there special requirements for the transmission protocol (e.g. ftp, sftp, unsecured webdav) or is there a php module which needs to be enabled? Thanks and Kind regards, Tom

Tost69 avatar May 16 '19 20:05 Tost69

Same issue with 16.0.1 using S3 storage backed by a Ceph RGW gateway. It seems to be happening with MOV's and PNG's for me. This occurrs during download sync.

[PHP] Error: fseek(): stream does not support seeking at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#82 GET /remote.php/dav/files/.../IMG_7495.MOV

Thanks Alex

alexgreenshift avatar May 20 '19 07:05 alexgreenshift

I have same issue when trying to move / copy / delete text files in my folder, which is a external file share from another NC server.

It looks like a general issue with external_files regardless of share type (NC, ftp, webdav etc)

zocker-160 avatar Jun 04 '19 19:06 zocker-160