self-host-csmm-support

textPage 70 of 373
50 messages on this page
Thursday, April 6, 2023
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
I am start over. will let u know but i have few things I need to know. Dose it have to be on the same server that 7d2d is on. If i read it right dose not. if not how much ram/ disk space u think it will take
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You can set the env var
CSMM_LOGLEVEL
for CSMM to 'debug' or 'verbose' to get a bunch more info about what's going on. That should help debugging I think
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
and the logs i way to get them thru portiner
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
see i do not know why its keep showing my router ip do think that is big part of it
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Have you tried setting the CSMM log level (and Caddy logs) to something like verbose? That might shed some light on what's going on. Should also check if the cookies are being properly transferred (for example, check that they're
Secure
cookies if you are on https). I see you're logging in with a local IP 10.x.x.x, maybe that is messing things up?
Wednesday, April 5, 2023
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Yip
image.png

image.png

PNG21.2 KB

Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
try DM the bot restart
Avatar for 4fdc81c51a7c6ad9c71c7a5ec68059e317da0832229f72be37b16418dd216d00
User 4fdc81
is there still a command to restart csmm in discord? I know it use de to be $restart
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
do we think its caddy being pain or something different. I am so close. Till I am able to to get pass this then its is dead in water. I have doing it 2 different ways and both just stop there. Can someone able to tell me some docs to read to find out more. I am willing to do the leg work just need the help to go the right way. I do not want someone to hold my hand or do it for me.
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
here is some info what i have to do is set the cors its own set. https://gist.github.com/ryanburnette/d13575c9ced201e73f8169d3a793c1a3 but this way over my head how to set it up.
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
the log still same

csmm_csmm-web_1_logs_1.txt

TXT7.7 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
caddy is stack with csmm
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
caddy:
restart: unless-stopped
image: caddy
ports:
- "80:80"
- "443:443"
- "443:443/udp"
command: caddy reverse-proxy --to csmm:1337 --from csmm.altoyda.us
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv
- $PWD/caddy_data:/data
- $PWD/caddy_config:/config
volumes:
caddy_data:
caddy_config:
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
have not try it yet but this what i have in my stack for caddy and caddyfile is blank
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
will try and let u know
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I do have this config in my Caddyfile, I don't remember details of this setup though, it's been so long ago 😄
http://x.csmm.app {
    reverse_proxy csmm-web:1337

  header Access-Control-Allow-Origin "*"
  header Access-Control-Allow-Methods "GET, OPTIONS"
}
Tuesday, April 4, 2023
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
what i can see but may be wrong its a cors error has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
this is report firefox give me

firefox_report.txt

TXT5.2 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
well still getting the logging in error and with this log hope someone can help. site is https and cloudflare is showing it getting hit and its is using my host name csmm.altoyda.us

logging_in_error.txt

TXT4.7 KB

Monday, April 3, 2023
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
was hoping to not add it to main name but think that is my pain at this min and i will be using Cloudflare
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
page is not working that way but here in bit will be change things to my main name. where i can add wildcards
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It should be something like https://csmm.servegame.com . No 1337 port
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Oh, what's the value of your CSMM_HOSTNAME right now?
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
No content

caddy.txt

TXT4.7 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
this what caddy is saying
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
for the .env
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
and i reply my steam key and made sure to get new copy of it
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
did and no go with firefox and brave
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I see
 error: Steam auth error - Failed to verify assertion (message: Invalid or replayed nonce)
Can you try clearing browser cookies and try logging in again?
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
still have the 505 error like in pic
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
that fix discord.js error
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Can you try enabling these two intents?
image.png

image.png

PNG188.6 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
https://pastebin.com/2zBRFq3n have a 505 error and discord.js error. is after my steam login and discord.js error is on health checks
brave_VOMA1TlYwH.png

brave_VOMA1TlYwH.png

PNG131.2 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
kk that what i did but not sure how to ply it to what is install or do i need to go thru cli
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Change the CSMM_HOSTNAME env var, that's what controls that
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
is there anyway to make this http://localhost:1337/ go to x.x.x.x:1337 after logging into steam it will load to start on x.x.x.x:1337 just fine its after logging steam part its go to localhost
Sunday, April 2, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
That looks like the mysql healthcheck, you can disable it in the compose ifle
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
kk guys anyone know how I can stop this spamming in logs db_1 | 2023-04-02 20:06:23 8 [Warning] Aborted connection 8 to db: 'csmm' user: 'csmm' host: '172.19.0.4' (Got an error reading communication packets)
sdtdserver_csmm_csmm-migrations_1 exited with code 0
db_1 | 2023-04-02 20:06:51 12 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
csmm-worker_1 | at WebSocketManager.createShards (/usr/src/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
csmm-worker_1 | at async Client.login (/usr/src/app/node_modules/discord.js/src/client/Client.js:232:7)
csmm-worker_1 | at async /usr/src/app/worker/worker.js:72:5 {
csmm-worker_1 | code: 'DisallowedIntents'
csmm-worker_1 | }
db_1 | 2023-04-02 17:59:03 93 [Warning] Aborted connection 93 to db: 'csmm' user: 'csmm' host: '172.18.0.4' (Got an error reading communication packets)
sdtdserver_csmm_csmm-worker_1 exited with code 1
db_1 | 2023-04-02 17:59:06 94 [Warning] Access denied for user 'root'@'localhost' (using password: NO) THIS IS FIX
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
and its looks like its discord
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
and now I am get Error [TokenInvalid]: An invalid token was provided I will have to get new ones looks like
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ahaa that's interesting, I'd def take a look in that direction then. I'm not sure what you have configured ofcourse, but I do know that Dockers networking also works with iptables. So those two might be clashing
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
well I have it locked down with Iptable. Here is a link to some of things I am using https://www.digitalocean.com/community/tutorials/how-to-implement-a-basic-firewall-template-with-iptables-on-ubuntu-20-04. I will reinstall it and let it clam down then restart it and let u know
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
The connection info looks OK from the logs (using Docker IPs I see). Unless you have some esoteric network configuration active, that should be OK.
Is it possible that the DB container stopped? If this is your first time running it, perhaps try just restarting the compose file?
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
I have few errors when I did the docker log. Has any one seen them, how to fix them or docs on them.
this is cause from my build is in a VM. I have not try the fix it spit at me yet. Wanted to see if there are more fix I can use to keep things like this from happen.
WARNING Memory overcommit must be enabled = 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.
This is a error I seen few times in the log. Is this something to think about or just move on.
error: Ignoring
sails.config.views.layout
...
error: Sails' built-in layout support only works with the default EJS view engine.
error: You're using a custom view engine, so you'll need to implement layouts on your own!
Now on to the big error. I know this Docker bridge network address IP. is this cause I do not have my Iptable open to ports 6379 & 3306? If so can some help with good Iptable to input. Or is this something doing with docker using different IP?
error: A hook (
orm
) failed to load!
error: Failed to lift app:
getConnection
failed ("failed"). Could not acquire a connection to the database using the specified manager.
Additional data:
error: Error: connect ECONNREFUSED 172.18.0.2:3306
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
Here a small extra question if I update will it break CSMM?
npm notice New major version of npm available! 8.19.4 -> 9.6.3
My docker-compose logs is at https://pastebin.com/5CK5c95V
Saturday, April 1, 2023
Avatar for a83fb8227c6bdaa3d7877be6d26cec29b3d791dab4918184c545ad4c3e9edc1b
User a83fb8
Spot on by the way, somehow a 1.6GB 7D log file was being generated so far
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
ooor you can adjust the config of CSMM so it allows more data but first option is a lot better :P
Avatar for a83fb8227c6bdaa3d7877be6d26cec29b3d791dab4918184c545ad4c3e9edc1b
User a83fb8
Thanks a bunch