View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 24 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Dec 04, 2006 7:39 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Well, I was off sick today and thought: Time to do some of those little jobs I'd been meaning to do to my Mythbox.
I ran into some problems and I will recount them to try and give you an idea of where the problem came from.

After watching some live TV, i got my wireless card up up, by running netcardconf again through an Xterm (having to do this by hand atm) - result: able to get online with Myth
Started looking at this web page http://mysettopbox.tv/phpBB2/viewtopic.php?t=12040&highlight=
Copied the lircd.conf with the one on the page. I dropped the mouse and got all sorts of popups appearing from the linux environment.

Tried to change the name of the lirc_pvr150.ko file to this lirc_pvr150.ko1 instead of deleting it.

Now no longer am I able to connect to the backend. I get the popup telling me to check the address.

I've tried to repair Mysql, which does not find any errors.
I've tried to access it through Mythweb, but can't connect, even though it is set up right.

Suggestions greatfully received before the girlfriend arrives home later.

And on reboot, I've lost my internet connection so can't so this from my mythbox. :D

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Last edited by tophee on Thu Dec 07, 2006 6:01 am, edited 4 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 8:03 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Some more information: (A little more precise too)

Myhtbackend.log reports:

Quote:
QMYSQL3: Unable to execute query

Database error was: Can't connect to local server trough socket 'var/run/mysqld/mysqld.sock' (2)

2006-12-04 10:31:21.349 DB Error (Get overlapping programs 1)


and this appears to have been repeated in several places

the tail section of this log reports:

Quote:
2006-12-04 12:45:15.963 Driver error was [1/2002]

QMYSQL3:Unable to connect
Database error was: Can't connect to local server trough socket 'var/run/mysqld/mysqld.sock' (2)
Q5qlQuery:: exec. database not open
Q5qlQuery:: exec. database not open

2006-12-04 12:45:16.018 DB Error (KickDatabase)
Query was: SELECT NULL

No error type from Q5S1Error? Strange....
2006-12-04 12:45:16.069 Failed to init Myth Context, exiting.


Pretty sure that's it, but internet connection is down so had to copy then type this manually.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 9:15 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Code:
df -h

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 9:30 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
From an Xterm window

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             4.7G  2.7G  1.8G  61% /
/dev/hda3             228G  217G   12G  96% /myth

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 7:03 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Right, the sickness that ails me is receding: so I'm a bit more on the ball today.

So, atm the frontend of my standalone box appears not to be talking to the back end (I'm hopeful that the backend is still doing it's thing, as there are several shows I had recorded I wanted to watch.) Somehow, the link appears to be broken.
It appears to be polling the backend for information, but can't connect. This means no live TV, recordings or status reports, but I can watch DVD's and .avi's etc. As in my previous post, there remains a fair old bit of space on hda1. Not much on hda3, but that is no biggie (as long as auto expire still is working.)

Now, how can I get the frontend to access the backend? I have already tried to repair the Mysql, and it reported no problems.
I've had a scout through some of the .log files and haven't seen anything overtly untoward (apart from what I posted earlier.)

I'm stuck. Suggestions on what to do please. - After all this time fiddling with Linux, I still don't know very much.

Oh, btw, I've rerun mythtv-setup and checked the ip address for the backend. It's still correect: 127.0.0.1

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 9:46 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
Doesn't sound like MySQL is running. What is the output from
Code:
ps -ef | grep -i sql


And what do you see if you run
Code:
/etc/init.d/mysql start


BTW, the frontend and backend are on the same system, correct? And which version of KM are you playing with here?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 11:07 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hii slowtolearn,
Output for ps -ef |grep -i sql
Code:
root      3655     1  0 Dec04 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql     3691  3655  0 Dec04 ?        00:04:51 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root      3692  3655  0 Dec04 ?        00:00:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root     29280 29219  0 16:59 ttyp2    00:00:00 grep -i sql


and when I type /etc/init.d/mysql start I get
Code:
Starting MySQL database server: mysqld...already running


I'm inclined to think that I've buggered up permissions somehow.... but my Linux knowledge is limited. The only thing that I can say I did was trying to 'remove' the
Quote:
new lirc_pvr_150 module
as Jynxeh stated in post listed above.
I'm stumped.

BTW: Running R5D1 + 0.20 (see sig for hardware)

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 2:54 pm 
Offline
Joined: Mon Nov 13, 2006 8:47 am
Posts: 17
I may be barking up the wrong tree here, but did you say that after you went wireless, (and did other things) you lost your connection to the backend? You might want to make sure that your wireless router is not blocking access. most have a firewall built in.

just a suggestion.

b


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 3:10 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
I was just about to jump in there and say... "It's a single box. So, it's only connected wirelessly to the outside world via the router." But, I've just had a thought.... when getting my wireless up and running I ran netcardconf again, but ... I think I initially clicked on the wrong one.... I wonder, did that stop Myth talking to itself?

I'll have to investigate. don't know if this will knock out my connection here.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Last edited by tophee on Wed Dec 06, 2006 7:58 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 3:43 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Well, it didn't work... but hopefully I'm tracking it a bit closer. It looks like it may be related to messing with lirc(?).
I reran mythtv-setup as a SU and below is the beginning and end of what was left on the screen once I'd exited it. BTW - it appears all the addresses and port numbers are correct.

Quote:
2006-12-05 21:29:52.499 New DB connection, total: 1
2006-12-05 21:29:52.502 Connected to database 'mythconverg' at host: localhost
2006-12-05 21:29:52.504 Total desktop dim: 800x600, with 1 screen[s].
2006-12-05 21:29:52.507 Using screen 0, 800x600 at 0,0
2006-12-05 21:29:52.697 Current Schema Version: 1160
2006-12-05 21:29:52.715 Total desktop dim: 800x600, with 1 screen[s].
2006-12-05 21:29:52.716 Using screen 0, 800x600 at 0,0
2006-12-05 21:29:52.718 Switching to square mode (Retro)
2006-12-05 21:29:52.740 Using the OpenGL painter
mythtv: could not open config file /root/.mythtv/lircrc
mythtv: No such file or directory

Failed to read lirc config /root/.mythtv/lircrc for mythtv
2006-12-05 21:29:53.081 Joystick disabled.
couldn't open fontconfigs chosen font with Xft!!!
couldn't open fontconfigs chosen font with Xft!!!


The second part of the output was connected by "couldn't open fontconfigs chosen font with Xft!!!"

Quote:
2006-12-05 21:31:34.238 New DB connection, total: 3
2006-12-05 21:31:34.239 Connected to database 'mythconverg' at host: localhost
2006-12-05 21:31:34.245 New DB connection, total: 4
2006-12-05 21:31:34.246 Connected to database 'mythconverg' at host: localhost
2006-12-05 21:31:34.247 New DB connection, total: 5
2006-12-05 21:31:34.249 Connected to database 'mythconverg' at host: localhost
2006-12-05 21:31:34.266 DiSEqCDevTree, Warning: No device tree for cardid 2
2006-12-05 21:31:50.071 DiSEqCDevTree, Warning: No device tree for cardid 1
2006-12-05 21:31:50.085 DiSEqCDevTree, Warning: No device tree for cardid 1
2006-12-05 21:32:02.506 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2006-12-05 21:32:02.507 Connection timed out.
You probably should modify the Master Server
settings in the setup program and set the
proper IP address.

As you can see here the problem is not being ablt to connect to the backend.

(Anyone seen that Eddie Izzard sketch where he's showing the moitor the printer? No? Anyway..)

Suggestions please!!!!!!!!!!

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 5:44 pm 
Offline
Joined: Wed Nov 09, 2005 8:45 pm
Posts: 76
tophee,

It looks like you are connecting to the mysql database fine and it is using localhost which should be the 127.0.0.1 address. Also lirc would have nothing to do with your inability to connect to the backend.

Are you sure the backend is running?

ps -ef |grep backend

Also you may want to try and use strace to see where the problem is at a system call level:

strace -fq -o /tmp/strace.out mythfrontend

You should see in the strace where it is trying to connect to the socket and what it is actually failing with each time. If you are not experienced at reading strace it may not make much sense to you though.

Also do a netstat -an to see the status of the socket:

netstat -an |grep 6543

Also, do a ping of localhost and make sure it is pinging 127.0.0.1:

ping localhost


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 05, 2006 7:12 pm 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
Along with what symcha suggested, you mentioned you had made some changes to your network config. Is lo still configured? Run "ifconfig -a" in an Xterm, you're looking for an entry such as:

Code:
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:56765 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56765 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4059547 (3.8 MiB)  TX bytes:4059547 (3.8 MiB)


If not, check /etc/network/interfaces and see if you have lines similar to:

Code:
auto lo eth0
iface lo inet loopback


(Not necessarily exactly like that, but similar)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 7:26 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi results from the various things suggested:
ps -ef | grep backend
Quote:
mythtv 4727 1 0 Dec05 ? 00:05:22 /usr/bin/mythbackend --daemon --logfile /var/log/mythtv/mythbackend.log --pidfile /var/run/mythtv/mythbackend.pid
root 30389 29825 0 13:19 ttyp2 00:00:00 grep backend

strace -fq -o /tmp/strace.out mythfrontend
Quote:
bash: root@mythtv:/home/mythtv#: No such file or directory

netstat -an | grep 6543
Quote:
tcp 0 0 0.0.0.0:6543 0.0.0.0:* LISTEN

ping localhost
Quote:
PING mythtv (127.0.0.1) 56(84) bytes of data
and just waits to timeout.

I'll print out the results of slowtolearn's suggestions later

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 9:59 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
tophee wrote:
ping localhost
Quote:
PING mythtv (127.0.0.1) 56(84) bytes of data
and just waits to timeout.


That's not a good sign, ping should return "64 bytes from ...". I'm guessing your lo interface is no longer defined, but we'll know for sure from the ifconfig and interfaces file.

Also check your /etc/hosts file, should contain a line like

Code:
127.0.0.1       myth1 localhost


where "myth1" above would be your box's hostname.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 10:13 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi slowtolearn,
ifconfig -a gives me (plus stuff abouit ath0, wifi0 and sit0
Quote:
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

My interfaces file looks like this, but should contain info on my wireless card (ath0) card - I'm sure it used to...
Quote:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo ath0 ath0 ath0 wifi0
iface lo inet loopback

iface wifi0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254


my /etc/hosts fie looks like this:
Quote:
127.0.0.1 mythtv localhost

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

I
Is there any record of the boot process? I think I saw a line about having problems opening the ~/network/interfaces file.

Regards

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu