nzbgetcom / nzbget

Efficient usenet downloader
https://nzbget.com
GNU General Public License v2.0
348 stars 16 forks source link

cp: can't stat '/app/nzbget/share/nzbget/scripts/EMail.py': No such file or directory #187

Closed beertje44 closed 8 months ago

beertje44 commented 8 months ago

Is there already an issue for your problem?

NZBGet Version

v23-stable

Platform

Linux/Docker

Environment

PC, x86_64, AlmaLinux 9.3, podman container.

After I reboot 
nzbget stopped working. Guess updating the e-mail script was the culprit:

entypoint.sh:
...
# copy default scripts if not exists
mkdir -p /downloads/scripts
for SCRIPT in EMail.py Logger.py; do
  if [ ! -f /downloads/scripts/$SCRIPT ]; then
    cp /app/nzbget/share/nzbget/scripts/$SCRIPT /downloads/scripts/
  fi
done
...
# ls -l /app/nzbget/share/nzbget/scripts/
total 0

# ls -l /downloads/scripts/
total 51
-rwxr-xr-x    1 user     users          229 Jan 14 00:05 Beet.sh
-rwxr-xr-x    1 user     users          258 Jan 14 00:06 ChMod.sh
-rwxr-xr-x    1 user     users          265 Jan 14 00:06 ChMod_all.sh
drwxr-xr-x    2 user     users            4 Jan 17 08:06 EMail
-rw-r--r--    1 user     users            0 Feb 24 04:57 EMail.py
drwxr-xr-x    2 user     users            4 Jan 31 10:49 ExtendedUnrar
drwxr-xr-x    2 user     users            4 Jan 17 13:04 FailureLink
drwxr-xr-x    2 user     users            4 Jan 17 13:03 FakeDetector
-rwxr-xr-x    1 user     users          493 Jan 14 00:06 FileBot.sh
drwxr-xr-x    2 user     users            4 Jan 17 08:03 Logger
-rw-r--r--    1 user     users            0 Feb 24 04:56 Logger.py
drwxr-xr-x    3 user     users            8 Jan 17 13:01 VideoSort

I touched EMail.py and Logger.py and all is fine now.

Guess my 'fault' was to to use the extension manager to upgrade Email and Logger script :)

Please fix this!

Current Behavior

nzbget won't start again after you update email and logger scripts via extention manager.

Expected Behavior

All should be just fine.

Steps To Reproduce

See above.

Logs

No response

Extra information

No response

phnzb commented 8 months ago

@beertje44 this issue fixed in #170, and current testing and latest images does not have this issue. Looks like you have using old testing image. Please update by running:

docker compose stop
docker compose pull
docker compose start
beertje44 commented 8 months ago

Will it be in the stable release soon? I have a very simple workaround and rather stick to stable tags. Also I have some legacy homebrew extensions with software requirements, so I usually roll my own nzbget extending on the latest stable release 😀

luckedea commented 8 months ago

@beertje44 Current v23-stable (and testing) already has this bug fixed. Please upgrade. Closing.

beertje44 commented 8 months ago

❯ git pull https://github.com/nzbgetcom/nzbget v23.0 From https://github.com/nzbgetcom/nzbget

Can wait for v24.0 or V23.1, it is not a big problem for me atm. Glad it is fixed already :)

Op 28 feb 2024, om 09:57 heeft Paul @.***> het volgende geschreven:

@beertje44 https://github.com/beertje44 Current v23-stable (and testing) already has this bug fixed. Please upgrade. Closing.

— Reply to this email directly, view it on GitHub https://github.com/nzbgetcom/nzbget/issues/187#issuecomment-1968515602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYDWEEWJFGEZ3RIGDYONVEDYV3WPJAVCNFSM6AAAAABDXXO6B6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRYGUYTKNRQGI. You are receiving this because you were mentioned.