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
  • Brite
  • 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. Support
  3. File ownership after migration

File ownership after migration

Scheduled Pinned Locked Moved Solved Support
3 Posts 2 Posters 153 Views 2 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.
  • DidierMalenfantD Offline
    DidierMalenfantD Offline
    DidierMalenfant
    wrote last edited by
    #1

    I was testing cloudron migration for my test/dev server and everything worked fine apart from the file ownership inside /app/data weren't correct after the migration. I had to manually do a chown cloudron:cloudron to fix it.

    Since the only app on that server was one of my own, I was wondering if I did anything wrong in the app itself that would cause this to happen.

    Should all file ownership be handled by the migration or is it left to the app itself to fix this during its init?

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

      Right an app package should ensure the file permissions it expects in the start.sh (by convention or any other script which runs as the container entrypoint). Usually this means running a chown on /app/data.

      So since you have a custom app, this may just be missing in your package. Our docs on app packaging are a bit lacking here 😕

      1 Reply Last reply
      2
      • DidierMalenfantD Offline
        DidierMalenfantD Offline
        DidierMalenfant
        wrote last edited by
        #3

        Sweet, thanks. I added it to my start script.

        1 Reply Last reply
        2
        • DidierMalenfantD DidierMalenfant has marked this topic as solved
        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