self-host-csmm-support

textPage 32 of 373
50 messages on this page
Sunday, December 10, 2023
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
::?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
i had to add port to mine
Saturday, December 9, 2023
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
im still stuck on the discord auth uri issue
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
so far all good, even got discord bot going
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
maybe try apache its quite simple
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
im in but i had to disable https, so yeah something with caddy is busted lol
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
ok im closer, i put https but it only works in http, so im betting my caddy is wrong
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
im thinking its my steam api key is bad, renwing it now
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
have you looked at your logs?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
are you running https? or http?
it seems like its calling for the hostname but not getting it.
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
im getting there, im like a dog with a bone
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
its this
/***************************************************************************      *                                                                          *      * Uncomment the `onlyAllowOrigins` whitelist below to configure which      *      * "origins" are allowed to open socket connections to your Sails app.      *      *                                                                          *      * > Replace "https://example.com" with the URL of your production server.  *      * > Be sure to use the right protocol!  ("http://" vs. "https://")         *      *                                                                          *      ***************************************************************************/     onlyAllowOrigins: [       process.env.CSMM_HOSTNAME     ],
so i either have my hostname wrong which is odd cause eveything else is working
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yeah
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
have ou opened port 1337?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
so looks like a protection thing
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
[app] verbose: A socket was rejected via the `sails.config.sockets.onlyAllowOrigins` array.
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
is there nother port i need to open?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
did that, changed it to csmm.mydomain.org
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
then restart the service
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
yeah with that you need to change the hostname on the env file
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
but im working it out
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
no, now im having issues on steam login
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
there you go 🙂 hopfully you wont have the same issue im having with discord bot auth :/
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yup! and im in lol
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yeah i did that but is my web link like csmm.mydomain.com:1337 ?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
um it would be under your router for port forwarding.
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
question i have is how do i point to the specific box? put port number in since my router knows to move all traffic to that port to X machine?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
but if your used to caddy then go for it
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
i use apache2
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
now to install caddy
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
whoop
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
no errors so far
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
fully installed csmm?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
so it was the rasbian OS, wiped the disk, installed ubutnu server and im up so far
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
does the custom URL have to be populated? if so with what?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
all of the auth have been set up and all look good but can't seem to get passed this stage
Avatar for aee541746e268e44e47a2c9b5a7d9236a76b59837f2dad43622fd77182acd4d8
User aee541
No content
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
im having issues with discord auth its not working 😦
image.png

image.png

PNG9.5 KB

Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
thank you im in and im sorting things out
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
Yes it's normal. Use what i sent here to uncover all the map
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
im seeing this is this normal after the updated version? as it uses the same port as the dashboard?
image.png

image.png

PNG1.0 MB

Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
im having an issue with the allocs part of the install. ive uploaded all the relevent files etc but i can't access the legacy map
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
Curious if it's the rasbian OS, I might just wipe the whole thing and just install Ubuntu but then I gotta find my micro hdmi cable
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
I'll investigate more when I get home. I edited the code a bit so I could see where the error code was throwing.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I think the issue is at this line here, something goes wrong loading the base hooks https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/worker/worker.js#L58
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
In these log lines, it's coming from different processes. These lines have nothing to do with each other (worker vs app process)
image.png

image.png

PNG9.0 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Okay good, that means it's not a discord-related issue
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
error: undefined {"code":"blueprintsfunction() {\n        if (fn === null) throw new Error(\"Callback was already called.\");\n        var callFn = fn;\n        fn = null;\n        callFn.apply(this, arguments);\n    }E_HOOK_TIMEOUT"}
i added a little to error throw so i could see more