[SOLVED] Launch 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.
Post Reply
acetone802000
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 11:55 am

[SOLVED] Launch error

Post by acetone802000 »

Version: 0.4.12
OS: Debian 5.0
Install-type: python source
Skin (if applicable): none
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes
Python: 2.5.2


I unpack the package SABnzbd-0.4.12-src and move it in /etc/SABnzbd
I have a file sabnzbd.ini in /home/downloads/.sabnzbd

When i launch SABnzbd with root user it work whith : pyhon SABnzbd.py

But when i tried with "/usr/bin/sudo -u downloads -H /etc/SABnzbd/SABnzbd.py -d -f /home/downloads/.sabnzbd/sabnzbd.ini" i have an error
Of course y have an user downloads

Have you any idea ?
Traceback (most recent call last):
 File "/etc/SABnzbd/SABnzbd.py", line 44, in
   import sabnzbd
ImportError: No module named sabnzbd

sabnzbd file:
__version__ = 18
[misc]
log_dir = logs
auto_browser = 0
permissions = 0777
api_key = f66f0b2743352abf93d327cb639af1eb
check_new_rel = 1
replace_spaces = 0
replace_illegal = 1
fail_on_crc = 0
enable_filejoin = 0
enable_unzip = 1
enable_unrar = 1
auto_disconnect = 1
enable_par_cleanup = 1
par_option = ""
no_dupes = 0
config_lock = 0
safe_postproc = 0
pause_on_post_processing = 0
cleanup_list = ""
ignore_samples = 0
send_group = 0
download_dir = downloads/incomplete
download_free = 0
complete_dir = downloads/complete
script_dir = ""
nzb_backup_dir = ""
cache_dir = cache
dirscan_dir = ""
dirscan_speed = 5
refresh_rate = 0
rss_rate = 60
bandwith_limit = 0
cache_limit = 0
email_server = ""
email_to = ""
email_from = ""
email_account = ""
email_pwd = ""
email_endjob = 0
email_full = 0
schedlines = ,
dirscan_opts = 3
dirscan_script = ""
top_only = 1
auto_sort = 0
enable_tv_sorting = 0
tv_sort_string = ""
ionice = ""
web_color = ""
web_color2 = ""
host = 0.0.0.0
port = 9090
web_dir = Default
web_dir2 = ""
username = ""
password = ""
disable_api_key = 0
enable_par_multicore = 1
[logging]
enable_cherrypy_logging = 1
log_level = 1
max_log_size = 5M
log_backups = 5
[newzbin]
username = ""
password = ""
bookmarks = 0
unbookmark = 0
bookmark_rate = 60
[servers]
[[news.free.fr:119]]
host = news.free.fr
port = 119
username = ""
password = ""
connections = 1
timeout = 120
fillserver = 0
ssl = 0
[rss]
[categories]
[[unknown]]
newzbin = Unknown
dir = Unknown
[[anime]]
newzbin = Anime
dir = Anime
[[apps]]
newzbin = Apps
dir = Apps
[[books]]
newzbin = Books
dir = Books
[[consoles]]
newzbin = Consoles
dir = Consoles
[[emulation]]
newzbin = Emulation
dir = Emulation
[[games]]
newzbin = Games
dir = Games
[[misc]]
newzbin = Misc
dir = Misc
[[movies]]
newzbin = Movies
dir = Movies
[[music]]
newzbin = Music
dir = Music
[[pda]]
newzbin = PDA
dir = PDA
[[resources]]
newzbin = Resources
dir = Resources
[[tv]]
newzbin = TV
dir = TV
Last edited by acetone802000 on November 1st, 2009, 5:35 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Launch error

Post by shypike »

The tarball (tar.gz) file must be used as a whole.
Did you move SABnzbd.py away from the other content?

See also: http://sabnzbd.wikidot.com/unix-packaging
acetone802000
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 11:55 am

Re: Launch error

Post by acetone802000 »

I unpack the tar.gz file in /home/downloads -> SABnzbd-0.4.12-src.
So i moved and rename the /home/downloads/SABnzbd-0.4.12-src/SABnzbd-0.4.12 in /etc/SABnzbd with all files.

Now i have /etc/SABnzbd/SABnzbd.py (and a lot of .py files in /etc/SABnzbd/sabnzbd/).

I'am searching for an permission error  in some files cause SABnzbd works in root account with "python SABnzbd.py"
acetone802000
Newbie
Newbie
Posts: 6
Joined: April 29th, 2009, 11:55 am

Re: Launch error

Post by acetone802000 »

I'am a noob Oo;

I made an error with the files permissions !!!

Problem solved with an: chmod -R 0755 /etc/SABnzbd
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [SOLVED] Launch error

Post by shypike »

;D
Post Reply