Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "Host mongodb not yet available" #3

Closed
icepaule opened this issue Jan 13, 2019 · 8 comments
Closed

Error: "Host mongodb not yet available" #3

icepaule opened this issue Jan 13, 2019 · 8 comments

Comments

@icepaule
Copy link

Hello teal33t, first of all thank you very much for the great work you're doing with this tools.

Could you please help me with some starting issues I have?
The logs are being filled up with "web-app "Host mongodb not yet available.

Please find the logfiles related to mongodb below.

Thanks a lot for your help
Marcus

root@ache:/opt/poopak# docker-compose logs -f | grep mongo
Attaching to poopak_server_1_a46b562987fb, web-app, detector-worker, crawler-worker, poopak_mongoclient_1_74b54af33377, panel-worker, app-worker, poopak_mongodb_1_819e1089f4f6, poopak_spacy_1_ee356f861f15, poopak_torpool_1_d5cfd74dcf12, redis, poopak_splash_1_5ccea6e80a73
web-app | Checking availability of mongodb
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Checking availability of mongodb
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Checking availability of mongodb
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
mongoclient_1_74b54af33377 |
mongoclient_1_74b54af33377 | [-] External MONGO_URL not found. Starting local MongoDB...
mongoclient_1_74b54af33377 |
mongoclient_1_74b54af33377 | => Starting app on port 3000...
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] MongoDB starting : pid=7 port=27017 dbpath=/data/db 64-bit host=71aac4453524
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] db version v3.4.2
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] modules: none
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] build environment:
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] distmod: debian81
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] distarch: x86_64
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] target_arch: x86_64
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.527+0000 I CONTROL [initandlisten] options: { storage: { engine: "wiredTiger" } }
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.533+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1448M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.712+0000 I CONTROL [initandlisten]
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.712+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.712+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.712+0000 I CONTROL [initandlisten]
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.753+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.813+0000 I INDEX [initandlisten] build index on: admin.system.version properties: { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" }
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.813+0000 I INDEX [initandlisten] building index using bulk method; build may temporarily use up to 500 megabytes of RAM
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.813+0000 I INDEX [initandlisten] build index done. scanned 0 total records. 0 secs
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.814+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.4
mongoclient_1_74b54af33377 | 2019-01-13T14:29:22.814+0000 I NETWORK [thread1] waiting for connections on port 27017
mongoclient_1_74b54af33377 | 2019-01-13T14:29:23.450+0000 I NETWORK [thread1] connection accepted from 127.0.0.1:44402 #1 (1 connection now open)
mongoclient_1_74b54af33377 | 2019-01-13T14:29:23.455+0000 I NETWORK [conn1] received client metadata from 127.0.0.1:44402 conn1: { driver: { name: "nodejs", version: "3.0.11" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "4.15.0-39-generic" }, platform: "Node.js v8.4.0, LE, mongodb-core: 3.0.11" }
mongoclient_1_74b54af33377 | {"level":"info","message":"[insert-default-settings]"}
mongoclient_1_74b54af33377 | {"level":"info","message":"[migrate-connections]"}
mongodb_1_819e1089f4f6 |
mongodb_1_819e1089f4f6 | Welcome to the Bitnami mongodb container
mongodb_1_819e1089f4f6 | Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mongodb
mongodb_1_819e1089f4f6 | Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mongodb/issues
mongodb_1_819e1089f4f6 |
mongodb_1_819e1089f4f6 | nami INFO Initializing mongodb
mongodb_1_819e1089f4f6 | mongodb INFO ==> Deploying MongoDB with persisted data...
mongodb_1_819e1089f4f6 | mongodb INFO ==> No injected configuration files found. Creating default config files...
mongodb_1_819e1089f4f6 | mongodb INFO
mongodb_1_819e1089f4f6 | mongodb INFO ########################################################################
mongodb_1_819e1089f4f6 | mongodb INFO Installation parameters for mongodb:
mongodb_1_819e1089f4f6 | mongodb INFO Persisted data and properties have been restored.
mongodb_1_819e1089f4f6 | mongodb INFO Any input specified will not take effect.
mongodb_1_819e1089f4f6 | mongodb INFO This installation requires no credentials.
mongodb_1_819e1089f4f6 | mongodb INFO ########################################################################
mongodb_1_819e1089f4f6 | mongodb INFO
mongodb_1_819e1089f4f6 | nami INFO mongodb successfully initialized
mongodb_1_819e1089f4f6 | INFO ==> Starting mongodb...
mongodb_1_819e1089f4f6 | INFO ==> Starting mongod...
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.083+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] MongoDB starting : pid=43 port=27017 dbpath=/opt/bitnami/mongodb/data/db 64-bit host=mongodb
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] db version v4.0.2
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] git version: fc1573ba18aee42f97a3bb13b67af7d837826b47
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.0f 25 May 2017
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] modules: none
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] build environment:
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] distmod: debian92
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] distarch: x86_64
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] target_arch: x86_64
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I CONTROL [initandlisten] options: { config: "/opt/bitnami/mongodb/conf/mongodb.conf", net: { bindIpAll: true, ipv6: true, port: 27017, unixDomainSocket: { enabled: true, pathPrefix: "/opt/bitnami/mongodb/tmp" } }, processManagement: { fork: false, pidFilePath: "/opt/bitnami/mongodb/tmp/mongodb.pid" }, security: { authorization: "disabled" }, setParameter: { enableLocalhostAuthBypass: "true" }, storage: { dbPath: "/opt/bitnami/mongodb/data/db", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, logRotate: "reopen", path: true } }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I STORAGE [initandlisten] Detected data files in /opt/bitnami/mongodb/data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I STORAGE [initandlisten]
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.097+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1448M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.755+0000 I STORAGE [initandlisten] WiredTiger message [1547389761:755659][43:0x7fba684ba9c0], txn-recover: Main recovery loop: starting at 6/11008
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.887+0000 I STORAGE [initandlisten] WiredTiger message [1547389761:887494][43:0x7fba684ba9c0], txn-recover: Recovering log 6 through 7
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:21.956+0000 I STORAGE [initandlisten] WiredTiger message [1547389761:955986][43:0x7fba684ba9c0], txn-recover: Recovering log 7 through 7
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:22.024+0000 I STORAGE [initandlisten] WiredTiger message [1547389762:24283][43:0x7fba684ba9c0], txn-recover: Set global recovery timestamp: 0
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:22.079+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:22.099+0000 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:22.099+0000 I CONTROL [initandlisten]
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:22.114+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/opt/bitnami/mongodb/data/db/diagnostic.data'
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:22.118+0000 I NETWORK [initandlisten] waiting for connections on port 27017
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:24.901+0000 I NETWORK [listener] connection accepted from 172.21.0.7:56378 #1 (1 connection now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:24.901+0000 I NETWORK [conn1] received client metadata from 172.21.0.7:56378 conn1: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:24.966+0000 I NETWORK [listener] connection accepted from 172.21.0.7:56380 #2 (2 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:24.967+0000 I NETWORK [conn2] received client metadata from 172.21.0.7:56380 conn2: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:24.990+0000 I ACCESS [conn2] Successfully authenticated as principal admin on crawler
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.418+0000 I NETWORK [listener] connection accepted from 172.21.0.10:44214 #3 (3 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.418+0000 I NETWORK [conn3] received client metadata from 172.21.0.10:44214 conn3: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.456+0000 I NETWORK [listener] connection accepted from 172.21.0.10:44216 #4 (4 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.456+0000 I NETWORK [conn4] received client metadata from 172.21.0.10:44216 conn4: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.473+0000 I ACCESS [conn4] Successfully authenticated as principal admin on crawler
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.940+0000 I NETWORK [listener] connection accepted from 172.21.0.8:40190 #5 (5 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.941+0000 I NETWORK [conn5] received client metadata from 172.21.0.8:40190 conn5: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.978+0000 I NETWORK [listener] connection accepted from 172.21.0.8:40192 #6 (6 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.978+0000 I NETWORK [conn6] received client metadata from 172.21.0.8:40192 conn6: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:25.996+0000 I ACCESS [conn6] Successfully authenticated as principal admin on crawler
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:26.525+0000 I NETWORK [listener] connection accepted from 172.21.0.11:60442 #7 (7 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:26.525+0000 I NETWORK [conn7] received client metadata from 172.21.0.11:60442 conn7: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:26.561+0000 I NETWORK [listener] connection accepted from 172.21.0.11:60444 #8 (8 connections now open)
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:26.562+0000 I NETWORK [conn8] received client metadata from 172.21.0.11:60444 conn8: { driver: { name: "PyMongo", version: "3.7.2" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "4.15.0-39-generic" }, platform: "CPython 3.6.1.final.0" }
mongodb_1_819e1089f4f6 | 2019-01-13T14:29:26.585+0000 I ACCESS [conn8] Successfully authenticated as principal admin on crawler
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
web-app | Host mongodb not yet availabile
[... this goes on for ever]

@icepaule
Copy link
Author

icepaule commented Jan 13, 2019

Ah, forgot something. :-)

As the mongodb was not starting at all because of some rights issue, I've modified the compose file to look like:

mongodb:
image: 'bitnami/mongodb:latest'
hostname: mongodb
volumes:
- .:/bitnami
ports:
- "27017:27017"
user: root
environment:
- MONGODB_ROOT_PASSWORD=123qwe
- MONGODB_USERNAME=admin
- MONGODB_PASSWORD=123qwe
- MONGODB_DATABASE=crawler
networks:
- app-tier

@teal33t
Copy link
Owner

teal33t commented Jan 16, 2019

Hi @icepaule
Thank you for mention this again, docker-compse is updated now.

@teal33t teal33t closed this as completed Oct 13, 2019
@ghost
Copy link

ghost commented Dec 9, 2019

Still having the same issue

panel-worker       | Traceback (most recent call last):
panel-worker       |   File "manage.py", line 4, in <module>
panel-worker       |     from web import app
panel-worker       |   File "/application/web/__init__.py", line 52, in <module>
panel-worker       |     client.crawler.users.insert({"_id": "admin", "password": pass_hash})
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 3182, in insert
panel-worker       |     check_keys, manipulate, write_concern)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 612, in _insert
panel-worker       |     bypass_doc_val, session)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 600, in _insert_one
panel-worker       |     acknowledged, _insert_command, session)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1492, in _retryable_write
panel-worker       |     return self._retry_with_session(retryable, func, s, None)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1378, in _retry_with_session
panel-worker       |     with self._get_socket(server, session) as sock_info:
panel-worker       |   File "/usr/local/lib/python3.6/contextlib.py", line 82, in __enter__
panel-worker       |     return next(self.gen)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1223, in _get_socket
panel-worker       |     self.__all_credentials, checkout=exhaust) as sock_info:
panel-worker       |   File "/usr/local/lib/python3.6/contextlib.py", line 82, in __enter__
panel-worker       |     return next(self.gen)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1128, in get_socket
panel-worker       |     sock_info.check_auth(all_credentials)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 712, in check_auth
panel-worker       |     auth.authenticate(credentials, self)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/auth.py", line 564, in authenticate
panel-worker       |     auth_func(credentials, sock_info)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/auth.py", line 539, in _authenticate_default
panel-worker       |     return _authenticate_scram(credentials, sock_info, 'SCRAM-SHA-1')
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/auth.py", line 263, in _authenticate_scram
panel-worker       |     res = sock_info.command(source, cmd)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 613, in command
panel-worker       |     user_fields=user_fields)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/network.py", line 167, in command
panel-worker       |     parse_write_concern_error=parse_write_concern_error)
panel-worker       |   File "/usr/local/lib/python3.6/site-packages/pymongo/helpers.py", line 159, in _check_command_response
panel-worker       |     raise OperationFailure(msg % errmsg, code, response)
panel-worker       | pymongo.errors.OperationFailure: Authentication failed.
crawler-worker     | Traceback (most recent call last):
crawler-worker     |   File "manage.py", line 4, in <module>
crawler-worker     |     from web import app
crawler-worker     |   File "/application/web/__init__.py", line 52, in <module>
crawler-worker     |     client.crawler.users.insert({"_id": "admin", "password": pass_hash})
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 3182, in insert
crawler-worker     |     check_keys, manipulate, write_concern)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 612, in _insert
crawler-worker     |     bypass_doc_val, session)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/collection.py", line 600, in _insert_one
crawler-worker     |     acknowledged, _insert_command, session)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1492, in _retryable_write
crawler-worker     |     return self._retry_with_session(retryable, func, s, None)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1378, in _retry_with_session
crawler-worker     |     with self._get_socket(server, session) as sock_info:
crawler-worker     |   File "/usr/local/lib/python3.6/contextlib.py", line 82, in __enter__
crawler-worker     |     return next(self.gen)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1223, in _get_socket
crawler-worker     |     self.__all_credentials, checkout=exhaust) as sock_info:
crawler-worker     |   File "/usr/local/lib/python3.6/contextlib.py", line 82, in __enter__
crawler-worker     |     return next(self.gen)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 1128, in get_socket
crawler-worker     |     sock_info.check_auth(all_credentials)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 712, in check_auth
crawler-worker     |     auth.authenticate(credentials, self)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/auth.py", line 564, in authenticate
crawler-worker     |     auth_func(credentials, sock_info)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/auth.py", line 539, in _authenticate_default
crawler-worker     |     return _authenticate_scram(credentials, sock_info, 'SCRAM-SHA-1')
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/auth.py", line 263, in _authenticate_scram
crawler-worker     |     res = sock_info.command(source, cmd)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/pool.py", line 613, in command
crawler-worker     |     user_fields=user_fields)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/network.py", line 167, in command
crawler-worker     |     parse_write_concern_error=parse_write_concern_error)
crawler-worker     |   File "/usr/local/lib/python3.6/site-packages/pymongo/helpers.py", line 159, in _check_command_response
crawler-worker     |     raise OperationFailure(msg % errmsg, code, response)
crawler-worker     | pymongo.errors.OperationFailure: Authentication failed.

@teal33t
Copy link
Owner

teal33t commented Dec 10, 2019

@x0rzkov Hey, whats your host machine specs?

@ghost
Copy link

ghost commented Dec 10, 2019

it is a macbook air - catalina, 4gb RAM

@teal33t
Copy link
Owner

teal33t commented Dec 10, 2019

@x0rzkov
You can add user:root as mentioned there #3 (comment)
did you try this?

@ghost
Copy link

ghost commented Dec 11, 2019

Yes, it is already in the docker-compose.file as you committed.
I changed nothing just launched docker-compose up.

@ghost
Copy link

ghost commented Dec 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants