self-host-csmm-support

textPage 63 of 373
50 messages on this page
Saturday, June 10, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
What does the frontend show when you try to add a server?
Avatar for 072e3db119ada817e9e13a7f7dd6665d481b7943f54563d3b706852ef3058f7a
User 072e3d
already add token via telnet
Avatar for 072e3db119ada817e9e13a7f7dd6665d481b7943f54563d3b706852ef3058f7a
User 072e3d
No content

message.txt

TXT β€’ 5.1 KB

Avatar for 072e3db119ada817e9e13a7f7dd6665d481b7943f54563d3b706852ef3058f7a
User 072e3d
This is log output :
Avatar for 072e3db119ada817e9e13a7f7dd6665d481b7943f54563d3b706852ef3058f7a
User 072e3d
Hi everyone, I got an error while trying to add a server but no useful logs is given. I'm a bit lost. Already have webserver admin at port 8080 and Allocs at 8082
Thursday, June 8, 2023
Avatar for 5029b3701b4b501d3681476ae7fc8045ee96215d4ec3c4986f813eedbfa32344
User 5029b3
Done.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
codeblocks!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ugh I can't get the styling right haha but I hope that's clear
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Oh and if you use triple `'s like this it should look better
` ` `
aaa
` ` `
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
All credits for that goes to Prisma πŸ˜‰
Avatar for 5029b3701b4b501d3681476ae7fc8045ee96215d4ec3c4986f813eedbfa32344
User 5029b3
Cheers for that, reformatted! Thank you for making shutdownba in the first place!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Thanks for sharing the solution! πŸ˜„
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It likes them a bit too much I'd say πŸ˜„
If you want to avoid that styling, you can put the script in a code block with triple `
Avatar for 5029b3701b4b501d3681476ae7fc8045ee96215d4ec3c4986f813eedbfa32344
User 5029b3
Discord doesn't like those hashes..
Avatar for 5029b3701b4b501d3681476ae7fc8045ee96215d4ec3c4986f813eedbfa32344
User 5029b3
So what I've come up with is the following two little bash scripts, althougt I'm not sure I'm doing things correctly (But I am getting a backup πŸ˜… ) :
shutdown.sh:
#!/usr/bin/expect
spawn telnet localhost 8081
set timeout 10
send "saveworld"
send "shutdownba 0"
send "exit"
backup.sh
#!/bin/bash

# What to backup.
backup_files="/home/sdtdserver/.local/share/7DaysToDie/Saves"

# Where to backup to.
dest="/home/sdtdserver/backups"

# Create archive filename.
day=$(date +%y-%m-%d_%H-%M)
hostname=$(hostname -s)
archive_file="$hostname-$day.tgz"

# Print start status message.
echo "Backing up $backup_files to $dest/$archive_file"
date
echo

#shutting down the server with bloodmoon aware.
/home/sdtdserver/shutdown.sh > /dev/null 2>&1

#Stopping the gameserver
/home/sdtdserver/sdtdserver stop > /dev/null 2>&1

# Backup the files using tar.
tar -czf $dest/$archive_file $backup_files

#Starting the gameserver
/home/sdtdserver/sdtdserver start > /dev/null 2>&1

# Long listing of files in $dest to check file sizes.
ls -lh $dest

# Print end status message.
echo
echo "Backup finished"
date

# Long listing of files in $dest to check file sizes.
ls -lh $dest
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
http://joxi.ru/12MXbvvU8zOvym
Thank you! I'm happy!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Try pulling the repo again (so package.lock is the same as on github) and then run
npm ci
to do a clean install
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ah that probably means you overrode versions of the dependencies
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
When i'm installing CSMM it was problems with some modules in node_modules directory. And i installed them with npm install
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
csmm@User 494161917:~/7-days-to-die-server-manager$ NODE_ENV=production npm run start
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
How are you starting CSMM? What command do you use?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Okay, I browser to the CSMM port directly and assets are not loading there either so it's not an issue with Caddy config, it's an issue with your CSMM install
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
A year is a long time
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
I start CSMM. One year ago I installed CSMM and there was no big problems.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You're self hosting, there's weird stuff going on in your environment, it's extremely hard for me to help you because it is your environment
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Seems to be completely offline right now
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
What I need to do?
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Yes i can
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Thanks, do you have the CSMM port available from the web? Can you try browsing to that and seeing if the assets load then?
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I'd suggest to schedule a CSMM cronjob with
shutdownba
in it (or do it on the system if you want/don't use CSMM). This will shut down your server but will not bring it back up.
LGSM can bring it back up though, there's a monitor feature there which checks if your server is online every x minutes. If it's offline, it restarts it.
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
moment
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
yes
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Hmm can you show me the output of these commands please?
ls -la /home/csmm/7-days-to-die-server-manager

and
ls -la /home/csmm/7-days-to-die-server-manager/.tmp
?
Avatar for 5029b3701b4b501d3681476ae7fc8045ee96215d4ec3c4986f813eedbfa32344
User 5029b3
Any recommendations for a elegant way of scheduling shutdowns for backups while being bloodmoon aware using the shutdownba command? I am using linuxgsm and currently have a bash script that shuts down the server, copies the Save then starts it up again.
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Done it, console log https://pastebin.com/ptPwTeiL
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Sorry, should've been more precise, I meant setting the CSMM logs to verbose
Wednesday, June 7, 2023
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It's impossible for me to debug it like this, sorry I have no clue what's going wrong
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Have you tried setting the log level to debug or verbose? That might show more info
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
I use caddy. Config http://joxi.ru/ZrJ3bvvHkB6nbm
In dev tools http://joxi.ru/Vm6pGVVCKp73VA
If I trying to open asset http://joxi.ru/zANxbvvTw9K1gm
console log as attach.

message.txt

TXT β€’ 8.1 KB

Sunday, June 4, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Have you checked your browser dev tools? It looks like your web server is not configured correctly?
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Anybody could you help me with this problem. I don't understand why assets not working.
Saturday, June 3, 2023
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
Solve it.
It is need to use redis://:password@127.0.0.1:6379 instead redis://127.0.0.1:6379 in .env
Friday, June 2, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
The error being thrown is coming from this code, so def Redis related I'd say
https://github.com/sailshq/machinepack-redis/blob/master/machines/get-connection.js#LL140C11-L140C39
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Do you have a password set on your Redis server? It looks like you're not passing that through properly
Avatar for bbeab6fa8af96f60b4eb0ecc9471e10299d5a1d8d9f4f0b3c2f42a4978929d93
User bbeab6
How can i check redis connection to csmm on debian?
csmm@User 494161917:$ sudo netstat -lnp | grep redis
[sudo] password for csmm:
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 463967/redis-server
tcp6 0 0 ::1:6379 :::* LISTEN 463967/redis-server
csmm@User 494161917:
$ node -v
v16.20.0
csmm@User 494161917:~$ npm -v
9.6.7
I installed 16 version because it was in doc.