Deobfuscate error

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Deobfuscate error

Post by MidKnight » June 29th, 2019, 4:11 am

]Im getting this error when trying to run

[newsunpack198] Failed script /share/CACHEDEV1_DATA/qpkg/SABnzbdplus/SABnzbdplus/scripts/Deobfuscatepy, Traceback
Traceback (most recent call last)
File "/share/CACHEDEV1_DATA/qpkg/SABnzbdplus/SABnzbdplus/sabnzbd/newsunpackpy", line 172, in external_processing
startupinfo=stup, env=env, creationflags=creationflags)
File "/opt/lib/python2.7/subprocesspy", line 394, in __init__
File "/opt/lib/python2.7/subprocesspy", line 1047, in _execute_child

this is a new install on a qnap nas, if someone has som ideas whats wrong.

(I had to remove the "." from the lines above, other cant post because of a links error... )

User avatar
sander
Release Testers
Release Testers
Posts: 6751
Joined: January 22nd, 2008, 2:22 pm

Re: Deobfuscate error

Post by sander » June 29th, 2019, 9:13 am

No more logging?

How much memory in your NAS?

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 29th, 2019, 7:43 pm

no more logging.

32GB ram

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 29th, 2019, 7:58 pm

I tested again, and heres more.

"." replaced with "_"

2019-06-30 10:49:09,604::INFO::[newsunpack:169] Running external script /share/CACHEDEV1_DATA/_qpkg/SABnzbdplus/SABnzbdplus/scripts/Deobfuscate_py(/share/CACHEDEV1_DATA/XXX/WoodmanCastingX_16_06_25_Viola_Bailey_Hard_XXX_XviD-iPT_Team, WoodmanCastingX_16_06_25_Viola_Bailey_Hard_XXX_XviD-iPT_Team_nzb, WoodmanCastingX_16_06_25_Viola_Bailey_Hard_XXX_XviD-iPT_Team, , xxx, alt_binaries_misc, 0, )
2019-06-30 10:49:09,644::DEBUG::[newsunpack:198] Failed script /share/CACHEDEV1_DATA/_qpkg/SABnzbdplus/SABnzbdplus/scripts/Deobfuscate_py, Traceback:
Traceback (most recent call last):
File "/share/CACHEDEV1_DATA/_qpkg/SABnzbdplus/SABnzbdplus/sabnzbd/newsunpack_py", line 172, in external_processing
startupinfo=stup, env=env, creationflags=creationflags)
File "/opt/lib/python2_7/subprocess_py", line 394, in __init__
File "/opt/lib/python2_7/subprocess_py", line 1047, in _execute_child
OSError: [Errno 2] No such file or directory

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 29th, 2019, 8:00 pm

[~] # python
Python 2.7.16 (default, May 23 2019, 05:34:26)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

User avatar
sander
Release Testers
Release Testers
Posts: 6751
Joined: January 22nd, 2008, 2:22 pm

Re: Deobfuscate error

Post by sander » June 30th, 2019, 12:54 am

OSError: [Errno 2] No such file or directory

So a file (to be executed) is missing. Does deobfyscate use an external executable? Or does newsunpack do that?
I have no computer at hand, so I can't check right now.

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 30th, 2019, 1:14 am

i really not sure to be honest, this setup is all pretty new actually. But guessing from the logs, sounds like newsunpack?

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 30th, 2019, 1:18 am

to add.

this was a new install of sab a few days ago from the qnapclub (QSabNZBdPlus), then couple days after, i thought id be better off using the sherpa.sh, so i installed that as instructed by his post on the forums, and it upgraded the QsabNZBdPlus without any issues and been running great, except this 1 issue.

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 296
Joined: March 4th, 2017, 3:47 pm

Re: Deobfuscate error

Post by OneCD » June 30th, 2019, 1:31 am

Hey @MidKnight. :)

Based on @sanders suggestion, you may need to alter the hashbang at the start of [Deobfuscate.py] to use Entware's Python interpreter. Off the top-of-my-head, it should be:

Code: Select all

#!/opt/bin/python
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 30th, 2019, 1:56 am

might need a little more guidance with that if you have the time thanks

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 296
Joined: March 4th, 2017, 3:47 pm

Re: Deobfuscate error

Post by OneCD » June 30th, 2019, 2:33 am

No problem.

You'll need to create a copy of [Deobfuscate.py] and put it somewhere else (modifying it in-place will prevent 'git' from syncing from the SABnzbd source location, which would be bad).

If you have a preferred scripts path, copy [Deobfuscate.py] into it and ensure you reconfigure SABnzbd (via the GUI) to use that path for post-processing scripts.

If you don't, then suggest somewhere like [/share/Download/scripts]. To use this second option, SSH into your NAS as the 'admin' user, then:

Code: Select all

mkdir -p /share/Download/scripts
cp /share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/SABnzbdplus/scripts/Deobfuscate.py /share/Download/scripts
Then edit your new file with the included 'nano' editor:

Code: Select all

nano /share/Download/scripts/Deobfuscate.py
... and alter the first line in this file from:

Code: Select all

#!/usr/bin/python -OO
... to:

Code: Select all

#!/opt/bin/python
Then CTRL+X to exit, save your file and you're done. Try your new script on a download. :)
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 30th, 2019, 4:06 am

thank you very much, now working like a charm :)

dont know if this would be related, but is there a way for the auto renaming to remove the "Obfuscated" from the dir/file name also?

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 296
Joined: March 4th, 2017, 3:47 pm

Re: Deobfuscate error

Post by OneCD » June 30th, 2019, 12:23 pm

MidKnight wrote:
June 30th, 2019, 4:06 am
dont know if this would be related, but is there a way for the auto renaming to remove the "Obfuscated" from the dir/file name also?
Hmmm, I've not seen that occur. ???

Maybe someone else can suggest a solution?
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

MidKnight
Newbie
Newbie
Posts: 10
Joined: June 28th, 2019, 7:04 pm

Re: Deobfuscate error

Post by MidKnight » June 30th, 2019, 8:21 pm

not to concerned about that one, but thanks heaps for that help mate, and love your work with the sherpa.sh. :)

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 296
Joined: March 4th, 2017, 3:47 pm

Re: Deobfuscate error

Post by OneCD » July 1st, 2019, 1:49 am

Cheers mate. :)
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox Watcher3 WordPress XFCE

Post Reply