self-host-csmm-support
textPage 33 of 373
50 messages on this page
Saturday, December 9, 2023
User 0b2cfa
ive narrowed it down to blueprints , off to work ill mess with it when iget home
User 0b2cfa
[worker] No Discord client ID and/or client secret given in dotenv. Discarding Discord passport configuration``` ```[app] info: Initializing custom hook (`discordChatbridge`) [worker] error: undefined {"code":"E_HOOK_TIMEOUT"}
[worker] /home/csmm/7-days-to-die-server-manager/node_modules/sails/node_modules/async/dist/async.js:903 [worker] if (fn === null) throw new Error("Callback was already called."); [worker] ^ [worker] [worker] Error: Callback was already called. [worker] at /home/csmm/7-days-to-die-server-manager/node_modules/sails/node_modules/async/dist/async.js:903:32 [worker] at /home/csmm/7-days-to-die-server-manager/node_modules/sails/lib/app/private/loadHooks.js:241:38 [worker] at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
i can see exactly where in the code its throwing the error but ill be damn if i can figure out why
User bddf69
Maybe try and not set
DISCORDBOTTOKEN and restart CSMM? If that's not set, CSMM will skip loading any Discord related stuff. Could help confirm if this is the issue or notFriday, December 8, 2023
User 0cec7b
it'l be a lightbulb moment.. or a middle of the night (sleep) wake up and think ahh thats why!!!
User 0b2cfa
Nope, forwarded the ports and still echo timeout, it really looks like a discord chatbridge issue but I'll be damn if I can see where my settings are bad. I'm no novice to code but this one is eluding me. So have up and went to work lol
User 0cec7b
any luck?
User 0cec7b
TCP
User 0cec7b
I opened it and 1337
User 0b2cfa
its all local isnt it?>
User 0cec7b
Have you opened the ports etc for redis?
User 0b2cfa
mysql is running fine
User 0b2cfa
yeah same issue, redis responds to redis-cli with pong, theres no password set
User 0cec7b
Just do the rm -r command a lot quicker than doing through ftp 😏
User 0b2cfa
ill try that now
User 0cec7b
I had a similar issue
User 0cec7b
git clone https://github.com/CatalysmsServerManager/7-days-to-die-server-manager
cd 7-days-to-die-server-manager
npm ci install --only=prod
cd 7-days-to-die-server-manager
npm ci install --only=prod
User 0cec7b
When you ran the command did did you delete the contents of the csmm folder (just save your env file) there may be a corrupted file 😑
User 0b2cfa
bsck to e hook timeout
User 0b2cfa
that ran fine
User 0b2cfa
trying that now
User 0cec7b
Yeah that looks good maybe try running npm ci install --only=prod
User 0b2cfa
REDISSTRING=redis://127.0.0.1:6379
User 0b2cfa
no
User 0cec7b
Did you create a password for redis when you set it up?
User 0cec7b
It maybe running but double check the string redis:// etc as it may not be connecting to the app correctly
User 0b2cfa
redis is running i double check other things
User 0cec7b
Worth a check as I had that issue, make sure that the : is removed if you aren’t using a password.
redis://:password@127.0.0.1:6379 or redis://127.0.0.1:6379 (if you did not set a password)
redis://:password@127.0.0.1:6379 or redis://127.0.0.1:6379 (if you did not set a password)
User bddf69
The errors are coming from the worker process, it has to connect to redis at startup
User bddf69
^ And double check your redis is up and running and connectable
User 0cec7b
Are you running the npm ci install --only=prod
User 0cec7b
Your node is v18, that might be an issue? As per the docs it states to install v16 well for self host installs anyways.
User 0b2cfa
[app] verbose: sentry [app] verbose: Loading adapter (`%s`) from this app's `node_modules/` directory... [app] verbose: Loading adapter (`%s`) from this app's `node_modules/` directory... [worker] verbose: session [worker] /home/csmm/7-days-to-die-server-manager/node_modules/sails/node_modules/async/dist/async.js:903 [worker] if (fn === null) throw new Error("Callback was already called."); [worker] ^ [worker] [worker] Error: Callback was already called. [worker] at /home/csmm/7-days-to-die-server-manager/node_modules/sails/node_modules/async/dist/async.js:903:32 [worker] at /home/csmm/7-days-to-die-server-manager/node_modules/sails/lib/app/private/loadHooks.js:241:38 [worker] at process.processTicksAndRejections (node:internal/process/task_queues:77:11) [worker] [worker] Node.js v18.13.0 [worker] npm run start:worker exited with code 1 --> Sending SIGTERM to other processes.. [app] npm run start:app exited with code SIGTERM
User 0b2cfa
[worker] error: undefined {"code":"E_HOOK_TIMEOUT"}
User 0b2cfa
only thing i can think of is this
URL for Oauth2 authentication but ive set itUser 0b2cfa
Yeah caddy is working but nothing I try gets past that error
User bddf69
Possible but subdomain will be a lot easier
User 0cec7b
Could it be example.com/csmm?
User 0cec7b
Should be all sorted by tonight then 😬
User bddf69
Yep that's correct
User 0cec7b
Ok I’ll change this when I get back home and change it I’m guessing no need to reinstall just to upload env file and restart service?
User bddf69
This'll only work once CSMM is running properly, last logs I saw from you that wasnt the case yet
User bddf69
It should be the public url of your csmm, so smth like http://csmm.example.com
User bddf69
Check your CSMM_HOSTNAME env var (and make sure that gets updated on the remote too)
User 0cec7b
Might actually be reverse lookup
User 0cec7b
Mine just redirects to localhost after signing into steam? Very bizzare. I’ve tried changing the host name etc but no success 😩 but I have a pretty csmm landing page though..
User 0b2cfa
curl localhost:1337 is unreachable
User 0b2cfa
seems caddy is my issue and my brain is done trying to figure it out
User 0b2cfa
yea the bot settings arent my issue
Thursday, December 7, 2023
User 0cec7b
so after reading the connecting via local host thats all fine and dandy, but when i click on sign in, it seems to time out then says that "localhost didn’t send any data."
anyone encountered this?