linuxserver / docker-unifi-network-application

GNU General Public License v3.0
721 stars 54 forks source link

[BUG] Cannot authenticate with MongoDB #112

Closed jmealo closed 3 months ago

jmealo commented 3 months ago

Is there an existing issue for this?

Current Behavior

{
  "t": {
    "$date": "2024-08-13T22:07:05.879+00:00"
  },
  "s": "I",
  "c": "ACCESS",
  "id": 5286307,
  "ctx": "conn286",
  "msg": "Failed to authenticate",
  "attr": {
    "client": "172.19.0.11:48058",
    "isSpeculative": false,
    "isClusterMember": false,
    "mechanism": "SCRAM-SHA-1",
    "user": "unifi",
    "db": "admin",
    "error": "UserNotFound: Could not find user \"unifi\" for db \"admin\"",
    "result": 11,
    "metrics": {
      "conversation_duration": {
        "micros": 184,
        "summary": {
          "0": {
            "step": 1,
            "step_total": 2,
            "duration_micros": 161
          }
        }
      }
    },
    "extraInfo": {}
  }
}

Expected Behavior

For the unifi-network-application container to connect to MongoDB when you follow the instructions in the README.

Steps To Reproduce

  1. Follow the README
  2. Observe that the instructions do not produce a working setup with MongoDB 7

I think that the steps could work if you used the same username/password for the root user and database owner, but that indicates a problem.

Environment

- OS: Ubuntu 24.04
Using official docker apt repos

CPU architecture

x86-64

Docker creation

unifi-network-application:
    image: lscr.io/linuxserver/unifi-network-application:latest
    container_name: unifi-network-application
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=America/New_York
      - MONGO_USER=unifi
      - MONGO_PASS=xxxxxxxxxxx
      - MONGO_HOST=unifi-db
      - MONGO_PORT=27017
      - MONGO_DBNAME=unifi
      - MONGO_AUTHSOURCE=admin
      - MEM_LIMIT=1024 #optional
      - MEM_STARTUP=1024 #optional
      #- MONGO_TLS= #optional
      #- MONGO_AUTHSOURCE= #optional
    volumes:
      - /fast/unifi-network-application/config:/config
    ports:
      - 8443:8443
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
      #- 1900:1900/udp #optional
      - 8843:8843 #optional
      - 8880:8880 #optional
      - 6789:6789 #optional
      - 5514:5514/udp #optional
    restart: unless-stopped

unifi-db:
    environment:
      - PUID=1001
      - PGID=1001
      - MONGO_INITDB_DATABASE=unifi
      - MONGO_AUTHSOURCE=admin
      - MONGO_INITDB_ROOT_USERNAME=root
      - MONGO_INITDB_ROOT_PASSWORD=xxxxxxxx
      - MONGO_USER=unifi
      - MONGO_PASS=xxxxxxxx
      - MONGO_DBNAME=unifi
    image: docker.io/mongo:7
    container_name: unifi-db
    volumes:
      - /fast/unifi-network-application/db:/data/db
      - /srv/docker/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
    restart: unless-stopped

Container logs

unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.318+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:47982","uuid":{"uuid":{"$uuid":"adb6a9ad-1e67-4723-b6bc-d302381a302b"}},"connectionId":280,"connectionCount":1}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.318+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:47984","uuid":{"uuid":{"$uuid":"94cc0fd9-f2f1-4303-b1fa-760cad0a14e5"}},"connectionId":281,"connectionCount":2}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.328+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn280","msg":"client metadata","attr":{"remote":"172.19.0.11:47982","client":"conn280","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.328+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn281","msg":"client metadata","attr":{"remote":"172.19.0.11:47984","client":"conn281","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.350+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:48008","uuid":{"uuid":{"$uuid":"6ff4210f-177c-4899-a618-7bf11833c585"}},"connectionId":282,"connectionCount":3}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.355+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn282","msg":"client metadata","attr":{"remote":"172.19.0.11:48008","client":"conn282","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.355+00:00"},"s":"I",  "c":"ACCESS",   "id":20251,   "ctx":"conn282","msg":"Supported SASL mechanisms requested for unknown user","attr":{"user":{"user":"unifi","db":"admin"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.355+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn282","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.356+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn282","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48008","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":197,"summary":{"0":{"step":1,"step_total":2,"duration_micros":169}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.360+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn282","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.360+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn282","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48008","isSpeculative":false,"isClusterMember":false,"mechanism":"SCRAM-SHA-1","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":259,"summary":{"0":{"step":1,"step_total":2,"duration_micros":235}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.362+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn282","msg":"Connection ended","attr":{"remote":"172.19.0.11:48008","uuid":{"uuid":{"$uuid":"6ff4210f-177c-4899-a618-7bf11833c585"}},"connectionId":282,"connectionCount":2}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.363+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:48018","uuid":{"uuid":{"$uuid":"99f5c697-16bf-4438-b70c-5007cc05ec04"}},"connectionId":283,"connectionCount":3}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.364+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn283","msg":"client metadata","attr":{"remote":"172.19.0.11:48018","client":"conn283","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.364+00:00"},"s":"I",  "c":"ACCESS",   "id":20251,   "ctx":"conn283","msg":"Supported SASL mechanisms requested for unknown user","attr":{"user":{"user":"unifi","db":"admin"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.364+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn283","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.364+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn283","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48018","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":184,"summary":{"0":{"step":1,"step_total":2,"duration_micros":156}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.366+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn283","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.366+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn283","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48018","isSpeculative":false,"isClusterMember":false,"mechanism":"SCRAM-SHA-1","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":177,"summary":{"0":{"step":1,"step_total":2,"duration_micros":157}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.367+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn283","msg":"Connection ended","attr":{"remote":"172.19.0.11:48018","uuid":{"uuid":{"$uuid":"99f5c697-16bf-4438-b70c-5007cc05ec04"}},"connectionId":283,"connectionCount":2}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.370+00:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn281","msg":"Interrupted operation as its client disconnected","attr":{"opId":3123}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.370+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn281","msg":"Connection ended","attr":{"remote":"172.19.0.11:47984","uuid":{"uuid":{"$uuid":"94cc0fd9-f2f1-4303-b1fa-760cad0a14e5"}},"connectionId":281,"connectionCount":1}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.872+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:48032","uuid":{"uuid":{"$uuid":"698d6158-9ad9-4ad7-8146-8ce94ce7ede3"}},"connectionId":284,"connectionCount":2}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.873+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn284","msg":"client metadata","attr":{"remote":"172.19.0.11:48032","client":"conn284","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.876+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:48044","uuid":{"uuid":{"$uuid":"1a9f97f1-16f3-4aee-bab7-f6a68d82ab88"}},"connectionId":285,"connectionCount":3}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.876+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.19.0.11:48058","uuid":{"uuid":{"$uuid":"68943202-ff48-4655-bba2-cbf6241bd8ff"}},"connectionId":286,"connectionCount":4}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn285","msg":"client metadata","attr":{"remote":"172.19.0.11:48044","client":"conn285","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn286","msg":"client metadata","attr":{"remote":"172.19.0.11:48058","client":"conn286","negotiatedCompressors":[],"doc":{"driver":{"name":"mongo-java-driver|sync","version":"4.11.2"},"os":{"type":"Linux","name":"Linux","architecture":"amd64","version":"6.8.0-40-generic"},"platform":"Java/Ubuntu/17.0.12+7-Ubuntu-1ubuntu222.04"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"ACCESS",   "id":20251,   "ctx":"conn285","msg":"Supported SASL mechanisms requested for unknown user","attr":{"user":{"user":"unifi","db":"admin"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn285","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"ACCESS",   "id":20251,   "ctx":"conn286","msg":"Supported SASL mechanisms requested for unknown user","attr":{"user":{"user":"unifi","db":"admin"}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn286","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn285","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48044","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":131,"summary":{"0":{"step":1,"step_total":2,"duration_micros":95}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.877+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn286","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48058","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":193,"summary":{"0":{"step":1,"step_total":2,"duration_micros":174}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.879+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn285","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.879+00:00"},"s":"I",  "c":"ACCESS",   "id":6788604, "ctx":"conn286","msg":"Auth metrics report","attr":{"metric":"acquireUser","micros":0}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.879+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn285","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48044","isSpeculative":false,"isClusterMember":false,"mechanism":"SCRAM-SHA-1","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":196,"summary":{"0":{"step":1,"step_total":2,"duration_micros":174}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.879+00:00"},"s":"I",  "c":"ACCESS",   "id":5286307, "ctx":"conn286","msg":"Failed to authenticate","attr":{"client":"172.19.0.11:48058","isSpeculative":false,"isClusterMember":false,"mechanism":"SCRAM-SHA-1","user":"unifi","db":"admin","error":"UserNotFound: Could not find user \"unifi\" for db \"admin\"","result":11,"metrics":{"conversation_duration":{"micros":184,"summary":{"0":{"step":1,"step_total":2,"duration_micros":161}}}},"extraInfo":{}}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.881+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn286","msg":"Connection ended","attr":{"remote":"172.19.0.11:48058","uuid":{"uuid":{"$uuid":"68943202-ff48-4655-bba2-cbf6241bd8ff"}},"connectionId":286,"connectionCount":3}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.881+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn285","msg":"Connection ended","attr":{"remote":"172.19.0.11:48044","uuid":{"uuid":{"$uuid":"1a9f97f1-16f3-4aee-bab7-f6a68d82ab88"}},"connectionId":285,"connectionCount":2}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.881+00:00"},"s":"I",  "c":"-",        "id":20883,   "ctx":"conn284","msg":"Interrupted operation as its client disconnected","attr":{"opId":3140}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.881+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn284","msg":"Connection ended","attr":{"remote":"172.19.0.11:48032","uuid":{"uuid":{"$uuid":"698d6158-9ad9-4ad7-8146-8ce94ce7ede3"}},"connectionId":284,"connectionCount":1}}
unifi-db  | {"t":{"$date":"2024-08-13T22:07:05.885+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn280","msg":"Connection ended","attr":{"remote":"172.19.0.11:47982","uuid":{"uuid":{"$uuid":"adb6a9ad-1e67-4723-b6bc-d302381a302b"}},"connectionId":280,"connectionCount":0}}

nifi-network-application  | Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server unifi-db:27017. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"}
unifi-network-application  |    at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:205)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:454)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:372)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:92)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:48)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:224)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:131)
unifi-network-application  |    ... 52 more
unifi-network-application  | Exception in thread "launcher" java.lang.IllegalStateException: Tomcat failed to start up
unifi-network-application  |    at com.ubnt.net.O0OO.ÓÔ0000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.C.Òo0000(Unknown Source)
unifi-network-application  |    at com.ubnt.ace.Launcher.Object(Unknown Source)
unifi-network-application  |    at com.ubnt.ace.Launcher.main(Unknown Source)
unifi-network-application  | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoRuntimeService' defined in com.ubnt.service.db.CoreDatabaseSpringContext: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='admin', password=<hidden>, mechanismProperties=<hidden>}
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
unifi-network-application  |    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
unifi-network-application  |    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
unifi-network-application  |    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
unifi-network-application  |    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
unifi-network-application  |    at com.ubnt.service.E.Ô00000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.C.intsuper(Unknown Source)
unifi-network-application  |    at com.ubnt.net.O0OO.ÕÔ0000(Unknown Source)
unifi-network-application  |    at com.ubnt.net.O0OO.oÔ0000(Unknown Source)
unifi-network-application  |    ... 4 more
unifi-network-application  | Caused by: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='admin', password=<hidden>, mechanismProperties=<hidden>}
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.wrapException(SaslAuthenticator.java:270)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:133)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.lambda$authenticate$0(SaslAuthenticator.java:63)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.doAsSubject(SaslAuthenticator.java:277)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:59)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:57)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.authenticate(InternalStreamConnectionInitializer.java:206)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.finishHandshake(InternalStreamConnectionInitializer.java:86)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:216)
unifi-network-application  |    at com.mongodb.internal.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:55)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:647)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openWithConcurrencyLimit(DefaultConnectionPool.java:993)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openOrGetAvailable(DefaultConnectionPool.java:934)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:203)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:192)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultServer.getConnection(DefaultServer.java:96)
unifi-network-application  |    at com.mongodb.internal.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:186)
unifi-network-application  |    at com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.getConnection(ClientSessionBinding.java:196)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSuppliedResource(SyncOperationHelper.java:144)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$withSourceAndConnection$1(SyncOperationHelper.java:126)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSuppliedResource(SyncOperationHelper.java:152)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSourceAndConnection(SyncOperationHelper.java:125)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$executeRetryableRead$4(SyncOperationHelper.java:189)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$decorateReadWithRetries$12(SyncOperationHelper.java:292)
unifi-network-application  |    at com.mongodb.internal.async.function.RetryingSyncSupplier.get(RetryingSyncSupplier.java:67)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.executeRetryableRead(SyncOperationHelper.java:194)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.executeRetryableRead(SyncOperationHelper.java:176)
unifi-network-application  |    at com.mongodb.internal.operation.CommandReadOperation.execute(CommandReadOperation.java:48)
unifi-network-application  |    at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:153)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.executeCommand(MongoDatabaseImpl.java:196)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:165)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:160)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:150)
unifi-network-application  |    at com.ubnt.service.db.J.Óo0000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.db.J.afterPropertiesSet(Unknown Source)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1833)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782)
unifi-network-application  |    ... 17 more
unifi-network-application  | Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server unifi-db:27017. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"}
unifi-network-application  |    at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:205)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:454)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:372)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:92)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:48)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:224)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:131)
unifi-network-application  |    ... 52 more
unifi-network-application  | Exception in thread "launcher" java.lang.IllegalStateException: Tomcat failed to start up
unifi-network-application  |    at com.ubnt.net.O0OO.ÓÔ0000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.C.Òo0000(Unknown Source)
unifi-network-application  |    at com.ubnt.ace.Launcher.Object(Unknown Source)
unifi-network-application  |    at com.ubnt.ace.Launcher.main(Unknown Source)
unifi-network-application  | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoRuntimeService' defined in com.ubnt.service.db.CoreDatabaseSpringContext: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='admin', password=<hidden>, mechanismProperties=<hidden>}
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
unifi-network-application  |    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
unifi-network-application  |    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
unifi-network-application  |    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
unifi-network-application  |    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
unifi-network-application  |    at com.ubnt.service.E.Ô00000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.C.intsuper(Unknown Source)
unifi-network-application  |    at com.ubnt.net.O0OO.ÕÔ0000(Unknown Source)
unifi-network-application  |    at com.ubnt.net.O0OO.oÔ0000(Unknown Source)
unifi-network-application  |    ... 4 more
unifi-network-application  | Caused by: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='admin', password=<hidden>, mechanismProperties=<hidden>}
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.wrapException(SaslAuthenticator.java:270)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:133)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.lambda$authenticate$0(SaslAuthenticator.java:63)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.doAsSubject(SaslAuthenticator.java:277)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:59)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:57)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.authenticate(InternalStreamConnectionInitializer.java:206)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.finishHandshake(InternalStreamConnectionInitializer.java:86)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:216)
unifi-network-application  |    at com.mongodb.internal.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:55)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:647)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openWithConcurrencyLimit(DefaultConnectionPool.java:993)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openOrGetAvailable(DefaultConnectionPool.java:934)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:203)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:192)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultServer.getConnection(DefaultServer.java:96)
unifi-network-application  |    at com.mongodb.internal.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:186)
unifi-network-application  |    at com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.getConnection(ClientSessionBinding.java:196)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSuppliedResource(SyncOperationHelper.java:144)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$withSourceAndConnection$1(SyncOperationHelper.java:126)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSuppliedResource(SyncOperationHelper.java:152)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSourceAndConnection(SyncOperationHelper.java:125)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$executeRetryableRead$4(SyncOperationHelper.java:189)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$decorateReadWithRetries$12(SyncOperationHelper.java:292)
unifi-network-application  |    at com.mongodb.internal.async.function.RetryingSyncSupplier.get(RetryingSyncSupplier.java:67)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.executeRetryableRead(SyncOperationHelper.java:194)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.executeRetryableRead(SyncOperationHelper.java:176)
unifi-network-application  |    at com.mongodb.internal.operation.CommandReadOperation.execute(CommandReadOperation.java:48)
unifi-network-application  |    at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:153)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.executeCommand(MongoDatabaseImpl.java:196)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:165)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:160)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:150)
unifi-network-application  |    at com.ubnt.service.db.J.Óo0000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.db.J.afterPropertiesSet(Unknown Source)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1833)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782)
unifi-network-application  |    ... 17 more
unifi-network-application  | Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server unifi-db:27017. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"}
unifi-network-application  |    at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:205)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:454)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:372)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:92)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:48)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:224)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:131)
unifi-network-application  |    ... 52 more
unifi-network-application  | Exception in thread "launcher" java.lang.IllegalStateException: Tomcat failed to start up
unifi-network-application  |    at com.ubnt.net.O0OO.ÓÔ0000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.C.Òo0000(Unknown Source)
unifi-network-application  |    at com.ubnt.ace.Launcher.Object(Unknown Source)
unifi-network-application  |    at com.ubnt.ace.Launcher.main(Unknown Source)
unifi-network-application  | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoRuntimeService' defined in com.ubnt.service.db.CoreDatabaseSpringContext: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='admin', password=<hidden>, mechanismProperties=<hidden>}
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326)
unifi-network-application  |    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
unifi-network-application  |    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
unifi-network-application  |    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
unifi-network-application  |    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
unifi-network-application  |    at com.ubnt.service.E.Ô00000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.C.intsuper(Unknown Source)
unifi-network-application  |    at com.ubnt.net.O0OO.ÕÔ0000(Unknown Source)
unifi-network-application  |    at com.ubnt.net.O0OO.oÔ0000(Unknown Source)
unifi-network-application  |    ... 4 more
unifi-network-application  | Caused by: com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='unifi', source='admin', password=<hidden>, mechanismProperties=<hidden>}
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.wrapException(SaslAuthenticator.java:270)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:133)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.lambda$authenticate$0(SaslAuthenticator.java:63)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.doAsSubject(SaslAuthenticator.java:277)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:59)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:57)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.authenticate(InternalStreamConnectionInitializer.java:206)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnectionInitializer.finishHandshake(InternalStreamConnectionInitializer.java:86)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:216)
unifi-network-application  |    at com.mongodb.internal.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:55)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:647)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openWithConcurrencyLimit(DefaultConnectionPool.java:993)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool$OpenConcurrencyLimiter.openOrGetAvailable(DefaultConnectionPool.java:934)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:203)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:192)
unifi-network-application  |    at com.mongodb.internal.connection.DefaultServer.getConnection(DefaultServer.java:96)
unifi-network-application  |    at com.mongodb.internal.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:186)
unifi-network-application  |    at com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.getConnection(ClientSessionBinding.java:196)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSuppliedResource(SyncOperationHelper.java:144)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$withSourceAndConnection$1(SyncOperationHelper.java:126)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSuppliedResource(SyncOperationHelper.java:152)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.withSourceAndConnection(SyncOperationHelper.java:125)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$executeRetryableRead$4(SyncOperationHelper.java:189)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.lambda$decorateReadWithRetries$12(SyncOperationHelper.java:292)
unifi-network-application  |    at com.mongodb.internal.async.function.RetryingSyncSupplier.get(RetryingSyncSupplier.java:67)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.executeRetryableRead(SyncOperationHelper.java:194)
unifi-network-application  |    at com.mongodb.internal.operation.SyncOperationHelper.executeRetryableRead(SyncOperationHelper.java:176)
unifi-network-application  |    at com.mongodb.internal.operation.CommandReadOperation.execute(CommandReadOperation.java:48)
unifi-network-application  |    at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:153)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.executeCommand(MongoDatabaseImpl.java:196)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:165)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:160)
unifi-network-application  |    at com.mongodb.client.internal.MongoDatabaseImpl.runCommand(MongoDatabaseImpl.java:150)
unifi-network-application  |    at com.ubnt.service.db.J.Óo0000(Unknown Source)
unifi-network-application  |    at com.ubnt.service.db.J.afterPropertiesSet(Unknown Source)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1833)
unifi-network-application  |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782)
unifi-network-application  |    ... 17 more
unifi-network-application  | Caused by: com.mongodb.MongoCommandException: Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server unifi-db:27017. The full response is {"ok": 0.0, "errmsg": "Authentication failed.", "code": 18, "codeName": "AuthenticationFailed"}
unifi-network-application  |    at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:205)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:454)
unifi-network-application  |    at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:372)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:92)
unifi-network-application  |    at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:48)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:224)
unifi-network-application  |    at com.mongodb.internal.connection.SaslAuthenticator.getNextSaslResponse(SaslAuthenticator.java:131)
unifi-network-application  |    ... 52 more
github-actions[bot] commented 3 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

jmealo commented 3 months ago

@aptalca : I've been following along with the latest changes and using the steps in the README doesn't yield a working setup for me. Are you using the same username for root and the application user? I don't see how else the provided configuration and scripts could work 🤔

aptalca commented 3 months ago

103

jmealo commented 3 months ago

@aptalca: Dude, there's an error in the README, these instructions ONLY WORK if you set the root username and password to the same as the application user. You're way too dismissive on here. Please read carefully what's being communicated to you.

aptalca commented 3 months ago

https://github.com/linuxserver/docker-unifi-network-application/issues/113#issuecomment-2287308968