problem with permissions installing Flask on a LAMP container
-
Hello , i created a new LAMP container. as "root" i can not create folders in the /root directory.
root@78bd304d-c826-4dd9-a64d-978a5b931efd:/app/code# ls -ld /root
drwx------ 1 root root 4096 Oct 16 12:33 /rootwhen I try to install Flask I get this error message,
ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/root/.local'
it could be an indication that the underlying file system is mounted as read-only.
any ideas on how to solve this?
thank you
-
Hi, on Cloudron apps run mostly in a read-only filesystem. Only /app/data/ is writeable which is causing the error.
How are you installing flask and can you describe the use-case a bit more? Maybe we have to install some more tools in the main app image to make it work. -
-
By Flask, I assume you mean the Python framework. The LAMP app is meant for hosting PHP files and nothing more. You have to build your own package via Docker unless you want to host other frameworks - https://docs.cloudron.io/packaging/tutorial/
-
@nebulon Hi ! thank you for your reply, i will explain you a bit the use case. i am doing these kind of project for the first time and maybe i am not doing the right thing...
I would like to install a web app locally on my computer using Flask (the python framework).
Once is installed locally I would like to also install it in my Virtual private server (the ubuntu vps where i have installed cloudron) and use Git for version control. I need an apache server and I thouht it could be good idea to use the LAMP you guys have packaged on cloudron.the command i am trying to run in the lamp container is : "pip install --user Flask
i hope this makes it more clear
-