[fixed] Server issue when paths are customized a certain way (1 Viewer)

Smeulf

Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Hi,

    As you may know, we work with Chefkoch on the installer to make all paths customizable.

    While testing it, I found something a little issue into the server configuration. Let's assume this case :

    <Path name="DATA" value="&lt;COMMON_APPLICATION_DATA&gt;\Team MediaPortal\MP2-Server"/>
    <Path name="CONFIG" value="&lt;DATA&gt;-Config"/>
    <Path name="LOG" value="&lt;DATA&gt;-Log"/>
    <Path name="DATABASE" value="&lt;DATA&gt;\Database"/>
    <Path name="PLUGINS" value="&lt;APPLICATION_ROOT&gt;\Plugins"/>
    <Path name="APPLICATION_PATH" value="&lt;APPLICATION_ROOT&gt;\MP2-Server.exe"/>
    <Path name="REMOTERESOURCES" value="&lt;DATA&gt;-RemoteResources"/>

    Physical directories should be in this special case (take very care of the "\" and "-", there are very important) :

    C:\Program Data\Team MediaPotral\MP2-Server => this one won't be created because there is no sub directories
    C:\Program Data\Team MediaPotral\MP2-Server\Database => never created
    C:\Program Data\Team MediaPotral\MP2-Server-Config => created
    C:\Program Data\Team MediaPotral\MP2-Server-Config => created
    C:\Program Data\Team MediaPotral\MP2-Server-RemoteResources => created

    The problem is : as it has no sub directories, "C:\Program Data\Team MediaPotral\MP2-Server" is never created, and the server don't use the "DATABASE" custom path to create the database, but it uses the "DATA" path. And as this DATA directory is not created, then the server can't create the database.

    I hope my explains are clear enought :confused:

    Cheers.

    Smeulf.
     

    Albert

    MP2 Developer
  • Premium Supporter
  • February 18, 2008
    1,297
    1,130
    47
    Freiburg im Breisgau, Germany
    Home Country
    Germany Germany
    AW: Server issue when paths are customized a certain way

    Actually, you're talking about two separate problems:
    1) SQLCEDatabase doesn't use the DATABASE directory but the DATA directory
    2) The database directory isn't created before the database file is accessed for the first time and the database driver seems to skip non existing directories

    Both problems should be solved.
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Re: AW: Server issue when paths are customized a certain way

    Smeulf, did you reset this thread to the "Bug" status? Why?

    Sorry, my fault : I checked the fixed yesterday night, thought it was good, then not good, so I set the thread again to "bug" until I check better.

    I made a mistake yesterday while testing, and now I can confirm it's very ok.

    Thread set to "fixed".

    Cheers.
     

    Users who are viewing this thread

    Top Bottom