docker deluge unable to execute scrip with correct permissions

General support for problems installing or using Deluge
chienb
New User
New User
Posts: 2
Joined: Wed Aug 22, 2018 6:23 am
OS or Distro: ubuntu 16.04.5 LTS

docker deluge unable to execute scrip with correct permissions

Postby chienb » Wed Aug 22, 2018 6:52 am

I'm using the docker image from here: https://github.com/binhex/arch-delugevpn on ubuntu server 16.04.5 LTS. Everything works fine but I just can't get the Execute script to work. I believe I have the right permissions.

Code: Select all

chienb@seedbox:~$ id
uid=1000(chienb) gid=1000(chienb) groups=1000(chienb),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),114(lpadmin),115(sambashare),129(docker)


Code: Select all

chienb@seedbox:~/docker/deluge/config$ ls -la
total 3376
drwxrwxrwx 7 root   root      4096 Aug 21 23:28 .
drwxrwxrwx 4 root   root      4096 Aug 19 15:02 ..
-rwxrwxrwx 1 root   root        56 Aug 19 15:03 auth
-rw-rw-r-- 1 chienb chienb    2511 Aug 21 23:28 core.conf
-rw-rw-r-- 1 chienb chienb    2511 Aug 21 23:28 core.conf~
-rwxrwxrwx 1 root   root      1976 Aug 21 23:31 deluged.log
-rw-rw-r-- 1 chienb chienb      10 Aug 21 23:28 deluged.pid
-rwxrwxrwx 1 root   root       249 Aug 20 10:11 d-postprocess.sh
-rw-rw-r-- 1 chienb chienb     183 Aug 21 19:34 execute.conf
-rwxrwxrwx 1 root   root       183 Aug 21 19:32 execute.conf~
-rwxrwxrwx 1 root   root       168 Aug 19 15:03 hostlist.conf.1.2
drwxrwxrwx 2 root   root      4096 Aug 19 15:03 icons
drwxrwxr-x 2 chienb chienb    4096 Aug 21 23:28 openvpn
-rwxrwxrwx 1 root   root       162 Aug 19 15:02 perms.txt
drwxrwxrwx 2 root   root      4096 Aug 19 15:03 plugins
drwxrwxrwx 2 root   root      4096 Aug 19 15:03 ssl
drwxrwxrwx 2 root   root      4096 Aug 21 23:31 state
-rwxrwxrwx 1 root   root   3373584 Aug 21 23:32 supervisord.log
-rwxrwxrwx 1 chienb chienb      60 Aug 20 11:14 test.sh
-rwxrwxrwx 1 root   root       671 Aug 19 15:03 web.conf


test.sh is a simple bash script to log some text

Code: Select all

#!/bin/bash
echo "test123:" $1 >> test.txt
date >> test.txt


I'm running this docker command

Code: Select all

docker run --restart always \
    --cap-add=NET_ADMIN \
    -p 8112:8112 \
    -p 8118:8118 \
    -p 58846:58846 \
    -p 58946:58946 \
    --name=delugevpn \
    -v /home/chienb/docker/deluge/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
       -v /media/chienb/plex:/media/chienb/plex \
    -e VPN_ENABLED=yes \
    -e VPN_USER=xxx \
    -e VPN_PASS=xxx \
    -e VPN_PROV=pia \
    -e STRICT_PORT_FORWARD=yes \
    -e ENABLE_PRIVOXY=no \
    -e LAN_NETWORK=192.168.1.89/24 \
    -e NAME_SERVERS=209.222.18.222,37.235.1.174,1.1.1.1,8.8.8.8,209.222.18.218,37.235.1.177,1.0.0.1,8.8.4.4 \
    -e DEBUG=true \
    -e UMASK=002 \
    -e PUID=1000 \
    -e PGID=1000 \
    binhex/arch-delugevpn


deluged.log shows that the script was executed on torrent add but getting the following error:

Code: Select all

[ERROR   ] 23:50:21 core:154 [execute] Execute script not found or not executable
[INFO    ] 23:50:21 torrentmanager:555 Torrent The.Private.Life.of.Sherlock.Holmes.1970.720p.BluRay.H264.AAC-RARBG added by user: localclient

chienb
New User
New User
Posts: 2
Joined: Wed Aug 22, 2018 6:23 am
OS or Distro: ubuntu 16.04.5 LTS

Re: docker deluge unable to execute scrip with correct permissions

Postby chienb » Fri Aug 24, 2018 6:13 pm

found the issue - since I mapped my volumes:

Code: Select all

-v /home/chienb/docker/deluge/config:/config \

and my test.sh script was at /home/chienb/docker/deluge/config, i had to use the mapped volume path within Deluge's execute plugin. so the correct path would be /config/test.sh


Return to “Support”

Who is online

Users browsing this forum: gw1500se and 4 guests