XBMCubuntu loses connection to Home server.
#1
Hi, just was wondering if anyone else had this problem or knew of a way to fix it. I searched the forums, but couldn't find my exact problem.

I have XBMC on 3 different machines. 1 is an AppleTV 1, 2 is a XBMC Frodo for Windows 7, and 3 is XBMCubuntu Frodo.

I have a Win 7 machine set up as a server with all my media files on, and leave the machine on 24/7 so it is always ready.

I have 0 issues with the AppleTV, and the win 7 machine running Frodo. My issue is with the XBMCubuntu Frodo machine.

Maybe 2 - 3 times a day, it 'loses' connection with the win 7 server machine. I can see all the files, but when I click on one, it says 'file not found, would you like to remove this file?' When I go into VIDEOS, FILES, it says 'invalide source'

I have to go to the win7 server machine, and shut it down, restart it, and then my XBMCubuntu Frodo machine links right back up.

I have tested the other 2 when I can't see the files, and they always stay connected to the win7 server machine.

It's not a huge deal, but what is happening is this. If the XBMCubuntu machine 'loses' connection, and updates the library, I lose all my media files in the database. So when I reboot, I have to update the library, and it has to scan each file over again.

Any help or suggestions would be great, I just rebuilt and did a clean install of Frodo yesterday, added all my files, and everything was there, and when it updated today, it wasn't connected. So I have to go in and have it scan for all my files again today.

Thanks again.
Reply
#2
Well for a start don't scan when offline.

Is your buntu machine suspending? There are other threads about smb failing in this case.

Also a debug log may show what is going on.
Reply
#3
I have the auto update running every 4 hours. I have no idea when it goes offline unless I try to watch something. The only way to not scan when offline is to diable auto scanning. I would need to play something, verify it was working, and then scan, and since I can lose connection while I am playing something, that doesn't seem like a good solution.

No the buntu machine is never suspended. I found that it was causing to many problem. The problem happens at anytime. I can be watching a movie or tvshow, when it is over, I have lost connection. (it will let me finish my movie, but when I go to pick something else, it isn't there)

I have been reading those other threads about smb failing and databases, but I wasn't able to find any with the same situation with just 1 machine when several were running.

When should I run the debug log? Before or after I lose the connection? or both to compair.
Reply
#4
Just turn the auto scanning off until you fix the other problem.

Is it wired or wireless? What is network card? When it stops working, can you still ping? I.E. is the network otherwise working?
Reply
#5
It is wired. Its built in to the motherboard - NVIDIA nForce 680i SLI.

I can still ping, can still see the machine, and still access it via ftp, so I assume the network is working just fine.

Is this a problem with just buntu? I am able to install win 7 on it and then XBMC, I just found this was easier since I don't use the machine for anything else other than XBMC, and buntu installs my remote correctly, when win 7 doesn't.

Thanks again.
Reply
#6
Well its not a problem I've ever had with ubuntu or any other OS. Looking forward to your logs...
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#7
Similar issue. Problem only seems to occur when I transfer files from my Win7 Workstation to the server also running Win7. I can no longer connect to the server with XBMCbuntu. Only fix is to restart the server. By any chance are you running FlexRAID on the server? I thought maybe it was an issue with the software but maybe not.
ASUS F2A85-M PRO FM2 -- AMD A10-6800K -- 8gig DDR3 1600 -- Nvidia GTX 650 -- Samsung SSD 120gig -- GRANDIA GD05B Case -- Onkyo RC-HT260 -- Paradigm Atom Monitor S7 x4, Center 1, Surrounds 1 -- Panasonic 60ST60
Reply
#8
No I'm not running that software. I haven't been able to find a common cause for mine. Sometimes its after I transfer files, or pause a movie for an extended time, but doesn't seem to have a singular cause.

Same solution here, I must restart the server machine in order to reconnect. And this has only been an issue with the buntu machine.

Hopefully I will have logs posted today. I am adding the files back now, but it usually takes a few hours to scan all the movies and tv shows. As soon as it is finished, I will upload the 'good' log and wait for the error to occur.
Reply
#9
So I got the problem to happen again tonight. Here is what I did, but was only able to get one log file.

Enabled Debugging (text upper left of the screen) restarted, then went into VIDEOS, FILES, MOVIES, to show invalid path, the back TV SHOWS, only 1 drive showed. I went into programs XBMC Log Uploader and clicked yes to upload the log, Nothing happened. A minute or so later it ased if I wanted to upload the crash.log. I clicked yes, and then a few seconds later the Uploaded ID showed up.

I only get 1 email fom the crash.log, I am not getting a the xmbc.log at all, no conformation and no email. Here is the crash log. Did I do something wrong to not get the xmbc.log?

http://xbmclogs.com/show.php?id=16160 (good log with everything okay)
http://xbmclogs.com/show.php?id=16490 (bad log with connection lost) crash report only.

Thanks for all your help.

I tried to disable, and re-enable the XBMC Log Uploader. Still wouldn't upload the xbmc.log. I even tried to uninstall, restart, and install again. Still nothing for the xbmc.log file.
Reply
#10
Your logs are available from your xbmc machine and can be uploaded by the following simple expedient:
Code:
sudo apt-get install pastebinit
pastebinit .xbmc/temp/xbmc.log

This can all be done over ssh from any other computer or tablet or smartphone on your lan.

Also, what are the samba logs on your NAS saying?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#11
Alright here it is, I was able to connect to the buntu machine and paste the log file.

http://xbmclogs.com/show.php?id=16160 (good log with everything okay)
http://xbmclogs.com/show.php?id=16492 (bad log with connection lost)
Reply
#12
This one http://xbmclogs.com/show.php?id=16490 seems to show networking errors from right after startup. In that case had you rebooted or simply restarted the XBMC program?

I ask because sometimes on bootup XBMC starts before networking is fully up. This can be sorted, if that is indeed the problem.

Doesn't explain why you might lose connection when the system is up and running fine though.

EDIT: BTW this one is from some other device http://xbmclogs.com/show.php?id=16492
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#13
Yes I did restart XBMC right after I enabled debugging. That is the crash log with the lost connection. Once the buntu machine lost connection to the win7 machine, i enabled debugging and rebooted, then click in VIDEOS - FILES to show the problem.

I'm not sure what networking errors occurred. I know that the buntu machine only loses connection with the win7 machine I use as a server, it never loses connection with my NAS, and I am able to ping, and connect to it via my mac when it is showing no connection to the same machine on my network.

I'm not sure how to get to a terminal window or anything on the bunta machine to run the code below. I have never had to do anything on that machine other than use XBMC.

Code:
sudo apt-get install pastebinit
pastebinit .xbmc/temp/xbmc.log

And I am sorry for the wrong log, that one is actually from my mac.
Reply
#14
this problem is because the linux machine is fighting with your win7 server to be the master browser i had the same issue when running openelec machine with a windows server it comes down to OS levels to fix this you can change the OS level on the linux machine so it is higher than the windows one and therefore would win the election to become the master browser

check out the following links for more

http://openelec.tv/forum/12-guides-tips-...res-readme

http://rvalbuena.blogspot.com.au/2013/04...licts.html

these links above are to make the linux machine the master browser if you want the windows machine to be the master browser you should also do this in registry

http://technet.microsoft.com/en-us/libra...59923.aspx

hope this helps i did this on my WHS 2011 machine and i no longer have the issue with my openelec machine

just to make sure windows machine is master do the registry on windows and then change the OS level and others on the linux machine
Reply
#15
(2013-05-06, 14:32)protocol77 Wrote: this problem is because the linux machine is fighting with your win7 server to be the master browser i had the same issue when running openelec machine with a windows server it comes down to OS levels to fix this you can change the OS level on the linux machine so it is higher than the windows one and therefore would win the election to become the master browser

check out the following links for more

http://openelec.tv/forum/12-guides-tips-...res-readme

http://rvalbuena.blogspot.com.au/2013/04...licts.html

these links above are to make the linux machine the master browser if you want the windows machine to be the master browser you should also do this in registry

http://technet.microsoft.com/en-us/libra...59923.aspx

hope this helps i did this on my WHS 2011 machine and i no longer have the issue with my openelec machine

just to make sure windows machine is master do the registry on windows and then change the OS level and others on the linux machine

I will try this when I get a chance. Hopefully it will fix the issues I am having.
ASUS F2A85-M PRO FM2 -- AMD A10-6800K -- 8gig DDR3 1600 -- Nvidia GTX 650 -- Samsung SSD 120gig -- GRANDIA GD05B Case -- Onkyo RC-HT260 -- Paradigm Atom Monitor S7 x4, Center 1, Surrounds 1 -- Panasonic 60ST60
Reply

Logout Mark Read Team Forum Stats Members Help
XBMCubuntu loses connection to Home server.0