self-host-csmm-support

textPage 33 of 373
50 messages on this page
Saturday, December 9, 2023
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
ive narrowed it down to blueprints , off to work ill mess with it when iget home
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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 not
Friday, December 8, 2023
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
it'l be a lightbulb moment.. or a middle of the night (sleep) wake up and think ahh thats why!!!
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
any luck?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
TCP
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
I opened it and 1337
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
its all local isnt it?>
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Have you opened the ports etc for redis?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
mysql is running fine
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yeah same issue, redis responds to redis-cli with pong, theres no password set
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Just do the rm -r command a lot quicker than doing through ftp 😏
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
ill try that now
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
I had a similar issue
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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 😑
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
bsck to e hook timeout
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
that ran fine
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
trying that now
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Yeah that looks good maybe try running npm ci install --only=prod
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
REDISSTRING=redis://127.0.0.1:6379
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
no
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Did you create a password for redis when you set it up?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
It maybe running but double check the string redis:// etc as it may not be connecting to the app correctly
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
redis is running i double check other things
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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)
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
The errors are coming from the worker process, it has to connect to redis at startup
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
^ And double check your redis is up and running and connectable
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Are you running the npm ci install --only=prod
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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.
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
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
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
[worker] error: undefined {"code":"E_HOOK_TIMEOUT"}
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
only thing i can think of is this
URL for Oauth2 authentication
but ive set it
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
Yeah caddy is working but nothing I try gets past that error
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Possible but subdomain will be a lot easier
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Could it be example.com/csmm?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Should be all sorted by tonight then 😬
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yep that's correct
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
This'll only work once CSMM is running properly, last logs I saw from you that wasnt the case yet
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It should be the public url of your csmm, so smth like http://csmm.example.com
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Check your CSMM_HOSTNAME env var (and make sure that gets updated on the remote too)
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
Might actually be reverse lookup
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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..
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
curl localhost:1337 is unreachable
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
seems caddy is my issue and my brain is done trying to figure it out
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yea the bot settings arent my issue
Thursday, December 7, 2023
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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?