-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Media Uploads fail with "Error uploading file: no such file or directory" (Docker) #1169
Comments
Hi @domsson. The default However, you can read the docs on how to add volume bind mount for uploads: https://listmonk.app/docs/configuration/#filesystem. You can use either of the two options. |
Thank you @mr-karan - unfortunately I'm still stuck with this. The documentation seems somewhat incomplete, as
I've amended the
And the upload path in Listmonk is set to Does that look correct?
I see. Yeah, with S3 it makes sense, as there is no way to put in working default. When it comes to the filesystem solution, however, I think it would be great to have a working default, as currently, installing the system basically presents with a system that feels a little broken. Getting this to work out of the box would definitely be appreciated! |
Seems correct. The indentation was off in your snippet:
When you added this volume, you'll need to If you did that as well, check if
Hope this helps. |
Ah, that was a copy-paste error, sorry.
Interesting. Guess my lack of docker knowledge really put a stick in my spokes - I had used Thank you very much for your swift assistance, appreciated! |
Per the docs https://listmonk.app/docs/configuration/#media-uploads, and all the instructions I could find, in my
I also tried:
I tested the commands above that @mr-karan gave:
Does this identify the problem? It shouldn't be If I run any of the docker commands without
|
I think I mostly figured it out. From what I can tell, if you need to use
You have to use:
or I also confirmed that you have to run And under Despite the UI saying:
I think the only remaining issue I have is that Listmonk doesn't detect existing files. IE: I ran:
It shows correctly that there are 3+ |
To newbies like me, create a folder in your listmonk directory then provide the absolute path to that dir otherwise it won't work. |
@MaximilianKohler @ovicko @knadh I have tried countless things looking at all of the treads on here and I have had no joy. I was hoping someone could help and see where I might have went wrong... YAML
I have also tried
I have then tried different commands to remove/restart the container
Every time I get the same errors... either or
With these errors, the app still seems to work, but the uploads do not work and havent since the first install Do I need the |
Your errors are |
@MaximilianKohler I think this is due to this part:
Both db and demo-db use But, also, my main query is surrounding the Media upload. I cannot get this to work regardless of what I try |
The docs have what worked for me: https://listmonk.app/docs/configuration/#media-uploads I think you can remove the |
@MaximilianKohler
and
Neither seems to work :( |
@MaximilianKohler sorted it. Thanks for your help :) |
Version:
Description of the bug and steps to reproduce:
Uploading media files fails with:
apt install docker.io
This is with everything left at the default after install, hence in
docker-compose.yml
we can see (reduced to relevant):Also,
docker volume inspect listmonk_listmonk-data
shows:After trying many combinations, I forgot what the original setting for the upload path within Listmonk was, but I believe it was
uploads
.Screenshots:
![image](https://user-images.githubusercontent.com/7917999/216493168-b2e0ad38-72ae-411d-8e4e-a8976ad2d6ca.png)
Additional notes
This is my firs time using docker and I realize some issues might come from my lack of understanding of volumes, binds and what-have-you. I also understand that there have been bug reports on this already, namely #620, #555 and #30.
The reason I'm still opening this issue are three-fold:
The text was updated successfully, but these errors were encountered: