Hello in nextcloud we have mounted storj buck as an external storage. It was working fine for uploading files. To make space we have cleaned /tmp/. now getting this error
Storj\Uplink\Exception\InternalException: uplink: stream: open /tmp/tee1296056342: no such file or directory
We have tried remove it from nextcloud and remount it as an external storage. But issue is still there
Egon
March 16, 2022, 5:34pm
2
I’m not quite sure about the NextCloud part. I’ll ask people who know more about it.
But, the libuplink uses temp directory to avoid keeping all the streams in-memory. uplink-php
library does contain necessary options to use in-memory uplink-php/Config.php at eaff2d02c8382026e640988f5325cef23ce69c9f · storj-thirdparty/uplink-php · GitHub
My best guesses are that:
/tmp/
got their permissions changed for some reason
/tmp/
doesn’t exist anymore
while deleting, it lost a file that was being used for upload or download
1 Like
Directory exist and have following permissions
drwxrwxrwt 8 root root 12288 Mar 16 17:09 tmp
yes its uses some files under /tmp/ but it is off course deleted. Now need to recreate/fix that
Erikvv
March 16, 2022, 5:41pm
4
As an aside, in the next release I’m changing the configuration to “inmemory” (config: set temp storage to in-memory by Erikvv · Pull Request #25 · storj-thirdparty/uplink-php · GitHub ).
This setting is currently not exposed.
while deleting, it lost a file that was being used for upload or download
To my knowledge the code is stateless and it loads the shared library in every request, so there should always be a fresh slate.
1 Like
Erikvv
March 16, 2022, 6:13pm
5
I’ll make the release but it will take some time until it is available.
1 Like
Alexey
March 16, 2022, 8:13pm
6
Please check the free space for /tmp
.
Erikvv
March 17, 2022, 11:03am
7
v0.0.7 has been released.
It should be available for automatic update in a day. Or manually from Storj - Apps - App Store - Nextcloud
Please let me know if it fixed your issue.
2 Likes
This issue resolved it self after a day. Now it is able to create temporary files at /tmp for uploading.
Thanks for your help
2 Likes