self-host-csmm-support
textPage 81 of 373
50 messages on this page
Friday, December 23, 2022
User bddf69
Players = ingame players
users = people that log into CSMM
users = people that log into CSMM
Kind of the same but a different concept
User bddf69
Did it populate a player or a user entry?
User 905c0a
Well, that's good news then. And beyond my ability to help
User 6ceaf4
Which she can use just fine
User 6ceaf4
She never got to the page where discord could be added. Failed right after the login using steam credentials green button (like the one from the voting site).
User 905c0a
Ah, ouch. And that points to an issue with discord's oauth. I had a problem with that on another service, I wound up having to wipe out my discord mfa then re-add it. Which turned into a huge ordeal.
User 6ceaf4
Mysql actually populated an entry for her. All info is there but discordId, which would be next step.
User 6ceaf4
Database has a sort of index number that auto increments... first player gets number 1, the next 2, and so on. The database needs to know what sort of number is that index number, and number types are limited. Let's say type A can only have 256 entries, B 1024, and so on. I made those numbers up btw
User 905c0a
Steam name != display name. Which is a huge pain. Some games use one, others use the other. And steam encourages you to set one of them to your real name, which... ugh, just please no.
User 6ceaf4
No. Regular characters only
User 23fa64
upper limit of the auto-increment field
What is this?
User bddf69
Is there anything special about their steam profile?
User bddf69
Can they try with a different browser maybe?
User 905c0a
Which is why I'm curious if it was put into the request properly.
User 905c0a
cross site scripting or sql injection. Attack methods, which are often filtered out by removing specific characters.
User 6ceaf4
As I was watching her stream, all seemed like ok there. Had her steam Id showing and all when she tried to go for it.
As for xss or sqli, I have no idea what that means lol
As for xss or sqli, I have no idea what that means lol
User 905c0a
I'm guessing her name is filtered out with some kind of xss or sqli protection
User 905c0a
Can she open the network tab of developer tools? What's posted as the userId?
User 6ceaf4
Look at me, posting questions here... so, we have a new mod and we asked her to go into our csmm page and link her discord and stuff. We found out we had reached the upper limit of the auto-increment field, and fixed that. I've even added her manually into the db, but she got an error, so I deleted her entry and asked her to do it by herself. When she click on the button to accept using her steam credentials, this is what she gets:
{"code":"E_MISSING_OR_INVALID_PARAMS","problems":[""userId" is required, but it was not defined."],"message":"The server could not fulfill this request (GET /api/user/serverswithpermission) due to 1 missing or invalid parameter."}Thursday, December 22, 2022
User 6ceaf4
Looking for new stuff to break?
Wednesday, December 21, 2022
User aab6bd
not sure what was wrong but removed that line in the .env and readded it and now it works lol
User aab6bd
okay, got it
User aab6bd
nothing like setting up first time configs
User bddf69
that'd do it
User bddf69
yeah
User aab6bd
or at least thing so, for admin in .env did "scmm"
User aab6bd
oh, found the problem
User aab6bd
yeah
User bddf69
If you set it up properly, it'll never do the check
User aab6bd
yeah
User bddf69
Did you set the donor tier for your install? It could be trying to check that
User aab6bd
oh you need to set up discord hook, thought it was optional?
User bddf69
Looks like a missing Discord token?
User aab6bd
oh wait there is an error
error: Sending 500 ("Server Error") response: Expected token to be set for this request, but none was present {"stack":"Error: Expected token to be set for this request, but none was present\n at _RequestManager.resolveRequest (/usr/src/app/node_modules/@discordjs/rest/dist/lib/RequestManager.cjs:142:15)\n at _RequestManager.queueRequest (/usr/src/app/node_modules/@discordjs/rest/dist/lib/RequestManager.cjs:115:46)\n at REST.raw (/usr/src/app/node_modules/@discordjs/rest/dist/lib/REST.cjs:56:32)\n at REST.request (/usr/src/app/node_modules/@discordjs/rest/dist/lib/REST.cjs:52:33)\n at REST.get (/usr/src/app/node_modules/@discordjs/rest/dist/lib/REST.cjs:37:17)\n at GuildManager.fetch (/usr/src/app/node_modules/discord.js/src/managers/GuildManager.js:274:43)\n at fn (/usr/src/app/api/helpers/meta/get-donator-status.js:38:53)\n at wrapper (/usr/src/app/node_modules/@sailshq/lodash/lib/index.js:3282:19)\n at Deferred.parley.retry [as _handleExec] (/usr/src/app/node_modules/machine/lib/private/help-build-machine.js:1016:29)\n at Deferred.exec (/usr/src/app/node_modules/parley/lib/private/Deferred.js:286:10)\n at Deferred.tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:11:23)\n at ret (eval at makeNodePromisifiedEval (/usr/src/app/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:14:23)\n at Deferred.toPromise (/usr/src/app/node_modules/parley/lib/private/Deferred.js:572:19)\n at Deferred.then (/usr/src/app/node_modules/parley/lib/private/Deferred.js:431:22)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)"}
User aab6bd
added the webtoken to the 7dtd server with permission 0 and set a token over 10 characters
User aab6bd
okay so got csmm up and running, but when trying to add the server it isn't working, click add after filling out the form then just nothing is added, no errors, nothing
User a506fe
no H4ckz0r blood
User aab6bd
finally got it working, had 1377 in the .env >.>
User bddf69
Did you change any config wrt what port CSMM runs on by any chance? Could be a misconfig with docker ports
User 374c5d
Unraid help should be direct over on 7DAC in the unraid channel. However, you need to add yourself as admin. Here's a tutorial on setting CSMM up on unraid https://7dac.net/hosting-csmm-on-an-unraid-server/
User 69bc42
hmm interesting
User 69bc42
Good evening/ morning i've set up cssm through unraid and when i try to create a server / add a server i get this error
Something went wrong while adding your server!
Join our Discord for support.
This instance is private and only CSMM system admins can add servers.
This instance is private and only CSMM system admins can add servers.
User aee541
No content
Tuesday, December 20, 2022
User 963f55
has anyone attempted cloudflare zero trust tunnel for self hosting? im starting to work out a plan for system/network overhaul and going down this avenue has my interest peaked.... would the reverse proxy (caddy) still be needed at this point?
User bddf69
You executed that on the server where CSMM runs right?
What does
ss -tlpn output?Monday, December 19, 2022
User aab6bd
got
curl: (56) Recv failure: Connection reset by peer
when trying 0.0.0.0:1337 instead got
curl: (52) Empty reply from server
User bddf69
(assuming port 1337 is exposed in the compose file)
