docker-compose -f ./docker/docker-compose.yml up
WARNING: The API_PREFIX variable is not set. Defaulting to a blank string.
Starting db ... done
Recreating backend ... done
Recreating frontend ... done
Recreating proxy ... done
Attaching to db, backend, frontend, proxy
db | 2020-07-19T21:05:20.820+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
proxy | [WARNING] 200/210522 (7) : Server next/next01 is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
frontend |
frontend | > @courselit/[email protected] start /usr/src/app
frontend | > next start -p 3000
frontend |
db | 2020-07-19T21:05:20.822+0000 W ASIO [main] No TransportLayer configured during NetworkInterface startup
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=12609ac4116a
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] db version v4.2.8
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] git version: 43d25964249164d76d5e04dd6cf38f6111e21f5f
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] allocator: tcmalloc
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] modules: none
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] build environment:
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] distmod: ubuntu1804
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] distarch: x86_64
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] target_arch: x86_64
db | 2020-07-19T21:05:20.823+0000 I CONTROL [initandlisten] options: { net: { bindIp: "*" }, security: { authorization: "enabled" }, systemLog: { quiet: true } }
proxy | [ALERT] 200/210522 (7) : backend 'next' has no server available!
db | 2020-07-19T21:05:20.831+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
db | 2020-07-19T21:05:20.835+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=483M,cache_overflow=(file_max=0M),session_max=33000,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,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
frontend | ready - started server on http://localhost:3000
backend | CourseLit server is running on port 8000
proxy | [WARNING] 200/210526 (7) : Server next/next01 is UP, reason: Layer4 check passed, check duration: 0ms. 1 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.
backend | Unable to establish a connection to the database.
backend | Additional info: connect ECONNREFUSED 172.22.0.2:27017
backend exited with code 1
db | 2020-07-19T21:05:28.356+0000 I STORAGE [initandlisten] WiredTiger message [1595192728:356860][1:0x7f2ca4a6fb00], txn-recover: Recovering log 2 through 3
db | 2020-07-19T21:05:28.643+0000 I STORAGE [initandlisten] WiredTiger message [1595192728:643477][1:0x7f2ca4a6fb00], txn-recover: Recovering log 3 through 3
db | 2020-07-19T21:05:28.912+0000 I STORAGE [initandlisten] WiredTiger message [1595192728:912047][1:0x7f2ca4a6fb00], txn-recover: Main recovery loop: starting at 2/4864 to 3/256
db | 2020-07-19T21:05:29.272+0000 I STORAGE [initandlisten] WiredTiger message [1595192729:272040][1:0x7f2ca4a6fb00], txn-recover: Recovering log 2 through 3
db | 2020-07-19T21:05:29.595+0000 I STORAGE [initandlisten] WiredTiger message [1595192729:595664][1:0x7f2ca4a6fb00], txn-recover: Recovering log 3 through 3
db | 2020-07-19T21:05:29.640+0000 I STORAGE [initandlisten] WiredTiger message [1595192729:640282][1:0x7f2ca4a6fb00], txn-recover: Set global recovery timestamp: (0, 0)
db | 2020-07-19T21:05:29.664+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
db | 2020-07-19T21:05:29.680+0000 I STORAGE [initandlisten] Timestamp monitor starting
db | 2020-07-19T21:05:29.694+0000 I SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
db | 2020-07-19T21:05:29.704+0000 I STORAGE [initandlisten] Flow Control is enabled on this deployment.
db | 2020-07-19T21:05:29.704+0000 I SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
db | 2020-07-19T21:05:29.705+0000 I SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
db | 2020-07-19T21:05:29.715+0000 I SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
db | 2020-07-19T21:05:29.717+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
db | 2020-07-19T21:05:29.721+0000 I SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
db | 2020-07-19T21:05:29.722+0000 I NETWORK [listener] Listening on /tmp/mongodb-27017.sock
db | 2020-07-19T21:05:29.722+0000 I NETWORK [listener] Listening on 0.0.0.0
db | 2020-07-19T21:05:29.722+0000 I NETWORK [listener] waiting for connections on port 27017
db | 2020-07-19T21:05:29.722+0000 I SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>
db | 2020-07-19T21:05:30.006+0000 I SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>
proxy | [WARNING] 200/210540 (7) : Server api/api01 is DOWN, reason: Layer4 timeout, check duration: 2002ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
proxy | [ALERT] 200/210540 (7) : backend 'api' has no server available!