restart and stop fail

Support for the Debian/Ubuntu package, created by JCFP.

restart and stop fail

Postby warthog » April 15th, 2011, 2:04 pm

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, 4:58 pm, edited 1 time in total.
warthog
Newbie
Newbie
 
Posts: 7
Joined: March 15th, 2010, 4:27 pm

Re: restart and stop fail

Postby jcfp » April 15th, 2011, 2:53 pm

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.
User avatar
jcfp
Release Testers
Release Testers
 
Posts: 562
Joined: February 7th, 2008, 1:45 pm

Re: restart and stop fail

Postby warthog » April 15th, 2011, 4:57 pm

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

Re: restart and stop fail

Postby jcfp » April 15th, 2011, 5:29 pm

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.
User avatar
jcfp
Release Testers
Release Testers
 
Posts: 562
Joined: February 7th, 2008, 1:45 pm

Re: restart and stop fail

Postby warthog » April 15th, 2011, 6:16 pm

Thanks for helping me get started in the right direction and for explaining the situation further.
warthog
Newbie
Newbie
 
Posts: 7
Joined: March 15th, 2010, 4:27 pm

Re: restart and stop fail

Postby marcuso » January 10th, 2012, 3:51 pm

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
marcuso
Newbie
Newbie
 
Posts: 1
Joined: January 10th, 2012, 3:46 pm

Re: restart and stop fail

Postby jcfp » January 10th, 2012, 5:57 pm

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.
User avatar
jcfp
Release Testers
Release Testers
 
Posts: 562
Joined: February 7th, 2008, 1:45 pm


Return to Debian/Ubuntu Package