self-host-csmm-support
textPage 72 of 373
50 messages on this page
Sunday, March 12, 2023
User f5d96f
thanks and sorry for the inconvenience
User bddf69
Yep, Discord changed the way bots are supposed to interact with messages
User f5d96f
ignoring message and accept only command
User f5d96f
yup i just find this , i see you changed how the bot react
User bddf69
Are you using slash commands? Try typing
/ in your Discord chat box, it should pop up a little help menu allowing you to browse the different commandsUser f5d96f
hmm I dig and unknow what happen I make a new install of csmm last version with the same discod bot id then the old install ,
new database ,
the problem the bot don't reply to command at all , pm and channel
the bot post update of the server like it should
the chatbridge work like it shoudl
in log I see the bot got pm no error ?
new database ,
the problem the bot don't reply to command at all , pm and channel
the bot post update of the server like it should
the chatbridge work like it shoudl
in log I see the bot got pm no error ?
Saturday, March 11, 2023
User 7043bc
thanks
User bddf69
You need to link your Discord account to CSMM, you can do it on your profile page (top right)
User aee541
No content
User 7043bc
I assume that this error is not due to me?
User 7043bc
Ok, fuck it, I'm too dumb for this shit.
I give up, I can't get it right. I better use au.csmm.app or I'll throw myself in front of a train
I give up, I can't get it right. I better use au.csmm.app or I'll throw myself in front of a train
Wednesday, March 8, 2023
User 7043bc
That is very nice. I appreciate it very much.
I will then continue to bother you this weekend <:10outof10:479231262192566273>
I will then continue to bother you this weekend <:10outof10:479231262192566273>
User bddf69
Please do not worry about that, happy to help with whatever method you choose 😉
User 7043bc
Maybe I'll give it another try at some point.
User 7043bc
I think in my case that would make sense. Of course, I also don't want to be annoying unnecessarily.
User bddf69
You can setup your server at au.csmm.app or us.csmm.app or eu.csmm.app (pick the one closest to you)
User bddf69
Maybe I can ease your pain a little though. Since you are a contributor, you can use the managed instances from me. Setup is a lot simpler there than doing it yourself
User bddf69
iirc, the container is called
cache by defaultUser bddf69
It's trying to connect to a Redis at 127.0.0.1 but that's not what you want in a Docker setup
User 7043bc
The error I'm getting is "ECONNREFUSED"
7-days-to-die-server-manager-csmm-web-1 | error: Failed to lift app: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379 {"address":"127.0.0.1","code":"ECONNREFUSED","errno":-111,"port":6379,"stack":"Error: connect ECONNREFUSED 127.0.0.1:6379\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)","syscall":"connect"}
I followed the instructions on this site:
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04
Ports are open and the password in .env is also correct.
otherwise I don't know what to look for, or what causes the error in my case :/

openports.png
PNG • 241.4 KB
User 743433
HI, i get this error after starting my wreckfest server:
002b:err:module:import_dll Library VCRUNTIME140_1.dll (which is needed by L"Z:\AMP\wreckfest\361580\wrapper\GNS\x64\libprotobuf.dll") not found
002b:err:module:import_dll Library VCRUNTIME140_1.dll (which is needed by L"Z:\AMP\wreckfest\361580\wrapper\GNS\x64\libprotobuf.dll") not found
Any idea how i can fix it?
Monday, March 6, 2023
User bddf69
If you're using the Docker containers, there's no need to run db:migrate yourelf, the container will do that for you
User 7043bc
I'm really a bit confused right now.
If I followed the docker instructions and used the docker env example file, why is it using host?
If I followed the docker instructions and used the docker env example file, why is it using host?
Sorry, I don't understand it right now.
I just don't know what to look for.
User bddf69
If you look at the logs for the container, you'll see an error. I predict the error will be something about not being able to connect to the database
User bddf69
You are confusing 2 things, you're using the docker env example but you are running on the host
User 7043bc
so the only image that is not runnin rn is "7-days-to-die-server-manager_csmm-web"

csmm.png
PNG • 24.8 KB
User 7043bc
ok, on the bottom of the .env file I missed something.
I changed it to the 7-days-to-die-server-manager folder, where the .json files are located.
I changed it to the 7-days-to-die-server-manager folder, where the .json files are located.
Importing
When this is set, CSMM will try and find json files in this location and import them as servers
CSMM_IMPORT_FROM_DIR=/home/csmm/7-days-to-die-server-manager
but the error on the screenshot remains the same*
Sunday, March 5, 2023
User bddf69
Do you have a .env file?
User 7043bc
ok thanks, I changed that.
So I did all the prev. steps. Created a user and got the latest files from github.
"# unzip is required for one of the setup scripts
Replace apt with your distributions package manager if needed
apt install unzip
git clone https://github.com/CatalysmsServerManager/7-days-to-die-server-manager
cd 7-days-to-die-server-manager
npm install --only=prod
"
cd 7-days-to-die-server-manager
npm install --only=prod
"
Now, I was about to run the "npm run db:migrate" script, but it's giving me some errors. Any ideas why?

npm_run_dbmigrate.png
PNG • 19.7 KB
User bddf69
See here, you need to use the internal Docker DNS names

image.png
PNG • 108.7 KB
User 7043bc
My .env file looks like this one: https://docs.csmm.app/en/csmm/self-host/configuration.html#env-file

env1.png
PNG • 74.3 KB
Saturday, March 4, 2023
User bddf69
Did you pick the docker-based .env file from the repo?
User bddf69
It looks like it tries to connect to a database on your host (127.0.0.1), but you are running in Docker
User 7043bc
I stopped the previously running apache and mysql server, it did nothing, the services restart anyway.
Unfortunately I can't figure it out from the logs.
User 7043bc
Thanks.
As you can see on the screenshot, 2 services restart again and again.
As you can see on the screenshot, 2 services restart again and again.
I had already set up an apache and mariadb server before. Is this why the services always restart because the ports are already occupied? Is this possible?
If this is the case, can I change the ports for csmm-csmm-web-1 and csmm-db-1 somewhere?

docker.png
PNG • 26.1 KB
User bddf69
Those values should be part of your .env file, see here; https://docs.csmm.app/en/CSMM/self-host/configuration.html
User 7043bc
does anyone have any ideas? I really don't know how to proceed.
I would be very grateful.
I would be very grateful.
Friday, March 3, 2023
User 7043bc
Thank you. I've made more progress. I had to comment out "#image" like you said and comment out "build". Also, I had done something wrong. My mistake was that I had 2 compose files.
Say docker-compose.yml and .env was the same.... Really stupid of me...
Say docker-compose.yml and .env was the same.... Really stupid of me...
So far so good. Now I could use some more help though.
"TIP
Make sure to use the .env.example.docker as base for your config. You should use docker networking to route CSMM to other services as well.
Make sure to use the .env.example.docker as base for your config. You should use docker networking to route CSMM to other services as well.
DBSTRING=mysql2://csmm:your-db-password@db:3306/csmm
REDISSTRING=redis://:your-redis-password@cache:6379
"
REDISSTRING=redis://:your-redis-password@cache:6379
"
Is
DBSTRING=mysql2://csmm:your-db-password@db:3306/csmm
REDISSTRING=redis://:your-redis-password@cache:6379
REDISSTRING=redis://:your-redis-password@cache:6379
also part of the compose-file?
Here are some logs if that helps.

csmmprogress.png
PNG • 43.2 KB
User bddf69
Can you check if there's maybe some tabs in there instead of spaces? Yaml can be fussy about that
User bddf69
The exact same error?
User bddf69
Can you try uncommenting these
image lines and commenting the build lines?
image.png
PNG • 61.7 KB
User 7043bc
In theory everything looks fine, but in practice it still doesn't work for me. I really do not know where the problem lies

yaml_validate.png
PNG • 91.6 KB




