Repository navigation
[S3] fclose(): supplied resource is not a valid stream resource #28496
Copy link
Copy link
Closed
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofbugfeature: object storage
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Looks similar to #23373
Steps to reproduce
- Go to web UI
- upload a somehow big file, bigger than the chunk size that is by default 10MB, so for instance 100MB
Expected behaviour
There shouldn't be errors in the nextcloud.log
Actual behaviour
There are errors.
Server configuration
Nextcloud version: 20.0.11
Where did you install Nextcloud from: docker
Are you using external storage, if yes which one: ceph rados gateway / s3 compatible
Are you using encryption: no
Logs
Nextcloud log (data/nextcloud.log)
Nextcloud log
{
"reqId":"RgbGEzK8IUMkYzSQjFY3",
"level":3,
"time":"2021-08-18T07:42:32+00:00",
"remoteAddr":"49.12.19.171",
"user":"admin",
"app":"PHP",
"method":"PUT",
"url":"/remote.php/dav/uploads/admin/web-file-upload-761e5de13b91cf0c4ab6f34b6164e593-1629271135519/754974720",
"message":{
"Exception":"Error",
"Message":"fclose(): supplied resource is not a valid stream resource at /usr/src/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#132",
"Code":0,
"Trace":[
{
"function":"onError",
"class":"OC\\Log\\ErrorHandler",
"type":"::",
"args":[
2,
"fclose(): supplied resource is not a valid stream resource",
"/usr/src/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",
132,
[
]
]
},
{
"file":"/usr/src/nextcloud/3rdparty/icewind/streams/src/Wrapper.php",
"line":132,
"function":"fclose",
"args":[
null
]
},
{
"file":"/usr/src/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php",
"line":119,
"function":"stream_close",
"class":"Icewind\\Streams\\Wrapper",
"type":"->",
"args":[
]
},
{
"function":"stream_close",
"class":"Icewind\\Streams\\CallbackWrapper",
"type":"->",
"args":[
]
},
{
"file":"/usr/src/nextcloud/3rdparty/guzzlehttp/psr7/src/Stream.php",
"line":105,
"function":"fclose",
"args":[
null
]
},
{
"file":"/usr/src/nextcloud/3rdparty/guzzlehttp/psr7/src/Stream.php",
"line":73,
"function":"close",
"class":"GuzzleHttp\\Psr7\\Stream",
"type":"->",
"args":[
]
},
{
"function":"__destruct",
"class":"GuzzleHttp\\Psr7\\Stream",
"type":"->",
"args":[
]
}
],
"File":"/usr/src/nextcloud/lib/private/Log/ErrorHandler.php",
"Line":91,
"CustomMessage":"--"
},
"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:92.0) Gecko/20100101 Firefox/92.0",
"version":"20.0.11.1"
}
Reacted by Claudio Maradonna
Metadata
Metadata
Assignees
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofbugfeature: object storage
Activity
juliusknorr commentedon Aug 18, 2021
Should have been fixed by icewind1991/Streams@93bce47 but seems the package didn't get an update on the stable branches in the 3rdparty repo.
juliusknorr commentedon Aug 18, 2021
@skjnldsv @ChristophWurst Should we maybe also setup dependabot for minor updates in the stable branches of https://github.com/nextcloud/3rdparty ?
ChristophWurst commentedon Aug 18, 2021
Sure :)
PVince81 commentedon Oct 8, 2021
also just reproduced on 21.0.5 with minio object store docker:
docker run -p 9000:9000 minio/minio server /dataI see this in the log:
PVince81 commentedon Oct 8, 2021
PVince81 commentedon Oct 18, 2021
Reponing to track backport to stable20 because I need somewhere to put the long checklist:
kesselb commentedon Oct 22, 2021
Found the above error messages in a backport for stable20: https://drone.nextcloud.com/nextcloud/server/11030/14/5
The update from 0.7.1 to 0.7.2 for stable21 required some code changes: #24533
Unfortunately the 0.7.2 update and the code changes were not backported to stable20.
PVince81 commentedon Oct 25, 2021
backports are merged, closing
PVince81 commentedon Oct 25, 2021
oops, I'll recheck
PVince81 commentedon Oct 25, 2021
PR here for the missing code changes for stable20: #29426
skjnldsv commentedon Oct 25, 2021
Merged