Can't create log file...

Support for the Debian/Ubuntu package, created by JCFP.
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
jesuscakes
Newbie
Newbie
Posts: 3
Joined: January 14th, 2014, 8:59 am

Can't create log file...

Post by jesuscakes »

I am trying to run sabnzbd as www-data. It fails on because it doesn't have permissions to create the log file. I looked through /etc/default/sabnzbdplus and saw nothing to change log location. I see how to change the config file which I did. How can I change the location of the logs to prevent this failure? Is it under EXTRAOPTS?
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Can't create log file...

Post by sander »

Config -> Folders: "Log Folder"
jesuscakes
Newbie
Newbie
Posts: 3
Joined: January 14th, 2014, 8:59 am

Re: Can't create log file...

Post by jesuscakes »

sander wrote:Config -> Folders: "Log Folder"
I can't launch it because it fails out with can't create logfile before launching. I could run it as root temporarily or similar, but I'd rather avoid that if possible.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: Can't create log file...

Post by sander »

find and edit sabnzbd.ini by hand.
jesuscakes
Newbie
Newbie
Posts: 3
Joined: January 14th, 2014, 8:59 am

Re: Can't create log file...

Post by jesuscakes »

sander wrote:find and edit sabnzbd.ini by hand.
I have it set to place it in /etc/

I then edit the file and added:

log_dir = /var/log/sabnzbd/logs

I then created the directory and gave ownership of both directories and the .ini in /etc/ to www-data, and I still receive the same error. I even added a file to the /var/log/sabnzbd/logs folder called sabnzbd.ini and owned it to www-data. I still receive the same error. :(
Post Reply