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. Adding Volumes: hostPath does not exist

Adding Volumes: hostPath does not exist

Scheduled Pinned Locked Moved Solved Support
volumes
4 Posts 2 Posters 658 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.
    • SupaikuS Offline
      SupaikuS Offline
      Supaiku
      wrote on last edited by girish
      #1

      Server log:

      POST /api/v1/volumes 400 Bad Request hostPath does not exist. Please create it on the server first 6.257 ms - 107
      

      However, the path exists, is chown'ed to yellowtent and has permissions 777.

      It's a filesystem - a secondary data drive (SSD HDD)

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

        Do you see any further logs around that in the box.logs / system logs when trying to add this volume?

        SupaikuS 1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • nebulonN nebulon

          Do you see any further logs around that in the box.logs / system logs when trying to add this volume?

          SupaikuS Offline
          SupaikuS Offline
          Supaiku
          wrote on last edited by
          #3

          @nebulon I found that I could add files within the /srv/ directory via symlink as talked about here:
          https://forum.cloudron.io/topic/7619/filesystem-mount-inside-container/7

          Not sure why I could only add directories in the /srv/

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

            Ah, I guess the error message could be more descriptive. Currently there is a hard-coded allowlist of paths on the filessystem to be used as volumes, to avoid accidents where someone might add system folders. The list is at https://git.cloudron.io/cloudron/box/-/blob/master/src/volumes.js#L57

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