Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Syncthing Permission Problem

Featured Replies

Hi am quite new to Unraid (and Linux),

I am trying to Sync my Android Phone to Unraid with Syncthing.

 

By default the Folder Path i.e for Folder "Test" in the Syncthing WebUI is /config/Test. (it works, but I don't even know where to find that folder)

 

I've created a share called AndroidBackup.

So in the Syncthing WebUI I put in the Folder path "/mnt/user/AndroidBackup/Test" (I'm already not really shure if this would be the correct path.)

 

Anyway, I get an error:

Quote

2021-02-06 17:37:05: Failed to create folder root directory mkdir /mnt/user: permission denied

2021-02-06 17:37:05: Error on folder "Test" (tqf2q-vpuz2): folder path missing

 

I've tried the "Docker Safe New Perms" but that didn't help.

How can I solve the Permission error (and what would be the correct path)?

  • Community Expert

You can go directly to the correct support thread for any of your dockers by clicking on its icon and selecting Support.

  • Author

Ah sorry my bad.

I searched in the forum but didn't find a solution.
In the supported thread I just found what I did wrong.

Thanks

  • 1 year later...

Kulligulli, 

I have the same issue, what did you do to fix this?

 

Thanks

  • Author

Tbh I can't remember anymore...

Maybe have a look in here, according to my post the solution should be there ;)

 

Maybe my config helps too.

I have no idea if it's "technically" correct, but it's working.

 

Docker Syncthing Config:

Network Type: Bridge

Console Shell command: shell

privileged: off

Host Path2: /mnt/user/AndroidBackup --> AndroidBackup is my created share.

AppData Config Path: /mnt/user/appdata/syncthing

 

Syncthing Webui:

Folderpath: /sync/FullBackup --> "FullBackup" is the folder inside your created share where the actual files are stored

 

No real solution to your question, but I hope I can help anyway.

 

Thanks!!!

 

I'll play with it more.

  • 4 months later...

had the same error first check the permission of your folder on your unraid share by opening a console and cd into the directory
you can check the permissions with

ls - la

if you have something like drwxr-xr-x simply add the write permission

chmode 777 myFolder/

 

  • 1 month later...

Thanks @zgo. This solved my issue… my directories were owned by nobody:users, but the permissions were wrong. Any of the folders that were 755 needed to be 777.

  • 1 year later...

I'll provide another solution if people are still wondering. Long story short, you may not be accessing the correct file path. If you're new to unraid, you may have glossed over some useful info right under your nose. 

 

For the sake of following the same steps, get the binhex version of syncthing, its the one I have.

Go to Docker tab and click on it to edit the options. 

The first path he has hidden for appdata (which you can change), but focus on Host Path 2.

Notice how underneath the path (which you can leave as /mnt/user) it says "Container Path: /media"? This is key, this is the (if you want to call it) root for your shares you'll put in syncthing.

So check it out. Get out of those, options you don't really need to change them unless you want to. Go to your shares in unraid and add a share and name it what you want.

I exported mine in SMB settings, that's a personal choice for me, I don't believe that's necessary, but I should mention it since I did that personally.

 

Now open up the syncthing GUI by going back to Docker tab, clicking on the docker icon for syncthing  and selecting "WebUI".

Now in syncthing when you add a folder, use /media as the base of the file path to whatever folder share you made. That's the proper path. For example, "/media/sync" if I made one called sync. Something like "/mnt/users/whatever" will give errors often because it's not the container path in this case.

 

Hope this helps someone. Very simple but can be a pain if you're not looking carefully.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.