Unable to open Database

Hello fellow developers.

 

I am running Plex 0.9.8.4 on my Netgear ReadyNAS and wrote a Mac App to export yur movies to a textfile (for friends who ask for a list).

 

Today I tried to run it again and it did not return any Data.

 

I tried to check the com.plexapp.plugins.library.db in Library\Application Support\Plex Media Server\Plug-in Support\Databases\ with SQLite Database Browser and Mac SQL Studio but both were not able to open the database.

 

My Plex Clients work just fine and stream any media I want.

 

Has anything been changed in the structure that I can't open the .db?

 

Hope you can help me!

 

Regards

Ti-Ta

I recently installed PMS 0.9.8.5 and I am still unable to open the database.

Same problem here. :/

Any update on this?


Having the same issue on the latest plexpass-only build, using windows 8 64-bit and SQLite manager.

Hello fellow developers.

I am running Plex 0.9.8.4 on my Netgear ReadyNAS and wrote a Mac App to export yur movies to a textfile (for friends who ask for a list).

Today I tried to run it again and it did not return any Data.

I tried to check the com.plexapp.plugins.library.db in Library\Application Support\Plex Media Server\Plug-in Support\Databases\ with SQLite Database Browser and Mac SQL Studio but both were not able to open the database.

My Plex Clients work just fine and stream any media I want.

Has anything been changed in the structure that I can't open the .db?

Hope you can help me!

Regards

Ti-Ta

Wouldn;t the problem me because the database is open by Plex Media Server and needs to be closed (PMS exited) before you open it?

Edit: just noticed this is being raised in the Developers forum. Sorry. So obviously it is not as simple as i thought !!!

Hello fellow developers.

I am running Plex 0.9.8.4 on my Netgear ReadyNAS and wrote a Mac App to export yur movies to a textfile (for friends who ask for a list).

Today I tried to run it again and it did not return any Data.

I tried to check the com.plexapp.plugins.library.db in Library\Application Support\Plex Media Server\Plug-in Support\Databases\ with SQLite Database Browser and Mac SQL Studio but both were not able to open the database.

My Plex Clients work just fine and stream any media I want.

Has anything been changed in the structure that I can't open the .db?

Hope you can help me!

Regards

Ti-Ta

Last time I ran into an issue like that, was due to the fact that I was using a wrong version of Python and the SQLite snapin, due to the use of wal

Also, do note that SQLite is not a multi user database, nor a C/S based database, so accessing it over the LAN is not recommended, while Plex is running.

What you could do instead, is using the PMS http interface to grap the needed info

http://wiki.plexapp.com/index.php/PlexNine_AdvancedInfo

/Tommy

Last time I ran into an issue like that, was due to the fact that I was using a wrong version of Python and the SQLite snapin, due to the use of wal

Also, do note that SQLite is not a multi user database, nor a C/S based database, so accessing it over the LAN is not recommended, while Plex is running.

What you could do instead, is using the PMS http interface to grap the needed info

http://wiki.plexapp.com/index.php/PlexNine_AdvancedInfo

/Tommy

Hi - found this very useful - accessing the advanced info though the web. I need now to translate the metadata thumbnail Id's into files !

I am investigating a problem with one of my media folder which has no thumbnail but PMS thinks there is one

Just discovered that Pawel Salawa SQLite studio actually opens the Plex database nicely and I can view the data with gui interface. I used this tool when I was playing with Android App Dev and now it appears it can be useful for looking into the PMS database ( a copy of it so I do not impact the operation)

See http://sqlitestudio.pl

Edit: It is really good - No command line needed - all GUI. Can even apply filter when viewing the data in the tables

All I need now is work out the relationships and translate url's to database table entities

Try this as well....It rocks:

https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/

And it's cross-platform as well

/Tommy

Help!

I recieved this message:

"Plex media server was unable to open its media database"

What do I do?

I have uninstalled all Plex programs and reinstaalled them.  Still getting the above message. :(

Help!

I recieved this message:

"Plex media server was unable to open its media database"

What do I do?

I have uninstalled all Plex programs and reinstaalled them.  Still getting the above message. :(

Please post your question below the correct server forum, this is a developer forum

Look here:

https://forums.plex.tv/forum/2-plex-media-server/

/Tommy

Little update here:

I know what has been the problem in my case:

I was used to copy the com.plexapp.plugins.library.db file onto my desktop. But somewhen Plex was updated to SQLite 3.7.

SQLite 3.7 got a new feature called Write Ahead Logging (or WAL) - basically a backup in case a transaction fails - which is the reason for the .wal and .shm files in the Database folder.

http://www.sqlite.org/wal.html

With WAL it is not possible to access the database alone but only if the .wal and .shm files are in the same location.

Since I only copied the .db file I could not access the database with my programm.

When I copy the .wal and .shm files it all works.

Hope this will help other users.

Regards

Ti-Ta

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.