fryfrog Posted March 13, 2019 Share Posted March 13, 2019 Just show us your settings, how ever you know to do that. Quote Link to comment
Squid Posted March 13, 2019 Share Posted March 13, 2019 1 hour ago, bluesky509 said: Sorry, i'm still new to this... How do I execute a "run command" exactly? https://forums.unraid.net/topic/57181-real-docker-faq/#comment-564345 Quote Link to comment
bluesky509 Posted March 14, 2019 Share Posted March 14, 2019 (edited) 15 hours ago, fryfrog said: -v /data/unifi-video/data:/var/lib/unifi-video \ -v /data/unifi-video/videos:/var/lib/unifi-video/videos \ ....... Can you show your run command? When you `docker exec` into it, you should be looking at `/var/lib/unifi-video` and `/var/lib/unifi-video/videos`. Run command below: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='UniFi-Video' --net='bridge' --privileged=true -e TZ="America/Chicago" -e HOST_OS="Unraid" -e 'JVM_MX'='2000M' -p '1935:1935/tcp' -p '6666:6666/tcp' -p '7004:7004/udp' -p '7080:7080/tcp' -p '7442:7442/tcp' -p '7443:7443/tcp' -p '7444:7444/tcp' -p '7445:7445/tcp' -p '7446:7446/tcp' -p '7447:7447/tcp' -v '/mnt/cache/appdata/unifi-video/':'/var/lib/unifi-video':'rw' -v '/mnt/user/UnfiVideoShareForStorage':'/var/lib/unifi-video/videos':'rw' 'pducharme/unifi-video-controller' 127645ed1ce6085f53198044ec0c5f634b9289fd9f8991c029e5642806cf3384 Log: 2019-03-14 03:13:16.272339 [warn] PUID not defined (via -e PUID), defaulting to '99' 2019-03-14 03:13:16.527023 [warn] PGID not defined (via -e PGID), defaulting to '100' 2019-03-14 03:13:16.628321 [info] Permissions already set for volume mappings Starting unifi-video... (unifi-video) checking for system.properties and truststore files... done. Waiting for mongodb to come online..... done. I was able to restart without issues. It seems it happens when unraid is restarted. Edited March 14, 2019 by bluesky509 add Quote Link to comment
Debaser Posted March 24, 2019 Share Posted March 24, 2019 having issues getting the unifi video container working behind nginx reverse proxy. anyone having any luck? getting a 502 bad gateway here's my config map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 80; server_name nvr.domain.xyz; client_max_body_size 4G; location / { proxy_redirect off; proxy_set_header Host $host; proxy_pass http://192.168.1.10:7080/; } } server { listen 443 ssl http2; server_name nvr.domain.xyz; ssl_certificate /config/keys/letsencrypt/fullchain.pem; ssl_certificate_key /config/keys/letsencrypt/privkey.pem; ssl on; set $upstream 192.168.1.10:7443; location / { proxy_pass https://$upstream; proxy_redirect https://$upstream https://$server_name; proxy_cache off; proxy_store off; proxy_buffering off; proxy_http_version 1.1; proxy_read_timeout 36000s; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Referer ""; client_max_body_size 0; } } Quote Link to comment
Debaser Posted April 5, 2019 Share Posted April 5, 2019 (edited) if anyone else stumbles across this with the same issue, it's because of the network type on the docker container. at least it was in my case. i had it set to custom with its own IP. needed to set it to Host to allow inbound connections. here's the reddit thread where someone helped me understand this: here's my config for the reverse proxy if interested server { listen 443 ssl; server_name nvr.redacted.xyz; root /config/www; index index.html index.htm index.php; ###SSL Certificates ssl_certificate /config/keys/letsencrypt/fullchain.pem; ssl_certificate_key /config/keys/letsencrypt/privkey.pem; ###Diffie–Hellman key exchange ### ssl_dhparam /config/nginx/dhparams.pem; ###SSL Ciphers ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:$ ###Extra Settings### ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ### Add HTTP Strict Transport Security ### add_header Strict-Transport-Security "max-age=63072000; includeSubdomains"; add_header Front-End-Https on; client_max_body_size 0; client_body_buffer_size 400M; location / { proxy_set_header X-Real_IP $remote_addr; proxy_pass https://192.168.1.204:7443/; proxy_max_temp_file_size 2048m; include /config/nginx/proxy.conf; } } Edited April 5, 2019 by Debaser Quote Link to comment
Ryandm Posted April 7, 2019 Share Posted April 7, 2019 (edited) I am very new to dockers. Thanks in advance for pointing me in the correct direction. Below is the configuration I ran, and a screenshot of what I see as I attempt 1st login to Unifi Video. I'm not sure if what I see is correct or not, thus, why I am here. If I'm on the right path, any "next steps" direction would be much appreciated. docker run -d \ --restart=unless-stopped \ --network="host" \ --name unifi-video \ --security-opt apparmor:unconfined \ --cap-add SYS_ADMIN \ --cap-add DAC_READ_SEARCH \ -v /sharedfolders/Security/unifi-video/data:/var/lib/unifi-video \ -v /sharedfolders/Security/unifi-video/videos:/var/lib/unifi-video/videos \ -v /sharedfolders/Security/unifi-video/logs:/var/log/unifi-video \ -e TZ=America/Chicago \ -e PUID=1001 \ -e PGID=100 \ -e DEBUG=1 \ pducharme/unifi-video-controller logs: logs and latest logs: Latest_logs Edited April 7, 2019 by Ryandm added one additional log note... Quote Link to comment
Ryandm Posted April 8, 2019 Share Posted April 8, 2019 (edited) 15 hours ago, Ryandm said: I am very new to dockers. Thanks in advance for pointing me in the correct direction. Below is the configuration I ran, and a screenshot of what I see as I attempt 1st login to Unifi Video. I'm not sure if what I see is correct or not, thus, why I am here. If I'm on the right path, any "next steps" direction would be much appreciated. docker run -d \ --restart=unless-stopped \ --network="host" \ --name unifi-video \ --security-opt apparmor:unconfined \ --cap-add SYS_ADMIN \ --cap-add DAC_READ_SEARCH \ -v /sharedfolders/Security/unifi-video/data:/var/lib/unifi-video \ -v /sharedfolders/Security/unifi-video/videos:/var/lib/unifi-video/videos \ -v /sharedfolders/Security/unifi-video/logs:/var/log/unifi-video \ -e TZ=America/Chicago \ -e PUID=1001 \ -e PGID=100 \ -e DEBUG=1 \ pducharme/unifi-video-controller logs: logs and latest logs: Latest_logs Whatever the above is, it essentially crashed my docker. I attempted to run similarly to the docker hub layout and I see mongodb doesn't start in the logs.. docker run -d \ --restart=unless-stopped \ --name unifi-video \ --cap-add SYS_ADMIN \ --cap-add DAC_READ_SEARCH \ -p 10001:10001 \ -p 1935:1935 \ -p 6666:6666 \ -p 7080:7080 \ -p 7442:7442 \ -p 7443:7443 \ -p 7444:7444 \ -p 7445:7445 \ -p 7446:7446 \ -p 7447:7447 \ -v /sharedfolders/Security/unifi-video/data:/var/lib/unifi-video \ -v /sharedfolders/Security/unifi-video/videos:/var/lib/unifi-video/videos \ -v /sharedfolders/Security/unifi-video/logs:/var/log/unifi-video \ -e TZ=America/Chicago \ -e PUID=99 \ -e PGID=100 \ -e DEBUG=1 \ pducharme/unifi-video-controller logs: https://pastebin.com/aWhf7yKS . and here https://pastebin.com/K5Sy7V0f Edited April 8, 2019 by Ryandm Quote Link to comment
IamSpartacus Posted April 17, 2019 Share Posted April 17, 2019 Any plans to update the docker hub dockerfile for 3.10.2 @fryfrog @Pducharme? Quote Link to comment
fryfrog Posted April 17, 2019 Share Posted April 17, 2019 (edited) Last I looked, it was withdrawn... is it good now? Edit: Now I don't see any trace of it having been withdrawn... Edited April 17, 2019 by fryfrog Quote Link to comment
lostwebb Posted April 19, 2019 Share Posted April 19, 2019 On 4/17/2019 at 8:08 PM, IamSpartacus said: Any plans to update the docker hub dockerfile for 3.10.2 @fryfrog @Pducharme? On 4/17/2019 at 8:31 PM, fryfrog said: Last I looked, it was withdrawn... is it good now? Edit: Now I don't see any trace of it having been withdrawn... I too would be very grateful to see it updated :). Thanks for all the work with the dockers. Quote Link to comment
bluesky509 Posted April 20, 2019 Share Posted April 20, 2019 On 3/14/2019 at 3:15 AM, bluesky509 said: Run command below: root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='UniFi-Video' --net='bridge' --privileged=true -e TZ="America/Chicago" -e HOST_OS="Unraid" -e 'JVM_MX'='2000M' -p '1935:1935/tcp' -p '6666:6666/tcp' -p '7004:7004/udp' -p '7080:7080/tcp' -p '7442:7442/tcp' -p '7443:7443/tcp' -p '7444:7444/tcp' -p '7445:7445/tcp' -p '7446:7446/tcp' -p '7447:7447/tcp' -v '/mnt/cache/appdata/unifi-video/':'/var/lib/unifi-video':'rw' -v '/mnt/user/UnfiVideoShareForStorage':'/var/lib/unifi-video/videos':'rw' 'pducharme/unifi-video-controller' 127645ed1ce6085f53198044ec0c5f634b9289fd9f8991c029e5642806cf3384 Log: 2019-03-14 03:13:16.272339 [warn] PUID not defined (via -e PUID), defaulting to '99' 2019-03-14 03:13:16.527023 [warn] PGID not defined (via -e PGID), defaulting to '100' 2019-03-14 03:13:16.628321 [info] Permissions already set for volume mappings Starting unifi-video... (unifi-video) checking for system.properties and truststore files... done. Waiting for mongodb to come online..... done. I was able to restart without issues. It seems it happens when unraid is restarted. .... Just wondering if anyone noticed anything wrong with my setup? I had a power outage and on restart it couldn't find system.properties so I eneded up reinstalling from backup. Quote Link to comment
fryfrog Posted April 21, 2019 Share Posted April 21, 2019 I finally got all the little things needed for the v3.10.2 update sorted out (nothing crazy, just url changed and patch file needed update). I pushed it to my own docker hub and will run it for a day or two, then push it to the real one. Quote Link to comment
fryfrog Posted April 21, 2019 Share Posted April 21, 2019 So w/ just those bare minimum of changes (seen at https://github.com/fryfrog/UniFi-Video-Controller/commits/master), it comes up and my username/password don't work. Logs show the cameras connecting and getting rejected. I'm not sure what is wrong yet. Quote Link to comment
EarthYak Posted April 22, 2019 Share Posted April 22, 2019 Well I was on the beta docker and I made the mistake of not checking this before updating. I am having the same issues now. Quote Link to comment
fryfrog Posted April 22, 2019 Share Posted April 22, 2019 Try the `:latest` tag, I think it should be 3.10.1. I don't see an actual 3.10.1 tag, so I'll push that now-ish too. I can switch back and forth between 3.10.1 and 3.10.2 just fine, .1 works and .2 doesn't w/ an error about the user table being corrupt. Quote Link to comment
lostwebb Posted April 22, 2019 Share Posted April 22, 2019 4 hours ago, fryfrog said: Try the `:latest` tag, I think it should be 3.10.1. I don't see an actual 3.10.1 tag, so I'll push that now-ish too. I can switch back and forth between 3.10.1 and 3.10.2 just fine, .1 works and .2 doesn't w/ an error about the user table being corrupt. I don't know much about the docker, but i found this information about upgrading and some Mongol changes...scroll down to the update to 3.10.2 instructions. Might not mean anything though. https://github.com/exsilium/docker-unifi-video Quote Link to comment
fryfrog Posted April 22, 2019 Share Posted April 22, 2019 I *think* those directions just achieve a mmapv1 to wiredTiger migration, but I've asked to make sure. My db is already wiredTiger and I'm running 3.10.1 w/ the same db I've had for years. But for some reason, 3.10.2 thinks my user table is corrupt. https://github.com/exsilium/docker-unifi-video/issues/10 Quote Link to comment
csmccarron Posted April 22, 2019 Share Posted April 22, 2019 (edited) So I had the docker working on 3.10.1 then it started going to the Upgrading Unifi-Video screen and seems to be stuck there. I have deleted the docker completely and when I reinstall it, it does the same thing. How do you fix this issue? root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='UniFi-Video' --net='host' --privileged=true -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'TCP_PORT_1935'='1935' -e 'TCP_PORT_6666'='6666' -e 'UDP_PORT_7004'='7004' -e 'TCP_PORT_7080'='7080' -e 'TCP_PORT_7442'='7442' -e 'TCP_PORT_7443'='7443' -e 'TCP_PORT_7444'='7444' -e 'TCP_PORT_7445'='7445' -e 'TCP_PORT_7446'='7446' -e 'TCP_PORT_7447'='7447' -v '/mnt/cache/appdata/unifi-video/':'/var/lib/unifi-video':'rw' -v '/mnt/user/UnifiVideoStorage':'/var/lib/unifi-video/videos':'rw' -v '/mnt/user':'/unraid':'rw' 'pducharme/unifi-video-controller' So I managed to get mongo working but now when I login, it will not take me past the login screen. UPDATE: I had to use https://[IP]:7443 to login and get to the management interface. http://[IP]:7080 will not take you to the management interface. Edited April 23, 2019 by csmccarron Quote Link to comment
WashingtonMatt Posted April 30, 2019 Share Posted April 30, 2019 So we're good to go on this update? Quote Link to comment
fryfrog Posted April 30, 2019 Share Posted April 30, 2019 There are 3.9.x -> 3.10.x and 3.10.1 -> 3.10.2 issues, but they're all self inflicted by Unifi Video itself. For example, I *just* finally figured out why my 3.10.1 -> 3.10.2 upgrade resulted in an empty setup... they switched to the wiredTiger db engine by pointing at a new, empty db dir! My db was *already* wiredTiger, so I just moved my db into the new folder and it was all fine. They just keep screwing around w/ stuff. :/ There are tags for every version in there now, so you can flip between them as needed and while you troubleshoot. Good luck. :/ Quote Link to comment
Andiroo2 Posted May 1, 2019 Share Posted May 1, 2019 I upgraded from 3.10.1 to 3.10.2 today and it was completely seamless. I had reinstalled 3.10.1 from scratch after the upgrade issues from 3.9, so perhaps that set me up for this easy upgrade? In any case, I am happy. I still have the JVM heap settings limited to 4GB. Has anyone that had the memory leak in 3.10.1 been able to remove this setting yet? Quote Link to comment
WashingtonMatt Posted May 1, 2019 Share Posted May 1, 2019 So I just updated without issue. My port stayed at 7080. I also just started with this docker last month v3.10.1. Quote Link to comment
sunnyd425 Posted May 11, 2019 Share Posted May 11, 2019 I am unable to record, to the share I have created "/mnt/user/unify-video/video". I tried to change the recording path in web ui to /mnt/user/unify-video/videos, but it says that the path does not exist. Any tips would be greatly appreciated Quote Link to comment
Riotz Posted June 3, 2019 Share Posted June 3, 2019 Any chance we will see the 3.10.3 update pushed out soon? Quote Link to comment
Riotz Posted June 3, 2019 Share Posted June 3, 2019 (edited) On 5/11/2019 at 3:48 PM, sunnyd425 said: I am unable to record, to the share I have created "/mnt/user/unify-video/video". I tried to change the recording path in web ui to /mnt/user/unify-video/videos, but it says that the path does not exist. Any tips would be greatly appreciated I had the same issue. Set your host path to whatever you want but in the UniFi Video system config use the container path as: /var/lib/unifi-video/videos This is how I have mine configured: Edited June 3, 2019 by Riotz Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.