Jump to content

Server won't start


Go to solution Solved by PhilTheGeek,

Recommended Posts

PhilTheGeek
Posted

I'm trying to install server version 3.0.5050.37565

It runs the installation but when it comes to start the following message appears:

"There was an error launching Media Browser: unable to open database file."

 

I've attached the log file.

 

Thanks

 

Phil

server-63519007025.log

Posted

try deleting the library.db file

PhilTheGeek
Posted

I'm assuming that I should find the library.db file in AppData\Roaming\MediaBrowser-Server\data ?  It's not in there so I can't delete it.

Posted

I'm assuming that I should find the library.db file in AppData\Roaming\MediaBrowser-Server\data ?  It's not in there so I can't delete it.

 

Yes.  Mine is located at: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\data\library.db

PhilTheGeek
Posted (edited)

Please note this is a new install rather than an upgrade.

Edited by PhilTheGeek
Posted

Are you trying to run the server under a user other than the one who installed it?

Posted

Are you installing as a user with administrator access?  Try using the "Run as Administrator" option.

PhilTheGeek
Posted

Tried that. Same error.

Posted

I just noticed your command line is a UNC path...

Posted

Oh yea, interesting. In theory that should work, but we don't know because we really haven't tested it.

Posted

My guess is that SQLite cannot find the database folder relative to that path.

  • Solution
PhilTheGeek
Posted

Having removed the GPO that was redirecting the roaming AppData folder it works.  Is there a particular reason it installs to Roaming rather than Local?

  • Like 1
Posted

Having removed the GPO that was redirecting the roaming AppData folder it works.  Is there a particular reason it installs to Roaming rather than Local?

 

Not really.  That is just the location suggested by MS.  You could make an argument for the server going into local but we use common routines for most of our installation so we just didn't do that.

  • 3 weeks later...
Posted

I am getting the same error "unable to open database file" when launching because I use Windows roaming profile with folder redirection so my user's env APPDATA=\\server\users\username\AppData\Roaming

 

After some googling I found the cause is in SQLite, see ticket http://system.data.sqlite.org/index.html/info/bbdda6eae2

 

It would be great if MB server could implement workaround 1) or 3) mentioned in the ticket.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...