Page 1 of 2

Deobfuscate error

Posted: June 29th, 2019, 4:11 am
by MidKnight
]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... )

Re: Deobfuscate error

Posted: June 29th, 2019, 9:13 am
by sander
No more logging?

How much memory in your NAS?

Re: Deobfuscate error

Posted: June 29th, 2019, 7:43 pm
by MidKnight
no more logging.

32GB ram

Re: Deobfuscate error

Posted: June 29th, 2019, 7:58 pm
by MidKnight
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

Re: Deobfuscate error

Posted: June 29th, 2019, 8:00 pm
by MidKnight
[~] # 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.
>>>

Re: Deobfuscate error

Posted: June 30th, 2019, 12:54 am
by sander
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.

Re: Deobfuscate error

Posted: June 30th, 2019, 1:14 am
by MidKnight
i really not sure to be honest, this setup is all pretty new actually. But guessing from the logs, sounds like newsunpack?

Re: Deobfuscate error

Posted: June 30th, 2019, 1:18 am
by MidKnight
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.

Re: Deobfuscate error

Posted: June 30th, 2019, 1:31 am
by OneCD
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

Re: Deobfuscate error

Posted: June 30th, 2019, 1:56 am
by MidKnight
might need a little more guidance with that if you have the time thanks

Re: Deobfuscate error

Posted: June 30th, 2019, 2:33 am
by OneCD
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. :)

Re: Deobfuscate error

Posted: June 30th, 2019, 4:06 am
by MidKnight
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?

Re: Deobfuscate error

Posted: June 30th, 2019, 12:23 pm
by OneCD
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?

Re: Deobfuscate error

Posted: June 30th, 2019, 8:21 pm
by MidKnight
not to concerned about that one, but thanks heaps for that help mate, and love your work with the sherpa.sh. :)

Re: Deobfuscate error

Posted: July 1st, 2019, 1:49 am
by OneCD
Cheers mate. :)