Opened 13 years ago

Closed 12 years ago

#10057 closed Bug Report - General (Unverified)

NetworkControl failed to bind to port X

Reported by: yiannividalis@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Both frontends, running on openSuSE 11.4 have the same problem. It used to work up and until April (?) when I used mythmote successfully, but it has not been working lately.

Nothing else listens on the default port and I tried changing it to 6983 with the same error.

MythTV Version : v0.25pre-3358-gcd002d2-dirty
MythTV Branch : master
Network Protocol : 69
Library API : 0.25.20110920-1
QT Version : 4.7.3
Options compiled in:
 linux release use_hidesyms using_alsa using_jack using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_frontend using_hdpvr using_iptv using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_v4l1 using_x11 using_xrandr using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg using_libxml2

frontend log extract:

2011-09-23 22:49:04.579252 I [18497/18497] CoreContext mythudplistener.cpp:21 (MythUDPListener) - UDPListener: bound to port 6948
2011-09-23 22:49:04.683864 I [18497/18497] CoreContext mythmainwindow.cpp:897 (Init) - Using Frameless Window
2011-09-23 22:49:04.683958 I [18497/18497] CoreContext mythmainwindow.cpp:910 (Init) - Using Full Screen Window
2011-09-23 22:49:05.191391 I [18497/18497] CoreContext mythmainwindow.cpp:962 (Init) - Trying the OpenGL painter
2011-09-23 22:49:05.346152 I [18497/18497] CoreContext mythrender_opengl1.cpp:77 (InitFeatures) - OpenGL1: Fragment program support available
2011-09-23 22:49:05.346221 I [18497/18497] CoreContext mythrender_opengl.cpp:880 (InitFeatures) - OpenGL: OpenGL vendor  : NVIDIA Corporation
2011-09-23 22:49:05.346229 I [18497/18497] CoreContext mythrender_opengl.cpp:882 (InitFeatures) - OpenGL: OpenGL renderer: GeForce 9500 GT/PCI/SSE2
2011-09-23 22:49:05.346235 I [18497/18497] CoreContext mythrender_opengl.cpp:884 (InitFeatures) - OpenGL: OpenGL version : 3.3.0 NVIDIA 275.19
2011-09-23 22:49:05.346242 I [18497/18497] CoreContext mythrender_opengl.cpp:886 (InitFeatures) - OpenGL: Max texture size: 8192 x 8192
2011-09-23 22:49:05.346247 I [18497/18497] CoreContext mythrender_opengl.cpp:888 (InitFeatures) - OpenGL: Max texture units: 4
2011-09-23 22:49:05.346251 I [18497/18497] CoreContext mythrender_opengl.cpp:890 (InitFeatures) - OpenGL: Direct rendering: Yes
2011-09-23 22:49:05.346255 I [18497/18497] CoreContext mythrender_opengl.cpp:897 (InitFeatures) - OpenGL: PixelBufferObject support available
2011-09-23 22:49:05.346259 I [18497/18497] CoreContext mythrender_opengl.cpp:81 (Init) - OpenGL: Initialised MythRenderOpenGL
2011-09-23 22:49:06.639993 I [18497/18497] CoreContext schemawizard.cpp:118 (Compare) - Current MythTV Schema Version (DBSchemaVer): 1282
2011-09-23 22:49:08.027117 N [18497/18497] CoreContext mythmainwindow.cpp:1799 (RegisterMediaPlugin) - Registering Internal as a media playback plugin.
2011-09-23 22:49:08.192341 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mytharchive
2011-09-23 22:49:08.206753 N [18497/18497] CoreContext mythmainwindow.cpp:1799 (RegisterMediaPlugin) - Registering WebBrowser as a media playback plugin.
2011-09-23 22:49:08.206948 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythbrowser
2011-09-23 22:49:08.309045 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythgallery
2011-09-23 22:49:08.339600 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythgame
2011-09-23 22:49:08.614004 I [18497/18497] CoreContext schemawizard.cpp:118 (Compare) - Current MythMusic Schema Version (MusicDBSchemaVer): 1019
2011-09-23 22:49:08.742854 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythmusic
2011-09-23 22:49:08.771620 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythnetvision
2011-09-23 22:49:08.808858 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythnews
2011-09-23 22:49:08.846757 I [18497/18497] CoreContext weatherSource.cpp:424 (startUpdate) - Starting update of BBC-Current-XML
2011-09-23 22:49:08.848069 E [18497/18497] CoreContext weatherSource.cpp:442 (startUpdate) - BBC-Current-XML recently updated, skipping.
2011-09-23 22:49:08.866194 I [18497/18497] CoreContext weatherSource.cpp:424 (startUpdate) - Starting update of BBC-3day-XML
2011-09-23 22:49:08.867605 E [18497/18497] CoreContext weatherSource.cpp:442 (startUpdate) - BBC-3day-XML recently updated, skipping.
2011-09-23 22:49:08.867811 I [18497/18497] CoreContext weatherSource.cpp:424 (startUpdate) - Starting update of yrno-XML
2011-09-23 22:49:08.876295 I [18497/18497] CoreContext weatherSource.cpp:424 (startUpdate) - Starting update of yrno-XML
2011-09-23 22:49:08.889139 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythweather
2011-09-23 22:49:08.920549 I [18497/18497] CoreContext mythtranslation.cpp:66 (load) - Loading el translation for module mythzoneminder
2011-09-23 22:49:08.994427 E [18497/18497] CoreContext main.cpp:1648 (main) - NetworkControl failed to bind to port 6983.
2011-09-23 22:49:09.116746 N [18497/18497] CoreContext main.cpp:1041 (RunMenu) - Found mainmenu.xml for theme 'Arclight'
2011-09-23 22:49:09.831049 I [18497/18675] Reconnect mythdbcon.cpp:75 (MSqlDatabase) - Database connection created: DBManager2
2011-09-23 22:49:09.831071 I [18497/18675] Reconnect mythdbcon.cpp:298 (popConnection) - New DB connection, total: 2

Change History (6)

comment:1 Changed 13 years ago by Raymond Wagner

Works fine here. Could you make sure nothing else is trying to listen on that port, like another mythfrontend instance, using netstat? Are you running SELinux or anything else that might block listening on a non-privileged (>1024) port, or listening on all addresses?

comment:2 Changed 13 years ago by yiannividalis@…

openSuSE uses Apparmor, and it's disabled on both systems. SuSEfirewall too. I even tried starting firewall and adding 6546 to the exception list. No use. netstat -lp | grep 654 shows

tcp        0      0 *:apc-6547              *:*                     LISTEN      8716/mythfrontend   
udp        0      0 *:apc-6549              *:*                                 8716/mythfrontend

The networkcontrol port is set to 6546.

comment:3 Changed 13 years ago by beirdo

The network control port is set as 6983 in your database (from the log that you posted). Please check if anything else is using *that* port (with netstat -tapn | grep 6983)

Also, why are you overriding that port in your settings?

comment:4 Changed 13 years ago by yiannividalis@…

Apologies about the differences between the log port number and the netstat commands: I overrode the default port of 6546 to 6983 to check if it was the port that was causing the problem. Mythfrontend couldn't bind to the 6983 port either. The netstat results were taken after I returned the port to the default value.

sudo netstat -tapn | grep 654 gives:

tcp        0      0 0.0.0.0:6548            0.0.0.0:*               LISTEN      4173/mythzmserver   
tcp        0      0 192.168.13.100:59661    192.168.13.65:6543      ESTABLISHED 31454/mythbackend   
tcp        0      0 192.168.13.100:59646    192.168.13.65:6543      ESTABLISHED 29816/mythfrontend  
tcp        0      0 192.168.13.100:59647    192.168.13.65:6543      ESTABLISHED 29816/mythfrontend  
tcp        0      0 :::6543                 :::*                    LISTEN      31454/mythbackend   
tcp        0      0 :::6544                 :::*                    LISTEN      31454/mythbackend   
tcp        0      0 :::6547                 :::*                    LISTEN      29816/mythfrontend  
tcp        0      0 127.0.0.1:44654         127.0.0.1:38677         TIME_WAIT   -                   
tcp        0      0 127.0.0.1:41654         127.0.0.1:38677         TIME_WAIT   -                   

I get the impression that the networkcontrol protocol *code* cannot bind to a port.

I tried enabling networkcontrol on a laptop I have (opensuse 11.4 tumbleweed, same mythtv version) and I also put 6546 to the allowed TCP and UDP ports on the firewall with no success. Disabling the firewall had no effect,either.

If networkcontrol depends on specific libraries on the system, let me know which ones and I can give you the version numbers, in case there is something in opensuse code that creates conflict.

comment:5 Changed 12 years ago by Yianni Vidalis <yiannividalis@…>

The problem is gone in a new opensuse 12.1 installation. Please feel free to close this ticket. I don't know what was causing the problem, but it's gone now. Maybe libs from different repos.

One bug less for .25.

comment:6 Changed 12 years ago by Raymond Wagner

Resolution: Unverified
Status: newclosed

User reports problem no longer occurring. Cause unknown.

Note: See TracTickets for help on using tickets.