linuxserver / docker-sabnzbd

GNU General Public License v3.0
272 stars 66 forks source link

.sh script files cannot be found any more since base image change to alpine #131

Closed Zheltyy closed 2 years ago

Zheltyy commented 2 years ago

linuxserver.io


Expected Behavior

Before the change to the alpine base image .sh script files could be placed in the script folder and then be found and selected in the Scripts dropdown list in e.g. config -> categories.

Current Behavior

.sh script files cannot be found anymore in the Scripts dropdown list.

Steps to Reproduce

  1. Place a .sh file in the scripts folder.
  2. Open sabnzbd -> config -> categories
  3. Click on the "script" dropdown list from any category
  4. The .sh file is not there

Environment

OS: Ubuntu 20.04 CPU architecture: x86_64 How docker service was installed:

Docker has been installed using the official installation guide (i installed the stable version): https://docs.docker.com/engine/install/ubuntu/ https://docs.docker.com/compose/install/

Command used to create docker container (run/create/compose/screenshot)

docker compose file has been used: docker-compose up -d

my docker compose file:

version: "2.1" services: sabnzbd: image: lscr.io/linuxserver/sabnzbd container_name: sabnzbd environment:

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 01-envfile: executing... [cont-init.d] 01-envfile: exited 0. [cont-init.d] 01-migrations: executing... [migrations] started [migrations] no migrations found [cont-init.d] 01-migrations: exited 0. [cont-init.d] 02-tamper-check: executing... [cont-init.d] 02-tamper-check: exited 0. [cont-init.d] 10-adduser: executing...


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support the app dev(s) visit: SABnzbd: https://sabnzbd.org/donate

To support LSIO projects visit: https://www.linuxserver.io/donate/

GID/UID

User uid: 1000 User gid: 1000

[cont-init.d] 10-adduser: exited 0. [cont-init.d] 20-config: executing... [cont-init.d] 20-config: exited 0. [cont-init.d] 90-custom-folders: executing... [cont-init.d] 90-custom-folders: exited 0. [cont-init.d] 99-custom-files: executing... [custom-init] no custom files found exiting... [cont-init.d] 99-custom-files: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. 2022-03-13 02:39:04,875::INFO::[SABnzbd:1166] -------------------------------- 2022-03-13 02:39:04,875::INFO::[SABnzbd:1167] SABnzbd.py-3.5.2 2022-03-13 02:39:04,875::INFO::[SABnzbd:1177] Commit = fd4e059c135ea8ca6fb3e813feeffa8f46395e58 2022-03-13 02:39:04,875::INFO::[SABnzbd:1179] Full executable path = /app/sabnzbd/SABnzbd.py 2022-03-13 02:39:04,876::INFO::[SABnzbd:1180] Arguments = "/app/sabnzbd/SABnzbd.py" "--config-file" "/config" "--server" "::" 2022-03-13 02:39:04,876::INFO::[SABnzbd:1181] Python-version = 3.9.7 (default, Nov 24 2021, 21:15:59) [GCC 10.3.1 20211027] 2022-03-13 02:39:04,876::INFO::[SABnzbd:1182] Dockerized = True 2022-03-13 02:39:04,876::INFO::[SABnzbd:1183] CPU architecture = x86_64 2022-03-13 02:39:04,881::INFO::[SABnzbd:1186] Platform = posix - Linux-5.4.0-104-generic-x86_64-with 2022-03-13 02:39:04,882::INFO::[SABnzbd:1192] Preferred encoding = UTF-8 2022-03-13 02:39:04,882::INFO::[SABnzbd:1211] SSL version = OpenSSL 1.1.1l 24 Aug 2021 2022-03-13 02:39:04,883::INFO::[SABnzbd:1220] Certifi version = 2020.12.05 2022-03-13 02:39:04,883::INFO::[SABnzbd:1221] Loaded additional certificates from /etc/ssl/certs/ca-certificates.crt 2022-03-13 02:39:04,884::INFO::[SABnzbd:1241] Using INI file /config/sabnzbd.ini 2022-03-13 02:39:04,886::INFO::[postproc:133] Loading postproc queue 2022-03-13 02:39:04,887::INFO::[scheduler:188] Scheduling RSS interval task every 90 min (delay=89) 2022-03-13 02:39:04,887::INFO::[scheduler:199] Scheduling VersionCheck on day 3 at 22:39 2022-03-13 02:39:04,888::INFO::[scheduler:213] Setting schedule for midnight BPS reset 2022-03-13 02:39:04,888::INFO::[scheduler:216] Setting schedule for server expiration check 2022-03-13 02:39:04,888::INFO::[scheduler:221] Setting scheduler for server quota check 2022-03-13 02:39:04,888::INFO::[init:327] All processes started 2022-03-13 02:39:04,889::INFO::[SABnzbd:336] Template location for Glitter is /app/sabnzbd/interfaces/Glitter 2022-03-13 02:39:04,889::INFO::[SABnzbd:336] Template location for Config is /app/sabnzbd/interfaces/Config 2022-03-13 02:39:04,890::INFO::[misc:1161] [N/A] Running external command: ['/usr/local/bin/unrar'] 2022-03-13 02:39:04,896::INFO::[misc:1161] [N/A] Running external command: ['/usr/bin/7za'] 2022-03-13 02:39:04,901::INFO::[misc:1161] [N/A] Running external command: ['/usr/bin/par2', '-h'] 2022-03-13 02:39:04,905::INFO::[SABnzbd:423] SABYenc module (v4.0.2)... found! 2022-03-13 02:39:04,906::INFO::[SABnzbd:442] Cryptography module (v36.0.1)... found! 2022-03-13 02:39:04,906::INFO::[SABnzbd:447] par2 binary... found (/usr/bin/par2) 2022-03-13 02:39:04,906::INFO::[SABnzbd:454] UNRAR binary... found (/usr/local/bin/unrar) 2022-03-13 02:39:04,906::INFO::[SABnzbd:462] UNRAR binary version 6.10 2022-03-13 02:39:04,907::INFO::[SABnzbd:470] 7za binary... found (/usr/bin/7za) 2022-03-13 02:39:04,907::INFO::[SABnzbd:472] 7za binary version 16.02 2022-03-13 02:39:04,907::INFO::[SABnzbd:483] nice binary... found (/bin/nice) 2022-03-13 02:39:04,907::INFO::[SABnzbd:487] ionice binary... found (/bin/ionice) 2022-03-13 02:39:04,908::INFO::[SABnzbd:1430] Starting web-interface on :::8080 2022-03-13 02:39:04,909::INFO::[_cplogging:213] [13/Mar/2022:02:39:04] ENGINE Bus STARTING /usr/lib/python3.9/site-packages/cherrypy/process/servers.py:416: UserWarning: Unable to verify that the server is bound on 8080 warnings.warn(msg) 2022-03-13 02:39:10,038::INFO::[_cplogging:213] [13/Mar/2022:02:39:10] ENGINE Serving on http://:::8080 2022-03-13 02:39:10,038::INFO::[_cplogging:213] [13/Mar/2022:02:39:10] ENGINE Bus STARTED 2022-03-13 02:39:10,039::INFO::[SABnzbd:1469] Starting SABnzbd.py-3.5.2 2022-03-13 02:39:10,045::INFO::[dirscanner:117] Dirscanner starting up 2022-03-13 02:39:10,047::INFO::[notifier:123] Sending notification: SABnzbd - SABnzbd 3.5.2 started (type=startup, job_cat=None) 2022-03-13 02:39:10,366::INFO::[zconfig:61] No bonjour/zeroconf support installed 2022-03-13 02:39:10,367::INFO::[ssdp:108] Serving SSDP on 172.18.0.2 as SABnzbd

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

thespad commented 2 years ago

This works fine, but you need to change the default scripts directory as OOTB it points to /app/sabnzbd.

Change scripts path to /config (or whatever you prefer) and make sure the script has a .sh extension and is chmod +x

image

image