self-host-csmm-support

textPage 28 of 373
50 messages on this page
Tuesday, January 2, 2024
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
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

image.png

PNG β€’ 105.3 KB

Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
everyone has permission = to the player role, even if its unassigned. try creating a role called test
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
This is for the test
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
are you trying to set the "player" role?
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
I checked , the role is not assigned
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
did you check if the role got assigned?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
That last error you showed is probably not an issue
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
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
image.png

image.png

PNG β€’ 8.1 KB

image.png

image.png

PNG β€’ 8.6 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
'playernumberid' does not exist
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Try player.entityId like the docs show
image.png

image.png

PNG β€’ 63.7 KB

Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
I personally have not found anything useful in this regard.
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
I took the information from here
https://docs.csmm.app/en/csmm/functions.html?
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
and there was nothing useful there?
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
yes
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
have you read through the documentation?
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
I tried it, it still gives an error ((((
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
get rid of ()
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
Try {player.entityId}
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
cata is at work right now.
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
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 ((((
Avatar for 62c09ba9e1337f44774ecc48f0f1ba8c1d3a58c0168c7eef9720530f73a42934
User 62c09b
Good day, please help me, I can't understand why it gives an error in the command
image.png

image.png

PNG β€’ 97.3 KB

image.png

image.png

PNG β€’ 44.5 KB

image.png

image.png

PNG β€’ 39.4 KB

Monday, January 1, 2024
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
How long we talking @User 22055452 🀣
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Or just wait a while longer until the timeout happens πŸ˜„
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
so just checked quickly as they were open.. and all are the same :/
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ok i shall take a look a little later πŸ™‚ thanks
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
Did you add them to the shop?
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
what do you mean they are not showing up?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Possibly it was just restarting or something
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
That's CSMM not being able to connect to your gameserver
Friday, December 29, 2023
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
anything to be concered about?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
just checked my log seen this..
SSE error for server 1 {"error":{"message":"connect ECONNREFUSED MYSERVERIP","type":"error"}}
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
yeah just lookin those up at the moment.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Iirc there's some config possible in pm2 even to stop restarting after a certain amount of crashes
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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-loop
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User 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 that
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 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.
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
heres my look (i took the sensitive info out :))

prod.log

LOG β€’ 496.7 KB

Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
i can't work out why its restarting and blocking the chat bridge though
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Make sure your CSMM is stable, no continuous restarts otherwise you'll encounter the same issue
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
after reading the logs i see this HOOK SdtdDiscordChatBridge:initialize - Initialized 1 chatbridge(s) but soon after i start seeing the above
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
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
info: Destroying SSE <--- this?
info: Starting SSE<---?
info: Opened a SSE channel for server 5 <----?
info: Started the system stats gathering interval
error: Server failed to start.
info: 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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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