Closed JulianKropp closed 7 months ago
New Error:
$ docker-compose up
Starting sharelatex-mongo ... done
Starting sharelatex-redis ... done
Starting sharelatex ... done
Attaching to sharelatex-mongo, sharelatex-redis, sharelatex
sharelatex-mongo | 2023-06-16T11:16:40.333+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=cdbfd9087949
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] db version v4.0.28
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] git version: af1a9dc12adcfa83cc19571cb3faba26eeddac92
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] allocator: tcmalloc
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] modules: none
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] build environment:
sharelatex-mongo | 2023-06-16T11:16:40.339+0000 I CONTROL [initandlisten] distmod: ubuntu1604
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I CONTROL [initandlisten] distarch: x86_64
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I CONTROL [initandlisten] target_arch: x86_64
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true }, replication: { replSet: "rs0" } }
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I STORAGE [initandlisten]
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
sharelatex-mongo | 2023-06-16T11:16:40.340+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
sharelatex-mongo | 2023-06-16T11:16:40.341+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7486M,cache_overflow=(file_max=0M),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),
sharelatex-redis | 1:C 16 Jun 2023 11:16:40.344 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
sharelatex-redis | 1:C 16 Jun 2023 11:16:40.344 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
sharelatex-redis | 1:C 16 Jun 2023 11:16:40.344 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
sharelatex-redis | 1:M 16 Jun 2023 11:16:40.345 * Running mode=standalone, port=6379.
sharelatex-redis | 1:M 16 Jun 2023 11:16:40.345 # Server initialized
sharelatex-redis | 1:M 16 Jun 2023 11:16:40.345 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
sharelatex-redis | 1:M 16 Jun 2023 11:16:40.345 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
sharelatex-redis | 1:M 16 Jun 2023 11:16:40.346 * DB loaded from disk: 0.000 seconds
sharelatex-redis | 1:M 16 Jun 2023 11:16:40.346 * Ready to accept connections
sharelatex-mongo | 2023-06-16T11:16:41.841+0000 I STORAGE [initandlisten] WiredTiger message [1686914201:841791][1:0x7f2e136d6a80], txn-recover: Main recovery loop: starting at 1/23040 to 2/256
sharelatex-mongo | 2023-06-16T11:16:41.963+0000 I STORAGE [initandlisten] WiredTiger message [1686914201:963697][1:0x7f2e136d6a80], txn-recover: Recovering log 1 through 2
sharelatex-mongo | 2023-06-16T11:16:42.054+0000 I STORAGE [initandlisten] WiredTiger message [1686914202:54765][1:0x7f2e136d6a80], txn-recover: Recovering log 2 through 2
sharelatex-mongo | 2023-06-16T11:16:42.114+0000 I STORAGE [initandlisten] WiredTiger message [1686914202:114520][1:0x7f2e136d6a80], txn-recover: Set global recovery timestamp: 0
sharelatex-mongo | 2023-06-16T11:16:42.181+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
sharelatex-mongo | 2023-06-16T11:16:42.183+0000 I STORAGE [initandlisten] Starting to check the table logging settings for existing WiredTiger tables
sharelatex-mongo | 2023-06-16T11:16:42.188+0000 I CONTROL [initandlisten]
sharelatex-mongo | 2023-06-16T11:16:42.188+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
sharelatex-mongo | 2023-06-16T11:16:42.188+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
sharelatex-mongo | 2023-06-16T11:16:42.188+0000 I CONTROL [initandlisten]
sharelatex-mongo | 2023-06-16T11:16:42.189+0000 I CONTROL [initandlisten]
sharelatex-mongo | 2023-06-16T11:16:42.189+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
sharelatex-mongo | 2023-06-16T11:16:42.189+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
sharelatex-mongo | 2023-06-16T11:16:42.189+0000 I CONTROL [initandlisten]
sharelatex-mongo | 2023-06-16T11:16:42.193+0000 I STORAGE [initandlisten] Finished adjusting the table logging settings for existing WiredTiger tables
sharelatex-mongo | 2023-06-16T11:16:42.196+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
sharelatex-mongo | 2023-06-16T11:16:42.199+0000 I REPL [initandlisten] Did not find local initialized voted for document at startup.
sharelatex-mongo | 2023-06-16T11:16:42.202+0000 I REPL [initandlisten] Rollback ID is 1
sharelatex-mongo | 2023-06-16T11:16:42.202+0000 I REPL [initandlisten] Did not find local replica set configuration document at startup; NoMatchingDocument: Did not find replica set configuration document in local.system.replset
sharelatex-mongo | 2023-06-16T11:16:42.204+0000 I CONTROL [LogicalSessionCacheRefresh] Sessions collection is not set up; waiting until next sessions refresh interval: Replication has not yet been configured
sharelatex-mongo | 2023-06-16T11:16:42.204+0000 I CONTROL [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
sharelatex-mongo | 2023-06-16T11:16:42.205+0000 I NETWORK [initandlisten] waiting for connections on port 27017
sharelatex-mongo | 2023-06-16T11:16:50.407+0000 I NETWORK [listener] connection accepted from 127.0.0.1:47650 #1 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:16:50.408+0000 I NETWORK [conn1] received client metadata from 127.0.0.1:47650 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:16:50.417+0000 I NETWORK [conn1] end connection 127.0.0.1:47650 (0 connections now open)
sharelatex | *** Running /etc/my_init.d/00_make_sharelatex_data_dirs.sh...
sharelatex | *** Running /etc/my_init.d/00_regen_sharelatex_secrets.sh...
sharelatex | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
sharelatex | *** Running /etc/my_init.d/00_restore_site_status...
sharelatex | *** Running /etc/my_init.d/00_set_docker_host_ipaddress.sh...
sharelatex | *** Running /etc/my_init.d/01_nginx_config_template.sh...
sharelatex | Nginx: generating config file from template
sharelatex | Nginx: reloading config
sharelatex | * Reloading nginx configuration nginx
sharelatex | ...done.
sharelatex | *** Running /etc/my_init.d/10_delete_old_logs.sh...
sharelatex | *** Running /etc/my_init.d/10_syslog-ng.init...
sharelatex | Jun 16 11:16:51 a9194acd4924 syslog-ng[60]: syslog-ng starting up; version='3.25.1'
sharelatex | *** Running /etc/my_init.d/98_check_db_access.sh...
sharelatex | Checking can connect to mongo and redis
sharelatex | Using default settings from /overleaf/services/web/config/settings.defaults.js
sharelatex | Using settings from /etc/sharelatex/settings.js
sharelatex | Set UV_THREADPOOL_SIZE=16
sharelatex-mongo | 2023-06-16T11:16:52.696+0000 I NETWORK [listener] connection accepted from 172.19.0.4:55184 #2 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:16:52.705+0000 I NETWORK [conn2] received client metadata from 172.19.0.4:55184 conn2: { driver: { name: "nodejs|Mongoose", version: "4.13.0" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "5.10.0-23-amd64" }, platform: "Node.js v16.20.0, LE (unified)", version: "4.13.0|6.9.1", application: { name: "web" } }
sharelatex-mongo | 2023-06-16T11:17:00.583+0000 I NETWORK [listener] connection accepted from 127.0.0.1:42384 #3 (2 connections now open)
sharelatex-mongo | 2023-06-16T11:17:00.585+0000 I NETWORK [conn3] received client metadata from 127.0.0.1:42384 conn3: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:17:00.593+0000 I NETWORK [conn3] end connection 127.0.0.1:42384 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:17:10.760+0000 I NETWORK [listener] connection accepted from 127.0.0.1:40622 #4 (2 connections now open)
sharelatex-mongo | 2023-06-16T11:17:10.764+0000 I NETWORK [conn4] received client metadata from 127.0.0.1:40622 conn4: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:17:10.774+0000 I NETWORK [conn4] end connection 127.0.0.1:40622 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:17:20.960+0000 I NETWORK [listener] connection accepted from 127.0.0.1:39614 #5 (2 connections now open)
sharelatex-mongo | 2023-06-16T11:17:20.961+0000 I NETWORK [conn5] received client metadata from 127.0.0.1:39614 conn5: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:17:20.969+0000 I NETWORK [conn5] end connection 127.0.0.1:39614 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:17:31.132+0000 I NETWORK [listener] connection accepted from 127.0.0.1:56218 #6 (2 connections now open)
sharelatex-mongo | 2023-06-16T11:17:31.134+0000 I NETWORK [conn6] received client metadata from 127.0.0.1:56218 conn6: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:17:31.142+0000 I NETWORK [conn6] end connection 127.0.0.1:56218 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:17:41.332+0000 I NETWORK [listener] connection accepted from 127.0.0.1:43882 #7 (2 connections now open)
sharelatex-mongo | 2023-06-16T11:17:41.333+0000 I NETWORK [conn7] received client metadata from 127.0.0.1:43882 conn7: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:17:41.342+0000 I NETWORK [conn7] end connection 127.0.0.1:43882 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:17:51.526+0000 I NETWORK [listener] connection accepted from 127.0.0.1:57406 #8 (2 connections now open)
sharelatex-mongo | 2023-06-16T11:17:51.527+0000 I NETWORK [conn8] received client metadata from 127.0.0.1:57406 conn8: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.28" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } }
sharelatex-mongo | 2023-06-16T11:17:51.535+0000 I NETWORK [conn8] end connection 127.0.0.1:57406 (1 connection now open)
sharelatex-mongo | 2023-06-16T11:17:52.698+0000 I NETWORK [conn2] end connection 172.19.0.4:55184 (0 connections now open)
sharelatex | Cannot connect to mongodb
sharelatex | MongooseServerSelectionError: Server selection timed out after 60000 ms
sharelatex | at NativeConnection.Connection.openUri (/overleaf/services/web/node_modules/mongoose/lib/connection.js:825:32)
sharelatex | at /overleaf/services/web/node_modules/mongoose/lib/index.js:411:10
sharelatex | at /overleaf/services/web/node_modules/mongoose/lib/helpers/promiseOrCallback.js:41:5
sharelatex | at new Promise (<anonymous>)
sharelatex | at promiseOrCallback (/overleaf/services/web/node_modules/mongoose/lib/helpers/promiseOrCallback.js:40:10)
sharelatex | at Mongoose._promiseOrCallback (/overleaf/services/web/node_modules/mongoose/lib/index.js:1285:10)
sharelatex | at Mongoose.connect (/overleaf/services/web/node_modules/mongoose/lib/index.js:410:20)
sharelatex | at Object.<anonymous> (/overleaf/services/web/app/src/infrastructure/Mongoose.js:19:36)
sharelatex | at Module._compile (node:internal/modules/cjs/loader:1196:14)
sharelatex | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10) {
sharelatex | reason: TopologyDescription {
sharelatex | type: 'Unknown',
sharelatex | servers: Map(1) { 'sharelatex-mongo:27017' => [ServerDescription] },
sharelatex | stale: false,
sharelatex | compatible: true,
sharelatex | heartbeatFrequencyMS: 10000,
sharelatex | localThresholdMS: 15,
sharelatex | setName: null,
sharelatex | maxElectionId: null,
sharelatex | maxSetVersion: null,
sharelatex | commonWireVersion: 0,
sharelatex | logicalSessionTimeoutMinutes: null
sharelatex | },
sharelatex | code: undefined
sharelatex | }
sharelatex | *** /etc/my_init.d/98_check_db_access.sh failed with status 1
sharelatex |
sharelatex | *** Killing all processes...
sharelatex | Jun 16 11:17:52 a9194acd4924 syslog-ng[60]: syslog-ng shutting down; version='3.25.1'
Fixed #35