*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Transmission: Permission denied

Transmission bittorrent server.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
carloskar
Starter
Starter
Posts: 19
Joined: 28 Oct 2013 19:56
Status: Offline

Transmission: Permission denied

#1

Post by carloskar »

I have an embedded installation of NAS4Free that works fine, except for the Transmission client; I can't start a download because of permission denied when writing resume file. But I have set all the permission masks to 777...

This is what my syslog says:

Code: Select all

Nov 9 21:54:43	nas4free	transmission-daemon[1654]: Couldn't save temporary file "/mnt/intvol0/public/torrent/.config/torrents/ubuntu-13.10-desktop-amd64.iso.e3811b9539cacff6.torrent.tmp.jSNBbH": Permission denied (variant.c:1230)
Nov 9 21:54:43	nas4free	transmission-daemon[1654]: ubuntu-13.10-desktop-amd64.iso Unable to save torrent file: Permission denied (torrent.c:538)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: Couldn't save temporary file "/mnt/intvol0/public/torrent/.config/resume/ubuntu-13.10-desktop-amd64.iso.e3811b9539cacff6.resume.tmp.hV306v": Permission denied (variant.c:1230)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: ubuntu-13.10-desktop-amd64.iso Unable to save resume file: Permission denied (torrent.c:538)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: Couldn't save temporary file "/mnt/intvol0/public/torrent/.config/stats.json.tmp.rOWsyl": Permission denied (variant.c:1230)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: Couldn't create "/mnt/intvol0/public/torrent": Permission denied (utils.c:342)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: Couldn't create "/mnt/intvol0/public/torrent/.incomplete": Permission denied (fdlimit.c:348)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: ubuntu-13.10-desktop-amd64.iso tr_fdFileCheckout failed for "/mnt/intvol0/public/torrent/.incomplete/ubuntu-13.10-desktop-amd64.iso.part": Permission denied (inout.c:104)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: Couldn't save temporary file "/mnt/intvol0/public/torrent/.config/resume/ubuntu-13.10-desktop-amd64.iso.e3811b9539cacff6.resume.tmp.UKWwcr": Permission denied (variant.c:1230)
Nov 9 21:54:58	nas4free	transmission-daemon[1654]: ubuntu-13.10-desktop-amd64.iso Unable to save resume file: Permission denied (torrent.c:538)
Nov 9 22:00:57	nas4free	transmission-daemon[1654]: Couldn't save temporary file "/mnt/intvol0/public/torrent/.config/stats.json.tmp.v0m4hB": Permission denied (variant.c:1230)
intvol0 is my ZFS-pool, and public is a dataset in that pool, and this is how I have set up the permissions in /mnt/intvol0/public/torrent:

Code: Select all

nas4free: public # pwd
/mnt/intvol0/public
nas4free: public # ls -l
total 10
-rwxrw-r--  1 carl-oskar    users  2634 Oct 27 13:53 Wakeup.bat
drwxrwxr--  4 carl-oskar    users     4 Oct 27 10:12 homes
drwxrwxr--  7 carl-oskar    users     7 Oct 27 19:21 media
drwxrwxrwx  3 transmission  users     3 Nov  9 21:40 torrent
nas4free: public # ls -l torrent/
total 2
drwxrwxrwx  5 transmission  users  6 Nov  9 21:42 .config
nas4free: public # ls -l torrent/.config/
total 9
drwxrwxrwx  2 transmission  users     2 Nov  9 21:40 blocklists
drwxrwxrwx  2 transmission  users     2 Nov  9 21:40 resume
-rw-------  1 transmission  users  2304 Nov  9 21:42 settings.json
drwxrwxrwx  2 transmission  users     2 Nov  9 21:40 torrents
nas4free: public #
11.2.0.4 - Omnius (revision 5748)
ASRock E3C226D2I, Intel(R) Celeron(R) CPU G1820 @ 2.70GHz, 8GB DDR3 ECC
ZFS main pool: Samsung SSD 850 EVO 1TB
ZFS backup pool: 3x WD10EFRX 1TB + 1x WD20EFRX 2TB, mirror, synced daily with main pool

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5116
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Transmission: Permission denied

#2

Post by raulfg3 »

try:

Code: Select all

chown transmission:wheel /mnt/intvol0/public/torrent
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

carloskar
Starter
Starter
Posts: 19
Joined: 28 Oct 2013 19:56
Status: Offline

Re: Transmission: Permission denied

#3

Post by carloskar »

raulfg3 wrote:try:

Code: Select all

chown transmission:wheel /mnt/intvol0/public/torrent
Didn't work.

But I finally got it to work by chmod 777 on /mnt/intvol0/public, then I could change the /mnt/intvol0/public/torrent folder to owner transmission:user and chmod 755 and it still worked. So the magic was to set /mnt/intvol0/public to 777 but the subdirs does not need to have those permissions. Very strange.

Code: Select all

nas4free: intvol0 # pwd
/mnt/intvol0
nas4free: intvol0 # ls -l
total 8
drwxr-xr--  5 root  users   5 Oct 25 21:42 private
drwxrwxrwx  5 root  wheel   6 Nov 15 22:48 public
drwxrwxr--  5 root  wheel  23 Oct 28 22:06 scripts
drwxr-xr--  5 root  users   5 Oct 26 12:03 shared
nas4free: intvol0 # ls -l public/
total 10
-rwxrw-r--  1 carl-oskar    users  2634 Oct 27 13:53 Wakeup.bat
drwxrwxr--  4 carl-oskar    users     4 Oct 27 10:12 homes
drwxrwxr--  7 carl-oskar    users     7 Oct 27 19:21 media
drwxr-xr-x  5 transmission  users     5 Nov 15 22:51 torrent
11.2.0.4 - Omnius (revision 5748)
ASRock E3C226D2I, Intel(R) Celeron(R) CPU G1820 @ 2.70GHz, 8GB DDR3 ECC
ZFS main pool: Samsung SSD 850 EVO 1TB
ZFS backup pool: 3x WD10EFRX 1TB + 1x WD20EFRX 2TB, mirror, synced daily with main pool

Post Reply

Return to “BitTorrent”