-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find GIT #1689
Comments
hm. sorry, it was me that typed the wrong path... but now when it finds the executable i get this error..
`[08:51:28] [INFO]::MAIN: Loading config from [/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/autoProcessMedia.cfg] -- Cleaning bytecode -- -- Cleaning folders: ['libs', 'core'] -- -- Cleanup finished --` |
|
ok, thank you! some files were owned by root. I changed the owner using chown sc-sabnzbd:sabnzbd *. now i get `[11:39:16] [INFO]::MAIN: Loading config from [/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/autoProcessMedia.cfg] -- Cleaning bytecode -- -- Cleaning folders: ['libs', 'core'] -- -- Cleanup finished --` this is the permissions in the .git folder
|
Perhaps that will help? It still appears to be permissions related. |
Now I gave the sc-sabnzbd:sabnzbd ownership to nzbtomedia folder. Now it seems to do a update but fails on a later step. I dont know why it fails on Deluge, i dont even use Deluge...
`Changing to directory: /volume1/@appstore/sabnzbd/var/scripts/nzbToMedia -- Cleaning bytecode -- -- Cleaning folders: ['core', 'libs'] -- -- Cleanup finished -- Traceback (most recent call last): |
The issue here is it has not correctly updated...
The current code now calls
I would suggest manually doing an update and then apply the permissions.
see if that works. |
Thank you!! now its working again. I'm very grateful for your help. `[19:58:04] [INFO]::MAIN: Loading config from [/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/autoProcessMedia.cfg] -- Cleaning bytecode -- -- Cleaning folders: ['core', 'libs'] -- -- Cleanup finished -- |
ok... warnings are for 1 - python lifetime = ideally you would update to python3.6 or later... but that's not an issue at the moment I do need to look into warning 2... that is likely to be a problem for a number of people! |
ok... looks like SABnzbd now uses environment variables.... Will see what I can add to use those. |
ok... I have added some new stuff :) Are you able to do the following, then test again?
Hopefully this will now parse the environment variables to get the needed parameters and will be a lot neater... |
`ash-4.3# /usr/local/git/bin/git pull
|
logs `[19:08:27] [INFO]::MAIN: Loading config from [/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/autoProcessMedia.cfg] -- Cleaning bytecode -- -- Cleaning folders: ['core', 'libs'] -- -- Cleanup finished -- SickBeard: Successfully post-processed VICE.S05E23.Dawn.of.a.Dictator.REPACK.720p.AMZN.WEB-DL.DD+2.0.H.264-monkee!` |
ok, that looks like the interfacing worked, but I note that this processed as failed because there were no media files found in the directory: /volume1/Files/Downloads/SickBeard/VICE.S05E23.Dawn.of.a.Dictator.REPACK.720p.AMZN.WEB-DL.DD+2.0.H.264-monkee and then it also confirms Directory Can you please confirm if |
`[05:16:23] [INFO]::MAIN: Loading config from [/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/autoProcessMedia.cfg] -- Cleaning bytecode -- -- Cleaning folders: ['libs', 'core'] -- -- Cleanup finished -- SickBeard: Successfully post-processed bobs.burgers.s10e11.1080p.web.x264-xlf!` |
do I need to change brach or some thing to get back to master? |
to get to master
however, the changes to make this work with latest SABnzbd are now in
|
ok, when do you plan to merge? |
I just merged other work yesterday. this was stuff that was causing an issue, and had been verified. I wasn't 100% sure this had been verified... Because I just did a merge, I was planning to wait another week before merging this all up. Depends how much time I get.... |
changed to nightly. thank you! |
@clinton-hall Hi, |
Hmm... looks like I haven't merged yet. Time to merge I think :) |
and merged :D |
@clinton-hall thank you |
Describe the bug
I dont get why the script wont find the GIT executable. The path is correct.
Technical Specs
Expected behavior
Using GIT to check for updates
Log
`[08:27:53] [INFO]::MAIN: Loading config from [/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/autoProcessMedia.cfg]
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_PKGNAME: sabnzbd
[08:27:54] [INFO]::ENVIRONMENT: SAB_ENCRYPTED: 0
[08:27:54] [INFO]::ENVIRONMENT: SAB_VERSION: 2.3.9
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_PKGDEST_VOL: /volume1
[08:27:54] [INFO]::ENVIRONMENT: SELF: sabnzbd
[08:27:54] [INFO]::ENVIRONMENT: SAB_PP: 3
[08:27:54] [INFO]::ENVIRONMENT: UPSTART_JOB: pkgctl-sabnzbd
[08:27:54] [INFO]::ENVIRONMENT: SHLVL: 3
[08:27:54] [INFO]::ENVIRONMENT: SAB_ORIG_NZB_GZ: /volume1/Files/Downloads/complete/incomplete/VICE.S05E16.720p.WEB-DL.AAC2.0.H.264-doosh/ADMIN/VICE.S05E16.720p.WEB-DL.AAC2.0.H.264-doosh.nzb.gz
[08:27:54] [INFO]::ENVIRONMENT: SAB_UNPACK: 1
[08:27:54] [INFO]::ENVIRONMENT: UPSTART_EVENTS: syno.pkgctl.pkgstart syno.pkgctl.started
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_DSM_LANGUAGE: enu
[08:27:54] [INFO]::ENVIRONMENT: SAB_PASSWORD:
[08:27:54] [INFO]::ENVIRONMENT: SAB_BYTES_TRIED: 1113231819
[08:27:54] [INFO]::ENVIRONMENT: UPSTART_INSTANCE:
[08:27:54] [INFO]::ENVIRONMENT: SAB_AVG_BPS: 12
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_PKGDEST: /volume1/@appstore/sabnzbd
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_TEMP_LOGFILE: /tmp/synopkgmgr.log-sabnzbd
[08:27:54] [INFO]::ENVIRONMENT: SAB_FILENAME: VICE.S05E16.720p.WEB-DL.AAC2.0.H.264-doosh.nzb
[08:27:54] [INFO]::ENVIRONMENT: _: /usr/local/bin/python3
[08:27:54] [INFO]::ENVIRONMENT: SAB_ZIP_COMMAND:
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_DSM_VERSION_MAJOR: 6
[08:27:54] [INFO]::ENVIRONMENT: SAB_SCRIPT: nzbToMedia.sh
[08:27:54] [INFO]::ENVIRONMENT: SAB_DOWNLOAD_TIME: 5
[08:27:54] [INFO]::ENVIRONMENT: LANG: en_US.UTF-8
[08:27:54] [INFO]::ENVIRONMENT: SAB_URL: http://127.0.0.1:5075/getnzb?apikey=xxxxxsearchresultid=b4a6d736aa332fc45cbac003e5ecf20d025108a6
[08:27:54] [INFO]::ENVIRONMENT: PWD: /volume1/@appstore/sabnzbd/share/SABnzbd
[08:27:54] [INFO]::ENVIRONMENT: SAB_NZO_ID: SABnzbd_nzo_1LGXWx
[08:27:54] [INFO]::ENVIRONMENT: SAB_PP_STATUS: -1
[08:27:54] [INFO]::ENVIRONMENT: SAB_REPAIR: 1
[08:27:54] [INFO]::ENVIRONMENT: SAB_FAILURE_URL:
[08:27:54] [INFO]::ENVIRONMENT: SAB_FAIL_MSG: Download failed - Not on your server(s) - https://sabnzbd.org/not-complete
[08:27:54] [INFO]::ENVIRONMENT: SAB_COMPLETE_DIR: /volume1/Files/Downloads/SickBeard/VICE.S05E16.720p.WEB-DL.AAC2.0.H.264-doosh.1
[08:27:54] [INFO]::ENVIRONMENT: TERM: vt102
[08:27:54] [INFO]::ENVIRONMENT: SAB_BYTES_DOWNLOADED: 66214
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_DSM_VERSION_BUILD: 24922
[08:27:54] [INFO]::ENVIRONMENT: SAB_DUPLICATE: 0
[08:27:54] [INFO]::ENVIRONMENT: SAB_STATUS: Running
[08:27:54] [INFO]::ENVIRONMENT: SAB_GROUP: alt.binaries.hdtv
[08:27:54] [INFO]::ENVIRONMENT: SAB_PROGRAM_DIR: /volume1/@appstore/sabnzbd/share/SABnzbd
[08:27:54] [INFO]::ENVIRONMENT: SAB_BYTES: 1113231819
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_DSM_VERSION_MINOR: 2
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_PKGVER: 2.3.9-40
[08:27:54] [INFO]::ENVIRONMENT: SAB_MULTIPAR_COMMAND:
[08:27:54] [INFO]::ENVIRONMENT: SAB_7ZIP_COMMAND: /volume1/@appstore/sabnzbd/bin/7za
[08:27:54] [INFO]::ENVIRONMENT: SAB_FINAL_NAME: VICE.S05E16.720p.WEB-DL.AAC2.0.H.264-doosh
[08:27:54] [INFO]::ENVIRONMENT: SAB_UNWANTED_EXT: 0
[08:27:54] [INFO]::ENVIRONMENT: SAB_OVERSIZED: 0
[08:27:54] [INFO]::ENVIRONMENT: SAB_PAR2_COMMAND: /volume1/@appstore/sabnzbd/bin/par2
[08:27:54] [INFO]::ENVIRONMENT: SAB_PRIORITY: 0
[08:27:54] [INFO]::ENVIRONMENT: PATH: /volume1/@appstore/sabnzbd/bin:/volume1/@appstore/sabnzbd/env/bin:/usr/local/python/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_DSM_ARCH: avoton
[08:27:54] [INFO]::ENVIRONMENT: SAB_RAR_COMMAND: /volume1/@appstore/sabnzbd/bin/unrar
[08:27:54] [INFO]::ENVIRONMENT: NAME: python
[08:27:54] [INFO]::ENVIRONMENT: SAB_CAT: tv
[08:27:54] [INFO]::ENVIRONMENT: SYNOPKG_PKGPORT: 8080
[08:27:54] [INFO]::ENVIRONMENT: AVAHI_COMPAT_NOWARN: 1
[08:27:54] [INFO]::ENVIRONMENT: SAB_AGE: 923d
/volume1/@appstore/sabnzbd/var/scripts/nzbToMedia/eol.py:147: LifetimeWarning: Python 3.5 is no longer supported.
warnings.warn(msg, LifetimeWarning)
[08:27:54] [INFO]::MAIN: Python v3.5 will reach end of life in 254 days.
[08:27:54] [WARNING]::MAIN: Please upgrade to a more recent Python version.
[08:27:54] [INFO]::MAIN: Checking database structure...
[08:27:54] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[08:27:54] [DEBUG]::MAIN: InitialSchema upgrade not required
[08:27:54] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/git/bin" version
[08:27:54] [DEBUG]::MAIN: Executing "/usr/local/git/bin" version with your shell in /volume1/@appstore/sabnzbd/var/scripts/nzbToMedia
[08:27:54] [DEBUG]::MAIN: Not using: "/usr/local/git/bin"
[08:27:54] [DEBUG]::MAIN: Unable to find your git executable - Set git_path in your autoProcessMedia.cfg OR delete your .git folder and run from source to enable updates.
[08:27:54] [DEBUG]::MAIN: No git specified, can't use git commands
[08:27:54] [INFO]::MAIN: Checking if git needs an update
[08:27:54] [DEBUG]::MAIN: No git specified, can't use git commands
[08:27:54] [ERROR]::MAIN: Unable to determine installed version via git, please check your logs!
[08:27:54] [INFO]::MAIN: No update needed
[08:27:54] [INFO]::MAIN: nzbToMedia Version:12.1.02 Branch:master (Linux 3.10.105)
[08:27:54] [INFO]::MAIN: #########################################################
[08:27:54] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[08:27:54] [INFO]::MAIN: #########################################################
[08:27:54] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/usr/local/sabnzbd/var/scripts/nzbToMedia/nzbToMedia.py']
[08:27:54] [WARNING]::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
[08:27:54] [INFO]::MAIN: Searching /volume1/Files/Downloads/CP for mediafiles to post-process ...
[08:27:54] [DEBUG]::MAIN: No directories identified in Radarr:movie for post-processing
[08:27:54] [INFO]::MAIN: Searching /volume1/Files/Downloads/SickBeard for mediafiles to post-process ...
[08:27:54] [DEBUG]::MAIN: No directories identified in SickBeard:tv for post-processing
[08:27:54] [INFO]::MAIN: The /usr/local/sabnzbd/var/scripts/nzbToMedia/nzbToMedia.py script completed successfully.
Changing to directory: /volume1/@appstore/sabnzbd/var/scripts/nzbToMedia
-- Cleaning bytecode --
WARNING: Automatic cleanup could not be executed.
If errors occur, manual cleanup may be required.
REASON : Error: [Errno 2] No such file or directory: 'git'
-- Cleaning folders: ['libs', 'core'] --
WARNING: Automatic cleanup could not be executed.
If errors occur, manual cleanup may be required.
REASON : Error: [Errno 2] No such file or directory: 'git'
Returning to directory: /volume1/@appstore/sabnzbd/share/SABnzbd
-- Cleanup finished --`
The text was updated successfully, but these errors were encountered: