You are not logged in.

#1 2011-07-02 12:52:12

boomshalek
Member
Registered: 2007-10-12
Posts: 106

MythTV FE/BE - Could not connect to Backend / IP_ADD_MEMBERSHIP

Dear Arch users

Since about a week I cannot use mythtv anymore, because I always get the often seen "Could not connect to backend" error.
I had this error multiple times since my first steps using MythTV back in 2002.
But this time I had everything working for 4 months since initial setup.
I might have done an pacman -Syu upgrade around the time, when the problem started.
The only error message I could identify as a possible cause so far is "QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error"

Since this problem started I have another network related problem with Samba. Everything is working fine until I start moving a big file to the shared folder from Win7. It aborts with "connection "

Help greatly appreciated

Mythbackend-LOG
2011-07-02 14:17:06.000 mythbackend version:  [v0.24.1] www.mythtv.org
2011-07-02 14:17:06.004 Using runtime prefix = /usr
2011-07-02 14:17:06.005 Using configuration directory = /root/.mythtv
2011-07-02 14:17:06.013 Empty LocalHostName.
2011-07-02 14:17:06.014 Using localhost value of TVBOX
2011-07-02 14:17:06.033 New DB connection, total: 1
2011-07-02 14:17:06.048 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:17:06.154 Closing DB connection named 'DBManager0'
2011-07-02 14:17:06.157 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:17:06.164 Current locale de_CH
2011-07-02 14:17:06.169 No locale defaults file for de_CH, skipping
2011-07-02 14:17:06.174 Current MythTV Schema Version (DBSchemaVer): 1264
2011-07-02 14:17:06.188 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
2011-07-02 14:17:06.211 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error
2011-07-02 14:17:06.220 Enabling Upnpmedia rebuild thread.
2011-07-02 14:17:06.228 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error
2011-07-02 14:17:07.433 MythBackend: Starting up as the master server.
2011-07-02 14:17:07.442 New DB connection, total: 2
2011-07-02 14:17:07.443 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:17:07.446 New DB connection, total: 3
2011-07-02 14:17:07.447 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:17:07.509 QMulticastSocket: setsockopt - IP_ADD_MEMBERSHIP Error
2011-07-02 14:17:16.256 UPnpMedia: BuildMediaMap VIDEO scan starting in :/media/daten/filme:
2011-07-02 14:17:17.009 UPnpMedia: BuildMediaMap Done. Found 387 objects

mythfrontend-LOG
2011-07-02 14:31:38.936 mythfrontend version:  [v0.24.1] www.mythtv.org
2011-07-02 14:31:38.936 Using runtime prefix = /usr
2011-07-02 14:31:38.936 Using configuration directory = /home/xxx/.mythtv
2011-07-02 14:31:38.937 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
2011-07-02 14:31:39.809 Empty LocalHostName.
2011-07-02 14:31:39.809 Using localhost value of TVBOX
2011-07-02 14:31:39.817 New DB connection, total: 1
2011-07-02 14:31:39.821 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:31:39.826 Closing DB connection named 'DBManager0'
2011-07-02 14:31:39.827 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:31:39.828 Current locale xx_XX
2011-07-02 14:31:39.828 No locale defaults file for xx_XX, skipping
2011-07-02 14:31:40.031 DPMS is disabled.
2011-07-02 14:31:40.082 Desktop video mode: 1024x768 60.004 Hz
2011-07-02 14:31:40.104 Enabled verbose msgs:  important general
2011-07-02 14:31:40.134 Connecting to lcd server: 127.0.0.1:6545 (try 1 of 10)
2011-07-02 14:31:40.137 Loading de translation for module mythfrontend
2011-07-02 14:31:40.140 New DB connection, total: 2
2011-07-02 14:31:40.141 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:31:40.148 LIRC: Successfully initialized '/dev/lircd' using '/home/xxx/.mythtv/lircrc' config
2011-07-02 14:31:40.149 JoystickMenuThread Error: Joystick disabled - Failed to open device /dev/input/js0
2011-07-02 14:31:40.187 Using Frameless Window
2011-07-02 14:31:40.187 Using Full Screen Window
2011-07-02 14:31:40.320 Using the OpenGL painter
2011-07-02 14:31:40.387 OpenGL: OpenGL vendor  : NVIDIA Corporation
2011-07-02 14:31:40.387 OpenGL: OpenGL renderer: GeForce 8400 GS/PCI/SSE2
2011-07-02 14:31:40.387 OpenGL: OpenGL version : 3.3.0 NVIDIA 275.09.07
2011-07-02 14:31:40.387 OpenGL: Max texture size: 8192 x 8192
2011-07-02 14:31:40.387 OpenGL: Max texture units: 4
2011-07-02 14:31:40.387 OpenGL: Direct rendering: Yes
2011-07-02 14:31:40.387 OpenGL: Initialised MythRenderOpenGL
2011-07-02 14:31:40.599 New DB connection, total: 3
2011-07-02 14:31:40.600 Current MythTV Schema Version (DBSchemaVer): 1264
2011-07-02 14:31:40.600 Connected to database 'mythconverg' at host: localhost
2011-07-02 14:31:41.362 Key Alt+Alt+C is already bound to a jump point.
2011-07-02 14:31:41.432 Registering Internal as a media playback plugin.
2011-07-02 14:31:41.456 Loading de translation for module mytharchive
2011-07-02 14:31:41.462 Registering WebBrowser as a media playback plugin.
2011-07-02 14:31:41.462 Loading de translation for module mythbrowser
2011-07-02 14:31:41.485 MediaMonitorUnix::AddDevice() - empty device path.
2011-07-02 14:31:41.485 MediaMonitorUnix::AddDevice() - empty device path.
2011-07-02 14:31:41.485 MediaMonitorUnix::AddDevice() - empty device path.
2011-07-02 14:31:41.486 MonitorRegisterExtensions(0x100, gif,jpg,png)
2011-07-02 14:31:41.486 Loading de translation for module mythgallery
2011-07-02 14:31:41.493 Loading de translation for module mythgame
2011-07-02 14:31:41.507 Current MythMusic Schema Version (MusicDBSchemaVer): 1017
2011-07-02 14:31:41.545 MonitorRegisterExtensions(0x40, mp3,mp2,ogg,oga,flac,wma,wav,ac3,oma,omg,atp,ra,dts,aac,m4a,aa3,tta,mka,aiff,swa,wv)
2011-07-02 14:31:41.551 Loading de translation for module mythmusic
2011-07-02 14:31:41.554 Loading de translation for module mythnetvision
2011-07-02 14:31:41.559 Loading de translation for module mythnews
2011-07-02 14:31:41.565 Current MythVideo Schema Version (mythvideo.DBSchemaVer): 1038
2011-07-02 14:31:41.584 Loading de translation for module mythvideo
2011-07-02 14:31:41.594 Starting update of wunderground
2011-07-02 14:31:41.598 Starting update of BBC-3day-XML
2011-07-02 14:31:41.599 BBC-3day-XML recently updated, skipping.
2011-07-02 14:31:41.599 Loading de translation for module mythweather
2011-07-02 14:31:41.602 NetworkControl: Listening for remote connections on port 6546
2011-07-02 14:31:41.740 Found mainmenu.xml for theme 'Mythbuntu'
2011-07-02 14:31:41.964 MythCoreContext: Connecting to backend server: 192.168.XXX.XXX:6543 (try 1 of 1)
2011-07-02 14:31:41.965 Connection to master server timed out.
            Either the server is down or the master server settings
            in mythtv-settings does not contain the proper IP address
2011-07-02 14:31:41.965 Unable to determine master backend time zone settings.  If those settings differ from local settings, some functionality will fail.
2011-07-02 14:31:43.711 'nice /usr/share/mythtv/mythweather/scripts/wunderground/wunderground.pl -u SI -d /home/chris/.mythtv/MythWeather/wunderground Zurich, Switzerland' has exited
2011-07-02 14:31:46.221 MythCoreContext: Connecting to backend server: 192.168.XXX.XXX:6543 (try 1 of 1)
2011-07-02 14:31:46.221 Connection to master server timed out.
            Either the server is down or the master server settings
            in mythtv-settings does not contain the proper IP address
2011-07-02 14:31:48.971 OpenGL: Deleting OpenGL Resources
2011-07-02 14:31:49.011 Deleting UPnP client...
Error in my_thread_global_end(): 1 threads didn't exit

EDIT: mysql -umythtv -p -h192.168.XXX.XXX is working

/var/log/samba/__ff_win7-IP
[2011/07/02 13:49:00.583664,  0] lib/util_sock.c:1514(matchname)
  matchname: host name/address mismatch: ::ffff:IP != t410
[2011/07/02 13:49:00.584179,  0] lib/util_sock.c:1635(get_peer_name)
  Matchname failed on t410 ::ffff:IP
[2011/07/02 14:03:51.706889,  0] lib/util_sock.c:1514(matchname)
  matchname: host name/address mismatch: ::ffff:IP != t410
[2011/07/02 14:03:51.707122,  0] lib/util_sock.c:1635(get_peer_name)
  Matchname failed on t410 ::ffff:IP
[2011/07/02 14:19:07.257751,  0] lib/util_sock.c:1514(matchname)
  matchname: host name/address mismatch: ::ffff:IP != t410
[2011/07/02 14:19:07.258262,  0] lib/util_sock.c:1635(get_peer_name)
  Matchname failed on t410 ::ffff:IP
[2011/07/02 14:34:09.704617,  0] lib/util_sock.c:1514(matchname)
  matchname: host name/address mismatch: ::ffff:IP != t410
[2011/07/02 14:34:09.704857,  0] lib/util_sock.c:1635(get_peer_name)
  Matchname failed on t410 ::ffff:IP
[2011/07/02 14:35:21.845439,  0] lib/util_sock.c:1514(matchname)
  matchname: host name/address mismatch: ::ffff:IP != t410
[2011/07/02 14:35:21.845678,  0] lib/util_sock.c:1635(get_peer_name)
  Matchname failed on t410 ::ffff:IP

/var/log/samba/win7-IP
[2011/07/02 14:34:21.526694,  0] lib/util_sock.c:474(read_fd_with_timeout)
[2011/07/02 14:34:21.526789,  0] lib/util_sock.c:1441(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2011/07/02 14:35:22.028231,  1] smbd/service.c:1070(make_connection_snum)
  t410 (::ffff:192.168.2.121) connect to service filme initially as user chris (uid=1000, gid=100) (pid 3390)

Last edited by boomshalek (2011-07-02 13:01:33)

Offline

#2 2011-07-03 18:07:17

boomshalek
Member
Registered: 2007-10-12
Posts: 106

Re: MythTV FE/BE - Could not connect to Backend / IP_ADD_MEMBERSHIP

I think I solved the samba issue by changing my router's settings.

It's a WRT54GS v.2.2 Bug with DD-WRT. After setting right clock frequency in DD-WRT for this model I can finally transfer large files over my homenetwork.

Offline

Board footer

Powered by FluxBB