fseek(): stream does not support seeking at *** with S3
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
- Use CEPH S3 storage
- 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
cc @icewind1991 @rullzer
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.
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 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.
@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 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?
@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
Same problem on NX 14.0.0 - I am facing this issue when I am syncing files via Windows Client.
Same issue on NC 15. I can provide logs if that can help.
@MorrisJobke @icewind1991 Hi. Is this issue fixed by https://github.com/nextcloud/server/pull/13866?
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
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.
Same here, using Amazon S3
I see this also using Minio S3 Server in 15.0.5
cc @rullzer
Same here, ceph backend with 15.0.7
Getting the same error on Wasabi Object Storage as primary storage with 15.0.7
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
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
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)