self-host-csmm-support

textPage 72 of 373
50 messages on this page
Sunday, March 12, 2023
Avatar for f5d96f9c7cec9aac714c4c02ee76408b756d7224d8d8583485df1c217d5a3413
User f5d96f
thanks and sorry for the inconvenience
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yep, Discord changed the way bots are supposed to interact with messages
Avatar for f5d96f9c7cec9aac714c4c02ee76408b756d7224d8d8583485df1c217d5a3413
User f5d96f
ignoring message and accept only command
Avatar for f5d96f9c7cec9aac714c4c02ee76408b756d7224d8d8583485df1c217d5a3413
User f5d96f
yup i just find this , i see you changed how the bot react
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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 commands
Avatar for f5d96f9c7cec9aac714c4c02ee76408b756d7224d8d8583485df1c217d5a3413
User 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 ?
Saturday, March 11, 2023
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
thanks
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You need to link your Discord account to CSMM, you can do it on your profile page (top right)
Avatar for aee541746e268e44e47a2c9b5a7d9236a76b59837f2dad43622fd77182acd4d8
User aee541
No content
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
I assume that this error is not due to me?
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
No content
csmm.app.png

csmm.app.png

PNG25.5 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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
Wednesday, March 8, 2023
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
That is very nice. I appreciate it very much.
I will then continue to bother you this weekend <:10outof10:479231262192566273>
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Please do not worry about that, happy to help with whatever method you choose 😉
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
Maybe I'll give it another try at some point.
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
I think in my case that would make sense. Of course, I also don't want to be annoying unnecessarily.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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)
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
iirc, the container is called
cache
by default
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User 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
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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"}
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

openports.png

PNG241.4 KB

Avatar for 7434334b98c45f74186c1265ae14578e3daaea9ab5f2b2b9d420606ac1e3a058
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
Any idea how i can fix it?
Monday, March 6, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I say it because I saw this window
image.png

image.png

PNG16.3 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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?
Sorry, I don't understand it right now.
I just don't know what to look for.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You are confusing 2 things, you're using the docker env example but you are running on the host
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
so the only image that is not runnin rn is "7-days-to-die-server-manager_csmm-web"
csmm.png

csmm.png

PNG24.8 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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.

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*
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
I do, I used the "env.example.docker" file.
env.png

env.png

PNG539.3 KB

Sunday, March 5, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Do you have a .env file?
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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
"
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

npm_run_dbmigrate.png

PNG19.7 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
See here, you need to use the internal Docker DNS names
image.png

image.png

PNG108.7 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Using host connection details instead of Docker
image.png

image.png

PNG16.8 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
env1.png

env1.png

PNG74.3 KB

Saturday, March 4, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Did you pick the docker-based .env file from the repo?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
No content

csmmlogs.txt

TXT181.8 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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.
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
Thanks.
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

docker.png

PNG26.1 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Those values should be part of your .env file, see here; https://docs.csmm.app/en/CSMM/self-host/configuration.html
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
does anyone have any ideas? I really don't know how to proceed.
I would be very grateful.
Friday, March 3, 2023
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
No content

csmmlogs.txt

TXT63.8 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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...
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.
DBSTRING=mysql2://csmm:your-db-password@db:3306/csmm
REDISSTRING=redis://:your-redis-password@cache:6379
"
Is
DBSTRING=mysql2://csmm:your-db-password@db:3306/csmm
REDISSTRING=redis://:your-redis-password@cache:6379
also part of the compose-file?
Here are some logs if that helps.
csmmprogress.png

csmmprogress.png

PNG43.2 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Can you check if there's maybe some tabs in there instead of spaces? Yaml can be fussy about that
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
The exact same error?
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
unfortunately, the error remains, even after the changes
update.png

update.png

PNG56.8 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Can you try uncommenting these
image
lines and commenting the
build
lines?
image.png

image.png

PNG61.7 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
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

yaml_validate.png

PNG91.6 KB