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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved hostPath does not exist

    Support
    volumes
    3
    5
    268
    Loading More Posts
    • 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
      drpaneas last edited by girish

      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 Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        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.

        nebulon D 2 Replies Last reply Reply Quote 0
        • nebulon
          nebulon Staff @nebulon last edited by

          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 Reply Quote 0
          • D
            drpaneas @nebulon last edited by 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.

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @drpaneas last edited by

              @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 Reply Quote 1
              • First post
                Last post
              Powered by NodeBB