jameslikeslinux / docker-unifi-protect

An x86_64-compatible container for UniFi Protect
https://hub.docker.com/r/iamjamestl/unifi-protect
19 stars 9 forks source link

Docker run hangs #4

Open andraghetti opened 4 years ago

andraghetti commented 4 years ago

Hi, I cannot find out why the docker run command hangs:

 ~  docker run \
       --name unifi-protect \
       --net video \
       --ip 192.168.100.2 \
       -v unifi-protect:/srv/unifi-protect \
       -v unifi-protect-postgresql:/var/lib/postgresql \
       --tmpfs /tmp \
       iamjamestl/unifi-protect
Unable to find image 'iamjamestl/unifi-protect:latest' locally
latest: Pulling from iamjamestl/unifi-protect
5667fdb72017: Pull complete
d83811f270d5: Pull complete
ee671aafb583: Pull complete
7fc152dfb3a6: Pull complete
80c63237f67d: Pull complete
bc10fd459b48: Pull complete
1474d4bb6906: Pull complete
34e6d51c45e0: Pull complete
d840ba523470: Pull complete
d1d7c8513e91: Pull complete
Digest: sha256:a7940d183dbe984f0ed3efc7d05a7c80caaa4e3919ff688190cf907f57bbb54b
Status: Downloaded newer image for iamjamestl/unifi-protect:latest
workers pool `Read` is set to 1 concurrent workers
workers pool `Write` is set to 2 concurrent workers
workers pool `Transcode` is set to 1 concurrent workers
workers pool `DnsResolve` is set to 1 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 1 concurrent workers
Cannot find module 'pg-native'
CONFIG LOADED : /usr/share/unifi-protect/app/config/config.json
CONFIG LOADED : /etc/unifi-protect/config.json
Certificate /srv/unifi-protect/data/unifi-protect.crt not found.... generating
Device certificate /srv/unifi-protect/data/devices.crt not found.... generating
(node:30) DeprecationWarning: PG.connect is deprecated - please see the upgrade guide at https://node-postgres.com/guides/upgrading
Sat, 18 Jul 2020 14:14:45 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
/usr/share/unifi-protect/app/node_modules/.bin/ubnt_avcodec_service [ '-u',
  '/var/run/unifi-protect/transcoder',
  '-l',
  '/srv/unifi-protect/logs/avcs.log',
  '-c',
  '5' ]

Can you help?

LeFEAR commented 3 years ago

that's it. when its like that container runs. maybe your IP setup was incorrect Anyway I think there is no point to pursue this any more

danijelk commented 3 years ago

Hi, I cannot find out why the docker run command hangs:

 ~  docker run \
       --name unifi-protect \
       --net video \
       --ip 192.168.100.2 \
       -v unifi-protect:/srv/unifi-protect \
       -v unifi-protect-postgresql:/var/lib/postgresql \
       --tmpfs /tmp \
       iamjamestl/unifi-protect
Unable to find image 'iamjamestl/unifi-protect:latest' locally
latest: Pulling from iamjamestl/unifi-protect
5667fdb72017: Pull complete
d83811f270d5: Pull complete
ee671aafb583: Pull complete
7fc152dfb3a6: Pull complete
80c63237f67d: Pull complete
bc10fd459b48: Pull complete
1474d4bb6906: Pull complete
34e6d51c45e0: Pull complete
d840ba523470: Pull complete
d1d7c8513e91: Pull complete
Digest: sha256:a7940d183dbe984f0ed3efc7d05a7c80caaa4e3919ff688190cf907f57bbb54b
Status: Downloaded newer image for iamjamestl/unifi-protect:latest
workers pool `Read` is set to 1 concurrent workers
workers pool `Write` is set to 2 concurrent workers
workers pool `Transcode` is set to 1 concurrent workers
workers pool `DnsResolve` is set to 1 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 1 concurrent workers
Cannot find module 'pg-native'
CONFIG LOADED : /usr/share/unifi-protect/app/config/config.json
CONFIG LOADED : /etc/unifi-protect/config.json
Certificate /srv/unifi-protect/data/unifi-protect.crt not found.... generating
Device certificate /srv/unifi-protect/data/devices.crt not found.... generating
(node:30) DeprecationWarning: PG.connect is deprecated - please see the upgrade guide at https://node-postgres.com/guides/upgrading
Sat, 18 Jul 2020 14:14:45 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
/usr/share/unifi-protect/app/node_modules/.bin/ubnt_avcodec_service [ '-u',
  '/var/run/unifi-protect/transcoder',
  '-l',
  '/srv/unifi-protect/logs/avcs.log',
  '-c',
  '5' ]

Can you help?

you can just add -p 7080:7080 to your command and the port should open, runs in browser but gets stuck in setup 'Connecting to your NVR...'

LeFEAR commented 3 years ago

I didn't had issue with that. I went through just fine.(and then the web server switched to 7443 like in unifi video) it just can't update( because they took it down) I didn't try to connect any cameras on it for the time being. because its pointless. eventually you would have to roll over to unifi.

danijelk commented 3 years ago

I didn't had issue with that. I went through just fine.(and then the web server switched to 7443 like in unifi video) it just can't update( because they took it down) I didn't try to connect any cameras on it for the time being. because its pointless. eventually you would have to roll over to unifi.

Indeed, not worth the time it seems. worked ok with the setup, was just a bad network setting of mine, thanks for the project though, would be nice if they were a bit more open

LeFEAR commented 3 years ago

they wore with Unifi video. But I am sure everyone had different hardware. different network setup , different everything

so all kind of issues wore flooding their support

And that was giving a bad name to the company , and taking LOTs of time to troubleshoot and provide support for issues outside of their control.

The issues coming because someone wants to run 20 cameras on a core duo system with 6 X 1TB Green WD ten year old HDDs ( about to die ) in a fake raid 6 (not even with a raid card mobo RAID config ) and with 4GB DDR2 RAM. with an SSD for boot and windows 10 or windows 7

so yeah ofcourse they had issues with speed , with segments not being ingested fast enough and a lot of other issues.

so by locking it down they have the same hardware cross everyone. worst can happen is bigger drives in the NVR's. so standardization and profit for the work they put into the NVR development.

If anyone could unpack the BIN files they have it would be nice to allow the people that know what they are doing to implement it, without having to spend a small fortune on top of everything

danijelk commented 3 years ago

I think people already have, 1.13.3 is out I see, but as you say since its locked its just a matter of time before it also fails, so easiest is to get the key to run the sw I guess, even if I have dedicated hw to run it without issues..

LeFEAR commented 3 years ago

people already have, 1.13.3 is out I see, but as you say since its locked its just a matter of time

well If its out I haven't seen it. this docker image is somewhere like 1.12

for experimentation it would be nice to be on the latest version.

for me I am not into buying a new NVR. I already invested into making a DAS just for unifi video. so I will use something like this a mod a hack. because I don't really mind if something goes to poop

but if you found something newer than this docker image feel free to share

danijelk commented 3 years ago

I believe you will find the second one here interesting https://hub.docker.com/search?q=unifi-protect&type=image&sort=updated_at&order=desc

https://hub.docker.com/r/markdegroot/unifi-protect-x86/dockerfile

LeFEAR commented 3 years ago

I believe you will find the second one here interesting https://hub.docker.com/search?q=unifi-protect&type=image&sort=updated_at&order=desc

https://hub.docker.com/r/markdegroot/unifi-protect-x86/dockerfile

Mind you Unifi protect is at 1.15.0 currently 08/11/2020

https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1

the latest docker is at 1.13.3

danijelk commented 3 years ago

The first docker in my link is 1.15. 🙏

On Sun, Nov 8, 2020, 23:40 LeFEAR notifications@github.com wrote:

I believe you will find the second one here interesting https://hub.docker.com/search?q=unifi-protect&type=image&sort=updated_at&order=desc

https://hub.docker.com/r/markdegroot/unifi-protect-x86/dockerfile

ming you Unifi protect is at 1.15.0

https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1

the latest docker is at 1.13.3

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iamjamestl/docker-unifi-protect/issues/4#issuecomment-723676526, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENZEITI4SNBQIKKIBDDZ3SO4M7JANCNFSM4O7623AA .

LeFEAR commented 3 years ago

The first docker in my link is 1.15. 🙏 On Sun, Nov 8, 2020, 23:40 LeFEAR @.**> wrote: I believe you will find the second one here interesting https://hub.docker.com/search?q=unifi-protect&type=image&sort=updated_at&order=desc https://hub.docker.com/r/markdegroot/unifi-protect-x86/dockerfile ming you Unifi protect is at 1.15.0 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1* the latest docker is at 1.13.3 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENZEITI4SNBQIKKIBDDZ3SO4M7JANCNFSM4O7623AA .

markdegroot/unifi-protect-arm64 ?

danijelk commented 3 years ago

Correct see the tags https://hub.docker.com/r/markdegroot/unifi-protect-arm64/tags but it's arm64 so not as easy to run as the x86

kind regards Danijel On 9 Nov 2020, 12.58 +0100, LeFEAR notifications@github.com, wrote:

The first docker in my link is 1.15. 🙏 … On Sun, Nov 8, 2020, 23:40 LeFEAR @.***> wrote: I believe you will find the second one here interesting https://hub.docker.com/search?q=unifi-protect&type=image&sort=updated_at&order=desc https://hub.docker.com/r/markdegroot/unifi-protect-x86/dockerfile ming you Unifi protect is at 1.15.0 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1 the latest docker is at 1.13.3 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENZEITI4SNBQIKKIBDDZ3SO4M7JANCNFSM4O7623AA . markdegroot/unifi-protect-arm64 ? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

LeFEAR commented 3 years ago

Correct see the tags https://hub.docker.com/r/markdegroot/unifi-protect-arm64/tags but it's arm64 so not as easy to run as the x86 kind regards Danijel On 9 Nov 2020, 12.58 +0100, LeFEAR @.>, wrote: > The first docker in my link is 1.15. 🙏 > … > On Sun, Nov 8, 2020, 23:40 LeFEAR @.> wrote: I believe you will find the second one here interesting https://hub.docker.com/search?q=unifi-protect&type=image&sort=updated_at&order=desc https://hub.docker.com/r/markdegroot/unifi-protect-x86/dockerfile ming you Unifi protect is at 1.15.0 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1 https://community.ui.com/releases/UniFi-Protect-1-15-0/2dd6ca3b-54ae-4261-a9d2-d4908cb48da1 the latest docker is at 1.13.3 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENZEITI4SNBQIKKIBDDZ3SO4M7JANCNFSM4O7623AA . markdegroot/unifi-protect-arm64 ? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

that's why i Avoided it :D

thanks again