Jump to content


Photo

New way to update Emby-Server ?

update emby-server 3.4 apt-get

Best Answer slevin7 , 14 May 2018 - 06:00 AM

wget https://github.com/MediaBrowser/Emby.Releases/releases/download/3.4.1.0/emby-server-deb_3.4.1.0_amd64.deb
sudo service stop emby-server
sudo dpkg -i emby*

At least this is the way i do this and never had a problem with loosing any data.
By the way the Link is a sample. normaly i grab them by right klick on the Link and than copy url.

Go to the full post


  • Please log in to reply
24 replies to this topic

#1 blastbass OFFLINE  

blastbass

    Advanced Member

  • Members
  • 32 posts
  • Local time: 11:54 PM

Posted 14 May 2018 - 05:50 AM

Hello,

 

It's probably said many time, but what is the new way to update my emby-server without lose any config or data ? I don't want to lose special data (devices keys/hash not saved with the backup plugin)

 

I'm run on Debian with an "apt-get" installation. No new version when i try the "apt-get update".

 

Do you have a full procedure to upgrade to the further versions ?



#2 slevin7 OFFLINE  

slevin7

    Advanced Member

  • Members
  • 81 posts
  • Local time: 11:54 PM

Posted 14 May 2018 - 06:00 AM   Best Answer

wget https://github.com/MediaBrowser/Emby.Releases/releases/download/3.4.1.0/emby-server-deb_3.4.1.0_amd64.deb
sudo service stop emby-server
sudo dpkg -i emby*

At least this is the way i do this and never had a problem with loosing any data.
By the way the Link is a sample. normaly i grab them by right klick on the Link and than copy url.


  • blastbass likes this

#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124601 posts
  • Local time: 05:54 PM

Posted 14 May 2018 - 01:34 PM

Yea to update you just install the latest over the top of your existing version. Thanks.



#4 lunix33 OFFLINE  

lunix33

    Member

  • Members
  • 10 posts
  • Local time: 05:54 PM

Posted 14 May 2018 - 08:31 PM

Hey if you want I've created a script which can be used to do the update, It might not be perfect but it's working for me.

 

https://gist.github....a6425c88274483e

 

Just download and run (You'll need nodejs installed).

 

If you have error while doing library scan, try running the following command:

 

```

#> ln -s /var/lib/emby /var/lib/emby-server

```

 

The new version seem to be using a different folder in the lib directory, and be doing the last command you'll link.

If you have anything using the old path it will still work just fine, and the new emby version will work as expected!



#5 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 16 May 2018 - 07:04 AM

Hi

I tried to update my emby-server this way but it crashed.

root@emby:~# /etc/init.d/emby-server status
● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled)
   Active: failed (Result: exit-code) since Mi 2018-05-16 13:00:58 CEST; 14s ago
  Process: 1023 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
  Process: 548 ExecStart=/usr/bin/emby-server start (code=exited, status=143)
 Main PID: 548 (code=exited, status=143)

Mai 16 12:53:53 emby emby-server[548]: _STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
Mai 16 12:53:53 emby emby-server[548]: _STATISTICS_WRITING_DATE_UTC: 2018-05-12 23:44:34
Mai 16 12:53:53 emby emby-server[548]: _STATISTICS_WRITING_DATE_UTC-eng: 2018-05-12 23:44:34
Mai 16 12:53:53 emby emby-server[548]: _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Mai 16 12:53:53 emby emby-server[548]: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Mai 16 13:00:58 emby systemd[1]: Stopping Emby Media Server...
Mai 16 13:00:58 emby systemd[1]: emby-server.service: main process exited, code=exited, status=143/n/a
Mai 16 13:00:58 emby emby-server[548]: Sitzung abgebrochen, Shell wird beendet ... ... abgebrochen.
Mai 16 13:00:58 emby systemd[1]: Stopped Emby Media Server.
Mai 16 13:00:58 emby systemd[1]: Unit emby-server.service entered failed state.
root@emby:~# sudo dpkg -i emby*
(Lese Datenbank ... 43959 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von emby-server-deb_3.4.1.0_amd64.deb ...
Stopping Emby Server!
Entpacken von emby-server (3.4.1.0) über (3.3.1.0+68.1) ...
emby-server (3.4.1.0) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/emby-server.conf wird installiert ...
Neue Version der Konfigurationsdatei /etc/init/emby-server.conf wird installiert ...
Synchronizing state for emby-server.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d emby-server defaults
Executing /usr/sbin/update-rc.d emby-server enable
Failed to execute operation: File exists
Trigger für libc-bin (2.19-18+deb8u10) werden verarbeitet ...

If I now open the webif the installation wizard appears.

 

I tried it 3 times. :-(

 

 

Is there a way to fix this?


Edited by whytea, 16 May 2018 - 07:54 AM.


#6 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 16 May 2018 - 10:07 AM

Now I also tried the above mentioned script.

 

The update seems to work but the configuration is gone and the installation wizard appears.



#7 arco OFFLINE  

arco

    Newbie

  • Members
  • 6 posts
  • Local time: 11:54 PM

Posted 16 May 2018 - 04:19 PM

If you have error while doing library scan, try running the following command:

 

```

#> ln -s /var/lib/emby /var/lib/emby-server

```

 

Or in /etc/emby-server.conf, change

 

EMBY_DATA=/var/lib/emby

 

to

 

EMBY_DATA=/var/lib/emby-server



#8 Letters OFFLINE  

Letters

    Member

  • Members
  • 21 posts
  • Local time: 03:54 PM

Posted 16 May 2018 - 06:48 PM

Is there going to be an automated update path?

 

I really don't think people should need to lurk on forums to figure out their current update channel is deprecated. With so many people reporting problems switching from mono builds I haven't done it yet.


  • nicheplayer likes this

#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124601 posts
  • Local time: 05:54 PM

Posted 16 May 2018 - 11:12 PM

Is there going to be an automated update path?

 

I really don't think people should need to lurk on forums to figure out their current update channel is deprecated. With so many people reporting problems switching from mono builds I haven't done it yet.

 

Most likely yes, but you don't need to check the forums to be alerted of new releases. Your server will also tell you when a new release is available, right on the server dashboard.


  • Letters likes this

#10 Letters OFFLINE  

Letters

    Member

  • Members
  • 21 posts
  • Local time: 03:54 PM

Posted 16 May 2018 - 11:38 PM

Most likely yes, but you don't need to check the forums to be alerted of new releases. Your server will also tell you when a new release is available, right on the server dashboard.


I was referring to the opensuse repo no longer being used, not the update notifications which work great. Good to hear there will likely be a hands-off solution.

#11 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 17 May 2018 - 04:51 AM

Or in /etc/emby-server.conf, change

 

EMBY_DATA=/var/lib/emby

 

to

 

EMBY_DATA=/var/lib/emby-server

 

Hmm if I understand this correct...

If my emby-server is installed in /var/lib/emby I have to change the path to /var/lib/emby-server.
Please correct me if I'm wrong but my emby-server is already installed in /var/lib/emby-server.
 

root@emby:~# /etc/init.d/emby-server status
● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled)
   Active: active (running) since Mi 2018-05-16 16:02:18 CEST; 18h ago
 Main PID: 501 (su)
   CGroup: /system.slice/emby-server.service
           ├─501 su -s /bin/sh -c umask $0; exec "$1" "$@" emby -- 002 env MAGICK_HOME=/usr/lib/emby-server MAGICK_CODER_FILTER_PATH=/usr/lib/emby-server/x86_64-linux-gnu/EmbyMagick-6.9.6/modules-Q8/filters M...
           └─624 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh

Mai 16 16:04:50 emby emby-server[501]: NUMBER_OF_FRAMES: 118188
Mai 16 16:04:50 emby emby-server[501]: NUMBER_OF_FRAMES-eng: 118188
Mai 16 16:04:50 emby emby-server[501]: NUMBER_OF_BYTES : 36414826
Mai 16 16:04:50 emby emby-server[501]: NUMBER_OF_BYTES-eng: 36414826
Mai 16 16:04:50 emby emby-server[501]: _STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
Mai 16 16:04:50 emby emby-server[501]: _STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
Mai 16 16:04:50 emby emby-server[501]: _STATISTICS_WRITING_DATE_UTC: 2018-05-12 23:44:34
Mai 16 16:04:50 emby emby-server[501]: _STATISTICS_WRITING_DATE_UTC-eng: 2018-05-12 23:44:34
Mai 16 16:04:50 emby emby-server[501]: _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Mai 16 16:04:50 emby emby-server[501]: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
root@emby:~# ls -liah  /var/lib/ | grep emby
149175 drwxr-xr-x 13 emby  emby    4,0K Jun  6  2017 emby-server

 



#12 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 17 May 2018 - 05:27 AM

Of course I've read other thread here to find a solution.
Something I often read is that it is impossible to update from the legacy-package to the new one.
 

I may be reaching for a straw, but what exactly is the legacy-package?

Till this update I use this repo http://download.open...mby/Debian_8.0/.

 

Is this the legacy-package??



#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124601 posts
  • Local time: 05:54 PM

Posted 17 May 2018 - 12:37 PM

Of course I've read other thread here to find a solution.
Something I often read is that it is impossible to update from the legacy-package to the new one.
 

I may be reaching for a straw, but what exactly is the legacy-package?

Till this update I use this repo http://download.open...mby/Debian_8.0/.

 

Is this the legacy-package??

 

Yes it is.


  • nicheplayer likes this

#14 arco OFFLINE  

arco

    Newbie

  • Members
  • 6 posts
  • Local time: 11:54 PM

Posted 17 May 2018 - 02:21 PM

Hmm if I understand this correct...

If my emby-server is installed in /var/lib/emby I have to change the path to /var/lib/emby-server.
Please correct me if I'm wrong but my emby-server is already installed in /var/lib/emby-server.

The legacy package is set up to store data in /var/lib/emby-server, and the new package is set up to store it in /var/lib/emby

So, assuming you haven't upgraded yet:

Stop emby server (sudo systemctl stop emby-server)
Make a backup of your current /var/lib/emby-server, just in case
Uninstall the legacy package (sudo dpkg -r emby*)
Search for any remaining emby files in /etc and delete them.
Install the new package (sudo dpkg -i emby*)
Stop emby server (sudo systemctl stop emby-server)
Edit /etc/emby-server-conf and change the existing line to EMBY_DATA=/var/lib/emby-server
Delete /var/lib/emby
Start emby-server (sudo systemctl start emby-server)

Edited by arco, 18 May 2018 - 02:28 AM.

  • nicheplayer and whytea like this

#15 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 17 May 2018 - 07:12 PM

The legacy package is set up to store data in /var/lib/emby-server, and the new package is set up to store it in /var/lib/emby

 

So, assuming you haven't upgraded yet:

 

Stop emby server (sudo systemctl stop emby-server)

Make a backup of your current /var/lib/emby-server, just in case

Uninstall the legacy package (sudo dpkg -r emby*)

Search for any remaining emby files in /etc and delete them.

Install the new package (sudo dpkg -i emby*)

Stop emby server (sudo systemctl stop emby-server)

Edit /etc/emby-server-conf and change the existing line to EMBY_DATA=/var/lib/emby-server

Start emby-server (sudo systemctl start emby-server)

Thanks for that!
It seems to work fine!
 

May I delete /var/lib/emby now or is it still in use?
If it is still in use is there a way to merge /var/lib/emby-server and /var/lib/emby?


Edited by whytea, 17 May 2018 - 07:17 PM.


#16 arco OFFLINE  

arco

    Newbie

  • Members
  • 6 posts
  • Local time: 11:54 PM

Posted 18 May 2018 - 02:26 AM

May I delete /var/lib/emby now or is it still in use?
If it is still in use is there a way to merge /var/lib/emby-server and /var/lib/emby?


You can delete it.

#17 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 18 May 2018 - 02:54 AM

You can delete it.

 

Ok ;-)

Since the new default is /var/lib/emby and I want I to avoid future confusion the next steps for me are:

 

- stop emby

- delete /var/lib/emby

- rename /var/lib/emby-server to /var/lib/emby

- change the path in /etc/emby-server.conf back to /var/lib/emby

- start emby

 

Does that make sense in your opinion?



#18 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 18 May 2018 - 03:19 AM

hmm I tried this but it does not work.

After I rename, changed the path most thumbnails in the video database are gone and if I try to change a thumbnail the emby-server crashes.

After I changed all back everything works fine again.

 

A bit confused about it! :huh:


Edited by whytea, 18 May 2018 - 03:22 AM.


#19 arco OFFLINE  

arco

    Newbie

  • Members
  • 6 posts
  • Local time: 11:54 PM

Posted 18 May 2018 - 03:24 AM

Ok ;-)

Since the new default is /var/lib/emby and I want I to avoid future confusion the next steps for me are:

- stop emby
- delete /var/lib/emby
- rename /var/lib/emby-server to /var/lib/emby
- change the path in /etc/emby-server.conf back to /var/lib/emby
- start emby

Does that make sense in your opinion?


I wouldn't do that if I were you. The problem is that the path to your media is hard coded to emby-server in your old databases. So you'll end up with a broken system. Maybe there's a way to change all the paths in the databases, but if not then you're better off starting from fresh if you want to use /var/lib/emby
  • whytea likes this

#20 whytea OFFLINE  

whytea

    Member

  • Members
  • 20 posts
  • Local time: 10:54 PM

Posted 18 May 2018 - 05:07 AM

I wouldn't do that if I were you. The problem is that the path to your media is hard coded to emby-server in your old databases. So you'll end up with a broken system. Maybe there's a way to change all the paths in the databases, but if not then you're better off starting from fresh if you want to use /var/lib/emby

Ahh ok that explain it. thx again!







Also tagged with one or more of these keywords: update, emby-server, 3.4, apt-get

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users