{"action":"created","issue":{"url":"https://api.github.com/repos/goofball222/unifi/issues/26","repository_url":"https://api.github.com/repos/goofball222/unifi","labels_url":"https://api.github.com/repos/goofball222/unifi/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/goofball222/unifi/issues/26/comments","events_url":"https://api.github.com/repos/goofball222/unifi/issues/26/events","html_url":"https://github.com/goofball222/unifi/issues/26","id":362899940,"node_id":"MDU6SXNzdWUzNjI4OTk5NDA=","number":26,"title":"switching to docker-compose with separate mongo fails","user":{"login":"cardoe","id":8839,"node_id":"MDQ6VXNlcjg4Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/8839?v=4","gravatar_id":"","url":"https://api.github.com/users/cardoe","html_url":"https://github.com/cardoe","followers_url":"https://api.github.com/users/cardoe/followers","following_url":"https://api.github.com/users/cardoe/following{/other_user}","gists_url":"https://api.github.com/users/cardoe/gists{/gist_id}","starred_url":"https://api.github.com/users/cardoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardoe/subscriptions","organizations_url":"https://api.github.com/users/cardoe/orgs","repos_url":"https://api.github.com/users/cardoe/repos","events_url":"https://api.github.com/users/cardoe/events{/privacy}","received_events_url":"https://api.github.com/users/cardoe/received_events","type":"User","site_admin":false},"labels":[{"id":1031799909,"node_id":"MDU6TGFiZWwxMDMxNzk5OTA5","url":"https://api.github.com/repos/goofball222/unifi/labels/more%20info%20needed","name":"more info needed","color":"ef81ce","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-22T23:49:10Z","updated_at":"2018-12-15T16:13:53Z","closed_at":null,"author_association":"NONE","body":"So I'm attempting to take my system that's run with:\r\n```\r\ndocker run \\\r\n    --name unifi \\\r\n    -d \\\r\n    --restart always \\\r\n    -p 3478:3478/udp \\\r\n    -p 6789:6789 \\\r\n    -p 8080:8080 \\\r\n    -p 8443:8443 \\\r\n    -p 8880:8880 \\\r\n    -p 8843:8843 \\\r\n    -p 10001:10001/udp \\\r\n    -v /var/lib/unifi/cert:/usr/lib/unifi/cert \\\r\n    -v /var/lib/unifi/data:/usr/lib/unifi/data \\\r\n    -v /var/lib/unifi/logs:/usr/lib/unifi/logs \\\r\n    -v /var/lib/unifi/supervisor:/var/log/supervisor \\\r\n    goofball222/unifi:release-5.8.30\r\n```\r\n\r\nto one started with Docker Compose. I'm attempting to get ahead of the coming changes to split out the mongo instance. The config I'm using is:\r\n\r\n```\r\nversion: '3'\r\n\r\nservices:\r\n  mongo:\r\n    image: mongo:3.4\r\n    container_name: unifidb\r\n    restart: unless-stopped\r\n    volumes:\r\n      - /var/lib/unifi/data/db:/data/db\r\n\r\n  unifi:\r\n    image: goofball222/unifi:unifi58-debian-nomongo\r\n    container_name: unifi\r\n    restart: unless-stopped\r\n    links:\r\n      - mongo\r\n    ports:\r\n      - 3478:3478/udp\r\n      - 6789:6789\r\n      - 8080:8080\r\n      - 8443:8443\r\n      - 8880:8880\r\n      - 8843:8843\r\n      - 10001:10001/udp\r\n    volumes:\r\n      - /etc/localtime:/etc/localtime:ro\r\n      - /var/lib/unifi/cert:/usr/lib/unifi/cert\r\n      - /var/lib/unifi/data:/usr/lib/unifi/data\r\n      - /var/lib/unifi/logs:/usr/lib/unifi/logs\r\n    environment:\r\n      - DB_MONGO_LOCAL=false\r\n      - DB_MONGO_URI=mongodb://mongo:27017/unifi\r\n      - STATDB_MONGO_URI=mongodb://mongo:27017/unifi_stat\r\n      - TZ=America/Chicago\r\n      - UNIFI_DB_NAME=unifi\r\n```\r\n\r\nI started with the recommended Docker Compose and changed the following:\r\n- adjusted the paths outside of the container to match where I have them\r\n- adjusted `TZ` (not sure if this is correct) but my system runs America/Chicago so I assume its got that inside the container currently.\r\n- uncommented out all the ports to map them in\r\n- pinned mongo to 3.4 due to the comments I've read in the Unifi forums about needing to stick to 3.4.x\r\n- pinned your container to unifi58-debian-nomongo since I believe that's the closest thing to what I was previously running\r\n\r\nI'm starting everything with `docker-compose -f unifi.yml up -d` and this is is the log file I get from `docker logs unifi`:\r\n\r\n```\r\n[2018-09-22 18:29:57,758] <docker-entrypoint> INFO - Entrypoint script version 1.0.6\r\n[2018-09-22 18:29:57,764] <docker-entrypoint> INFO - Entrypoint functions version 1.0.6\r\n[2018-09-22 18:29:57,775] <docker-entrypoint> INFO - Entrypoint running with UID 0 (root)\r\n[2018-09-22 18:29:57,796] <docker-entrypoint> INFO - GID/UID for unifi are unchanged: GID=999, UID=999\r\n[2018-09-22 18:29:57,802] <docker-entrypoint> INFO - Checking system.properties setup for container\r\n[2018-09-22 18:29:57,824] <docker-entrypoint> INFO - Existing '/usr/lib/unifi/data/system.properties' found, ensuring container mode options are enabled\r\n[2018-09-22 18:29:57,852] <docker-entrypoint> WARN - Custom SSL: missing '/usr/lib/unifi/cert/privkey.pem'\r\n[2018-09-22 18:29:57,866] <docker-entrypoint> WARN - Custom SSL: missing '/usr/lib/unifi/cert/fullchain.pem'\r\n[2018-09-22 18:29:57,871] <docker-entrypoint> WARN - Custom SSL: certificate import was NOT performed\r\n[2018-09-22 18:29:57,881] <docker-entrypoint> INFO - Ensuring permissions are correct before continuing - 'chown -R unifi:unifi /usr/lib/unifi'\r\n[2018-09-22 18:29:57,886] <docker-entrypoint> INFO - Running recursive 'chown' on Docker overlay2 storage is **really** slow. This may take a bit.\r\n[2018-09-22 18:29:58,179] <docker-entrypoint> INFO - Use gosu to drop privileges and start Java/UniFi as GID=999, UID=999\r\n[2018-09-22 18:29:58,186] <docker-entrypoint> EXEC - gosu unifi:unifi /usr/bin/java  -Xmx1024M -Dunifi.datadir=/usr/lib/unifi/data -Dunifi.logdir=/usr/lib/unifi/logs -Dunifi.rundir=/usr/lib/unifi/run -Djava.awt.headless=true -Dfile.encoding=UTF-8 -jar /usr/lib/unifi/lib/ace.jar start\r\n[2018-09-22 18:29:59,249] <launcher> INFO  system - ======================================================================\r\n[2018-09-22 18:29:59,250] <launcher> INFO  system - UniFi 5.8.30 (build atag_5.8.30_11076 - release) is started\r\n[2018-09-22 18:29:59,250] <launcher> INFO  system - ======================================================================\r\n[2018-09-22 18:29:59,251] <launcher> INFO  system - BASE dir:/usr/lib/unifi\r\n[2018-09-22 18:29:59,255] <launcher> INFO  system - Current System IP: 192.168.1.4\r\n[2018-09-22 18:29:59,256] <launcher> INFO  system - Hostname: d345d02673c3\r\n[2018-09-22 18:31:02,805] <generate-report> WARN  system - cannot update to version\r\njava.lang.IllegalArgumentException\r\n\tat org.bson.types.ObjectId.isValid(ObjectId.java:92)\r\n\tat org.bson.types.ObjectId.parseHexString(ObjectId.java:549)\r\n\tat org.bson.types.ObjectId.<init>(ObjectId.java:240)\r\n\tat com.ubnt.service.B.OOoo.super(Unknown Source)\r\n\tat com.ubnt.service.N.A.Òo0000(Unknown Source)\r\n\tat com.ubnt.service.N.A.ÕÕ0000(Unknown Source)\r\n\tat com.ubnt.service.N.A.ØöO000(Unknown Source)\r\n\tat com.ubnt.service.N.A.privateprivate(Unknown Source)\r\n\tat com.ubnt.service.B.ooOO$2.run(Unknown Source)\r\n\tat com.ubnt.ace.ooOO$_O0.run(Unknown Source)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n```\r\n\r\nI've tried the alpine image as well and get the same results. I'm sure its something obvious that I'm missing."},"comment":{"url":"https://api.github.com/repos/goofball222/unifi/issues/comments/447579338","html_url":"https://github.com/goofball222/unifi/issues/26#issuecomment-447579338","issue_url":"https://api.github.com/repos/goofball222/unifi/issues/26","id":447579338,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU3OTMzOA==","user":{"login":"cardoe","id":8839,"node_id":"MDQ6VXNlcjg4Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/8839?v=4","gravatar_id":"","url":"https://api.github.com/users/cardoe","html_url":"https://github.com/cardoe","followers_url":"https://api.github.com/users/cardoe/followers","following_url":"https://api.github.com/users/cardoe/following{/other_user}","gists_url":"https://api.github.com/users/cardoe/gists{/gist_id}","starred_url":"https://api.github.com/users/cardoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardoe/subscriptions","organizations_url":"https://api.github.com/users/cardoe/orgs","repos_url":"https://api.github.com/users/cardoe/repos","events_url":"https://api.github.com/users/cardoe/events{/privacy}","received_events_url":"https://api.github.com/users/cardoe/received_events","type":"User","site_admin":false},"created_at":"2018-12-15T16:13:53Z","updated_at":"2018-12-15T16:13:53Z","author_association":"NONE","body":"```\r\ndocker logs unifidb\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=33ac36b25cc8\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] db version v3.4.17\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] git version: 7c14a47868643bb691a507a92fe25541f998eca4\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] allocator: tcmalloc\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] modules: none\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] build environment:\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten]     distmod: debian81\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten]     distarch: x86_64\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten]     target_arch: x86_64\r\n2018-12-15T16:12:06.334+0000 I CONTROL  [initandlisten] options: {}\r\n2018-12-15T16:12:06.337+0000 I -        [initandlisten] Detected data files in /data/db created by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1'.\r\n2018-12-15T16:12:06.362+0000 I STORAGE  [initandlisten]\r\n2018-12-15T16:12:06.362+0000 I STORAGE  [initandlisten] ** WARNING: Readahead for /data/db is set to 2048KB\r\n2018-12-15T16:12:06.362+0000 I STORAGE  [initandlisten] **          We suggest setting it to 256KB (512 sectors) or less\r\n2018-12-15T16:12:06.362+0000 I STORAGE  [initandlisten] **          http://dochub.mongodb.org/core/readahead\r\n2018-12-15T16:12:06.369+0000 I JOURNAL  [initandlisten] journal dir=/data/db/journal\r\n2018-12-15T16:12:06.369+0000 I JOURNAL  [initandlisten] recover : no journal files present, no recovery needed\r\n2018-12-15T16:12:06.600+0000 I JOURNAL  [durability] Durability thread started\r\n2018-12-15T16:12:06.600+0000 I JOURNAL  [journal writer] Journal writer thread started\r\n2018-12-15T16:12:06.682+0000 I CONTROL  [initandlisten]\r\n2018-12-15T16:12:06.682+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.\r\n2018-12-15T16:12:06.682+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.\r\n2018-12-15T16:12:06.682+0000 I CONTROL  [initandlisten]\r\n2018-12-15T16:12:07.682+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'\r\n2018-12-15T16:12:07.685+0000 I NETWORK  [thread1] waiting for connections on port 27017\r\n2018-12-15T16:12:11.967+0000 I NETWORK  [thread1] connection accepted from 172.19.0.3:53766 #1 (1 connection now open)\r\n2018-12-15T16:12:11.971+0000 I NETWORK  [conn1] received client metadata from 172.19.0.3:53766 conn1: { driver: { name: \"mongo-java-driver\", version: \"3.4.2\" }, os: { type: \"Linux\", name: \"Linux\", architecture: \"amd64\", version: \"4.15.0-32-generic\" }, platform: \"Java/Oracle Corporation/1.8.0_171-8u171-b11-1~bpo8+1-b11\" }\r\n2018-12-15T16:12:11.984+0000 I NETWORK  [thread1] connection accepted from 172.19.0.3:53768 #2 (2 connections now open)\r\n2018-12-15T16:12:11.985+0000 I NETWORK  [conn2] received client metadata from 172.19.0.3:53768 conn2: { driver: { name: \"mongo-java-driver\", version: \"3.4.2\" }, os: { type: \"Linux\", name: \"Linux\", architecture: \"amd64\", version: \"4.15.0-32-generic\" }, platform: \"Java/Oracle Corporation/1.8.0_171-8u171-b11-1~bpo8+1-b11\" }\r\n2018-12-15T16:12:12.754+0000 I NETWORK  [thread1] connection accepted from 172.19.0.3:53770 #3 (3 connections now open)\r\n2018-12-15T16:12:12.754+0000 I NETWORK  [conn3] received client metadata from 172.19.0.3:53770 conn3: { driver: { name: \"mongo-java-driver\", version: \"3.4.2\" }, os: { type: \"Linux\", name: \"Linux\", architecture: \"amd64\", version: \"4.15.0-32-generic\" }, platform: \"Java/Oracle Corporation/1.8.0_171-8u171-b11-1~bpo8+1-b11\" }\r\n2018-12-15T16:12:12.756+0000 I NETWORK  [thread1] connection accepted from 172.19.0.3:53772 #4 (4 connections now open)\r\n2018-12-15T16:12:12.756+0000 I NETWORK  [conn4] received client metadata from 172.19.0.3:53772 conn4: { driver: { name: \"mongo-java-driver\", version: \"3.4.2\" }, os: { type: \"Linux\", name: \"Linux\", architecture: \"amd64\", version: \"4.15.0-32-generic\" }, platform: \"Java/Oracle Corporation/1.8.0_171-8u171-b11-1~bpo8+1-b11\" }\r\n2018-12-15T16:12:23.034+0000 I NETWORK  [thread1] connection accepted from 172.19.0.3:53774 #5 (5 connections now open)\r\n2018-12-15T16:12:23.034+0000 I NETWORK  [conn5] received client metadata from 172.19.0.3:53774 conn5: { driver: { name: \"mongo-java-driver\", version: \"3.4.2\" }, os: { type: \"Linux\", name: \"Linux\", architecture: \"amd64\", version: \"4.15.0-32-generic\" }, platform: \"Java/Oracle Corporation/1.8.0_171-8u171-b11-1~bpo8+1-b11\" }\r\n```"}}
{"actor":{"display_login":"cardoe"}}