self-host-csmm-support

textPage 81 of 373
50 messages on this page
Friday, December 23, 2022
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Players = ingame players
users = people that log into CSMM
Kind of the same but a different concept
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Did it populate a player or a user entry?
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
Well, that's good news then. And beyond my ability to help
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Which she can use just fine
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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).
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
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.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Mysql actually populated an entry for her. All info is there but discordId, which would be next step.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
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.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No. Regular characters only
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
upper limit of the auto-increment field
What is this?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Is there anything special about their steam profile?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Can they try with a different browser maybe?
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
Which is why I'm curious if it was put into the request properly.
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
cross site scripting or sql injection. Attack methods, which are often filtered out by removing specific characters.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
I'm guessing her name is filtered out with some kind of xss or sqli protection
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
Can she open the network tab of developer tools? What's posted as the userId?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Looking for new stuff to break?
Wednesday, December 21, 2022
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
not sure what was wrong but removed that line in the .env and readded it and now it works lol
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
okay, got it
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
nothing like setting up first time configs
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
that'd do it
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
yeah
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
or at least thing so, for admin in .env did "scmm"
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
oh, found the problem
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
yeah
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
If you set it up properly, it'll never do the check
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
yeah
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Did you set the donor tier for your install? It could be trying to check that
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
oh you need to set up discord hook, thought it was optional?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Looks like a missing Discord token?
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
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)"}
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
added the webtoken to the 7dtd server with permission 0 and set a token over 10 characters
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
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
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
no H4ckz0r blood
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
finally got it working, had 1377 in the .env >.>
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Did you change any config wrt what port CSMM runs on by any chance? Could be a misconfig with docker ports
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
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/
Avatar for 69bc42f7b8b141b52360d33ffb124546e22b38cbdef33762a9dcd736f19a5f7a
User 69bc42
hmm interesting
Avatar for 69bc42f7b8b141b52360d33ffb124546e22b38cbdef33762a9dcd736f19a5f7a
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.
Avatar for aee541746e268e44e47a2c9b5a7d9236a76b59837f2dad43622fd77182acd4d8
User aee541
No content
Tuesday, December 20, 2022
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
yes
image.png

image.png

PNG33.6 KB

Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You executed that on the server where CSMM runs right?
What does
ss -tlpn
output?
Monday, December 19, 2022
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
(assuming port 1337 is exposed in the compose file)