[Plugin] MPSync - MediaPortal multi-seat Synchronization (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    ajs, that is why I suggested to get one HTPC updated with the new paths and then use it to synchronize the rest...
    Maybe it's convenient ... or maybe not, will have to try to reconfigure their computers. But no one on the D drive, and the second is no room on drive C.

    ajs, seems that the ascii code of those characters happened to be the delimiter combination I used in the plugin. In the next version this will change to a different combination, so hopefully the new delimiter won't be equivalent to any valid Russian character combination
    Finally! You agreed with me that there is a bug in the plug and the plug corrupts the database! Something that works for everyone, does not always mean that there are no errors in the program it :) I'm talking to you as a programmer :)
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    ajs, seems that the ascii code of those characters happened to be the delimiter combination I used in the plugin. In the next version this will change to a different combination, so hopefully the new delimiter won't be equivalent to any valid Russian character combination
    Finally! You agreed with me that there is a bug in the plug and the plug corrupts the database! Something that works for everyone, does not always mean that there are no errors in the program it :) I'm talking to you as a programmer :)

    ajs, if you are out there trying fighting a crusade to find a bug in my plugin, have fun. Don't have any intention to play this game.

    To put things clear. There is no bug in the plugin. It happens that some characters in your russian text happened to be the same as the delimiter I chose. If for you this is a bug, then HURRAY, you managed to find one ! (y)

    No hard feelings, but if you are a programmer, I would have expected a different approach and behaviour from your end.
     
    Last edited:

    TiboTv

    Portal Pro
    June 22, 2009
    244
    39
    Home Country
    Belgium Belgium
    So as long as TiboTv configures one HTPC correctly, he can then synchronize the databases of the others.
    This solution is good, but it is valid only for new systems for older systems that entails a complete updating of content, as path in databases for old systems are all old.[/quote]


    Yes you're right, that why before changing completly all the paths to make the final test, I'm actually making a whole update of movingpictures,tvseries,music,fanart,thumbs on fresh new databases. It's a bit long but I think that the job could be a good experience.
    And to get new fresh databases and fresh thumbs folders architecture, it's pretty easy, you point the mpdirs file to a new place and when starting MP, it generates the databases.

    I'll keep you informed when it's completely done and tested.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    ajs, if you are out there trying fighting a crusade to find a bug in my plugin, have fun. Don't have any intention to play this game.
    Not in any way, I want your plugin worked without error and bring joy to people, including me and other Russian speaking.

    To put things clear. There is no bug in the plugin. It happens that some characters in your russian text happened to be the same as the delimiter I chose. If for you this is a bug, then HURRAY, you managed to find one !
    Once this choice leads to the loss of data in the database, I think it is a mistake. I as a user do not have to worry about your data, and they should then be the same timing as before.

    No hard feelings, but if you are a programmer, I would have expected a different approach and behaviour from your end.
    No hard feelings, I saw that the plugin does not work, looked the log files, it's empty, as I told you. Despite the fact that my database you already have. You asked for the log files, I sent them. Then just as suddenly plugin to work, but again began to spoil data. If I have offended than that, then Sorry. We obviously do not understand each other. You have proven to me that there are no errors in the plugin and it works fine, I told you that it is not, in the end even found where.[DOUBLEPOST=1368428082][/DOUBLEPOST]
    ajs, that is why I suggested to get one HTPC updated with the new paths and then use it to synchronize the rest...
    I understand that I need to change the configuration and assign a new folder to store the thumbnails. Then change path in all the databases to the new. Then do it on all your computers and then we run the host (master) to synchronize. And then run the client. Right?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,063
    11,145
    Kyiv
    Home Country
    Ukraine Ukraine
    Yes you're right, that why before changing completly all the paths to make the final test, I'm actually making a whole update of movingpictures,tvseries,music,fanart,thumbs on fresh new databases.
    May stop working skins/skins themes support of custom images. Backs forecast, ClearArt, ClearLogo, DVD Art etc.
     

    illiloh

    Portal Pro
    November 13, 2010
    245
    12
    Erlangen
    Home Country
    Germany Germany
    I have a Problem with Windows 7 Professional x86. The Sync dose not start.


    fehler.JPG
     

    TiboTv

    Portal Pro
    June 22, 2009
    244
    39
    Home Country
    Belgium Belgium
    I'm back with first tests.

    I think that it's better to give you the configuration before :

    - 1 TV server computer (see my system spec for more information)
    - 1 MP Client computer - Master for the Sync (running Win7)
    - 1 MP Client computer - Slave for the Sync (running WinXP)
    - 1 NAS with MP database, MP thumbs and media (videos,series,music,photos,...) This NAS is the "server place" for MPSync. IP : 192.168.1.120

    Local paths to Database and Thumbs folders on each client are the same to avoid any problem with Win7 and WinXP different paths.

    What I've done :
    - Changing MediaportalDirs.xml file to point the new local paths on each client
    - Installing last MPSyncVersion on each client
    - All databases and thumbs has been regenerated on Master client (Win7)
    - The complete database and thumbs folders has been manually copied on NAS and on Slave client (WinXP)
    - I first start MP on Master client to make a synchronization and everything seems ok.
    - Then I try to configure the Slave cient and I get a problem! ;-)

    On Slave client, when I give the server path, the plugin doesn't display databases to synchronize.
    Capture01.JPG Capture02.JPG
    But as you can see on this capture, databases are on right place :
    Capture03.JPG
    And when I start manual synchronization on the plugin, the plugin stays blocked with this screen :
    Capture04.JPG
    Here is the complete log in debug mode :

    Code:
    16/05/2013 06:58:09 - [INFO] MPSync: process plugin version 1.0.0.5 initialisation with DEBUG.
    16/05/2013 06:58:09 - [DEBUG] MPSync: Creating/altering work table mpsync in database C:\MPDatas\Database\movingpictures.db3
    16/05/2013 06:58:09 - [DEBUG] MPSync: Creating/altering work table mpsync in database \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Database\movingpictures.db3
    16/05/2013 06:58:10 - [DEBUG] MPSync: Dropping triggers in database movingpictures.db3
    16/05/2013 06:58:10 - [DEBUG] MPSync: Creating triggers in database movingpictures.db3
    16/05/2013 06:58:10 - [DEBUG] MPSync: Creating/altering work table mpsync in database C:\MPDatas\Database\MusicDatabaseV12.db3
    16/05/2013 06:58:11 - [DEBUG] MPSync: Creating/altering work table mpsync in database \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Database\MusicDatabaseV12.db3
    16/05/2013 06:58:11 - [DEBUG] MPSync: Dropping triggers in database MusicDatabaseV12.db3
    16/05/2013 06:58:11 - [DEBUG] MPSync: Creating triggers in database MusicDatabaseV12.db3
    16/05/2013 06:58:11 - [DEBUG] MPSync: Creating/altering work table mpsync in database C:\MPDatas\Database\TVSeriesDatabase4.db3
    16/05/2013 06:58:11 - [DEBUG] MPSync: Creating/altering work table mpsync in database \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Database\TVSeriesDatabase4.db3
    16/05/2013 06:58:12 - [DEBUG] MPSync: Dropping triggers in database TVSeriesDatabase4.db3
    16/05/2013 06:58:12 - [DEBUG] MPSync: Creating triggers in database TVSeriesDatabase4.db3
    16/05/2013 06:58:12 - [DEBUG] MPSync: Creating/altering work table mpsync in database C:\MPDatas\Database\VideoDatabaseV5.db3
    16/05/2013 06:58:12 - [DEBUG] MPSync: Creating/altering work table mpsync in database \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Database\VideoDatabaseV5.db3
    16/05/2013 06:58:13 - [DEBUG] MPSync: Dropping triggers in database VideoDatabaseV5.db3
    16/05/2013 06:58:13 - [DEBUG] MPSync: Creating triggers in database VideoDatabaseV5.db3
    16/05/2013 06:58:13 - [INFO] MPSync: DB - C:\MPDatas\Database\ <-- \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Database\
    16/05/2013 06:58:13 - [INFO] MPSync: DB synchronization method - Propagate both additions and deletions
    16/05/2013 06:58:13 - [INFO] MPSync: DBs selected - ALL
    16/05/2013 06:58:13 - [INFO] MPSync: watched/resume selected for ALL
    16/05/2013 06:58:13 - [INFO] MPSync: Objects selected - ALL
    16/05/2013 06:58:13 - [INFO] MPSync: THUMBS - C:\MPDatas\Thumbs\ <-- \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Thumbs\
    16/05/2013 06:58:13 - [INFO] MPSync: THUMBS synchronization method - Propagate both additions and deletions
    16/05/2013 06:58:13 - [INFO] MPSync: THUMBS selected - ALL
    16/05/2013 06:58:14 - [DEBUG] MPSync: synchronizing from \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Database\ to C:\MPDatas\Database\
    16/05/2013 06:58:14 - [DEBUG] MPSync: Scanning folder \\192.168.1.120\sharing\MPSharingDBThumbs\MPDatas\Thumbs\ for thumbs

    To make sure that Master client to NAS sychronisation is working, I made some changes on Master client (watched status in TVSeries database), wait 5minutes and then manually copied databases from NAS to Slave client, and watched status on Slave client are corresponding to Master client, so now I just need that sync between NAS and Slave become automatic ;-)
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    I'm back with first tests.

    I think that it's better to give you the configuration before :

    - 1 TV server computer (see my system spec for more information)
    - 1 MP Client computer - Master for the Sync (running Win7)
    - 1 MP Client computer - Slave for the Sync (running WinXP)
    - 1 NAS with MP database, MP thumbs and media (videos,series,music,photos,...) This NAS is the "server place" for MPSync. IP : 192.168.1.120

    Local paths to Database and Thumbs folders on each client are the same to avoid any problem with Win7 and WinXP different paths.

    What I've done :
    - Changing MediaportalDirs.xml file to point the new local paths on each client
    - Installing last MPSyncVersion on each client
    - All databases and thumbs has been regenerated on Master client (Win7)
    - The complete database and thumbs folders has been manually copied on NAS and on Slave client (WinXP)
    - I first start MP on Master client to make a synchronization and everything seems ok.
    - Then I try to configure the Slave cient and I get a problem! ;-)

    On Slave client, when I give the server path, the plugin doesn't display databases to synchronize.
    View attachment 128398 View attachment 128399
    But as you can see on this capture, databases are on right place :
    View attachment 128400
    And when I start manual synchronization on the plugin, the plugin stays blocked with this screen :
    View attachment 128401

    To make sure that Master client to NAS sychronisation is working, I made some changes on Master client (watched status in TVSeries database), wait 5minutes and then manually copied databases from NAS to Slave client, and watched status on Slave client are corresponding to Master client, so now I just need that sync between NAS and Slave become automatic ;-)

    TiboTV, the issue of not displaying databases is because it is not managing to resolve the IP address. Can you use a DNS name or else map a drive to that IP. This should work fine.
     
    Last edited:

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    I have a Problem with Windows 7 Professional x86. The Sync dose not start.


    View attachment 128397

    ililoh, seems one of your databases is corrupted. Can you check the target databases to identify which one. Just try to open them and if anyone of them says that it is malformed, just delete it. The plugin would then copy it automatically from master.

    fyi, in the next version, this is done automatically at plugin startup.
     

    Users who are viewing this thread

    Top Bottom