Error: Could not open file for reading.

tomaszladniak35584

New Member
YetiShare User
YetiShare Supporter
Dec 5, 2015
48
2
0
Hello. I have a weird problem with yetishare.

After failed upload (however script showing it as success") yetishare giving link to download file and keeping it in file manager. However when someone try download this file, he getting error "Error: Could not open file for reading.".

File also does not exist on server.

Link checker showing on site that file is available.

It's huge problem, because uploaders don't know which files working and which not (unless they will try download all files).

Anyone had in the past maybe similar issues?

Regards.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
If you have enabled mod_xsendfile, disable it and try downloading files and see if it works. I have seen this issue with mod_xsendfile
Also do you have any fileservers or you only have 1 server?
 

tomaszladniak35584

New Member
YetiShare User
YetiShare Supporter
Dec 5, 2015
48
2
0
We're using nginx, so no apache mods. The problem is downloading will never work because the files do not exist physically. Something unexpected is happening when the uploaded is being processed. Yeti assumes the uploaded files gets moved/processed and generate a download link while it is not in some cases.

We have few servers.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Hi,

Please raise a ticket for this with some access to your install and I'll take a look?

Thanks,
Adam.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
What do you mean? I responded last Saturday at 1pm.
 

dodo555

New Member
Apr 1, 2023
1
0
0
I had this problem. In my case, the problem lay with the "C File Server Selection Method" option (can be found in the main site settings).

If you want to use the "Least Used Space" option, you must have "Monitor Server Resources" active in the server configuration. And cron configured. It is also important that the script downloads the server data correctly (the data will appear under the server name in the server list).

If the script does not have HDD usage information, then it does not know on which server to place the uploaded files.