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
- Tools → DataBase → make a database backup and download it to your computer.
- Or from the command line (MySQL):
mysqldump db_login > /root/db_login-547.sql - A copy of the settings:
cp /nice/config.json /nice/ffpresets.json /root/
2Upgrade – one command
curl -s https://nice-panel.com/install3.sh | bash -s 5.5Choose 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.
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 Mega | the panel backs up the database every night at 02:02 (/nice/db); the cron line is removed |
a single /nice/ffmpeg | builds in /nice/ffmpeg.d (static-6.0.1, static-gpu…); the old ffmpeg is kept as previous |
| packages nodenice-install / nodenice-update | one package nodenice-pro (+ nodenice-ffmpeg) |
| the web password in plain text in config.json | stored 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- Both services are active (running) (ndvr – only if you use the local nDVR).
- Log in to the panel – the version at the top right is 5.5; channels start, subscribers can watch.
- If something is wrong: Tools → Server Log or
/nice/logs/, and/var/log/nice-install.log.
5The new settings – worth a look
- Configuration → SYSTEM → stream workers – multi-core streaming. After the upgrade it is 0 (off) – the panel behaves like 5.4.7. For many viewers set e.g. 4 (or half the cores) and restart. Leave source read batch at 20.
- Configuration → FFMPEG – which ffmpeg build is active; with an NVIDIA card – a build with NVENC (see “GPU transcoding”).
- Configuration → VOD METADATA – TMDB or OMDb for movies and series.
- Configuration → NETWORK tuning – network tuning (BBR, fq, RPS) with one button.
- Configuration → WEB management → Panel language – English or Bulgarian.
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)
- Upgrade the master with the command above.
- 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.
- 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.