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. Support
  3. hostPath does not exist

hostPath does not exist

Scheduled Pinned Locked Moved Solved Support
volumes
5 Posts 3 Posters 977 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.
    • D Offline
      D Offline
      drpaneas
      wrote on last edited by girish
      #1

      As soon as I setup cloudron I get this notifcation:

      Backup configuration is unsafe 21 hours ago
      
      Cloudron backups are currently on the same disk as the Cloudron server instance. This is dangerous and can lead to complete data loss if the disk fails. See https://docs.cloudron.io/backups/#storage-providers for storing backups in an external location.
      

      So I connect an external USB hard-disk on the server to use it as a backup volume. It's mounted at /media/drpaneas/Backup and has ext4 filesystem:

      $ mount |grep /dev/sdb1
      
      /dev/sdb1 on /media/drpaneas/Backup type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
      

      However when I am adding this to cloudron I get an error:

      volumes_issue.png

      hostPath does not exist. Please create it on the server first
      
      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        Just for information, from the backup configuration warning I would have assumed you would setup backups on that disk, however you are trying to setup a volume. Backups and volumes are not really related on Cloudron.

        Still you should be able to add a volume, will check to see if I can spot the issue in code.

        nebulonN D 2 Replies Last reply
        0
        • nebulonN nebulon

          Just for information, from the backup configuration warning I would have assumed you would setup backups on that disk, however you are trying to setup a volume. Backups and volumes are not really related on Cloudron.

          Still you should be able to add a volume, will check to see if I can spot the issue in code.

          nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

          I don't really see why that error would come up. Just for testing, can you create a subdirectory within that mountpoint, for example /media/drpaneas/Backup/test/ and then try to add that as the volume?

          1 Reply Last reply
          0
          • nebulonN nebulon

            Just for information, from the backup configuration warning I would have assumed you would setup backups on that disk, however you are trying to setup a volume. Backups and volumes are not really related on Cloudron.

            Still you should be able to add a volume, will check to see if I can spot the issue in code.

            D Offline
            D Offline
            drpaneas
            wrote on last edited by drpaneas
            #4

            @nebulon said in hostPath does not exist:

            Just for information, from the backup configuration warning I would have assumed you would setup backups on that disk, however you are trying to setup a volume. Backups and volumes are not really related on Cloudron.

            From what I understand, the warning says that Cloudron and Cloudron Backups will happen on the same disk and that's not the best way to go -- thus the warning.

            So I added a new external disk on the system.

            for example /media/drpaneas/Backup/test/ and then try to add that as the volume?

            I've tried this and it doesn't work.

            Eventually I've managed to add the volume, using /media/drpaneas.

            So:

            `/media/drpaneas` # works
            `/media/drpaneas/Backup` # fails
            `/media/drpaneas/Backup/test` #fails
            

            I solved the issue eventually when I added this folder Backup as the backup. Note that it asked me to change the user first:

            chown yellowtent:yellowtent /media/drpaneas/Backup/
            

            volume.png
            backup.png

            so in the end it's working.

            girishG 1 Reply Last reply
            0
            • D drpaneas

              @nebulon said in hostPath does not exist:

              Just for information, from the backup configuration warning I would have assumed you would setup backups on that disk, however you are trying to setup a volume. Backups and volumes are not really related on Cloudron.

              From what I understand, the warning says that Cloudron and Cloudron Backups will happen on the same disk and that's not the best way to go -- thus the warning.

              So I added a new external disk on the system.

              for example /media/drpaneas/Backup/test/ and then try to add that as the volume?

              I've tried this and it doesn't work.

              Eventually I've managed to add the volume, using /media/drpaneas.

              So:

              `/media/drpaneas` # works
              `/media/drpaneas/Backup` # fails
              `/media/drpaneas/Backup/test` #fails
              

              I solved the issue eventually when I added this folder Backup as the backup. Note that it asked me to change the user first:

              chown yellowtent:yellowtent /media/drpaneas/Backup/
              

              volume.png
              backup.png

              so in the end it's working.

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

              @drpaneas Ah thanks, I think I found the bug. It seems a "permission denied" issue is being flagged incorrectly as directory does not exist. The chown you did essentially changed permissions and fixed the issue.

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