self-host-csmm-support

textPage 4 of 373
50 messages on this page
Wednesday, November 27, 2024
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
send the logs
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
@User 53398683 I just ran your compose with my env and I get the same exact problems. Would a misconfigured bot or any other IDs or codes in the env prohibit me from me connecting to the server:1337?
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Ya I will try to replicate exactly how you did it tonight. I also noticed your compose file has a healthcheck: disable: true line under your worker section.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
try using what i gave you to make it start than edit if you need
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
well those settings i sent is how i did it. As you noticed i downloaded csmm maunally from github
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
It is very possible I messed up the boy somehow. I will go back through and reconfirm everything.
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
For hostnsme, I initially had it as http and changed to https and then I have my csmm.domainname.com. At one point I had the :1337 at end of domain name but then I saw a post by catalysm to remove it on the CSMM_HOSTNAME line.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
csmm won't work if it's not set properly
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
i think it's your discord bot
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Confirmed this mapping is exactly like mine.
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
I have tried building and using the csmm docker image and have run into issues both times. Containers start but they start throwing errors and I can’t get to web front end on 1337.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
You should be able to run it easy with the information i gave you. Took me a while back than until i learned how synology operates
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
it's not easy like ubuntu
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
took me a while to run it on synology
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
i would not change it until your understand whats happening
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
important that you name the folder
csmm
if your using my docker
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
CSMM_LOGLEVEL=info
CSMM_PORT=1337```
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
yep
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Looks like you must be downloading project from GitHub and then building it right since your compose file has the image lines commented out?
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
just map the db as i did
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
don't worry about the
csmm-db-1
errors
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
No content
image.png

image.png

PNG9.8 KB

Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
in the
csmm-db-1
container make sure your mapping the db-data properly
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
and it works with that docker compose
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
i just rebuilt mine since i stopped using it a while ago
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Thanks Tree. I will confirm all details you mentioned later and let you know. Thank you!
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
use the nas lan ip and add 1337 if your using that port
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
the discord bot must be set up properly
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
Anway. use the docker file i sent make sure you are using volume1, if not change it. go to project and build it
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
it won't start if there is an error in that
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
is your discord bot set up properly?
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Well there are files but I never read the database
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
is it populating?
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Ya the database definitely dumps to my docker/CSMM/db-data
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
# DATASOURCE CONNECTION STRINGS
# Make sure you use the vars for your install method and delete the others
###############
# This initializes the DB container, see https://hub.docker.com/_/mariadb
MYSQL_USER=csmm
MYSQL_PASSWORD=myass!
MYSQL_DATABASE=csmm
MYSQL_RANDOM_ROOT_PASSWORD=true
DBSTRING=mysql2://csmm:myass!@db:3306/csmm
REDISSTRING=redis://cache:6379```
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
No content

docker-compose.yml

YML1.4 KB

Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
you need to map it to volume1 or whatever your using
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
the database will be inside your csmm installation folder
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Will do a bit later today as I don’t have access to it at this moment. Quick question though, did you use the catalysm/csmm image? Also, you had mentioned using phpmyadmin at one point. Did you have to use that to update the mariadb container?
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
better yet send me everything just remove the sensitive data
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
send your docker compose
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
MYSQL_USER=csmm
MYSQL_PASSWORD=eZKWid3BN7Mb6g
MYSQL_DATABASE=csmm
MYSQL_RANDOM_ROOT_PASSWORD=true
DBSTRING=mysql2://csmm:eZKWid3BN7Mb6g@db:3306/csmm
REDISSTRING=redis://cache:6379
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Another point of concern (and ignorance) for me is my .env file and the database strings. Do these look legit?
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
Also having some warnings with the mariaDB container here.

csmm-db-1.txt

TXT1.9 KB

Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
I am still running into some issues and not exactly sure where they are coming from. Can someone look at the following log file for the -web container and give me an idea of why it is throwing warnings and potentially why I can't connect to port 1337 of my server (since the docker port is mapped 1337:1337)?

csmm-csmm-web-1.txt

TXT3.0 KB

Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
unless you are building your own, you need to change some settings in the ENV
Screenshot_2024-11-26_211528.png

Screenshot_2024-11-26_211528.png

PNG6.7 KB

Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
here is my default compose file. First, Inow noticed that many of the images are commented out. Would this explain why I had to go to git and expand the package into the folder I was installing the container?

compose.yaml

YAML1.4 KB

Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
and may explain some things
Avatar for 6df07c87efb9982b0bbedcd78736d589feea36af759cba884562eb0f67d84ea0
User 6df07c
omg Forbidden this may have identified multiple issues I have (and with the compose 🙂 )
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
here, you can see on lines 73-77 i added two networks, one called outside that i assigned to only the containers that need to be accessed via external, and then backend internal network.... everything needs to be on the internal, so they all talk to eachother...
  • External
  • csmm-web (lines 10-11)
  • csmm-worker (lines 26-27)
but all servers need to be on the Backend
csmm-web
csmm-worker
csmm-migration
cache
db

CSMM_Docker.txt

TXT1.6 KB