[support] pducharme's Dockers support thread


Recommended Posts

Because they use some multicast thing, you can't fire up the container w/ all those port forwards in the normal mode and have it work. You should be able to use the adopt token and such. Or you can fire it up in --network="host" mode to add them, then drop back to normal.

https://github.com/pducharme/UniFi-Video-Controller/issues/110

^ This issue talks about another way where the container gets its own mac and IP, you could try it and see how it goes.

  • Upvote 1
Link to comment
6 minutes ago, fryfrog said:

Because they use some multicast thing, you can't fire up the container w/ all those port forwards in the normal mode and have it work. You should be able to use the adopt token and such. Or you can fire it up in --network="host" mode to add them, then drop back to normal.

https://github.com/pducharme/UniFi-Video-Controller/issues/110

^ This issue talks about another way where the container gets its own mac and IP, you could try it and see how it goes.

If I'm understanding correctly this would only work for Unifi branded cameras - what about 3rd party like Hikvision?

Link to comment

I tried to go back to the latest repository and that wont start at all.  I deleted my docker image and started over and still the same result.  I get the following error:

2018-10-04 22:14:54.888756 [warn] PUID not defined (via -e PUID), defaulting to '99'
2018-10-04 22:14:54.969258 [warn] PGID not defined (via -e PGID), defaulting to '100'
2018-10-04 22:14:55.023655 [info] Setting permissions recursively on volume mappings...
chown: cannot read directory '/var/lib/unifi-video/videos/2ee90163-4814-39bf-aaea-9d89b94246c6/2018/08/26': Structure needs cleaning

 

There isnt anything in the directory as I deleted everything to start completely fresh.  I have no idea where I am supposed to go from here.  It looks like there is some configuration somewhere left from the previous docker but I have no idea where since I deleted the appdata folder and the whole docker image for everything.

Link to comment
  • 2 weeks later...

I´m having issue starting the docker. It´s getting stuck on "starting controller services". I have tried deleting the data folder and starting over without any success. The data path for the docker is on a SSD outside of the array. The log show mongdb start over and over again.

Quote

2018-10-13T20:12:37.114+0200 I CONTROL  [main] ***** SERVER RESTARTED *****
2018-10-13T20:12:37.116+0200 I CONTROL  [initandlisten] MongoDB starting : pid=340 port=7441 dbpath=/usr/lib/unifi-video/data/db 64-bit host=9342c6108066
2018-10-13T20:12:37.116+0200 I CONTROL  [initandlisten] db version v3.4.17
2018-10-13T20:12:37.116+0200 I CONTROL  [initandlisten] git version: 7c14a47868643bb691a507a92fe25541f998eca4
2018-10-13T20:12:37.116+0200 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2n  7 Dec 2017
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten] allocator: tcmalloc
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten] modules: none
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten] build environment:
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten]     distmod: ubuntu1604
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten]     distarch: x86_64
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten]     target_arch: x86_64
2018-10-13T20:12:37.117+0200 I CONTROL  [initandlisten] options: { net: { bindIp: "127.0.0.1", http: { enabled: false }, port: 7441 }, storage: { dbPath: "/usr/lib/unifi-video/data/db", jo$
2018-10-13T20:12:37.132+0200 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=15586M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statisti$
2018-10-13T20:12:37.148+0200 E STORAGE  [initandlisten] WiredTiger error (17) [1539454357:148472][340:0x1543f8db2180], connection: /usr/lib/unifi-video/data/db/WiredTiger.wt: handle-open: $
2018-10-13T20:12:37.148+0200 I STORAGE  [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.7
2018-10-13T20:12:37.149+0200 E STORAGE  [initandlisten] WiredTiger error (1) [1539454357:149074][340:0x1543f8db2180], connection: /usr/lib/unifi-video/data/db/WiredTiger.wt: handle-open: o$
2018-10-13T20:12:37.149+0200 I -        [initandlisten] Assertion: 28595:1: Operation not permitted src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 277
2018-10-13T20:12:37.149+0200 I STORAGE  [initandlisten] exception in initAndListen: 28595 1: Operation not permitted, terminating
2018-10-13T20:12:37.149+0200 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2018-10-13T20:12:37.149+0200 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-7441.sock
2018-10-13T20:12:37.149+0200 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
2018-10-13T20:12:37.149+0200 I CONTROL  [initandlisten] now exiting
2018-10-13T20:12:37.150+0200 I CONTROL  [initandlisten] shutting down with code:100
2018-10-13T20:12:47.186+0200 I CONTROL  [main] ***** SERVER RESTARTED *****

Quote

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='UniFi-Video' --net='br0' --ip='192.168.10.60' --privileged=true -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -v '/mnt/disks/programs/appdata/unifi-video/':'/var/lib/unifi-video/':'rw' 'pducharme/unifi-video-controller'

367800981e4d63ce68223372f10c967468ee2fca1b99a1f77acd4d40cb95555b

 

Link to comment
  • 3 weeks later...

It looks like Ubiquiti is going proprietary with video.  From what I've read they are switching to Unifi Protect and with it you will not be able to setup your own NVR.  It looks like you will have to buy their Unifi CloudKey Gen2 Plus (which hoses a 2.5" hard drive) to record the video.  No word on what will happen to the Unifi Video software but it will likely be abandoned.  Here is a link to some discussion:

 

https://community.ubnt.com/t5/UniFi-Protect/Protect-for-Linux/td-p/2512166/page/2

Edited by RockDawg
Link to comment
2 hours ago, RockDawg said:

It looks like Ubiquiti is going proprietary with video.  From what I've read they are switching to Unifi Protect and with it you will not be able to setup your own NVR.  It looks like you will have to buy their Unifi CloudKey Gen2 Plus (which hoses a 2.5" hard drive) to record the video.  No word on what will happen to the Unifi Video software but it will likely be abandoned.  Here is a link to some discussion:

 

https://community.ubnt.com/t5/UniFi-Protect/Protect-for-Linux/td-p/2512166/page/2

 

If it happen like they said, this docker will be not maintained anymore.  I plan on buying the CloudKey Gen2 Plus soon anyway.

Link to comment
  • 2 weeks later...
1 hour ago, scubieman said:

I ran the app called file activity. I show it hitting the .dat files many many times off disk3. I have the sara blueiris set to Yes for cache. 

 

Is there something I am missing? Trying to get it where 90% of the time my cache is used.

Cache yes means new files written to the share go to the cache if there is enough space, then moved to the array when the mover is activated.

 

If that is not what you want, turn on the help on the share settings page and read up on the different cache modes.

 

Keep in mind the mover will not move files that are open.

Link to comment
8 minutes ago, scubieman said:

I do have it set to yes. However it is still reading off array instead of moving to cache for reading.

 

question is if a file is being read from array does it get moved to cache?

I haven't been following but you seem to have misunderstood. Cache-yes are NOT moved TO cache. They are moved FROM cache. Cache-prefer is the setting to get moved TO cache.

 

10 minutes ago, jonathanm said:

Cache yes means ... moved to the array when the mover is activated.

 

If that is not what you want, turn on the help on the share settings page and read up on the different cache modes.

 

Keep in mind the mover will not move files that are open.

 

Link to comment
  • 1 month later...
2 hours ago, Jomp said:

Is there any way to get the beta version updated to beta3, up from the current beta1? I would love to enable the new motion algorithm. 

 

“The instructions to enable the algo in 3.10 beta1 were the same but in beta3 they added it to the GUI and the camera firmware is newer.”

 

https://community.ubnt.com/t5/UniFi-Video/How-is-this-is-motion-detection-feature-in-2018/td-p/2601915

 

 

Hi, I just triggered a build on Beta branch with the 3.10.0-beta.3.  Should be available soon, when Docker finish building it.

 

-EDIT-

 

Should be available now.

Edited by Pducharme
  • Upvote 1
Link to comment
57 minutes ago, Pducharme said:

 

Hi, I just triggered a build on Beta branch with the 3.10.0-beta.3.  Should be available soon, when Docker finish building it.

 

-EDIT-

 

Should be available now.

 

 That was speedy, thank you very much! Hopefully this helps with all the annoying illumination change recordings..

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.