[mythtv-users] Fwd: Re: Funky prefix to shutdown command (-#012#011#011#011#011#011#011)

schlimbo at gmx.de schlimbo at gmx.de
Wed Dec 19 19:28:56 UTC 2012


Thanks Jim and Mike.

Something's wrong. It just doesn't shut down.
A manual shutdown command results in the below. Is it not shutting down just because there is no recording time yet in the database? At least it pretends to shut down...but nothing happens.

??

Thanks for your help

frank



myth at mythserver:~$ mythshutdown --safeshutdown -v
2012-12-19 20:15:11.695056 C  mythshutdown version: fixes/0.26 [v0.26.0-64-g637d6d8] www.mythtv.org
2012-12-19 20:15:11.695075 C  Qt version: compile: 4.8.1, runtime: 4.8.1
2012-12-19 20:15:11.695078 N  Enabled verbose msgs:  general
2012-12-19 20:15:11.695087 N  Setting Log Level to LOG_INFO
2012-12-19 20:15:11.695357 I  Added logging to the console
2012-12-19 20:15:11.695667 I  Setup Interrupt handler
2012-12-19 20:15:11.695674 I  Setup Terminated handler
2012-12-19 20:15:11.695681 I  Setup Segmentation fault handler
2012-12-19 20:15:11.695687 I  Setup Aborted handler
2012-12-19 20:15:11.695692 I  Setup Bus error handler
2012-12-19 20:15:11.695698 I  Setup Floating point exception handler
2012-12-19 20:15:11.695702 I  Setup Illegal instruction handler
2012-12-19 20:15:11.695712 I  Setup Real-time signal 0 handler
2012-12-19 20:15:11.695740 N  Using runtime prefix = /usr
2012-12-19 20:15:11.695750 N  Using configuration directory = /home/myth/.mythtv
2012-12-19 20:15:11.695834 I  Assumed character encoding: de_DE.UTF-8
2012-12-19 20:15:11.696390 N  Empty LocalHostName.
2012-12-19 20:15:11.696395 I  Using localhost value of mythserver
2012-12-19 20:15:11.706081 N  Setting QT default locale to EN_US
2012-12-19 20:15:11.706156 I  Current locale EN_US
2012-12-19 20:15:11.706197 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2012-12-19 20:15:11.709913 I  Mythshutdown: --check
2012-12-19 20:15:11.709919 I  Mythshutdown: --status
2012-12-19 20:15:11.710100 I  Starting process manager
2012-12-19 20:15:11.710782 I  Starting process signal handler
2012-12-19 20:15:11.710841 I  Starting IO manager (read)
2012-12-19 20:15:11.710862 I  Starting IO manager (write)
2012-12-19 20:15:11.922308 I  Added logging to mythlogserver at TCP:35327
2012-12-19 20:15:12.011480 N  isRecording: Attempting to connect to master server...
2012-12-19 20:15:12.015051 I  MythCoreContext: Connecting to backend server: 192.168.1.55:6543 (try 1 of 1)
2012-12-19 20:15:12.015852 I  Using protocol version 75
2012-12-19 20:15:12.111647 I  Mythshutdown: --status returned: 0
2012-12-19 20:15:12.111657 N  OK to shutdown
2012-12-19 20:15:12.111662 I  Mythshutdown: --check returned: 0
2012-12-19 20:15:12.112064 I  Mythshutdown: --shutdown
2012-12-19 20:15:12.113816 E  no daily wakeup times are set
2012-12-19 20:15:12.114241 E  no recording time is set
2012-12-19 20:15:12.114253 E  no wake up time set and no scheduled program
2012-12-19 20:15:12.115366 E  Original query failed, but resend with empty strings in place of NULL strings worked.
DB Error (MSqlQuery):
Query was:
INSERT INTO settings ( value, data ) VALUES ( ?, ? );
Bindings were:
:DATA=NULL, :VALUE="MythShutdownWakeupTime"
Driver error was [2/1048]:
QMYSQL3: Unable to execute statement
Database error was:
Column 'data' cannot be null

2012-12-19 20:15:12.116115 N  everything looks fine, shutting down ...
2012-12-19 20:15:12.116689 N  ..
2012-12-19 20:15:12.116696 N  .
2012-12-19 20:15:12.116701 N  shutting down ...
myth at mythserver:~$

myth at mythserver:~$ mythshutdown --shutdown -v
2012-12-19 20:22:12.362487 C  mythshutdown version: fixes/0.26 [v0.26.0-64-g637d6d8] www.mythtv.org
2012-12-19 20:22:12.362505 C  Qt version: compile: 4.8.1, runtime: 4.8.1
2012-12-19 20:22:12.362508 N  Enabled verbose msgs:  general
2012-12-19 20:22:12.362518 N  Setting Log Level to LOG_INFO
2012-12-19 20:22:12.362787 I  Added logging to the console
2012-12-19 20:22:12.363107 I  Setup Interrupt handler
2012-12-19 20:22:12.363115 I  Setup Terminated handler
2012-12-19 20:22:12.363121 I  Setup Segmentation fault handler
2012-12-19 20:22:12.363128 I  Setup Aborted handler
2012-12-19 20:22:12.363132 I  Setup Bus error handler
2012-12-19 20:22:12.363138 I  Setup Floating point exception handler
2012-12-19 20:22:12.363143 I  Setup Illegal instruction handler
2012-12-19 20:22:12.363154 I  Setup Real-time signal 0 handler
2012-12-19 20:22:12.363182 N  Using runtime prefix = /usr
2012-12-19 20:22:12.363194 N  Using configuration directory = /home/myth/.mythtv
2012-12-19 20:22:12.363302 I  Assumed character encoding: de_DE.UTF-8
2012-12-19 20:22:12.363848 N  Empty LocalHostName.
2012-12-19 20:22:12.363854 I  Using localhost value of mythserver
2012-12-19 20:22:12.374082 N  Setting QT default locale to EN_US
2012-12-19 20:22:12.374163 I  Current locale EN_US
2012-12-19 20:22:12.374207 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2012-12-19 20:22:12.378350 I  Mythshutdown: --shutdown
2012-12-19 20:22:12.379317 E  no daily wakeup times are set
2012-12-19 20:22:12.379530 E  no recording time is set
2012-12-19 20:22:12.379536 E  no wake up time set and no scheduled program
2012-12-19 20:22:12.380187 E  Original query failed, but resend with empty strings in place of NULL strings worked.
DB Error (MSqlQuery):
Query was:
INSERT INTO settings ( value, data ) VALUES ( ?, ? );
Bindings were:
:DATA=NULL, :VALUE="MythShutdownWakeupTime"
Driver error was [2/1048]:
QMYSQL3: Unable to execute statement
Database error was:
Column 'data' cannot be null

2012-12-19 20:22:12.380647 N  everything looks fine, shutting down ...
2012-12-19 20:22:12.381053 N  ..
2012-12-19 20:22:12.381056 N  .
2012-12-19 20:22:12.381058 N  shutting down ...
2012-12-19 20:22:12.381264 I  Starting process manager
2012-12-19 20:22:12.382070 I  Starting IO manager (read)
2012-12-19 20:22:12.382074 I  Starting process signal handler
2012-12-19 20:22:12.382101 I  Starting IO manager (write)
2012-12-19 20:22:12.513642 I  Added logging to mythlogserver at TCP:35327

-------- Original-Nachricht --------
> Datum: Wed, 19 Dec 2012 09:34:22 -0500
> Von: "Michael T. Dean" <mtdean at thirdcontact.com>
> An: Discussion about MythTV <mythtv-users at mythtv.org>
> Betreff: Re: [mythtv-users] Funky prefix to shutdown command	(-#012#011#011#011#011#011#011)

> On 12/19/2012 09:09 AM, Jim Stichnoth wrote:
> > On Wed, Dec 19, 2012 at 2:19 AM, wrote:
> >> Hi,
> >> my backend-only server is configured to shutdown after a certain
> idle-time. It actually detects everything correctly, but when actually executing
> the command "mythshutdown --shutdown" it apparently prepends it with a
> funky string:
> >>
> >> Dec 19 11:06:10 mythserver mythlogserver: mythbackend[3953]: N
> Scheduler scheduler.cpp:2975 (ShutdownServer) Running the command to shutdown this
> computer :-#012#011#011#011#011#011#011mythshutdown --shutdown
> >>
> >> It doesn't matter what I put as the shutdown command, it always adds
> this string. It happens with 0.25 and 0.26.
> >>
> >> Any help?
> >  From programs/mythbackend/scheduler.cpp:
> >          LOG(VB_GENERAL, LOG_NOTICE,
> >              QString("Running the command to shutdown this computer
> > :-\n\t\t\t\t\t\t") + halt_cmd);
> >
> > You are just seeing mythlogserver deal with "special" characters in a
> > log message.
> 
> Actually, you are just seeing syslog deal with special characters.  
> mythlogserver handles them fine.  syslog converts them, unless you 
> configure it not to.  If you'd like a prettier log, either let 
> mythlogserver write it (don't use syslog) or reconfigure syslog.  (See 
> the part about $EscapeControlCharactersOnReceive on 
> http://www.mythtv.org/wiki/Simple_rsyslog_Configuration .)
> 
> That said, control characters have no place in log messages, so, 
> eventually, we plan to fix up multi-line messages and messages with 
> formatting, but it's not high priority.
> 
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list