-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
can not change MEDIA_ROOT to an USB drive #1091
Comments
Did you check the permissions on the mount location? The docker install needs write access to whatever you're trying to write.
If that fixes it, you know it's a permissions issue with your mount. It's not really a great idea to just leave it as 777, so you'll have to figure out what user and group mediacms is running as and change to 775 and chgrp to the appropriate permissions. |
when i run |
That almost sounds like it's writing with permissions it can't read. Did you check the permissions that got set on the "failed" image upload that appeared? If those are okay, then you may need to also check your postgres_data directory and make sure the database writes aren't failing for some reason. I have had a bunch of trouble with permissions trying to run it for development with docker on MacOS that I was unable to solve, but it ran properly on ubuntu server in docker as a generic user. |
where's the |
On my system, it created it in the root folder, but I'm running a docker instance. It should be set in your config somewhere, check there. Aside from that, I'm out of ideas, will have to wait for someone more knowledgeable to come along if you can't get it sorted. |
there is no |
Installing Docker on WSL (Windows Subsystem for Linux) and deploying MediaCMS can be done using the following steps. Here we will assume that you are using WSL 2 and the Ubuntu distribution. If WSL 2 is not configured yet, make sure that you have done so before you start installing Docker.
If you want to run Docker without using After executing this command, you will need to log out and log in again for the changes to take effect.
Now you are ready to install MediaCMS. Create a directory in Windows in another drive for your project and navigate to it and copy mediacms there: Edit the 'docker-compose' file.yml` with settings for MediaCMS. Sample content:
After that, check the operation of the container. |
i don't have much experience with MacOS but if there are specific suggestions to improve things it would be great! I'm mainly using/developing in Linux where things run smoothly, however I see there are many people in MacOS and Windows too |
I wasn't able to get it to run in Docker on MacOS, and wound up spinning up a new VM on Ubuntu 22 to test on instead. I think it has to do with the way bind mounts are set up for Colima vs dockerd / containerd, in that the permissions for some files can't be directly set by Colima as you would with a rootful normal docker compose. The failure is when it gets into chown the files that are passed into the container - and It's not clear why exactly this is the case but I wouldn't worry about it too much, it works great with the regular docker compose client everywhere else I've tried it! |
Describe the issue
I want to store all media and their encoded files on my USB drive, but when I try to do that I can't upload videos anymore.
I tried setting
MEDIA_ROOT
in/home/mediacms.io/mediacms/cms/settings.py
to/mnt/f/media_files/
and tried mounting the usb to
/home/mediacms.io/mediacms/media_files
but neither worked. when I try to upload something, it retries twice and then fails. it only works if
MEDIA_ROOT
points at/home/mediacms.io/mediacms/media_files
(default) without the usb mounted to that path.I tried this with the USB formatted to exFAT and NTFS
Expected behavior
it should work like normal.
Environment
The text was updated successfully, but these errors were encountered: