self-host-csmm-support
textPage 59 of 373
50 messages on this page
Monday, July 3, 2023
User bddf69
Oh that's outdated, it should be
webtokens_legacyUser aee541
No content
User bddf69
Did you create the token on your server?
User 6eb6d8
Hopefully the last question. I'm getting this error but I'm literally copy pasting the info in for the username and token and I see it hits the server but fires back ' Invalid Admintoken'

image.png
PNG • 27.2 KB
User 6eb6d8
I think I'm an idiot. I fogot to update my the admin part of the .env to include my steam id
User 6eb6d8
Aww I figured it out. I think it was something related to my oroginal url have a / that caused the error.
User 6eb6d8
Because I have the reverse proxy setup with caddy and everything seems to be running fine and my host .env var is set to my duckdns as well.
User 6eb6d8
I have everything set up point to my duckdns url but it still seems to go to localhost:1337/ is there something being stored outside of the build that would cause this?
User bddf69
If you do set the reverse proxy up, you'll wanna change the env var again
User bddf69
You should be able to set
http://localhost:1337/ as your hostname and it'll work (bypassing the reverse proxy)User 6eb6d8
hmm I think I might see an issue / mistake I made setting up Caddy thoug which might explain some of my issues hopefully.
User 6eb6d8
I guess after I get the reverse proxy should I be able to access this by just using the duckdns link?
User 6eb6d8
So currently the url is http://localhost:1337/
User bddf69
How are you browsing to CSMM right now? What's the URL in your browser?
User bddf69
Well it depends on how you set it up
User 6eb6d8
Or eh that probably wouldn't make a-lot of sense would it. :/
User 6eb6d8
it needs csmm at the beginning of it correct?
User 6eb6d8
aww I think I might have figured it out
User 6eb6d8
I believe so but let me give it a full reboot just to be safe.
User bddf69
Did you restart CSMM after making the change?
User 6eb6d8
Hmm so I have the reverse proxy up and the duckdns popping up on steam but still getting the same page can't be reached.
User bddf69
It should be the same as you type in the URL bar
User bddf69
yep
User 6eb6d8
To the duckdns domain?
User bddf69
Yeah, you wanna change that
User 6eb6d8
You're talking under the .evn file correct? for mine it's just posting to localhost?
User bddf69
so for example
https://csmm.exmaple.comUser bddf69
Check your CSMM_HOSTNAME env variable, it should point to the public URL of your csmm instance
User 6eb6d8
Or maybe not. Once I try signing in it just says this site can't be reached.
User 6eb6d8
Well I think I've almost got it all figured out. I'm trying to get this linked with steam but when I try it says this site can't be reached. I'm guessing it's realted the reverse proxy needing to be setup hopefully?
User bddf69
Hehe nice one! 😄
User 6eb6d8
Holycrap it's actually launched now 🤯
User bddf69
db-data is right.
marked green = on the host
marked pink = in the container
marked pink = in the container

image.png
PNG • 17.9 KB
User 6eb6d8
I see a db-data folder in the 7-days-to-die-server-manager-master folder but no var/lib directory? would this be the right place to look or is docker storing this somewhere else?
User bddf69
This is where that volume happens: https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/docker-compose.yml#L52-L53
User bddf69
By default, it uses a volume so it can be persistent. Without a volume, every time you restart the container it would look its data
User bddf69
These are the lines that control those env vars https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/.env.example.docker#L41-L44
User 6eb6d8
I mean if I just delete all containers and images etc should that reset it or is that data being stored somewhere else?
User bddf69
The easiest fix (since you have no data yet) is to remove the volumes that the db container made and then restart the containers again
User bddf69
You set the password with environment variables when you started the container
What likely happened is something like this
- Youre installing it, start the containers
- Mysql container starts, initializes itself with password
xxx - You tinker around with the install a bit and at some point you change the password to
yyy - Since the DB was already initialized with
, it doesn't automatically update resulting in the error you seexxx
User 6eb6d8
is there a default password for the sql server or is that something I need to setup later?
User 6eb6d8
aww nvm the seq is for the SQL server which makes sense
User 6eb6d8
Hmm I'm getting an error realted to reddis now. It's saying Redis servers default user does not require a password but a password was supplied but when I try to remove the password in .env I still get the same SequelizeAccessDeniedError whether I have a password or not
User bddf69
Unless you changed it, they'll be running on default ports so no need to specify those either
User bddf69
You dont need the numbers, just
cache and db is fineUser 6eb6d8
Here's my current .env file for reference.
User 6eb6d8
So if it's just named cache-1 and db-1 should it be @cache-1/ or should I also include the ports as well?
User bddf69
You only need one .env. There's massive overlap between these files though, the only difference iirc are the connection strings to datastores

