Sync. between multiple XBMC
#1
Hi Guys!
I could really need some help here. I been trying to get this sync thing to work but I only get "this file is no longer available..."
I have setup mySQL and I think its ok.
I have followed the wiki for Eden Rc1 but i am clearly missing something.

I have added this to advancedsettings.xml
where the <from> is my server where all the movies and stuff are stored. I also have the "master" xbmc running from that machine.
The <to> is my htpc I am trying to get this thing working on.
Both machines are running Eden Rc2

<advancedsettings>
<pathsubstitution>
<substitute>
<from>media/xbmc-raid/Filmer/</from>
<to>SMB:\\192.168.1.69\xbmc-raid\Filmer</to>
</substitute>
</pathsubstitution>
<videodatabase>
<type>mysql</type>
<host>192.168.1.69</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>

<musicdatabase>
<type>mysql</type>
<host>192.168.1.69</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
</advancedsettings>

I have updated the sources in XBMC to IP adress.

I can´t seem to get what i am doing wrong.

//Marcus
Reply
#2
have been having a few problems myself and if the problem you are getting is that the movies appear in the library but then selecting them it says the movie is no longer ...... in my case it was the fact that you need to add a username and password for the remote machine.

I am no expert and I did mine by adding a folder into the sources then when it asked for username and password I added it and said remember it....seemed to work for me!
Reply
#3
tytherman Wrote:have been having a few problems myself and if the problem you are getting is that the movies appear in the library but then selecting them it says the movie is no longer ...... in my case it was the fact that you need to add a username and password for the remote machine.

I am no expert and I did mine by adding a folder into the sources then when it asked for username and password I added it and said remember it....seemed to work for me!

I have already added user and password to the source.
There must something else thats wrong.

I keep reading the wikiguide but cant seem to figure this one out.
Reply
#4
Might help to tell everyone What are the client mc? I can get win 7 clients working but not the atv2.
Reply
#5
tytherman Wrote:Might help to tell everyone What are the client mc? I can get win 7 clients working but not the atv2.

The server/host is Ubuntu server 11.10 with xbmc eden rc2 and the clint is an Asrock ion 330 ht with xbmcbuntu 11 rc2.
Reply
#6
The slashes in smb:// need to be the other way around for a start.

A debug log will probably indicate whether anything else is wrong.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
<to>SMB:\\192.168.1.69\xbmc-raid\Filmer</to>

In Linux should be:
<to>smb://192.168.1.69/xbmc-raid/Filmer</to>

Windows:
<to>smb://192.168.1.69\xbmc-raid\Filmer</to>
Reply
#8
sorry to jump in on your thread!

Quote:<to>SMB:\\192.168.1.69\xbmc-raid\Filmer</to>

In Linux should be:
<to>smb://192.168.1.69/xbmc-raid/Filmer</to>

Windows:
<to>smb://192.168.1.69\xbmc-raid\Filmer</to>

what about IOS? I can get the library but movie is no longer available when I select
Reply
#9
iOS should use forward slashes too, just like its bigger Unix brother OS X.
* MikroTik RB5009UG+S+IN :: ZyXEL GS1900-8HP v1 :: EAP615-Wall v1 :: Netgear GS108T v3 running OpenWrt 23.05
* LibreELEC 11:  HTPC Gigabyte Brix GB-BXA8-5545 with CEC adapter, Sony XR-64A84K :: Desktop AMD Ryzen 7 5800X / Sapphire Nitro+ Radeon 6700XT  / 27" Dell U2717D QHD
* Debian Bookworm x86_64: Celeron G1610, NFS/MariaDB/ZFS server
* Blog
Reply
#10
Hi!
I have found out that xbmc dosent read the mysql database.
Is there a way to verify that thats the case.

I know that mysql is up and running.
According to a couple of guides it is okey.

//Marcus
Reply
#11
(2012-03-17, 21:34)MacOsX Wrote: Hi!
I have found out that xbmc dosent read the mysql database.
Is there a way to verify that thats the case.

I know that mysql is up and running.
According to a couple of guides it is okey.

//Marcus

Make sure all versions are updated to Eden RC2 or higher, and make sure you followed our Wiki Guide (make sure XBMC user on MySQL has the right privileges, don't pre-create a MySQL DB, let XBMC make the MySQL DB, etc): Sync libraries (wiki)
Reply
#12
Okej!
I havent got this to work yet but now i am sure that Mysql is up and running and that xbmc has made a database.
I have gotten to the part that xbmc finds the library and it is in sync. If i start a movie on the server host and then stop it at 20minutes. If i then go to another XBMC machine and select the same movie. I get the question to resume from 20 minutes.

But here comes the problem. The file is no longer available. That must mean that path substitution dosent work. In movie info the path is the server host. I am doing something wrong but whatHuh?

Log: http://pastebin.com/268WeUKg

Advancedsettings:
<advancedsettings>
<pathsubstitution>
<substitute>
<from>media/XBMC-Raid6_/CouchPotato Filmer</from>
<to>SMB://192.168.1.195/XBMC-Raid6_/CouchPotato Filmer/</to>
</substitute>
<substitute>
<from>media/XBMC-Raid6_/Barn Filmer</from>
<to>SMB://192.168.1.195/XBMC-Raid6_/Barn Filmer/</to>
</substitute> </pathsubstitution>
<substitute>
<from>special://masterprofile/sources.xml</from>
<to>PROTOCOL://192.168.1.195/home/xbmc/.xbmc/userdata/sources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/mediasources.xml</from>
<to>PROTOCOL://192.168.1.195/home/xbmc/.xbmc/userdata/mediasources.xml</to>
</substitute>
<videodatabase>
<type>mysql</type>
<host>192.168.1.195</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>

<musicdatabase>
<type>mysql</type>
<host>192.168.1.195</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
</advancedsettings>
Reply
#13
I see your issue: you need to change the 'PROTOCOL' in your advancedsettings.xml file to smb:.

================================================================

When I got this all up and working, I found that the path in the sources.xml on ALL of the XBMC machines MUST be identical to the path that exists in the library so make sure your sources.xml file is synced across all the system or you are using a shared sources.xml file..

On my setup, I'm using a Windows based server running Windows 2008 R2 and MySQL to host the Library, then I have a shared folder called \\server\xbmc that hosts the sources.xml, rssfeeds.xml and the thumbnails folder. However, on every client, I still had to attempt to open the source to be prompted for the credentials before the password for the network folder was saved on each XBMC client machine.

My shared sources looks like this:

<sources>
<programs>
<default pathversion="1"></default>
</programs>
<video>
<default pathversion="1"></default>
<source>
<name>1: Movies</name>
<path pathversion="1">smb://Server/Movies/</path>
</source>
</video>
<music>
<default pathversion="1"></default>
<source>
<name>1: Music</name>
<path pathversion="1">smb://Server/NAS/Music/</path>
</source>
</music>
<pictures>
</pictures>
<files>
<default pathversion="1"></default>
</files>
</sources>


Then I have the advancesettings.xml on each of the XBMC machine configured as follows:

<advancedsettings>
<useddsfanart>true</useddsfanart>
<cputempcommand>cputemp</cputempcommand>
<gputempcommand>gputemp</gputempcommand>
<samba>
<clienttimeout>30</clienttimeout>
</samba>
<network>
<disableipv6>true</disableipv6>
</network>
<videodatabase>
<type>mysql</type>
<host>192.168.101.11</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.101.11</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
<pathsubstitution>
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>smb://username:password@Server/xbmc/userdata/Thumbnails/</to>
</substitute>
<substitute>
<from>special://masterprofile/sources.xml</from>
<to>smb://username:password@Server/xbmc/userdata/sources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/RssFeeds.xml</from>
<to>smb://username:password@Server/xbmc/userdata/RssFeeds.xml</to>
</substitute>
</pathsubstitution>
</advancedsettings>
Reply

Logout Mark Read Team Forum Stats Members Help
Sync. between multiple XBMC0