self-host-csmm-support

textPage 79 of 373
50 messages on this page
Saturday, January 7, 2023
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
You mean this?
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor >
Active: active (running) since Sat 2023-01-07 11:26:31 UTC; 10min ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 846 (redis-server)
Tasks: 4 (limit: 1137)
Memory: 2.4M
CGroup: /system.slice/redis-server.service
└─846 /usr/bin/redis-server 127.0.0.1:6379
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I fear the Redis server is either failing or it died and doesn't come back up
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Hmm the error messages are very vague but can you try and take a look at Redis on your image?
Friday, January 6, 2023
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Verbose logs

message.txt

TXT5.1 KB

Thursday, January 5, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah, don't fill in the Discord config and CSMM will boot without it
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Hi, I'll look at the logs in a while, but I have another question, is it possible to install csmm without the discord bot?
Wednesday, January 4, 2023
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
journalctl --boot=-1
will dump the previous boot's logs.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
:(
Can you post logs or any more info please?
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Sorry to bother you again, but it doesn't work, when csmm starts it shows neither the log nor the chat, but most of the attempts go back to the boot loop 😫
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Hahahaha, challenge ahead!!!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
But, fair warning: it's a deep, deep rabbit hole :P
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
If you want to investigate more, I think there'll be related messages in kernel logs. You can check it with the
dmesg
command
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Ok, thanks @User 22055452
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
CSMM is written in javascript, it doesn't have much low-level control over memory
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It should start using swap, if it's available. But that's more of a Docker/OS responsibility rather than CSMM
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Yeah
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Does the machine have swap enabled?
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Sorry, you've got the reason, was memory, with 2gb works fine, but inage don't use swap memory?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Or if it doesnt exist there yet, create the variable :p
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You can find that
CSMM_LOGLEVEL
variable in
/etc/csmm_version
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Hmm okay, it seems to be failing when initializing hooks inside the worker. It's hard to tell what's going wrong exactly though, could you try setting
CSMM_LOGLEVEL
to
verbose
and then collect logs again please?
Tuesday, January 3, 2023
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
with top
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Where are you getting that number? If you're looking at the DO dashboard, it wont be accurate for situations like this
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
The maximum consumption of ram is just before the crash, 600M
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Hmm can you try and keep an eye on memory usage of your droplet? It might be hitting the max RAM
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
This is what appears in the log

message.txt

TXT3.0 KB

Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
Ah, yeah. If it's not just for parsing later I'd push for removing the spurious errors. But barring that I can't help so I'll stfu 🙂
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Ok, I'm going to try it, I'll have to be quick
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
First,
docker container ls
to get a list of containers, take note of the IDs here
Then
docker logs -f <container id>
to fetch the actual logs
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
I mean container, how to see logs?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
To monitor this, I'd look at the CSMM logs and do a grep for
SSE
. That should get you most of the related messages
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
There indeed aren't really docs for that. The best I can give you is a link to the code 🙈
SSE_RATE_LIMIT_AMOUNT
logs per
SSE_RATE_LIMIT_MINUTES
minutes
If you want CSMM to take more logs, the TLDR is; make
SSE_RATE_LIMIT_AMOUNT
higher and/or
SSE_RATE_LIMIT_MINUTES
lower
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
CSMM does rate-limiting on how many logs it ingests from game servers to prevent from getting overloaded. That's what Lemon is aiming at 😄
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You mean the entire OS fails to start? That's... weird :/
If you mean the container image, can you take a look at the container logs? There's likely to be an error in there
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
I would just run a
cron
command every minute or so that clears the offending lines with
sed

https://www.linuxshelltips.com/remove-lines-from-file-using-sed-command/
Avatar for 905c0a56a0a777ddf393d2d6e5745b1b5a85a184b26f68b3bd0eae8cc04c4c26
User 905c0a
Are you running on linux?
Avatar for a83fb8227c6bdaa3d7877be6d26cec29b3d791dab4918184c545ad4c3e9edc1b
User a83fb8
I'd like to experiment with changing my log rate limit (throttle) if at all possible, but I haven't seen any information on this in the channels or docs. There is frequent and relentless log spam going on that I can't get rid of, the 7dtd assembly edits from Prisma don't include the lines I'm getting, they are probably specificly problematic to the overhaul I'm hosting (DF).
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Thanks, I have v18, I'm going to install v16
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
iirc was told not to go higher then that atm...
Monday, January 2, 2023
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
Idk if this is a factor for DO hosting, but make sure your node is running version 16... CSMM 2.0+ requires that...
Check with command:
node -v
Avatar for 75af130de3ac03b15f3320c12e61f75a1ccd584fd01130daa11f242284ac0a7b
User 75af13
Hi, I have installed the digital ocean image and only got version 1.28 to work, versions 2.0 and 2.1 won't boot with the same settings, the image boots for about 15 seconds and stops, keeps looping and fails to load , I have updated node and docker but it has not worked
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
You can change the permission level in the
cpmsettings.xml
<ChatCommandPermissions_bed>0</ChatCommandPermissions_bed>
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
bed is an admin cpm command
Avatar for 180de505fbc6b656f84d4fce15637e1a6dfc114c1a4dcfd628a3a0b94cf39c2a
User 180de5
Why would a player get you are not allowed to run this command, hen they are doing "/bed"
Friday, December 30, 2022
Avatar for 180de505fbc6b656f84d4fce15637e1a6dfc114c1a4dcfd628a3a0b94cf39c2a
User 180de5
thank you !!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
yeah indeed
Avatar for 180de505fbc6b656f84d4fce15637e1a6dfc114c1a4dcfd628a3a0b94cf39c2a
User 180de5
and the cpm map and such, yes?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Depends, if you want people to be able to use the web shop (but they could do it from ingame too)
Avatar for 180de505fbc6b656f84d4fce15637e1a6dfc114c1a4dcfd628a3a0b94cf39c2a
User 180de5
csmm that is..
Avatar for 180de505fbc6b656f84d4fce15637e1a6dfc114c1a4dcfd628a3a0b94cf39c2a
User 180de5
is there any advantage to add this to the public space for user connecting to my server?