self-host-csmm-support
textPage 63 of 373
50 messages on this page
Saturday, June 10, 2023
User bddf69
What does the frontend show when you try to add a server?
User 072e3d
already add token via telnet
User 072e3d
This is log output :
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
User 5029b3
Done.
User bddf69
codeblocks!
User bddf69
Ugh I can't get the styling right haha but I hope that's clear
User bddf69
Oh and if you use triple `'s like this it should look better
` ` `
aaa
` ` `
aaa
` ` `
User bddf69
All credits for that goes to Prisma π
User 5029b3
Cheers for that, reformatted! Thank you for making shutdownba in the first place!
User bddf69
Thanks for sharing the solution! π
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 `
User 5029b3
Discord doesn't like those hashes..
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
User bbeab6
http://joxi.ru/12MXbvvU8zOvym
Thank you! I'm happy!
Thank you! I'm happy!
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 installUser bddf69
Ah that probably means you overrode versions of the dependencies
User bbeab6
When i'm installing CSMM it was problems with some modules in node_modules directory. And i installed them with npm install
User bbeab6
csmm@User 494161917:~/7-days-to-die-server-manager$ NODE_ENV=production npm run start
User bddf69
How are you starting CSMM? What command do you use?
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
User bddf69
A year is a long time
User bbeab6
I start CSMM. One year ago I installed CSMM and there was no big problems.
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
User bddf69
Seems to be completely offline right now
User bbeab6
What I need to do?
User bbeab6
User bbeab6
Yes i can
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?
User bbeab6
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.
User bbeab6
moment
User bbeab6
yes
User bddf69
Hmm can you show me the output of these commands please?
ls -la /home/csmm/7-days-to-die-server-managerand
ls -la /home/csmm/7-days-to-die-server-manager/.tmp?
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.
User bbeab6
Done it, console log https://pastebin.com/ptPwTeiL
User bddf69
User bddf69
Sorry, should've been more precise, I meant setting the CSMM logs to verbose
Wednesday, June 7, 2023
User bbeab6
User bddf69
It's impossible for me to debug it like this, sorry I have no clue what's going wrong
User bddf69
Have you tried setting the log level to debug or verbose? That might show more info
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.
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
User bddf69
Have you checked your browser dev tools? It looks like your web server is not configured correctly?
User bbeab6
Anybody could you help me with this problem. I don't understand why assets not working.
Saturday, June 3, 2023
User bbeab6
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
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
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
https://github.com/sailshq/machinepack-redis/blob/master/machines/get-connection.js#LL140C11-L140C39
User bddf69
Do you have a password set on your Redis server? It looks like you're not passing that through properly
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.
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.