I am having issues with the 7DTD CSMM docker. This is a fresh install on startup. I am using the docker-compose file from my previous install which worked perfectly (hard drive died so I'm starting fresh). Running on Ubuntu 20.04.3 with Docker-Compose 1.29.1
This is what I get in the log in Portainer:
---Checking if UID: 1000 matches user---
usermod: no changes
---Checking if GID: 1000 matches user---
usermod: no changes
---Setting umask to 000---
---Checking for optional scripts---
---No optional script found, continuing---
---Starting...---
---Starting MariaDB...---
---Starting Redis Server---
---Checking if CSMM is installed---
---CSMM found---
npm WARN prepare removing existing node_modules/ before installation
>
[email protected] postinstall /csmm-7dtd/CSMM/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
>
[email protected] postinstall /csmm-7dtd/CSMM/node_modules/sails-hook-grunt/node_modules/core-js
> node scripts/postinstall
Thank you for using core-js ( https://github.com/zloirock/core-js )!
Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
>
[email protected] postinstall /csmm-7dtd/CSMM/node_modules/highlight.js
> node deprecated.js
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
m
Verion 9 of Highlight.js has reached EOL. It will no longer
be supported or receive security updates in the future.
Please upgrade to version 10 or encourage your indirect
dependencies to do so.
For more info:
https://github.com/highlightjs/highlight.js/issues/2877
https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
>
[email protected] postinstall /csmm-7dtd/CSMM
> npm run itemIcons:update && npm run playground:update
>
[email protected] itemIcons:update /csmm-7dtd/CSMM
> sh ./scripts/itemIconsUpdate.sh
+ rm -rf assets/images/sdtdIcons/
+ mkdir -p assets/images/sdtdIcons/
+ curl -qsL https://github.com/CatalysmsServerManager/7dtd-icons/releases/latest/download/sdtdIcons.tar.gz
+ tar xzf - -C assets/images
>
[email protected] playground:update /csmm-7dtd/CSMM
> sh ./scripts/get-playground.sh
jq must be installed. apt-get install jq
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
[email protected] playground:update: `sh ./scripts/get-playground.sh`
npm ERR! Exit status 1
npm ERR! Failed at the
[email protected] playground:update script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /csmm-7dtd/.npm/_cacache/_logs/2021-09-03T04_06_55_971Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
[email protected] postinstall: `npm run itemIcons:update && npm run playground:update`
npm ERR! Exit status 1
npm ERR! Failed at the
[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /csmm-7dtd/.npm/_logs/2021-09-03T04_06_56_066Z-debug.log
---Prepare Server---
---Configuring Redis---
OK
OK
Background saving started
---Checking for old logs---
---Configuring CSMM---
---Checking if Databse is present---
---Database initalized!---
>
[email protected] db:migrate /csmm-7dtd/CSMM
> npm run sequelize -- db:migrate
>
[email protected] sequelize /csmm-7dtd/CSMM
> sequelize-cli "db:migrate"
Sequelize CLI [Node: 14.17.5, CLI: 6.2.0, ORM: 6.6.5]
Loaded configuration file "sequelize.config.js".
Using environment "production".
ERROR: connect ECONNREFUSED 127.0.0.1:3306
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
[email protected] sequelize: `sequelize-cli "db:migrate"`
npm ERR! Exit status 1
npm ERR! Failed at the
[email protected] sequelize script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /csmm-7dtd/.npm/_logs/2021-09-03T04_07_08_632Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
[email protected] db:migrate: `npm run sequelize -- db:migrate`
npm ERR! Exit status 1
npm ERR! Failed at the
[email protected] db:migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /csmm-7dtd/.npm/_logs/2021-09-03T04_07_08_659Z-debug.log
---Start Server---
>
[email protected] start /csmm-7dtd/CSMM
> cross-env NODE_ENV=production concurrently --kill-others -n 'app,worker' 'npm run start:app' 'npm run start:worker'
[worker] >
[email protected] start:worker /csmm-7dtd/CSMM
[worker] > node worker/worker.js
[app]
[app] >
[email protected] start:app /csmm-7dtd/CSMM
[app] > node app.js
[app]
[app] CSMM version: 1.26.0
[app] error: Ignoring `sails.config.views.layout`...
[app] error: Sails' built-in layout support only works with the default EJS view engine.
[app] error: You're using a custom view engine, so you'll need to implement layouts on your own!
[app] debug: Please note: since `sails.config.session.cookie.secure` is set to `true`, the session cookie
[app] debug: will _only_ be sent over TLS connections (i.e. secure https:// requests).
[app] debug: Requests made via http:// will not include a session cookie!
[app] debug:
[app] debug: For more help:
[app] debug: • https://sailsjs.com/config/session#?the-secure-flag
[app] debug: • https://sailsjs.com/config/session#?do-i-need-an-ssl-certificate
[app] debug: • https://sailsjs.com/config/sails-config-http#?properties
[app] debug: • https://sailsjs.com/support
[app] debug:
[worker] debug: Please note: since `sails.config.session.cookie.secure` is set to `true`, the session cookie
[worker] debug: will _only_ be sent over TLS connections (i.e. secure https:// requests).
[worker] debug: Requests made via http:// will not include a session cookie!
[worker] debug:
[worker] debug: For more help:
[worker] debug: • https://sailsjs.com/config/session#?the-secure-flag
[worker] debug: • https://sailsjs.com/config/session#?do-i-need-an-ssl-certificate
[worker] debug: • https://sailsjs.com/config/sails-config-http#?properties
[worker] debug: • https://sailsjs.com/support
[worker] debug:
[app] info: Initializing custom hook (`sdtdLogs`)
[app] error: HOOKS - sdtdLogs Unexpected error from database adapter: `select` failed ("badConnection"). A connection either could not be obtained or there was an error using the connection.
[app] Additional data:
[app]
[app] {
[app] error: Error: connect ECONNREFUSED 127.0.0.1:3306
[app] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
[app] --------------------
[app] at Protocol._enqueue (/csmm-7dtd/CSMM/node_modules/mysql/lib/protocol/Protocol.js:144:48)
[app] at Protocol.handshake (/csmm-7dtd/CSMM/node_modules/mysql/lib/protocol/Protocol.js:51:23)
[app] at PoolConnection.connect (/csmm-7dtd/CSMM/node_modules/mysql/lib/Connection.js:116:18)
[app] at Pool.getConnection (/csmm-7dtd/CSMM/node_modules/mysql/lib/Pool.js:48:16)
[app] at Object.getConnection (/csmm-7dtd/CSMM/node_modules/machinepack-mysql/lib/get-connection.js:78:25)
[app] at wrapper (/csmm-7dtd/CSMM/node_modules/@sailshq/lodash/lib/index.js:3282:19)
[app] at Deferred.parley.retry [as _handleExec] (/csmm-7dtd/CSMM/node_modules/machinepack-mysql/node_modules/machine/lib/private/help-build-machine.js:1076:19)
[app] at Deferred.exec (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:286:10)
[app] at Deferred.switch (/csmm-7dtd/CSMM/node_modules/machinepack-mysql/node_modules/machine/lib/private/help-build-machine.js:1469:16)
[app] at spawnConnection (/csmm-7dtd/CSMM/node_modules/sails-mysql/helpers/private/connection/spawn-connection.js:29:10)
[app] at Object.spawnOrLeaseConnection (/csmm-7dtd/CSMM/node_modules/sails-mysql/helpers/private/connection/spawn-or-lease-connection.js:23:3)
[app] at Object.select (/csmm-7dtd/CSMM/node_modules/sails-mysql/helpers/select.js:122:24)
[app] at wrapper (/csmm-7dtd/CSMM/node_modules/@sailshq/lodash/lib/index.js:3282:19)
[app] at Deferred.parley.retry [as _handleExec] (/csmm-7dtd/CSMM/node_modules/sails-mysql/node_modules/machine/lib/private/help-build-machine.js:1076:19)
[app] at Deferred.exec (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:286:10)
[app] at Deferred.switch (/csmm-7dtd/CSMM/node_modules/sails-mysql/node_modules/machine/lib/private/help-build-machine.js:1469:16)
[app] at Object.find (/csmm-7dtd/CSMM/node_modules/sails-mysql/lib/adapter.js:185:16)
[app] at _getPopulatedRecords (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/utils/query/help-find.js:145:21)
[app] at helpFind (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/utils/query/help-find.js:582:6)
[app] at _afterPotentiallyRunningBeforeLC (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find.js:258:9)
[app] at _maybeRunBeforeLC (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find.js:232:16)
[app] at Deferred._.extend._WLModel [as _handleExec] (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find.js:234:9) {
[app] errno: -111,
[app] code: 'ECONNREFUSED',
[app] syscall: 'connect',
[app] address: '127.0.0.1',
[app] port: 3306,
[app] fatal: true
[app] },
[app] meta: {
[app] host: 'localhost',
[app] port: 3306,
[app] schema: true,
[app] adapter: 'sails-mysql',
[app] charset: 'utf8mb4',
[app] url: 'mysql2://csmm:
[email protected]:3306/7dtd',
[app] identity: 'default'
}
[app] } {"cause":{"name":"AdapterError","adapterMethodName":"find","modelIdentity":"sdtdconfig","raw":{"name":"Exception","code":"badConnection","exit":"badConnection","raw":{"error":{"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":3306,"fatal":true},"meta":{"host":"localhost","port":3306,"schema":true,"adapter":"sails-mysql","charset":"utf8mb4","url":"mysql2://csmm:
[email protected]:3306/7dtd","identity":"default"}}}},"isOperational":true,"adapterMethodName":"find","modelIdentity":"sdtdconfig","raw":{"name":"Exception","code":"badConnection","exit":"badConnection","raw":{"error":{"errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":3306,"fatal":true},"meta":{"host":"localhost","port":3306,"schema":true,"adapter":"sails-mysql","charset":"utf8mb4","url":"mysql2://csmm:
[email protected]:3306/7dtd","identity":"default"}}},"stack":"AdapterError: Unexpected error from database adapter: `select` failed (\"badConnection\"). A connection either could not be obtained or there was an error using the connection.\nAdditional data:\n\n{\n error: Error: connect ECONNREFUSED 127.0.0.1:3306\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)\n --------------------\n at Protocol._enqueue (/csmm-7dtd/CSMM/node_modules/mysql/lib/protocol/Protocol.js:144:48)\n at Protocol.handshake (/csmm-7dtd/CSMM/node_modules/mysql/lib/protocol/Protocol.js:51:23)\n at PoolConnection.connect (/csmm-7dtd/CSMM/node_modules/mysql/lib/Connection.js:116:18)\n at Pool.getConnection (/csmm-7dtd/CSMM/node_modules/mysql/lib/Pool.js:48:16)\n at Object.getConnection (/csmm-7dtd/CSMM/node_modules/machinepack-mysql/lib/get-connection.js:78:25)\n at wrapper (/csmm-7dtd/CSMM/node_modules/@sailshq/lodash/lib/index.js:3282:19)\n at Deferred.parley.retry [as _handleExec] (/csmm-7dtd/CSMM/node_modules/machinepack-mysql/node_modules/machine/lib/private/help-build-machine.js:1076:19)\n at Deferred.exec (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:286:10)\n at Deferred.switch (/csmm-7dtd/CSMM/node_modules/machinepack-mysql/node_modules/machine/lib/private/help-build-machine.js:1469:16)\n at spawnConnection (/csmm-7dtd/CSMM/node_modules/sails-mysql/helpers/private/connection/spawn-connection.js:29:10)\n at Object.spawnOrLeaseConnection (/csmm-7dtd/CSMM/node_modules/sails-mysql/helpers/private/connection/spawn-or-lease-connection.js:23:3)\n at Object.select (/csmm-7dtd/CSMM/node_modules/sails-mysql/helpers/select.js:122:24)\n at wrapper (/csmm-7dtd/CSMM/node_modules/@sailshq/lodash/lib/index.js:3282:19)\n at Deferred.parley.retry [as _handleExec] (/csmm-7dtd/CSMM/node_modules/sails-mysql/node_modules/machine/lib/private/help-build-machine.js:1076:19)\n at Deferred.exec (/csmm-7dtd/CSMM/node_modules/parley/lib/private/Deferred.js:286:10)\n at Deferred.switch (/csmm-7dtd/CSMM/node_modules/sails-mysql/node_modules/machine/lib/private/help-build-machine.js:1469:16)\n at Object.find (/csmm-7dtd/CSMM/node_modules/sails-mysql/lib/adapter.js:185:16)\n at _getPopulatedRecords (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/utils/query/help-find.js:145:21)\n at helpFind (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/utils/query/help-find.js:582:6)\n at _afterPotentiallyRunningBeforeLC (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find.js:258:9)\n at _maybeRunBeforeLC (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find.js:232:16)\n at Deferred._.extend._WLModel [as _handleExec] (/csmm-7dtd/CSMM/node_modules/waterline/lib/waterline/methods/find.js:234:9) {\n errno: -111,\n code: 'ECONNREFUSED',\n syscall: 'connect',\n address: '127.0.0.1',\n port: 3306,\n fatal: true\n },\n meta: {\n host: 'localhost',\n port: 3306,\n schema: true,\n adapter: 'sails-mysql',\n charset: 'utf8mb4',\n url: 'mysql2://csmm:
[email protected]:3306/7dtd',\n identity: 'default'\n }\n}\n at /csmm-7dtd/CSMM/api/hooks/sdtdLogs/index.js:31:49\n at processTicksAndRejections (internal/process/task_queues.js:95:5)"}
Any help would be greatly appreciated.