markdegrootnl / unifi-protect-x86 Goto Github PK
View Code? Open in Web Editor NEWRun UniFi Protect in Docker on x86 hardware
Run UniFi Protect in Docker on x86 hardware
I'm unable to keep the container running on a fresh Ubuntu 18.04 VM. This is what's happening:
test@test:~$ sudo docker run --privileged --tmpfs /srv/unifi-protect/temp -p 7080:7080 -p 7443:7443 -p 7444:7444 -p 7447:7447 -p 7550:7550 -p 7442:7442 -m 2048m -v unifi-protect-db:/var/lib/postgresql/10/main -v unifi-protect:/srv/unifi-protect markdegroot/unifi-protect-x86:latest
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
database exists
Removed stale pid file.
createuser: creation of new role failed: ERROR: role "unifi-protect" already exists
Database exists, checking ownership
Database is already owned by unifi-protect
CONFIG LOADED : /usr/share/unifi-protect/app/config/config.json
workers pool `Read` is set to 4 concurrent workers
workers pool `Write` is set to 8 concurrent workers
workers pool `Transcode` is set to 8 concurrent workers
workers pool `DnsResolve` is set to 16 concurrent workers
workers pool `Misc` is set to 1 concurrent workers
workers pool `Global` is set to 1 concurrent workers
workers pool `Serve` is set to 106 concurrent workers
Cannot find module 'pg-native'
CONFIG LOADED : /usr/share/unifi-protect/app/config/config.json
Wed, 06 Oct 2021 21:08:17 GMT sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators at usr/share/unifi-protect/app/node_modules/sequelize/lib/sequelize.js:245:13
test@test:~$
Does anyone have any idea why? Thanks!
Since few time, I can not add my G3 instant on unifi protect in docker on synology.
It worked before.
Like can I do it myself somehow or?
Everything works fine only issues is the ui shows the camera still loading. However I know its recording because it shows a time line.
Can't download videos or play them back but that might be my config causing issues.
I also can't login for remote. But I haven't tried it on the host computer yet
I'm still new to using docker.
my config is below.
docker run -d --name unifi-protect-x86 \
--tmpfs /srv/unifi-protect/temp \
--network="host" \
-p 7080:7080 \
-p 7443:7443 \
-p 7444:7444 \
-p 7447:7447 \
-p 7550:7550 \
-p 7442:7442 \
-m 6144m \
-v unifi-protect-db:/var/lib/postgresql/10/main \
-v unifi-protect:/srv/unifi-protect \
markdegroot/unifi-protect-x86:latest
Anyone have a solution for these issues or can provide me with some direction.
Thanks
The thing works out of the box quite nicely. I didn't have any issues, just ran the container and it finds the camera device.
But the camera has none of the features from the demo video. Its basically a ball video and nothing more.
The arm64 image was published 3 months ago, so does that have a more recent debian package?
Would it be possible to set up a mirror repo that just gets the latest package?
How out of date is a year's old deb file?
Hi,
I run docker on Ubuntu 20.04 and would like to run this container.
However I keep getting this error:
`
This user must also own the server process.
The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".
Data page checksums are disabled.
initdb: could not change permissions of directory "/var/lib/postgresql/10/main": Operation not permitted
fixing permissions on existing directory /var/lib/postgresql/10/main ...
`
I tried everything but it still doesn't work even 777 doesn't work.
Any help would be appreciated.
Hey Mark,
First of all thank you for constructing this docker so we can try this out. I'm looking for a way to use Unifi Protect because i wanted to buy a Unifi doorbell and maybe some camera's. There is little hope (so says the internet) in an easy to use docker that's "plug-and-play" so i've started using my basic command knowledge to give it a go and use your docker.
I'm using Unraid as server so i'm trying to get this to work on my device.
Here's where i'm at:
I've installed the docker succesfully, remapping the ports, using bridge because the docker needs internet and giving my files the correct accessability
docker run -d --name unifi-protect-x86
--privileged
--tmpfs "/mnt/user/Unifi Protect/unifi-protect/temp"
-p 7080:7080
-p 7443:7443
-p 7444:7444
-p 7447:7447
-p 7550:7550
-p 7442:7442
--network="bridge"
-v "/mnt/user/Unifi Protect/unifi-protect-db":/var/lib/postgresql/10/main
-v "/mnt/user/Unifi Protect/unifi-protect":/srv/unifi-protect
markdegroot/unifi-protect-x86:latest
I think i edited the commands correctly. /mnt/user/Unifi Protect is the map i use for all of this. Let me know if i did something wrong here. I also did a 'chown' for 101 and 999.
chown 101:101 "/mnt/user/Unifi Protect/unifi-protect"
chown 999:999 "/mnt/user/Unifi Protect/unifi-protect-db"
My docker runs. But i can't connect at port 7447. There is nothing there. When i use 7080 i do get the webgui. I start the small setup. And then it gives me a blue screen that says 'Connectinto your NVR...' and it stays like that forever.
This is the log from my unraid server:
Database exists, checking ownership
Database is already owned by unifi-protect
CONFIG LOADED : /usr/share/unifi-protect/app/config/config.json
workers pool `Read` is set to 4 concurrent workers
workers pool `Write` is set to 8 concurrent workers
workers pool `Transcode` is set to 4 concurrent workers
workers pool `DnsResolve` is set to 16 concurrent workers
workers pool `Misc` is set to 1 concurrent workers
workers pool `Global` is set to 1 concurrent workers
workers pool `Serve` is set to 110 concurrent workers
Cannot find module 'pg-native'
CONFIG LOADED : /usr/share/unifi-protect/app/config/config.json
Mon, 30 Nov 2020 12:12:27 GMT sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators at usr/share/unifi-protect/app/node_modules/sequelize/lib/sequelize.js:245:13
(node:69) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 delete listeners added. Use emitter.setMaxListeners() to increase limit
Maybe it has something to do with the "Possible EventEmitter memory leak"? No clue. i'm not super qualified for this :). Any help would be great.
Thank you and let me know if you need more info.
Hi,
I have installed UniFi Protect x86 version in docker using the latest release.
I have gone through the setup wizard and have logged in.
However, it always hangs at "Connecting to your NVR". I have tried re installing the OS (Ubuntu 20.04) & re installing docker.
Do you have any suggestions on how this could be fixed?
Thanks,
Ryan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.