restart and stop fail

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
warthog
Newbie
Newbie
Posts: 7
Joined: March 15th, 2010, 3:27 pm

restart and stop fail

Post by warthog »

when running 'sabnzbdplus restart' or 'sabnzbdplus stop' it fails with the following message

mktemp: invalid option -- -


Version: 0.6.0RC1 <-----  Yeah, I know. Wrong place for this post. Mods, please move.  TY
OS: Ubuntu HH
Install-type: repo
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes
Last edited by warthog on April 15th, 2011, 3:58 pm, edited 1 time in total.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: restart and stop fail

Post by jcfp »

warthog wrote:mktemp: invalid option -- -

OS: Ubuntu HH
I'm assuming you mean ubuntu hardy (8.04). Please post the output of 'mktemp --help' on that os.
warthog
Newbie
Newbie
Posts: 7
Joined: March 15th, 2010, 3:27 pm

Re: restart and stop fail

Post by warthog »

Yes, by HH I mean 8.04 Hardy Heron

Output of mktemp --help is:

mktemp: invalid option -- -
Usage: mktemp [-V] | [-dqtu] [-p prefix] [template]

After seeing this I took a look at the stop portion of the sabnzbdplus script, and all appears to be normal there. So, I figured something must have changed with a recent system update. I'm not clear on the details but it seems that --tmpdir(from my sabnzbdplus script) is not a valid option now for mktemp. After some digging I editted the script as seen below.

Old:

Code: Select all

TMPFILE="$(mktemp --tmpdir sabnzbdplus.XXXXXXXXXX)"
New:

Code: Select all

TMPFILE="$(mktemp -t sabnzbdplus.XXXXXXXXXX)"
Now all is well.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: restart and stop fail

Post by jcfp »

Suspected that would be the issue. Fixed script uploaded to the ppa, for hardy anyway. In current mktemp, -t is deprecated, and --tmpdir does exist, although I don't know when exactly it was introduced.

Anyway, thanks for reporting.
warthog
Newbie
Newbie
Posts: 7
Joined: March 15th, 2010, 3:27 pm

Re: restart and stop fail

Post by warthog »

Thanks for helping me get started in the right direction and for explaining the situation further.
marcuso
Newbie
Newbie
Posts: 1
Joined: January 10th, 2012, 2:46 pm

Re: restart and stop fail

Post by marcuso »

Could it be this Bug was re-introduced ? I have the same issue again with hardy with latest build from the repository.
I was able to fix it by completely removing the "--tmpdir" option from the init-script - actually i don´t see the sense anyway. "-t" also makes no real sense to me as well.
Seems to me that mktemp would generate the temp-file in /tmp with any of those options

So even if this is fixed for me it might be good to have it fixed in repository so others do not run into the same issue.

BR
Marcus
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: restart and stop fail

Post by jcfp »

marcuso wrote:Could it be this Bug was re-introduced ? I have the same issue again with hardy with latest build from the repository.
Looks like it, to be fixed soon. Thanks for reporting.
Post Reply