self-host-csmm-support
textPage 28 of 373
50 messages on this page
Tuesday, January 2, 2024
User 62c09b
I tried for the role of Admin, I just created it, there is already some progress, but I can't understand why he writes that unknown player

image.png
PNG β’ 105.3 KB
User 374c5d
everyone has permission = to the player role, even if its unassigned. try creating a role called test
User 62c09b
This is for the test
User 374c5d
are you trying to set the "player" role?
User 62c09b
I checked , the role is not assigned
User bddf69
did you check if the role got assigned?
User bddf69
That last error you showed is probably not an issue
User 62c09b
I tried using an argument to manually enter the player's Entity ID , but when I try to enter it as in the documentation, the error also shows
I also thought maybe because of the Russian names, that's why I changed the names to ENG and the error is still
User bddf69
'playernumberid' does not exist
User 62c09b
I personally have not found anything useful in this regard.
User 62c09b
I took the information from here
https://docs.csmm.app/en/csmm/functions.html?
https://docs.csmm.app/en/csmm/functions.html?
User 374c5d
and there was nothing useful there?
User 62c09b
yes
User 374c5d
have you read through the documentation?
User 62c09b
I tried it, it still gives an error ((((
User 374c5d
get rid of ()
User 374c5d
Try {player.entityId}
User 374c5d
cata is at work right now.
User 62c09b
@User 22055452
please forgive me for bothering you and mentioning, could you suggest something in this situation that you can come up with??
since I've been struggling with this for 3 weeks ((((
please forgive me for bothering you and mentioning, could you suggest something in this situation that you can come up with??
since I've been struggling with this for 3 weeks ((((
Monday, January 1, 2024
User bddf69
User 0cec7b
How long we talking @User 22055452 π€£
User bddf69
Or just wait a while longer until the timeout happens π
User bddf69
CSMM caches your items list for performance reasons. You can delete this key from Redis to get it to update now https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/api/controllers/SdtdServer/available-items.js#L52
Sunday, December 31, 2023
User 0cec7b
so just checked quickly as they were open.. and all are the same :/
User 0cec7b
ok i shall take a look a little later π thanks
User 963f55
make sure you are using the name found in the item.xml , as some mods have a localization file that displays a totally different name in game, so they arent the same... this could be your issue.... worth a look
User 0cec7b
so they are added to the server as a mod and all working in game, but when adding to the shop they are not present to select to add
User 374c5d
Did you add them to the shop?
User 374c5d
what do you mean they are not showing up?
User 0cec7b
ive added some items (weapons) via mod on the server they all work, but they aren't showing up in CSMM shop. does CSMM need a restart to refresh?
Saturday, December 30, 2023
User bddf69
Possibly it was just restarting or something
User bddf69
That's CSMM not being able to connect to your gameserver
Friday, December 29, 2023
User 0cec7b
anything to be concered about?
User 0cec7b
just checked my log seen this..
SSE error for server 1 {"error":{"message":"connect ECONNREFUSED MYSERVERIP","type":"error"}}
User 0cec7b
yeah just lookin those up at the moment.
User bddf69
Iirc there's some config possible in pm2 even to stop restarting after a certain amount of crashes
User bddf69
But I would def keep an eye on the output of
pm2 monit or w/e it is and see if your CSMM goes into a crash-loopUser bddf69
It's better to run it non-root but you're the sysadmin π
If you want pm2 to run as root, I guess you can just do
sudo pm2 ... to achieve thatUser 0cec7b
so.. firstly i apologise... it was late.. (no excuse), so i think the problem is pm2 again.. even though i told the process to stop it persisted. i have uninstalled pm2 now and run a fresh install of CSMM and ive had no "restarts" or "chatbridge issues", now the task is to set pm2 up again and somehow get it to stop starting with the CSMM user (this caused issues) and get it to run with just root.
User 0cec7b
when adding the bot to the server via auth i get this (bot still connects)
[app] error: HELPER:discordRequest - request errored {"size":0,"timeout":0}
[app] error: Error: Not Found
[app] error: HELPER:discordRequest - request errored {"size":0,"timeout":0}
[app] error: Error: Not Found
User 0cec7b
what does that error mean? any ideas?
[app] info: Initialized GBL for 0 servers! - Took 26 ms
[app] error: undefined
[app] info: Connected to Discord as CSMM#9578 - undefined guilds
[app] error: undefined
[app] info: Connected to Discord as CSMM#9578 - undefined guilds
User 0cec7b
i can't work out why its restarting and blocking the chat bridge though
User bddf69
Make sure your CSMM is stable, no continuous restarts otherwise you'll encounter the same issue
User bddf69
The reason the token resets is likely because you have something restarting CSMM over and over again, resulting in too many logins to Discord
User 0cec7b
after reading the logs i see this HOOK SdtdDiscordChatBridge:initialize - Initialized 1 chatbridge(s) but soon after i start seeing the above
User 0cec7b
right. so after all that my bot has decided to have its token rest again! because it has connected to discord over 1000 times! i'm lost for words on this... i really am..
the constant message i am seeing in the logs is:
Gathered system usage information. {"guilds":1,"players":2,"servers":1,"uptime":"00:42:57","users":5} <--- this is normal i know
[32minfo[39m: Destroying SSE <--- this?
[32minfo[39m: Starting SSE<---?
[32minfo[39m: Opened a SSE channel for server 5 <----?
[32minfo[39m: Started the system stats gathering interval
[31merror[39m: Server failed to start.
[32minfo[39m: Initializing custom hook (
Gathered system usage information. {"guilds":1,"players":2,"servers":1,"uptime":"00:42:57","users":5} <--- this is normal i know
[32minfo[39m: Destroying SSE <--- this?
[32minfo[39m: Starting SSE<---?
[32minfo[39m: Opened a SSE channel for server 5 <----?
[32minfo[39m: Started the system stats gathering interval
[31merror[39m: Server failed to start.
[32minfo[39m: Initializing custom hook (
discordChatbridge)the bot is all connected to the discord server and working the way it should but the token is reset by discord is over a period of 2 hours!!
i got around this last time by reinstalling CSMM i REALLY dont want to do that again so please someone help me!
Thursday, December 28, 2023
User bddf69
I see this part in your error log:
Expected token to be set for this request, but none was present at _RequestManager.resolveRequest (/home/csmm/7-days-to-die-server-manager/node_modules/@discordjs/rest/dist/lib/RequestManager.cjs:142:15)So something wrong with the token it seems? Double check if it's an active token





