self-host-csmm-support
textPage 7 of 373
50 messages on this page
Monday, September 30, 2024
User bddf69
It looks like either the password configured is incorrect or you need to allow connections from 'localhost' in the DB
Sunday, September 29, 2024
User 76d504
okay, i have this error when trying to run NODE_ENV=production npm run db:migrate
csmm@Servidor2:~/7-days-to-die-server-manager$ NODE_ENV=production npm run db:migrate
csmm@2.3.0 db:migrate /home/csmm/7-days-to-die-server-manager
npm run sequelize -- db:migrate
csmm@2.3.0 sequelize /home/csmm/7-days-to-die-server-manager
sequelize-cli "db:migrate"
Sequelize CLI [Node: 12.22.12, CLI: 6.4.1, ORM: 6.13.0]
Loaded configuration file "sequelize.config.js".
Using environment "production".
Using environment "production".
ERROR: Access denied for user 'csmm'@'localhost' (using password: YES)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! csmm@2.3.0 sequelize:
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the csmm@2.3.0 sequelize script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! errno 1
npm ERR! csmm@2.3.0 sequelize:
sequelize-cli "db:migrate"npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the csmm@2.3.0 sequelize script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/csmm/.npm/_logs/2024-09-29T15_45_25_719Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! csmm@2.3.0 db:migrate:
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the csmm@2.3.0 db:migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! /home/csmm/.npm/_logs/2024-09-29T15_45_25_719Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! csmm@2.3.0 db:migrate:
npm run sequelize -- db:migratenpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the csmm@2.3.0 db:migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/csmm/.npm/_logs/2024-09-29T15_45_25_867Z-debug.log
npm ERR! /home/csmm/.npm/_logs/2024-09-29T15_45_25_867Z-debug.log
im using Mariadb because i didnt managed to install mysql server on my distro (debian) so chatgpt sugested to use mariadb instead, but im stuck at this point
Wednesday, September 25, 2024
User 6edfda
bugger and bollocks. Well time to dump on this docker repo and start fresh
User bddf69
That likely means they're installing 'latest' versions inside -> so could do invisible upgrades :(
Tuesday, September 24, 2024
User 6edfda
It doesn't look like they've updated it since last year
User 6edfda
I didn't get a request to update the docker container, but will check their patch notes
User 6edfda
It's been spamming me since yesterday lol also they may have done so!
User bddf69
Known bug, should only happen once after disabling a notification
User bddf69
I wonder if the unraid container upgraded one of the dependencies under the hood
User bddf69
๐ค Hmm that seems right
User 6edfda
And to add on to this, my bot keeps pinging me with this message
` There was an error sending a CSMM notification to your channel and thus the notification has been disabled: UsageError: Could not run sendMessage() because of a problem:
โข Invalid "channelId":
ยท Value ('0') did not match the configured regular expression (/[\d]{18}$/)
Please adjust your usage and try again.
[?] See https://sailsjs.com/support for help. `
[?] See https://sailsjs.com/support for help. `
User 6edfda
Is this the correct redis version?
User 6edfda
@User 22055452
root@91ee6567a834:/tmp# redis-server --version Redis server v=6.0.16 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=b1fbc3b14278ceb1Monday, September 23, 2024
User b5eede
thanks man I'll look it up ๐
User 963f55
i used to use duckdns for my reverse proxy and external domain, that could 'fill your domain hole' giggity
User b5eede
and right now csmm errors out when I run it via pm2 but I can access it now when i run it via terminal it's just that whenever I exit terminal CSMM closes as well.
User b5eede
I don't really have a domain. I only have a IP address. is it mandatory to have?
User b5eede
I just dont't know why this doesn't work.
Is it because I'm using localhost?
Is it because I'm using localhost?

image.png
PNG โข 1.2 MB
User b5eede
well i started from scratch and it worked! ๐
Sunday, September 22, 2024
User b5eede
I think I'm almost there I'm just getting this error when starting CSMM.

image.png
PNG โข 148.0 KB
User bddf69
Depends very much on how much data (players, servers) you are going to have in it. More CPU = faster CSMM.
I suggest just setting it up, start using it and then see how much is being used and adjust your limits accordingly
User b5eede
Gonna ask this because I haven't seen it anywhere yet. How much system requirements does csmm need to run? Like how much ram and how many cpu cores if I'm gonna build a small machine for it?
Saturday, September 21, 2024
User b5eede
oh I see I already have ubuntu running via WSL. so I guess at this point I just need to use it following your instructions.
User 3f4069
@User 30067760
No that's not how it works. Docker images contain what they need to run. You have to either install docker on your windows subsystem for linux, which I cannot help you with as I do not use it (and it's an abomination anyways), or you have a linux system somewhere and you install docker compose on it. I mentioned that in the instructions. It's a prerequisite that you have a linux system ready to go, and I assumed that because you were asking about the linux docker image. So to clarify, first you need a linux system of some kind, preferably something like Ubuntu server, installed onto either a real computer or a virtual machine. Then you install docker compose. Then you come back here and follow those step by step instructions... it seems like alot but it's rather simple if you have even a little knowledge of how to use the terminal.
No that's not how it works. Docker images contain what they need to run. You have to either install docker on your windows subsystem for linux, which I cannot help you with as I do not use it (and it's an abomination anyways), or you have a linux system somewhere and you install docker compose on it. I mentioned that in the instructions. It's a prerequisite that you have a linux system ready to go, and I assumed that because you were asking about the linux docker image. So to clarify, first you need a linux system of some kind, preferably something like Ubuntu server, installed onto either a real computer or a virtual machine. Then you install docker compose. Then you come back here and follow those step by step instructions... it seems like alot but it's rather simple if you have even a little knowledge of how to use the terminal.
User b5eede
do I need to install a linux docker container to run this? I'm currenlty runing on windows. finding out the best way on how to do this.
Friday, September 20, 2024
User b5eede
Thanks for this info man. Really helpful. was wondering if I can send you a DM about this. Don't wanna flood noob questions here if possible. lol
User 3f4069
i hope this helps someone in the future, it took me a an hour or two to figure it out having never used docker before. this could probably be condensed down to just 2-3 commands if it was posted on the main "docker linux install" section on the website, but i've expanded it out a bit to help those new to linux and docker in general.
User 3f4069
@User 30067760
i wish they had a super simple set of instructions under the linux docker wiki page. but its basically:
i wish they had a super simple set of instructions under the linux docker wiki page. but its basically:
Clone the Repo
- Make a folder called git in home directory then Git Clone the csmm repo. type into the terminal:
mkdir git && cd git && git clone https://github.com/CatalysmsServerManager/7-days-to-die-server-manager.git - enter the directory with the cd command
thencd gitcd 7-days-to-die-server-manager
Setup .env File
- make a copy of the .env.example.docker file, and rename it to ".env" . You can do this with a one line command
cp .env.example.docker .env - You now have a .env file that has all the contents of the previous .env.example.docker. Nano into it and enter the details where necessary.
you can follow the directions at https://docs.csmm.app/en/CSMM/self-host/configuration.html#env-file to obtain the values needed for your setup.
nano .env
when done press cntrl+O to write out the file, then cntrl+X to exit.
Lets go!
You may need to add your user to the group docker to get permission to use the docker daemon.
sudo usermod -a -G docker $USERAll should be ready to go. As long as you installed docker correctly (which is beyond the scope of this text) The following command will bring up your containers and get your copy of CSMM running.
sudo docker-compose up -dYou should now be able to reach CSMM by entering the url (or 127.0.0.1 IP if you left it as local host) from your .env file followed by the port 1337
Example:
Example:
https://192.168.0.25:1337 https://127.0.0.1:1337Thursday, September 19, 2024
User bddf69
Try
nano .env :) You just copied it to your current directoryUser b5eede
Sorry I'm really new in Linux. I need help on this. I ran the command on the documentation "cp .env.example.host .env" but don't know how to locate the env file and edit it from where it is now.
User bddf69
The env file is essentially a config file,: copy the example file and adjust the defaults
User b5eede
Hello. sorry I'm trying to setup CSMM on windows using ubuntu on WSL 2. I'm new to Linux. I don't get the part where I need to configure the env file. any tips on this? Thanks! Trying this approach 1st if it works will try docker after this. lol...
Monday, September 16, 2024
User 3f4069
Okay, Thank you ๐ I've done some research, and this appears to be because mariadb has removed the mysqladmin command. This Page from the mariadb website discusses it and a possible fix for the compose file. https://mariadb.org/mariadb-server-docker-official-images-healthcheck-without-mysqladmin/
Sunday, September 15, 2024
User bddf69
That cmd is used for health checking the database. Perhaps tehre's something weird with that after an update but I wouldn't worry about it too much
User bddf69
I think you can ignore that error, especially if the web app itself is working properly
User 3f4069
im using portainer to manage containers, and after bringing up docker compose file and starting the containers, the mariadb container shows this error.
is this a problem or no? the web portal seems to work and I can login to csmm, but i havent yet joined the server so I don't know if like the inventory tracking or anything works yet (edited)
is this a problem or no? the web portal seems to work and I can login to csmm, but i havent yet joined the server so I don't know if like the inventory tracking or anything works yet (edited)
OCI runtime exec failed: exec failed: unable to start container process: exec: "mysqladmin": executable file not found in $PATH: unknownSaturday, September 14, 2024
User 3f4069
im a noob at it too. I didn't realize you need to run the docker compose command inside the cloned git folder, and I copied the docker-compose.yml and the sample .env to a blank directory and tried to run it after inputting my values to the .env file, because i thought docker containers were like an image that had all the files they need inside them. obviously, this was wrong. after noobing my way through some error messages, i copied my .env file back into the cloned git folder, ran docker-compose up -d and csmm started right up. I'd never used docker before in my life and the youtube videos i was checking werent very helpful when it came to figuring out what I needed to do with this project.
Friday, September 13, 2024
User b5eede
thanks man. noob at docker tbh. but I'll try it out of curiosity ๐
User bddf69
I don't use Windows - so it's not officially supported. However, Docker is portable enough that you should be able to translate the unix info to Windows with some troubleshooting :)
User b5eede
Good day. is there a guide to install CSMM on a docker for windows? documentation is currently blank not sure if isn't supported anymore. Thanks!
Wednesday, September 11, 2024
User 5d1f5b
yes i did it yesterday and solved
User bddf69
Try deleting your Redis data and restarting CSMM after?
Tuesday, September 10, 2024
User 5d1f5b
did you solved?
User 5d1f5b
Hello, i'm testing self hosted csmm, everything ok but discord integration has something not working, made the bot on discord and linked it to csmm but it's not getting the channels on discord settings page, and i can't select my server in the guild.
Wednesday, August 28, 2024
User 374c5d
ok it is a csmm issue. can you post a link to your csmm?
User b5eede
Thank you for your consideration. I posted there already. Will just wait for help ๐
User 374c5d
no worries, it happens
User b5eede
oh I see. thank you for pointing me to the right direction. I apologize.
User 374c5d
if you need help with your 7d server see the 7DAC dscord
User 374c5d
this discord is strictly for the csmm server manager.