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. Syncthing
  3. Failed to Create Folder in Syncthing Admin - Read Only File System

Failed to Create Folder in Syncthing Admin - Read Only File System

Scheduled Pinned Locked Moved Solved Syncthing
22 Posts 3 Posters 5.6k 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.
    • girishG girish

      @saint Did you figure this one out?

      To help debug, let's do this step by step:

      • Can you tell me what is /media/sync ? Is this really an external disk or external mount ?

      • You have two choices on how to mount this on the server: Either use the volumes UI to mount the external file system OR mount this by ssh'ing into the server yourself and select the mountpoint type. In the former case, Cloudron will generate the needed systemd mount config files for automatic mounting on server reboot etc. In the latter case, you can consider it totally 'unmanaged' and you have to manage it. Do not choose the 'filesystem' type unless it's really the same disk (internally, what this does is to skip many of the mountpoint tests and thus will make debugging harder).

      • Once you do the above, we have to get the green icon as the status. If we don't get this, we have to figure out why. I can help further, if you can explain your setup a bit more.

      S Offline
      S Offline
      saint
      wrote on last edited by
      #11

      @girish Thanks for your thoughts.

      Can you tell me what is /media/sync ? Is this really an external disk or external mount?

      Screen Shot 2022-10-17 at 1.43.17 AM.png

      From what I can see, both of these are green and my understanding is that it is mounted.

      Do not choose the 'filesystem' type unless it's really the same disk (internally, what this does is to skip many of the mountpoint tests and thus will make debugging harder

      I see, is there a recommended approach to selecting the correct Mount Type?

      @nebulon - Please see below.

      The user who should own those directories is called cloudron as that is the user with which syncthing runs.

      I chown'd the user to '1000', as from what I understand that is the user for cloudron. Does this look about right to you?

      Screen Shot 2022-10-17 at 1.55.01 AM.png

      Much appreciate it guys.

      S girishG 2 Replies Last reply
      0
      • S saint

        @girish Thanks for your thoughts.

        Can you tell me what is /media/sync ? Is this really an external disk or external mount?

        Screen Shot 2022-10-17 at 1.43.17 AM.png

        From what I can see, both of these are green and my understanding is that it is mounted.

        Do not choose the 'filesystem' type unless it's really the same disk (internally, what this does is to skip many of the mountpoint tests and thus will make debugging harder

        I see, is there a recommended approach to selecting the correct Mount Type?

        @nebulon - Please see below.

        The user who should own those directories is called cloudron as that is the user with which syncthing runs.

        I chown'd the user to '1000', as from what I understand that is the user for cloudron. Does this look about right to you?

        Screen Shot 2022-10-17 at 1.55.01 AM.png

        Much appreciate it guys.

        S Offline
        S Offline
        saint
        wrote on last edited by
        #12

        Hi @nebulon @girish - Please let me know if the above was helpful, or if I could help provide any additional context.

        girishG 1 Reply Last reply
        0
        • S saint

          @girish Thanks for your thoughts.

          Can you tell me what is /media/sync ? Is this really an external disk or external mount?

          Screen Shot 2022-10-17 at 1.43.17 AM.png

          From what I can see, both of these are green and my understanding is that it is mounted.

          Do not choose the 'filesystem' type unless it's really the same disk (internally, what this does is to skip many of the mountpoint tests and thus will make debugging harder

          I see, is there a recommended approach to selecting the correct Mount Type?

          @nebulon - Please see below.

          The user who should own those directories is called cloudron as that is the user with which syncthing runs.

          I chown'd the user to '1000', as from what I understand that is the user for cloudron. Does this look about right to you?

          Screen Shot 2022-10-17 at 1.55.01 AM.png

          Much appreciate it guys.

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

          @saint said in Failed to Create Folder in Syncthing Admin - Read Only File System:

          I see, is there a recommended approach to selecting the correct Mount Type?

          The filesystem was used primarily for migration purposes (from old Cloudron versions). Are you able to mount them with the correct type? If so, I think we need to start there to figure why it's not mounting.

          Also, I wanted to quickly check why you are using volumes here. Is this because you want to share the data with another app ? If you just want to move the data to another location you can use https://docs.cloudron.io/apps/#data-directory

          1 Reply Last reply
          0
          • S saint

            Hi @nebulon @girish - Please let me know if the above was helpful, or if I could help provide any additional context.

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

            @saint OK, I went back and re-read your initial post. Your intention is that you will sync using Syncthing and have the files available via the External volumes plugin of nextcloud. This is the reason you want to create a filesystem volume.

            I think I managed to hit some of the issues you faced but I have sort of got it working. I tried to basically keep things like what you posted in the screenshots.

            Here's what I did:

            • First, create a directory /mnt/sync on the server
            • Important: chmod 777 /mnt/sync. This is required so the containers can write to this directory.
            • Add the Cloudron volume named Sync as Filesystem (do not use Filesystem (mountpoint) ). When you do this, the icon should be green. After all, there is nothing to mount.
            • Now, add the volume in Syncthing. Add folder inside Syncthing. You should be able to sync now.

            Next step, nextcloud:

            • Add volume to nextcloud.
            • Enable External plugin. Add /media/Sync in Configuration column to add folder.
            • I can see the files now.

            What's missing right now is that I cannot edit files via nextcloud because of permissions issues but can view them. Do you want them to be modifiable in nextcloud ? If so, we have to dig deeper into permissions stuff.

            1 Reply Last reply
            2
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #15

              @saint I wrote a doc section that will also help you make it writable across apps - https://docs.cloudron.io/volumes/#sharing

              S 1 Reply Last reply
              2
              • girishG girish

                @saint I wrote a doc section that will also help you make it writable across apps - https://docs.cloudron.io/volumes/#sharing

                S Offline
                S Offline
                saint
                wrote on last edited by
                #16

                @girish Thanks for the reply, and the documentation.

                I feel like I'm running in circles. Following the instructions above, and also the docs, I still keep getting the below:

                Screen Shot 2022-11-08 at 12.19.32 AM.png

                The directories are all chmod' to 777. I've changed it to "media" as the group owner. But it keep showing that same error.

                girishG 1 Reply Last reply
                0
                • S saint

                  @girish Thanks for the reply, and the documentation.

                  I feel like I'm running in circles. Following the instructions above, and also the docs, I still keep getting the below:

                  Screen Shot 2022-11-08 at 12.19.32 AM.png

                  The directories are all chmod' to 777. I've changed it to "media" as the group owner. But it keep showing that same error.

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

                  @saint I think syncthing is saying that the mount is read only. Can you check if the volume is mounted as writable in syncthing ? It's a checkbox in the mount ui. (Now that I look at it , maybe we should make it like a drop down to make it clearer).

                  S 1 Reply Last reply
                  0
                  • girishG girish

                    @saint I think syncthing is saying that the mount is read only. Can you check if the volume is mounted as writable in syncthing ? It's a checkbox in the mount ui. (Now that I look at it , maybe we should make it like a drop down to make it clearer).

                    S Offline
                    S Offline
                    saint
                    wrote on last edited by
                    #18

                    @girish Am I looking at the right place? I'm in the volumes settings area, but don't see any checkbox in the mount UI?

                    Screen Shot 2022-11-08 at 8.32.42 PM.png

                    girishG 1 Reply Last reply
                    0
                    • S saint

                      @girish Am I looking at the right place? I'm in the volumes settings area, but don't see any checkbox in the mount UI?

                      Screen Shot 2022-11-08 at 8.32.42 PM.png

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

                      @saint in the UI where you actually mount the volume into the app - https://docs.cloudron.io/apps/#mounts

                      S 1 Reply Last reply
                      0
                      • girishG girish

                        @saint in the UI where you actually mount the volume into the app - https://docs.cloudron.io/apps/#mounts

                        S Offline
                        S Offline
                        saint
                        wrote on last edited by
                        #20

                        @girish Ahh, got it. Okay, this is what I see in the Nextcloud storage mount UI.

                        Yep, I think you're right. It is "read-only"

                        Screen Shot 2022-11-09 at 11.27.38 PM.png

                        This is what I see when I added the Volume that's tied to /mnt/sync.

                        To test, I unchecked it, hit save, then tried to delete & re-add the sync directory in Syncthing.

                        But, still encountering the same error.

                        Screen Shot 2022-11-09 at 11.33.55 PM.png

                        girishG 1 Reply Last reply
                        0
                        • S saint

                          @girish Ahh, got it. Okay, this is what I see in the Nextcloud storage mount UI.

                          Yep, I think you're right. It is "read-only"

                          Screen Shot 2022-11-09 at 11.27.38 PM.png

                          This is what I see when I added the Volume that's tied to /mnt/sync.

                          To test, I unchecked it, hit save, then tried to delete & re-add the sync directory in Syncthing.

                          But, still encountering the same error.

                          Screen Shot 2022-11-09 at 11.33.55 PM.png

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

                          @saint if you open a web terminal for the sync thing app, are you able to go into /mnt/sync and touch foo ? I think the core of the issue is that it is for whatever reason read-only.

                          S 1 Reply Last reply
                          0
                          • girishG girish

                            @saint if you open a web terminal for the sync thing app, are you able to go into /mnt/sync and touch foo ? I think the core of the issue is that it is for whatever reason read-only.

                            S Offline
                            S Offline
                            saint
                            wrote on last edited by
                            #22

                            @girish I followed the example provided at https://docs.cloudron.io/volumes/#sharing and did a 'touch ./test-file'

                            From what I can see, the directory does appear to have write permissions.

                            Screen Shot 2022-11-10 at 12.48.07 AM.png

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