Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. problem with permissions installing Flask on a LAMP container

problem with permissions installing Flask on a LAMP container

Scheduled Pinned Locked Moved Solved LAMP
7 Posts 4 Posters 882 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      M Offline
      manuel
      wrote on last edited by
      #1

      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 /root

      when 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

      robiR 1 Reply Last reply
      1
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        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.

        M 1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          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/

          M 1 Reply Last reply
          0
          • M manuel

            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 /root

            when 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

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #4

            @manuel you can try setting the HOME env var to /app/data

            Conscious tech

            M 1 Reply Last reply
            0
            • nebulonN nebulon

              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.

              M Offline
              M Offline
              manuel
              wrote on last edited by
              #5

              @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

              1 Reply Last reply
              0
              • girishG girish

                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/

                M Offline
                M Offline
                manuel
                wrote on last edited by
                #6

                @girish thank you. this is really interesting! I will have a look

                1 Reply Last reply
                0
                • robiR robi

                  @manuel you can try setting the HOME env var to /app/data

                  M Offline
                  M Offline
                  manuel
                  wrote on last edited by
                  #7

                  @robi this is interesting! I will have a look

                  1 Reply Last reply
                  0
                  • girishG girish has marked this topic as solved on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search