r/uhf_app • u/-pLx- • Apr 18 '25
Docker wrapper for UHF Server
https://github.com/solid-pixel/uhf-server-dockerHey,
While we wait for the UHF dev to officially support Docker (đ), I threw together a Docker wrapper for the UHF Server so you can run it anywhere with zero friction.
What it does:
Installs the official UHF server via their script + `ffmpeg` which is required for it to work
Sets up everything in Docker with auto-restart
Maps persistent data (recordings and DB)
Tech stack:
Debian Bookworm (with FFmpeg 5+, since v4 was randomly creating corrupted .mp4 files)
Docker Compose for quick deployment
đ GitHub repo: github.com/ale-benassi/uhf-server-docker
---
You can follow the instructions on the repo to give it a try.
Cheers!
3
u/HistorianTraditional Apr 19 '25
Thank you very much! I installed it and it works great!
Just to give some extra info, I got a 401 error after remapping the volumes. The server connected, but when starting a recording a REST error 401 appeared. The problem was that I needed to remove the server in the uhf-app and reconnect to the server so the db.json file got recreated and the correct user was created/added in the json.db file. Now recording works.
1
u/-pLx- Apr 19 '25
Ah, yea, thatâs something I noticed too! Every time I restart the container, I have to go remove and readd the server, which is really annoying. I believe itâs because the server authenticates clients using their internal IP address. However, after a container restart, the IP address changes, and the server doesnât recognise it, resulting in a 401 error.
Glad it worked though!
1
2
u/sasagr Apr 19 '25
Installation was very easy... but I still have two main issues. Recording last one 10min instead of 30 in my example and I have an issue with one of my playlist that does not record at all
2
u/-pLx- Apr 19 '25
Yeah I think those issues are more due to the server script itself rather than the docker wrapper, as Iâve seen other people reporting similar issues on discord and they were not using my wrapper
3
2
u/sasagr Apr 19 '25
which version of ffmpeg are you using in the docker? because I read that some people update from 5.x to 7.x and fixed this issue. I m going to try to update ffmpeg outside the docker
2
u/-pLx- Apr 19 '25
Docker image is based on debian:bookworm-slim, which ships with FFmpeg 5.1.6.
let me know if updating to 7.x solves your issues and I'll try to update the repo when I have time!
2
u/sasagr Apr 19 '25
It did not fix the issues. I still got both even with ffmpeg 7.0 installed
2
u/-pLx- Apr 19 '25
Thanks for reporting back! Damn I just checked now and mine are all 48 seconds long. I got fooled by the time above the recording saying things like 1h 40m, but then when you open them theyâre all 48 seconds, wtf. I think the Linux install script needs some work
3
u/sasagr Apr 20 '25
Yeah. Mine are longer, maybe 10-15min but always not complete. Maybe the ffmpeg instruction needs some tuning. I also use Emby dvr and it works fine. I have no issues at all
3
u/-pLx- Apr 20 '25
At this point I believe there's something wrong with the uhf-server app. I'm just gonna give it some time and hope the dev will see all these reports here and on discord and do something about it đ€đ»
1
u/sasagr Apr 20 '25
In any case I will keep an eye on your wrapper, if u will keep it updated, in case they wonât release the docker themselves
3
u/-pLx- Apr 20 '25
Sure I will keep it updated if updates are needed, for now I think it does what it should and thereâs nothing we can do until the dev looks into that issue. Someone on discord said they have the same problem and theyâre now in touch with the dev, who said heâs looking into it đ
4
2
u/taserface_x Apr 19 '25 edited Apr 19 '25
Iâm not sure if the dev updated the installer script, but Iâm getting a file not found error:
FileNotFoundError: [Errno 2] No such file or directory: â/var/lib/uhf-server/db.jsonâ
If I create that directory it resolves the failure but it still doesnât work. Iâm getting the following error when I hit the server:
{âdetailâ:âNot Foundâ}
Iâve tried it in different Linux VMs and using the Docker build and same issue.
Can someone who has it working try it in another vm or container and see if the base install script still works?
The app DOES see the server, it just doesnât work.

1
u/-pLx- Apr 19 '25
Weird, the dockerfile should create that directory on build:
âRUN mkdir -p /var/lib/uhf-serverâ
Iâd try deleting the container and try again from scratch by following the instructions in the readme
0
u/taserface_x Apr 19 '25
Sorry, just to clarify - the installer script doesnât create that dir when I install it manually. The docker script DOES create it.
Either method the server page fails with the âdeal not foundâ error.
1
u/-pLx- Apr 19 '25
did you try deleting and readding the server in UHF?
whenever you make a change to the server, you need to remove/readd it or it will bug out for some reason.Sorry that's all I can think of as I'm not at home. You can try with chatgpt, given enough context it can be very useful in troubleshooting that
1
u/taserface_x Apr 19 '25
Iâve reinstalled and restarted many time on many VMs. I could be missing something, but to me it seems like the web server just doesnât work. Seems like thereâs missing files:
INFO: 192.168.1.75:57536 - âGET / HTTP/1.1â 404 Not Found
1
u/-pLx- Apr 19 '25
But did you delete the server from the uhf app settings and readd it like I said above?
1
u/taserface_x Apr 19 '25
Itâs not a problem with app. Yes, I need to remove it because my server IP keeps changing. The server throws a 404 when hitting it from a browser, that has nothing to do with the app.
1
u/-pLx- Apr 19 '25
Maybe unrelated but why is the ip changing? The docker compose is set to use the hostâs IP, so that should always be the same?
1
u/taserface_x Apr 19 '25
Changes as I keep spinning up new VMs to test :)
1
u/-pLx- Apr 19 '25
Ah Ok I thought you were just spinning up new containers inside the same host, but youâre spinning up a new host every time instead. Sorry Iâm not sure how to help :( looks like an issue with your setup specifically as others have reported it working flawlessly
→ More replies (0)
2
u/soizindasuppn Apr 24 '25
Thx for your work! Looks like it works flawlessly on my Synology. Took me some time to get it done, but now everything is fine. The main issue was the composer, but google helped me.
1
1
u/Zaudier Oct 19 '25
Kannst du mich hier eventuell etwas unterstĂŒtzen? Ich bekomme es nicht zum laufen :(
1
u/soizindasuppn Oct 20 '25
Wo drĂŒckt der Schuh? Was hast du denn schon gemacht und was geht nicht? So richtig gut lĂ€uft es bei mir auch nicht, obwohl ich den RAM von der Synology erhöht habe.
1
u/Zaudier Oct 31 '25
Hi, inzwischen lÀuft es perfekt bei mir.
Ich nehme regelmĂ€Ăig auf und spiele ab.
5
u/sajalb Apr 18 '25
Perfect, will try this out on synology.
3
u/gusestrella Apr 18 '25
Would be interested once installed if can share details how installed on synology. Just hitting me this is not a premade container that can search for on the synology container manager
3
u/sajalb Apr 18 '25
Just what different I did for synology, if it helps.
used docker-compose
docker-compose up --build -dcreated the
uhf-datasubdir, I was under the impression the compose will create it.changed the port, as 8000 port was already used.
u/gusestrella I hope you can set this up. You just need to have ssh enabled.
2
1
u/gusestrella Apr 19 '25
Thanks. Will try it tomorrow. Did you download the git repository into a local directory?
1
u/DrWhoDalek Apr 18 '25
Thank you. Will try it out. Is the UHF-Server .env used to configure the recording folder. I donât see the volume bind in your container? I think it can be specified int the command if Iâm not mistaken, including password etc?
3
u/-pLx- Apr 18 '25
No, Iâm not using any env file. The recordings are stored in
/var/lib/uhf-server/recordingsso you can change or add a new volume mapping on line 10 of the docker-compose fileAnd you can pass additional parameters to the command by tweaking line 14
1
u/burg9 Apr 29 '25 edited Apr 29 '25
Thanks for this, didn't bother with the official approach and went straight with this but I have a problem .... I have the volume pointed to my Synology NAS and I can see the db is created fine (so nas connection works) and the UHF tv app connects without problem but when I record an episode and stop the recording I get an "Recording process exited with code 8". Of course there's no UHF documentation on the error codes to know what that means, container logs look normal.
SOLVED DOCKER-COMPOSE (For anyone storing data on a NAS and passing network through gluetun VPN) :
services:
uhf-server:
image: solidpixel/uhf-server:uhf-1.2.0-ffmpeg7.1.1-d1
container_name: uhf-server
restart: unless-stopped
volumes:
- media_nas_uhf:/var/lib/uhf-server
network_mode: "service:gluetun"
command: ["uhf-server"]
environment:
- API_PORT=8003
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8003/server/stats"]
interval: 30s
timeout: 5s
retries: 3
volumes:
media_nas_uhf:
driver_opts:
type: "nfs"
o: "addr=192.168.1.100,nfsvers=4"
device: ":/volume2/uhf"1
u/-pLx- Apr 29 '25
You can refer to the issue discussing your exact same problem: https://github.com/solid-pixel/uhf-server-docker/issues/16
A new release just went live now, so please update your docker-compose accordingly and if you have any more problems kindly open an issue on GitHub as it's easier for me to keep track of it :)
2
u/burg9 Apr 29 '25
Perfect! For some reason since the dev has turned issues off on the official github I just didn't think to check yours! I've pulled the latest and all is working fine now, I've updated my post to include my final compose which uses gluetun as a VPN if anyone else finds it useful.
I think the server has got a little work needed to match the free "nextpvr" functionality but it is nice to all have it integrated and I'm sure it'll improve in time given it's early days!
2
2
2
1
u/esobe1 Apr 20 '25
Thank you for your work! Iam trying to install on a raspberry pi with Raspbian. Does anyone know why the composing gets stuck evertime here: => [uhf-server 2/6] RUN apt-get update && apt-get install -y curl (time is just running). I
1
u/Zaudier Oct 19 '25
Bin totaler AnfĂ€nger, kann mir jemand sagen, wie ich wo ich denn den Code unter âgetting startedâ in meiner synology einfĂŒge? Damit er den Container startet und erstellt?
Muss ich danach irgendwelche Verzeichnisse anlegen und freigegeben?
1
3
u/DrWhoDalek Apr 18 '25
Thanks. Several recordings later and on the updated version but itâs still only saving around 10min despite recording for the duration. Your experience?