-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files not being stored or referenced in /upload
directory.Potential Redis issue?
#3
Comments
Perhaps a recent commit add env for redis pwd and port has something to do with this? |
This likely has to do with permission errors in the upload directory that is mounted. When you aren't using S3, it stores files in a local directory. Have you tried setting different permissions on the mounted directory? Send runs as a special user inside the container for security reasons, which is why you have to give it explicit permission. You can temporarily set the directory mode to 777 to see if it fixes the upload. chmod -R 777 MY_DIR When that works, write down the user and group ID the uploaded files have. Change the permission mode of the whole folder back, and make the noted user and group ID owner. Does that help? |
I was a bit quick. After closer inspection, you might be right that the linked commit is causing issues. I'm investigating this further now. Would you mind to check the image tagged |
This attempts to fix a Redis connection issue when the Redis password is an empty string. See timvisee/send-docker-compose#3 (comment)
It looks like you were right. The Redis client behaved differently than expected when an empty password is provided. I've pushed a fix, which is part of When the pipeline succeeded, you may pull the new image with |
I ran You mentioned having to revert this folder permission:
How do I do that? And one last question - the original send documentation recommended not to use docker-compose in production: Is this also true of this project? If so, how do we configure this docker container for production use (I can open a new issue if merited)? Thanks! |
Note the user and group ID. Then change the directory permissions and change the file mode to read/write for the user/group you've set. chown -R USERID:GROUPID UPLOADS_DIR
chmod -R 664 UPLOADS_DIR You could keep it the way it is, without running these commands (after setting its mode to 777) if you don't care too much about local file permissions.
It should be fine, especially with |
Sweeeeeet! Thank you Tim, you've been very helpful to me and the larger community in need of this application. Sounds like I'm all set. I'd like to tip you and have a few options - I can do so via BAT once Brave rolls out their native wallet (because I'm not yet verified via Uphold). Or I can do so now via some other contribution page. Just let me know, thanks! |
Fantastic! Happy to see you got it working.
That's awesome. Please see the following page. Much appreciated! |
Sponsored! Thanks again :) |
Hello ! I'm sorry to bother you, but i'm having the same issue. I did what @timvisee said Set upload dir to 777, i did ls -l to see the GID/UID (which was 10001/10001 in my case) Then i did : chown -R 10001:10001 uploads/ But i still have the same issue. File won't upload... Hope that someone can help me. Thanks ! |
@Antoine2tt Do you see anything of interests in the logs? docker-compose logs
# or
docker logs That might help to pinpoint the issue, in case it isn't a permission issue. |
I've followed the directions at https://github.com/timvisee/send-docker-compose to provision send.
I basically do this.
git clone https://github.com/timvisee/send-docker-compose
cd send-docker-compose/
cp .env.example .env
nano .env
docker-compose up
Everything looks good until I actually upload a file... this is when the loading bar freezes and I get these console errors:
If I take a look at the docker logs, I see this error about
No such file or directory
:Here's the larger log context:
I've also seen a similar failure where the error log reports
auth called without any password configured for the default user
The first error seems very similar to the one reported in issue Links Immediately Expire
However, unlike in that case, I am only trying to use the default installation/not involving
traefik
. I am also not involving S3 or an external file store. Any idea what the matter may be?The text was updated successfully, but these errors were encountered: