NICE re/streamer pro

Guides

Upgrading from 5.4.7 to 5.5

5.5 changes a lot under the hood – services, packages, ffmpeg, backups, multi-core streaming. Your data (channels, subscribers, settings) stays. Here is what to do and what to check – about 10 minutes.

1Back up first

2Upgrade – one command

curl -s https://nice-panel.com/install3.sh | bash -s 5.5

Choose Update in the menu. The installer puts in the nodenice-pro package and the ffmpeg builds package (nodenice-ffmpeg), picks the binary for your system (on Ubuntu 16.04/18.04 – the one for old systems) and restarts the panel.

And the Update button in the panel?

Tools → Update works too, but it replaces only the files – no packages and no new ffmpeg builds. For the move to 5.5 use the command above; after that – whichever you like.

3What changes by itself

Was (5.4.7)Becomes (5.5)
the service through restream.sh start (cron check)systemd services nice-restreamer and ndvr – restart on crash, no cron
/nice/ndvr.sh start|stop/nice/restream.sh start|stop|restart|status dvr – ndvr.sh is removed
backup.sh in cron, upload to Megathe panel backs up the database every night at 02:02 (/nice/db); the cron line is removed
a single /nice/ffmpegbuilds in /nice/ffmpeg.d (static-6.0.1, static-gpu…); the old ffmpeg is kept as previous
packages nodenice-install / nodenice-updateone package nodenice-pro (+ nodenice-ffmpeg)
the web password in plain text in config.jsonstored as a hash (on the first start)

Kept: config.json, ffpresets.json, the database, the logs, the DVR recordings, the VOD files.

4Check

/nice/restream.sh status

5The new settings – worth a look

Database: MySQL or the built-in one

After the upgrade the panel keeps using MySQL – nothing is moved by itself. We recommend the built-in database – faster, no separate server and no MySQL passwords; MySQL stays supported. To switch: Configuration → DATABASE → Built-in (SQLite), Save and restart – on the first start the data is copied from MySQL into the built-in database (MySQL stays unchanged, you can go back). Make a backup first.

Balancers (master + slaves)

  1. Upgrade the master with the command above.
  2. Balancers → Update all to this version – the slaves update themselves (a balancer key is needed); a slave on an old system downloads the binary for old systems.
  3. A slave that does not update this way – run the same command on it.

Remote nDVR

An nDVR on another server installed the old way (ndvr.sh) keeps working. To move it to the systemd service: Channels → DVR → Ndvr remote install again with the same details – the recordings stay.

Going back

Tools → Update → Restore brings back the previous version from /nice/niceprev/. The database backup from step 1 – through Tools → DataBase.