self-host-csmm-support

textPage 82 of 373
50 messages on this page
Monday, December 19, 2022
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
That'd bypass DNS and nginx
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
To confirm, you can try this on the host:
curl localhost:1337
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah that seems likely
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
getting a 502 when trying to pull up the site
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
maybe that's a dns/nginx issue
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
yeah tried to hit the website at port 1337 and nothing
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Looks like a successful boot! Did you try accessing CSMM?
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
yeah, wasn't sure what info to post so was waiting for someone to ask for something more specific.
> node app.js

CSMM version: 2.1.0
No Discord client ID and/or client secret given in dotenv. Discarding Discord passport configuration
--------------------------------------
WARNING
You are not using https in your CSMM_HOSTNAME. This is insecure!
Please consider adding a reverse proxy to your deployment
WARNING
--------------------------------------
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!
debug: The `sails.config.security.cors.headers` config has been deprecated.
debug: Please use `sails.config.security.cors.allowRequestHeaders` instead.

debug: Warning: since `sails.config.session.cookie.secure` is not set to `true`, the session
debug: cookie will be sent over non-TLS connections (i.e. with insecure http:// requests).
debug: To enable secure cookies, set `sails.config.session.cookie.secure` to `true`.
debug:
debug: If your app is behind a proxy or load balancer (e.g. on a PaaS like Heroku), you
debug: may also need to set `sails.config.http.trustProxy` to `true`.
debug:
debug: For more help:
debug:  • https://sailsjs.com/config/session#?the-secure-flag
debug:  • https://sailsjs.com/config/session#?do-i-need-an-ssl-certificate
debug:  • https://sailsjs.com/config/sails-config-http#?properties
debug:  • https://sailsjs.com/support
debug:
info: Initializing custom hook (`discordChatbridge`)
info: Started the system stats gathering interval
info:
info:                .-..-.
info:
info:    Sails              <|    .-..-.
info:    v1.5.2              |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------'
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__
info:
info: Server lifted in `/usr/src/app`
info: To shut down Sails, press <CTRL> + C at any time.
info: Read more at https://sailsjs.com/support.
info: Initializing custom hook (`gbl`)
info: Initializing custom hook (`sdtdLogs`)
info: Reloaded bans for 0 servers! - Took 37 ms
info: Initializing custom hook (`discordBot`)
warn: No Discord bot token was given, not logging in. This is probably not what you wanted!
info: Initializing custom hook (`economy`)
info: Initializing custom hook (`highPingKick`)
info: Initializing custom hook (`historicalInfo`)
info: HOOK: countryBan - Initialized 0 country ban instances
info: HOOK: economy - Initializing 0 servers```
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Would you mind posting the logs? It's a bit hard to debug from the screenshot you posted 😉
Sunday, December 18, 2022
Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
No content
image.png

image.png

PNG14.0 KB

Avatar for aab6bd5147cba5a359297580a554b240275b2aba4a6400280573845136c5e2d6
User aab6bd
so yesterday set up docker stuff from 7dtd, got that all working with cpm and alloc_fixes, but then when setting up a docker-compse for csmm, the csmm-web container get's stuck in Up (unhealthy)
not really sure what's going wrong, can't find anything in the logs
Tuesday, December 13, 2022
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
no worries
Avatar for 392ae3e36967cca9c0b11bbc95d503296568d3c7f761ce284a6f7f22993ed8d8
User 392ae3
Changing the order fixed it, thank you @User 36612002 !
Avatar for 392ae3e36967cca9c0b11bbc95d503296568d3c7f761ce284a6f7f22993ed8d8
User 392ae3
Gotcha, restarting the server now
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
if that returns st prefix too, thats the problem
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
hccp list
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
so that means loading cpm later than st is the solution
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
cpm will hijack st commands
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
and hide both prefixes
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
if you use cpm to hide commands from chat with hccp
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
but
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
that would prevent cpm from even "seeing" st commands
Avatar for 392ae3e36967cca9c0b11bbc95d503296568d3c7f761ce284a6f7f22993ed8d8
User 392ae3
I actually have different prefixes for the two, but let me try 🙂
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
for example
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
zCSMM_Patrons
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
rename folder from 1CSMM_Patrons to whatever comes after (S)ervertools
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
so load cpm last
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
im guessing you use hccp to hide commands from chat and have same prefix for st and cpm
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
if you use both, you ll have to choose one for those
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
which mod handles chatnames, hide commands and chatcolor?
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
depends
Avatar for 392ae3e36967cca9c0b11bbc95d503296568d3c7f761ce284a6f7f22993ed8d8
User 392ae3
You mean ST?
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
then there shouldnt be any chatmsg hijacking going on
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
only thing to make sure of is to load the mod that handles chatnames, hide commands and chatcolor last alphabetacally
Avatar for 392ae3e36967cca9c0b11bbc95d503296568d3c7f761ce284a6f7f22993ed8d8
User 392ae3
Hi there!
I am using Server Tools along with CSMM and the commands for ST are handled by CSMM, as per the log below:
Chat handled by mod 'CSMM Patrons': /st_command_here
In a few of my servers, I don't even have CSMM commands enabled. And this issue still persists. Oddly enough, this is new. I never had this problem before.
Anyone experienced this before?
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
when i find some moti ill make docu for it
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Nice stuff man!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Sweet! Always knew it was possible, just needs someone who's not a Windows noob to give it a try hehe
Monday, December 12, 2022
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
CSMM is drunk again
image.png

image.png

PNG5.4 KB

Sunday, December 11, 2022
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
#csmmdockeronwindows
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
No content
image.png

image.png

PNG343.3 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
#sundayboredom
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
im actually running csmm as docker containers on windows since just now
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
uhm...
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
eeeh
Saturday, December 10, 2022
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Thank you!
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Doing that now.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Looks good, make sure to give CSMM a restart now so everything is properly initialized