[mythtv-users] Network Control Socket

R. G. Newbury newbury at mandamus.org
Mon Mar 19 18:40:36 UTC 2012


On 03/18/2012 04:21 PM, Raymond Wagner wrote:

> The only thing I can think is that either the control socket itself has
> stalled somehow, or perhaps you have an older zombified instance of the
> frontend listening on it instead.  Check your frontend logs.  They
> should register the initialization of that mechanism.  On 0.25, you
> should see something like...
>
> 2012-03-10 01:15:06.794107 I [15388/15388] CoreContext
> serverpool.cpp:292 (listen) - Listening on TCP 127.0.0.1:6546
> 2012-03-10 01:15:06.794190 I [15388/15388] CoreContext
> serverpool.cpp:292 (listen) - Listening on TCP 10.254.2.32:6546
> 2012-03-10 01:15:06.794293 I [15388/15388] CoreContext
> serverpool.cpp:292 (listen) - Listening on TCP [0:0:0:0:0:0:0:1]:6546
>
> I don't know off hand what you would be looking for in 0.24, but '6546'
> would be a good thing to grep for.

Here's a startup of mythfrontend. Interestingly, although logpath is 
given the mythfrontend.log file is zero bytes. No mention of 6546 
although 6547 is mentioned.

And NEITHER 6546 NOR 6547 appear in the settings table!  ?????

root at tor1 mythtv]# mythfrontend -v playback --logpath /var/log/mythtv
2012-03-19 14:26:56.560294 C  mythfrontend version: master 
[v0.25-beta-8-gdd9a92a-dirty] www.mythtv.org
2012-03-19 14:26:56.560334 N  Enabled verbose msgs:  general
2012-03-19 14:26:56.560434 N  Setting Log Level to LOG_INFO
2012-03-19 14:26:56.560489 I  Added logging to the console
2012-03-19 14:26:56.560506 I  Added logging to /var/log/mythtv/frontend.log
2012-03-19 14:26:56.560514 I  Added database logging to table logging
2012-03-19 14:26:56.560666 N  Setting up SIGHUP handler
2012-03-19 14:26:56.560852 N  Using runtime prefix = /usr/local
2012-03-19 14:26:56.560870 N  Using configuration directory = 
/var/log/mythtv/.mythtv
2012-03-19 14:26:56.561773 I  Using localhost value of tor1.mandamus.org
2012-03-19 14:26:56.562252 I  Starting process manager
2012-03-19 14:26:56.563321 I  Starting process signal handler
2012-03-19 14:26:56.569248 I  Starting IO manager (write)
2012-03-19 14:26:56.569340 I  Starting IO manager (read)
2012-03-19 14:26:56.676060 I  Database connection created: DBManager0
2012-03-19 14:26:56.676114 I  New DB connection, total: 1
2012-03-19 14:26:56.678982 I  Connected to database 'mythconverg' at 
host: 192.168.1.99
2012-03-19 14:26:56.683610 I  Closing DB connection named 'DBManager0'
2012-03-19 14:26:56.683806 I  Database connection created: DBManager1
2012-03-19 14:26:56.683826 I  New DB connection, total: 1
2012-03-19 14:26:56.684363 I  Connected to database 'mythconverg' at 
host: 192.168.1.99
2012-03-19 14:26:56.685736 I  Current locale en_US
2012-03-19 14:26:56.685804 N  Reading locale defaults from 
/usr/local/share/mythtv//locales/en_us.xml
2012-03-19 14:26:56.761352 I  Database connection created: DBManager2
2012-03-19 14:26:56.761399 I  New DB connection, total: 2
2012-03-19 14:26:56.762271 I  Connected to database 'mythconverg' at 
host: 192.168.1.99
2012-03-19 14:26:56.765468 I  ScreenSaverX11Private: DPMS is disabled.
2012-03-19 14:26:56.783791 N  Desktop video mode: 3200x1200 60.020 Hz
2012-03-19 14:26:56.808072 I  Listening on TCP 127.0.0.1:6547
2012-03-19 14:26:56.808168 I  Listening on TCP 192.168.1.99:6547
2012-03-19 14:26:56.810910 I  Listening on TCP [::1]:6547
2012-03-19 14:26:58.517794 I  Loading en_us translation for module 
mythfrontend
2012-03-19 14:26:58.525690 E  LIRC: Failed to connect to Unix socket 
'/var/run/lirc/lircd'
                         eno: No such file or directory (2)
2012-03-19 14:26:58.526496 I  Binding to UDP 127.0.0.1:6948
2012-03-19 14:26:58.526553 I  Binding to UDP 192.168.1.99:6948
2012-03-19 14:26:58.529235 I  Binding to UDP [::1]:6948
2012-03-19 14:26:58.529311 I  Binding to UDP 192.168.1.255:6948
2012-03-19 14:26:58.580361 I  Using Frameless Window
2012-03-19 14:26:58.813577 I  Trying the OpenGL painter
2012-03-19 14:26:58.817391 W  NVCtrl: OpenGL Sync to VBlank is disabled.
2012-03-19 14:26:58.817407 W  NVCtrl: For best results enable this in 
NVidia settings or try running:
2012-03-19 14:26:58.817411 W  NVCtrl: nvidia-settings -a "SyncToVBlank=1"
2012-03-19 14:26:58.817460 W  NVCtrl: Alternatively try setting the 
'__GL_SYNC_TO_VBLANK' environment variable.
2012-03-19 14:26:58.880439 I  OpenGL1: Fragment program support available
2012-03-19 14:26:58.880547 I  OpenGL: OpenGL vendor  : NVIDIA Corporation
2012-03-19 14:26:58.880556 I  OpenGL: OpenGL renderer: GeForce 9300 / 
nForce 730i/PCI/SSE2
2012-03-19 14:26:58.880566 I  OpenGL: OpenGL version : 3.3.0 NVIDIA 290.10
2012-03-19 14:26:58.880591 I  OpenGL: Max texture size: 8192 x 8192
2012-03-19 14:26:58.880596 I  OpenGL: Max texture units: 4
2012-03-19 14:26:58.880602 I  OpenGL: Direct rendering: Yes
2012-03-19 14:26:58.880607 I  OpenGL: PixelBufferObject support available
2012-03-19 14:26:58.880611 I  OpenGL: Initialised MythRenderOpenGL
2012-03-19 14:26:59.143101 I  Current MythTV Schema Version 
(DBSchemaVer): 1299
2012-03-19 14:26:59.164257 I  Database connection created: DBManager3
2012-03-19 14:26:59.164273 I  New DB connection, total: 3
2012-03-19 14:26:59.166315 I  Connected to database 'mythconverg' at 
host: 192.168.1.99
2012-03-19 14:26:59.644234 N  Registering Internal as a media playback 
plugin.
2012-03-19 14:26:59.705115 I  Loading en_us translation for module 
mytharchive
2012-03-19 14:26:59.707794 N  Upgrading to MythBrowser schema version 1001
2012-03-19 14:26:59.708797 N  Upgrading to MythBrowser schema version 1002
2012-03-19 14:26:59.711189 N  Registering WebBrowser as a media playback 
plugin.
2012-03-19 14:26:59.711266 I  Loading en_us translation for module 
mythbrowser
2012-03-19 14:26:59.727637 I  Loading en_us translation for module 
mythgallery
2012-03-19 14:26:59.732777 I  Loading en_us translation for module mythgame
2012-03-19 14:26:59.740426 I  Current MythMusic Schema Version 
(MusicDBSchemaVer): 1019
2012-03-19 14:26:59.753463 I  Loading en_us translation for module mythmusic
2012-03-19 14:26:59.756636 I  Loading en_us translation for module 
mythnetvision
2012-03-19 14:26:59.762457 I  Loading en_us translation for module mythnews
2012-03-19 14:26:59.773174 I  Starting update of ENVCAN-Static-Map
2012-03-19 14:26:59.773872 E  ENVCAN-Static-Map recently updated, skipping.
2012-03-19 14:26:59.774158 I  Starting update of wunderground-animaps
2012-03-19 14:26:59.774564 E  wunderground-animaps recently updated, 
skipping.
2012-03-19 14:26:59.774727 I  Starting update of ENVCAN
2012-03-19 14:26:59.775150 E  ENVCAN recently updated, skipping.
2012-03-19 14:26:59.775460 I  Loading en_us translation for module 
mythweather
2012-03-19 14:26:59.782557 I  Loading en_us translation for module 
mythzoneminder
2012-03-19 14:26:59.839267 N  Found mainmenu.xml for theme 'MythCenter-wide'
2012-03-19 14:26:59.980383 I  Database connection created: DBManager4
2012-03-19 14:26:59.980410 I  New DB connection, total: 4
2012-03-19 14:26:59.981506 I  Connected to database 'mythconverg' at 
host: 192.168.1.99
2012-03-19 14:26:59.993704 I  MythCoreContext: Connecting to backend 
server: 192.168.1.99:6543 (try 1 of 3)
2012-03-19 14:26:59.995247 I  Using protocol version 72
2012-03-19 14:27:14.908858 I  Using protocol version 72
2012-03-19 14:27:14.910518 I  Using protocol version 72
2012-03-19 14:29:00.103365 I  Closing DB connection named 'DBManager3'

************************

mysql> select value,data from settings  where data like "%654%";
+--------------------+------+
| value              | data |
+--------------------+------+
| MasterServerPort   | 6543 |
| NetworkControlPort | 6546 |
| BackendServerPort  | 6543 |
| BackendStatusPort  | 6544 |
+--------------------+------+
4 rows in set (0.00 sec)

mysql> select value,data from settings  where value like "%Port%";
+------------------------+------------------------+
| value                  | data                   |
+------------------------+------------------------+
| MasterServerPort       | 6543                   |
| EITTransportTimeout    | 1                      |
| MythMusicLastImportDir | /well/music            |
| GalleryImportDirs      | /mnt/cdrom:/mnt/camera |
| MTDPort                | 2442                   |
| UDPNotifyPort          | 6948                   |
| NetworkControlPort     | 6546                   |
| BackendServerPort      | 6543                   |
| BackendStatusPort      | 6544                   |
+------------------------+------------------------+
9 rows in set (0.00 sec)


***************************

I suspect something is missing here, but how/why I have no idea.
This is the config.log for the build here.

Tue Mar  6 16:48:57 EST 2012
    ./configure --prefix=/usr/local --compile-type=release 
--qmake=/usr/bin/qmake-qt4 --arch=x86_64 --enable-audio-alsa 
--enable-audio-oss --enable-mmx --disable-joystick-menu --enable-lirc 
--enable-hdhomerun --enable-ivtv --enable-dvb 
--dvb-path=/usr/src/kernels/3.2.3-2.fc16.x86_64/include --enable-x11 
--enable-xrandr --enable-xv --enable-vdpau --enable-nonfree 
--enable-libfaac --enable-libmp3lame --disable-libtheora 
--disable-libvorbis --disable-libx264 --disable-libxvid 
--enable-libfftw3 --enable-libx264 --enable-libxvid 
--with-bindings=perl,python

I note that the config.log does NOT report the php bindings status which 
configure reported as 'yes'.

SO, should there be a settings table entry for the nc port?

mysql> select value, data from settings where value like "%DbSchema%";
+----------------------+------+
| value                | data |
+----------------------+------+
| MusicDBSchemaVer     | 1019 |
| BrowserDBSchemaVer   | 1000 |
| ArchiveDBSchemaVer   | 1005 |
| DBSchemaVer          | 1299 |
| WebDBSchemaVer       | 2    |
| WeatherDBSchemaVer   | 1006 |
| GalleryDBSchemaVer   | 1003 |
| NetvisionDBSchemaVer | 1004 |
| BrowserDBSchemaVer   | 1002 |
| GameDBSchemaVer      | 1018 |
| NewsDBSchemaVer      | 1001 |
+----------------------+------+
11 rows in set (0.00 sec)

Geoff

















More information about the mythtv-users mailing list