Open a-reznic opened 3 months ago
log from db container
t={"$date":"2024-05-16T13:08:07.165+00:00"} s=I c=NETWORK id=4915701 ctx=main msg=Initialized wire specification attr={"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":6,"maxWireVersion":21},"isInternalClient":true}}
t={"$date":"2024-05-16T13:08:07.181+00:00"} s=I c=CONTROL id=23285 ctx=main msg=Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
t={"$date":"2024-05-16T13:08:07.245+00:00"} s=I c=NETWORK id=4648601 ctx=main msg=Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize.
t={"$date":"2024-05-16T13:08:07.263+00:00"} s=I c=REPL id=5123008 ctx=main msg=Successfully registered PrimaryOnlyService attr={"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}
t={"$date":"2024-05-16T13:08:07.263+00:00"} s=I c=REPL id=5123008 ctx=main msg=Successfully registered PrimaryOnlyService attr={"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}
t={"$date":"2024-05-16T13:08:07.263+00:00"} s=I c=CONTROL id=5945603 ctx=main msg=Multi threading initialized
t={"$date":"2024-05-16T13:08:07.263+00:00"} s=I c=TENANT_M id=7091600 ctx=main msg=Starting TenantMigrationAccessBlockerRegistry
t={"$date":"2024-05-16T13:08:07.264+00:00"} s=I c=CONTROL id=4615611 ctx=initandlisten msg=MongoDB starting attr={"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"pritunldb"}
t={"$date":"2024-05-16T13:08:07.265+00:00"} s=I c=CONTROL id=23403 ctx=initandlisten msg=Build Info attr={"buildInfo":{"version":"7.0.9","gitVersion":"3ff3a3925c36ed277cf5eafca5495f2e3728dd67","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"x86_64","target_arch":"x86_64"}}}
t={"$date":"2024-05-16T13:08:07.265+00:00"} s=I c=CONTROL id=51765 ctx=initandlisten msg=Operating System attr={"os":{"name":"Ubuntu","version":"22.04"}}
t={"$date":"2024-05-16T13:08:07.265+00:00"} s=I c=CONTROL id=21951 ctx=initandlisten msg=Options set by command line attr={"options":{"net":{"bindIp":"*"}}}
t={"$date":"2024-05-16T13:08:07.269+00:00"} s=I c=STORAGE id=22270 ctx=initandlisten msg=Storage engine to use detected by data files attr={"dbpath":"/data/db","storageEngine":"wiredTiger"}
Your error distills down to: error=AutoReconnect('mongo:27017: [Errno -2] Name does not resolve')>]>
The pritunl container can't find the mongodb container by the hostname "mongo" to connect the database. Not sure why that would be failing with the old unmodified example docker-compose.yml, the "links" section should take care of that. I went ahead and updated the example compose files to match the latest compose version(s) and adjusted some naming/linking. Give it a shot with those.
I found problem, docker runned on Oracle Cloud with Oracle Server 8.6 with this problem, when I changed to ubuntu, all works fine.
try this examples/docker-compose.yml
Error message: