Plex Forums: UBUNTU: Migrating PMS data to the new package - Plex Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

UBUNTU: Migrating PMS data to the new package If you want to migrate the PMS data to the new structure

#1 User is offline   Tobias Hieta 

  • Plex Dev Team
  • PipPipPip
  • Group: Plex Employee
  • Posts: 616
  • Joined: 04-October 08
  • Gender:Male
  • Location:Göteborg

Posted 28 July 2011 - 08:50 AM

Hello,

If you are currently using the old PMS (0.9.2.x) and want to upgrade to the new ubuntu package that is released with 0.9.3.4 you must manually copy the database to a new place. The ubuntu packages are using a 'plex' user that stores the PMS database in /var/lib/plex/Library/Application Support. To migrate your old database follow these steps:
  • Install the package according to the instructions
  • stop plexmediaserver
  • sudo cp -a /path/to/old/Library /var/lib/plex
  • sudo chown -R plex:nogroup /var/lib/plex
  • start plexmediaserver


that should be it!

Good luck using the new packages, and report any errors to me or Elan.
1

#2 User is offline   puithove 

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 292
  • Joined: 03-January 09

Posted 28 July 2011 - 11:03 AM

Tobias - Thanks for helping out with the package deal - I'm sure it'll help everyone.

Just one correction since I was going to write kind of the same thing - it's /var/lib/plexmediaserver/

And since I'm sure some will try to copy/paste those as commands - it's sudo service plexmediaserver stop (or start)
0

#3 User is offline   agentbikes 

  • Member
  • PipPip
  • Group: Members
  • Posts: 42
  • Joined: 18-April 09

Posted 28 July 2011 - 04:39 PM

Can I install PMS on 10.04? Or isn't it possible anymore? :huh:

Edit: It works, I was just too stupid to refresh apt-get...
0

#4 User is offline   Tobias Hieta 

  • Plex Dev Team
  • PipPipPip
  • Group: Plex Employee
  • Posts: 616
  • Joined: 04-October 08
  • Gender:Male
  • Location:Göteborg

Posted 28 July 2011 - 07:05 PM

View Postpuithove, on 28 July 2011 - 11:03 AM, said:

Tobias - Thanks for helping out with the package deal - I'm sure it'll help everyone.

Just one correction since I was going to write kind of the same thing - it's /var/lib/plexmediaserver/

And since I'm sure some will try to copy/paste those as commands - it's sudo service plexmediaserver stop (or start)


Thanks! /var/lib/plexmediaserver is correct. But it's actually 'stop plexmediaserver' etc, because I wrote a upstart script not a init script.
0

#5 User is offline   puithove 

  • Dedicated Member
  • PipPipPip
  • Group: Members
  • Posts: 292
  • Joined: 03-January 09

Posted 28 July 2011 - 09:16 PM

huh, both ways work. I'm used to using "service" I guess. Thanks for the shortcut.
0

#6 User is offline   MACscr 

  • Member
  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 29-May 11

Posted 29 July 2011 - 07:05 PM

Thanks, this helped a lot with the switch. Any ideas why I might have had to start the plexemdiaserver with sudo? Seems i got the following error when i tried it without:

me@mypc:/var/lib/plexmediaserver$ start plexmediaserver
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.74" (uid=1000 pid=12550 comm="start plexmediaserver ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

I wasnt sure if it was required to use sudo to start/stop it since you didnt include that in your directions.
0

#7 User is offline   Tobias Hieta 

  • Plex Dev Team
  • PipPipPip
  • Group: Plex Employee
  • Posts: 616
  • Joined: 04-October 08
  • Gender:Male
  • Location:Göteborg

Posted 30 July 2011 - 05:15 PM

View PostMACscr, on 29 July 2011 - 07:05 PM, said:

Thanks, this helped a lot with the switch. Any ideas why I might have had to start the plexemdiaserver with sudo? Seems i got the following error when i tried it without:

me@mypc:/var/lib/plexmediaserver$ start plexmediaserver
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.74" (uid=1000 pid=12550 comm="start plexmediaserver ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

I wasnt sure if it was required to use sudo to start/stop it since you didnt include that in your directions.


You need to do it as root with sudo since it will change the user that is running plexmediaserver to 'plex'. So That is just a miss from my part to not add that :)
0

#8 User is offline   xemino 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 05-July 11

Posted 09 May 2012 - 12:04 AM

hey,

i just migrated my old library to my brand new clean plex install, unfortunately doing sudo chown -R plex:nogroup /var/lib/plexmediaserver still won't allow me and PMS to access the folder.
did you guys change something?
would you please help me fix those permissions?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users