guanguans / guanguans.github.io

guanguans 博客
https://www.guanguans.cn
Other
55 stars 6 forks source link

运行报错,似乎是mongo 连接不上 #11

Closed Felo-Z closed 5 years ago

Felo-Z commented 5 years ago

操作:

  1. 修改

    env 中的 80端口为 8080 仅此一项修改

  2. 执行 docker-compose up

phpinfo 中 错误: MongoDB服务器版本:No suitable servers found (serverSelectionTryOnceset): [connection timeout calling ismaster on 'mongo:27017']

具体报错信息: dnmp-plus_mongo_1 exited with code 14 mongo-express_1 | /docker-entrypoint.sh: connect: Connection refused mongo-express_1 | /docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Connection refused mongo-express_1 | Mon Jul 15 02:39:34 UTC 2019 retrying to connect to mongo:27017 (3/5) mongo-express_1 | /docker-entrypoint.sh: connect: Connection refused mongo-express_1 | /docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Connection refused mongo-express_1 | Mon Jul 15 02:39:57 UTC 2019 retrying to connect to mongo:27017 (4/5) mongo-express_1 | /docker-entrypoint.sh: connect: Connection refused mongo-express_1 | /docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Connection refused mongo_1 | 2019-07-15T02:40:20.140+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=6c50c6c3153d mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] db version v4.0.10 mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] git version: c389e7f69f637f7a1ac3cc9fae843b635f20b766 mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] allocator: tcmalloc mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] modules: none mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] build environment: mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] distmod: ubuntu1604 mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] distarch: x86_64 mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] target_arch: x86_64 mongo_1 | 2019-07-15T02:40:20.144+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } } mongo_1 | 2019-07-15T02:40:20.149+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=478M,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), mongo-express_1 | Mon Jul 15 02:40:20 UTC 2019 retrying to connect to mongo:27017 (5/5) mongo-express_1 | /docker-entrypoint.sh: connect: Connection refused mongo-express_1 | /docker-entrypoint.sh: line 14: /dev/tcp/mongo/27017: Connection refused mongo_1 | 2019-07-15T02:40:20.956+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563158420:956036][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563158420:956036][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists mongo_1 | 2019-07-15T02:40:20.962+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.96 mongo_1 | 2019-07-15T02:40:20.965+0000 E STORAGE [initandlisten] WiredTiger error (1) [1563158420:965313][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1563158420:965313][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted mongo_1 | 2019-07-15T02:40:20.996+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563158420:996725][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563158420:996725][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists mongo_1 | 2019-07-15T02:40:21.014+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.97 mongo_1 | 2019-07-15T02:40:21.018+0000 E STORAGE [initandlisten] WiredTiger error (1) [1563158421:18638][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1563158421:18638][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted mongo_1 | 2019-07-15T02:40:21.072+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563158421:72175][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563158421:72175][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists mongo_1 | 2019-07-15T02:40:21.423+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.98 mongo_1 | 2019-07-15T02:40:21.426+0000 E STORAGE [initandlisten] WiredTiger error (1) [1563158421:426051][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1563158421:426051][1:0x7fceb3b1ca80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted mongo_1 | 2019-07-15T02:40:21.428+0000 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version. mongo_1 | 2019-07-15T02:40:21.429+0000 F STORAGE [initandlisten] Reason: 1: Operation not permitted mongo_1 | 2019-07-15T02:40:21.429+0000 F - [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 704 mongo_1 | 2019-07-15T02:40:21.429+0000 F - [initandlisten] mongo_1 | mongo_1 | ***aborting after fassert() failure mongo_1 | mongo_1 | mongo-express_1 | Welcome to mongo-express mongo-express_1 | ------------------------ mongo-express_1 | mongo-express_1 | mongo-express_1 | Mongo Express server listening at http://0.0.0.0:8081 mongo-express_1 | Server is open to allow connections from anyone (0.0.0.0) mongo-express_1 | basicAuth credentials are "admin:pass", it is recommended you change this in your config.js!

guanguans commented 5 years ago

重新构建 mongo 服务试试。请不要打开新的 Issue 了,Issue 是我用来写博客的。