On Wednesday 24 October 2012 22:22:50 JCF Ploemen wrote: > Alex Hermann <a...@wenlex.nl>: > > > Package: sabnzbdplus > > Version: 0.7.4-1 > > Severity: important > > Setting up sabnzbdplus (0.7.4-1) ... > > Starting SABnzbd+ binary newsgrabber:X11 connection rejected because of > > wrong authentication. failed! > > invoke-rc.d: initscript sabnzbdplus, action "start" failed. > > There have been occasional reports of X11 related messages on startup > ever since 0.7.x. See [1] and [2] for details. Please describe your X11 > setup.
I really don't see how starting a daemon should have anything to do with X11. > Desktop or headless? Local or remote? Is the user running the > service also the one controlling the X session? Desktop, local and remote. The user running the daemon has no X11 session and will not get one. > > sabnzbdplus fails to install because the initscript fails. The daemon > > is running afterwards, but stopping and/or restarting fails. > > How does "stopping and/or restarting" fail? Is the process still around > if you just wait for a few minutes? Stopping fails because the Python regexp doesn't match the the first line of the sabnzbd script. It needs the following patch to succeed: --- /etc/init.d/sabnzbdplus~ 2012-03-10 10:47:47.000000000 +0100 +++ /etc/init.d/sabnzbdplus 2012-10-29 08:07:46.242520457 +0100 @@ -31,7 +31,7 @@ DESC="SABnzbd+ binary newsgrabber" DEFOPTS="--daemon" -PYTHONEXEC="^$(sed -n '1s/^#\!\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p' $DAEMON)" +PYTHONEXEC="^$(sed -n '1s/^#\! *\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p' $DAEMON)" PIDFILE=/var/run/sabnzbdplus.pid SETTINGS_LOADED=FALSE > > Please also attach the following: > > * full output of 'sh -x /etc/init.d/sabnzbdplus start'; # sh -x /etc/init.d/sabnzbdplus start + DAEMON=/usr/bin/sabnzbdplus + SETTINGS=/etc/default/sabnzbdplus + '[' -x /usr/bin/sabnzbdplus ']' + '[' -r /etc/default/sabnzbdplus ']' + DESC='SABnzbd+ binary newsgrabber' + DEFOPTS=--daemon ++ sed -n '1s/^#\! *\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p' /usr/bin/sabnzbdplus + PYTHONEXEC='^/usr/bin/python( -OO)?' + PIDFILE=/var/run/sabnzbdplus.pid + SETTINGS_LOADED=FALSE + unset USER CONFIG HOST PORT EXTRAOPTS + . /lib/lsb/init-functions +++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d ++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)' ++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']' ++ . /lib/lsb/init-functions.d/20-left-info-blocks ++ FANCYTTY= ++ '[' -e /etc/lsb-base-logging.sh ']' ++ true + case "$1" in + start_sab + load_settings + '[' FALSE '!=' TRUE ']' + . /etc/default/sabnzbdplus ++ USER=waxy ++ CONFIG= ++ HOST= ++ PORT= ++ EXTRAOPTS= + '[' -z waxy ']' + '[' -z waxy ']' + OPTIONS=--daemon + '[' -n '' ']' + '[' -n '' ']' + SERVER= + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + SETTINGS_LOADED=TRUE + return 0 + is_running ++ pgrep -f -x -u waxy '^/usr/bin/python( -OO)? /usr/bin/sabnzbdplus --daemon.*' + PID= + RET=1 + '[' 1 -gt 1 ']' + return 1 + log_daemon_msg 'Starting SABnzbd+ binary newsgrabber' + '[' -z 'Starting SABnzbd+ binary newsgrabber' ']' + log_daemon_msg_pre 'Starting SABnzbd+ binary newsgrabber' + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' -t 1 ']' + '[' xscreen '!=' x ']' + '[' xscreen '!=' xdumb ']' + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 + FANCYTTY=0 + case "$FANCYTTY" in + false + '[' -z '' ']' + /bin/echo -n 'Starting SABnzbd+ binary newsgrabber:' Starting SABnzbd+ binary newsgrabber:+ return + start-stop-daemon --quiet --chuid waxy --start --exec /usr/bin/sabnzbdplus -- --daemon X11 connection rejected because of wrong authentication. + check_retval + '[' 0 -eq 0 ']' + log_end_msg 0 + '[' -z 0 ']' + local retval + retval=0 + log_end_msg_pre 0 + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' -t 1 ']' + '[' xscreen '!=' x ']' + '[' xscreen '!=' xdumb ']' + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 + FANCYTTY=0 + case "$FANCYTTY" in + false + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' -t 1 ']' + '[' xscreen '!=' x ']' + '[' xscreen '!=' xdumb ']' + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 + FANCYTTY=0 + case "$FANCYTTY" in + false + RED= + YELLOW= + NORMAL= + '[' 0 -eq 0 ']' + echo . . + log_end_msg_post 0 + : + return 0 + return 0 ++ dirname /var/run/sabnzbdplus.pid + '[' -w /var/run ']' + pgrep -f -x -n -u waxy '^/usr/bin/python( -OO)? /usr/bin/sabnzbdplus --daemon' + exit 0 The daemon is running after running the initscript, but because of the return value, the installation of the package fails. > * program's debug log resulting from running 'sabnzbdplus -l2' (that's > a lowercase L) under the same user account normally used by the init > script. $ sabnzbdplus -l2 2012-10-29 08:11:50,980::INFO::[sabnzbdplus:1246] -------------------------------- 2012-10-29 08:11:50,981::INFO::[sabnzbdplus:1247] sabnzbdplus-0.7.4 (rev=10b740374895704bde1c7fb99995be6e9c913d8d) 2012-10-29 08:11:50,981::INFO::[sabnzbdplus:1259] Platform = posix 2012-10-29 08:11:50,981::INFO::[sabnzbdplus:1260] Python-version = 2.7.3 (default, Sep 9 2012, 17:41:34) [GCC 4.7.1] 2012-10-29 08:11:50,981::INFO::[sabnzbdplus:1261] Arguments = /usr/bin/sabnzbdplus -l2 2012-10-29 08:11:50,981::INFO::[sabnzbdplus:1274] Read INI file /home/users/waxy/.sabnzbd/sabnzbd.ini 2012-10-29 08:11:50,982::INFO::[__init__:920] Loading data for bookmarks.sab from /home/users/waxy/.sabnzbd/admin/bookmarks.sab 2012-10-29 08:11:50,982::INFO::[__init__:920] Loading data for rss_data.sab from /home/users/waxy/.sabnzbd/admin/rss_data.sab 2012-10-29 08:11:50,999::INFO::[__init__:920] Loading data for totals9.sab from /home/users/waxy/.sabnzbd/admin/totals9.sab 2012-10-29 08:11:50,999::DEBUG::[bpsmeter:171] Read quota q=0.0 l=0.0 reset=0 2012-10-29 08:11:50,999::INFO::[postproc:90] Loading postproc queue 2012-10-29 08:11:51,000::INFO::[__init__:920] Loading data for postproc1.sab from /home/users/waxy/.sabnzbd/admin/postproc1.sab 2012-10-29 08:11:51,000::INFO::[__init__:920] Loading data for queue9.sab from /home/users/waxy/.sabnzbd/admin/queue9.sab 2012-10-29 08:11:51,000::DEBUG::[downloader:124] Initializing downloader/decoder 2012-10-29 08:11:51,001::INFO::[__init__:920] Loading data for watched_data.sab from /home/users/waxy/.sabnzbd/admin/watched_data.sab 2012-10-29 08:11:51,001::DEBUG::[scheduler:138] Scheduling RSS interval task every 180 min (delay=153) 2012-10-29 08:11:51,001::DEBUG::[scheduler:149] Scheduling VersionCheck on day 2 at 1:9 2012-10-29 08:11:51,001::INFO::[downloader:208] Resuming 2012-10-29 08:11:51,001::DEBUG::[__init__:524] PAUSED_ALL inactive 2012-10-29 08:11:51,001::INFO::[__init__:322] All processes started 2012-10-29 08:11:51,002::INFO::[sabnzbdplus:334] Web dir is /usr/share/sabnzbdplus/interfaces/Plush 2012-10-29 08:11:51,002::INFO::[sabnzbdplus:334] Web dir is /usr/share/sabnzbdplus/interfaces/Config 2012-10-29 08:11:51,006::INFO::[sabnzbdplus:450] _yenc module... found! 2012-10-29 08:11:51,006::INFO::[sabnzbdplus:458] par2 binary... found (/usr/bin/par2) 2012-10-29 08:11:51,007::INFO::[sabnzbdplus:466] unrar binary... found (/usr/bin/unrar) 2012-10-29 08:11:51,007::INFO::[sabnzbdplus:471] unzip binary... found (/usr/bin/unzip) 2012-10-29 08:11:51,007::INFO::[sabnzbdplus:477] nice binary... found (/usr/bin/nice) 2012-10-29 08:11:51,007::INFO::[sabnzbdplus:481] ionice binary... found (/usr/bin/ionice) 2012-10-29 08:11:51,007::INFO::[sabnzbdplus:486] pyOpenSSL... found (True) 2012-10-29 08:11:51,008::INFO::[sabnzbdplus:1473] Starting web-interface on 0.0.0.0:9090 2012-10-29 08:11:51,009::INFO::[_cplogging:55] [29/Oct/2012:08:11:51] ENGINE Bus STARTING 2012-10-29 08:11:51,010::INFO::[_cplogging:55] [29/Oct/2012:08:11:51] ENGINE Started monitor thread '_TimeoutMonitor'. 2012-10-29 08:11:51,111::INFO::[_cplogging:55] [29/Oct/2012:08:11:51] ENGINE Serving on ::1:9090 2012-10-29 08:11:51,212::INFO::[_cplogging:55] [29/Oct/2012:08:11:51] ENGINE Serving on 0.0.0.0:9090 2012-10-29 08:11:51,213::INFO::[_cplogging:55] [29/Oct/2012:08:11:51] ENGINE Bus STARTED 2012-10-29 08:11:51,213::DEBUG::[notifier:112] Sending registration to localhost:23053 2012-10-29 08:11:51,215::DEBUG::[notifier:219] To : localhost:23053 <<class 'gntp.GNTPRegister'>> 2012-10-29 08:11:51,215::DEBUG::[growler:171] Cannot register with Growl [Errno 111] Connection refused 2012-10-29 08:11:51,713::INFO::[growler:267] Send to NotifyOSD: SABnzbd@waxy / SABnzbd 0.7.4 started 2012-10-29 08:11:51,716::INFO::[growler:273] NotifyOSD not working 2012-10-29 08:11:51,716::DEBUG::[misc:553] Version check disabled by Ubuntu/Debian packaging 2012-10-29 08:11:51,716::INFO::[sabnzbdplus:1542] Starting sabnzbdplus-0.7.4 2012-10-29 08:11:51,716::DEBUG::[__init__:333] Starting postprocessor 2012-10-29 08:11:51,717::DEBUG::[__init__:336] Starting assembler 2012-10-29 08:11:51,717::DEBUG::[__init__:339] Starting downloader 2012-10-29 08:11:51,717::DEBUG::[scheduler:181] Starting scheduler 2012-10-29 08:11:51,717::DEBUG::[__init__:344] Starting dirscanner 2012-10-29 08:11:51,718::INFO::[dirscanner:265] Dirscanner starting up 2012-10-29 08:11:51,718::DEBUG::[__init__:349] Starting urlgrabber 2012-10-29 08:11:51,718::INFO::[urlgrabber:77] URLGrabber starting up ^C 2012-10-29 08:12:00,620::WARNING::[__init__:169] Signal 2 caught, saving and exiting... 2012-10-29 08:12:00,620::INFO::[nzbqueue:204] Saving queue 2012-10-29 08:12:00,620::INFO::[__init__:896] Saving data for queue9.sab in /home/users/waxy/.sabnzbd/admin/queue9.sab 2012-10-29 08:12:00,621::INFO::[__init__:896] Saving data for totals9.sab in /home/users/waxy/.sabnzbd/admin/totals9.sab 2012-10-29 08:12:00,621::INFO::[__init__:896] Saving data for rss_data.sab in /home/users/waxy/.sabnzbd/admin/rss_data.sab 2012-10-29 08:12:00,626::INFO::[__init__:896] Saving data for bookmarks.sab in /home/users/waxy/.sabnzbd/admin/bookmarks.sab 2012-10-29 08:12:00,626::INFO::[__init__:896] Saving data for watched_data.sab in /home/users/waxy/.sabnzbd/admin/watched_data.sab 2012-10-29 08:12:00,627::INFO::[postproc:84] Saving postproc queue 2012-10-29 08:12:00,627::INFO::[__init__:896] Saving data for postproc1.sab in /home/users/waxy/.sabnzbd/admin/postproc1.sab -- mvg, Alex Hermann -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org