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. Nextcloud
  3. Should I chown the new path of my data ?

Should I chown the new path of my data ?

Scheduled Pinned Locked Moved Nextcloud
7 Posts 3 Posters 1.1k Views 3 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.
  • JOduMonTJ Offline
    JOduMonTJ Offline
    JOduMonT
    wrote on last edited by
    #1

    I migrated my data from the default /home/yellowtent/appsdata/randomVolumeContainerid/data to my new mount point /mnt/nextcloud/data (or should I say Cloudron interface did it for me)

    but I noticed than the owner of /home/yellowtent/appsdata/randomVolumeContainerid is 1000:1000 (yellowtent:yellowtent) while the owner of /mnt/nextcloud is 0:0 (root:root)

    should i chown /mnt/nextcloud or this don't really matter ?

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

      This should not be necessary, the files within the data folder will anyways be chowned to www-data within the app by root.

      1 Reply Last reply
      0
      • JOduMonTJ Offline
        JOduMonTJ Offline
        JOduMonT
        wrote on last edited by
        #3

        may I delete the old empty directory
        /home/yellowtent/appsdata/7dd8e169-9efb-485c-9cee-7053e0312360/ ?

        girishG 1 Reply Last reply
        0
        • JOduMonTJ Offline
          JOduMonTJ Offline
          JOduMonT
          wrote on last edited by
          #4

          so even if I delete both path the old one in /home/yellowtent/appsdata/... and the new /mnt/nextcloud/data than uninstall nextcloud and reinstall it
          I always have this error message when I try to move the data

          Error : Already Exists - ER_DUP_ENTRY: Duplicate entry '/mnt/nextcloud/data' for key 'dataDir'
          

          just to be clear I remove both path, but specially /mnt/nextcloud/data after the uninstall
          /mnt/nextcloud is a second physical hard drive (not the main)

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            That error looks a lot more like a database constraint error. In this case it appears you already have an app configured on that dataDir?

            JOduMonTJ 1 Reply Last reply
            0
            • JOduMonTJ JOduMonT

              may I delete the old empty directory
              /home/yellowtent/appsdata/7dd8e169-9efb-485c-9cee-7053e0312360/ ?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @JOduMonT said in Should I chown the new path of my data ?:

              may I delete the old empty directory
              /home/yellowtent/appsdata/7dd8e169-9efb-485c-9cee-7053e0312360/ ?

              You should not delete this. This directory is used to storing the database dumps when taking app backup.

              1 Reply Last reply
              1
              • nebulonN nebulon

                That error looks a lot more like a database constraint error. In this case it appears you already have an app configured on that dataDir?

                JOduMonTJ Offline
                JOduMonTJ Offline
                JOduMonT
                wrote on last edited by
                #7

                @girish said in Should I chown the new path of my data ?:

                @JOduMonT said in Should I chown the new path of my data ?:

                may I delete the old empty directory
                /home/yellowtent/appsdata/7dd8e169-9efb-485c-9cee-7053e0312360/ ?

                You should not delete this. This directory is used to storing the database dumps when taking app backup.

                OK good I didn't deleted it


                @nebulon said in Should I chown the new path of my data ?:

                That error looks a lot more like a database constraint error. In this case it appears you already have an app configured on that dataDir?

                yes but than, when I went into my. cloudron the path disappear and when I look a via the console, a new set of data was inside /home/yellowtent/appsdata/7dd8e169-9efb-485c-9cee-7053e0312360/ while my mount point /mnt/nextcloud/data was accessible

                between the configuration and the error message I had the reboot the server because of ubuntu security update has cloudron asked me.

                1 Reply Last reply
                0
                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