self-host-csmm-support

textPage 59 of 373
50 messages on this page
Monday, July 3, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Oh that's outdated, it should be
webtokens_legacy
Avatar for aee541746e268e44e47a2c9b5a7d9236a76b59837f2dad43622fd77182acd4d8
User aee541
No content
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Did you create the token on your server?
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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

image.png

PNG27.2 KB

Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
I think I'm an idiot. I fogot to update my the admin part of the .env to include my steam id
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
Just when I thought I finally got it all figured out. 😢
image.png

image.png

PNG9.9 KB

Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
Aww I figured it out. I think it was something related to my oroginal url have a / that caused the error.
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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.
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
If you do set the reverse proxy up, you'll wanna change the env var again
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You should be able to set
http://localhost:1337/
as your hostname and it'll work (bypassing the reverse proxy)
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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.
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
I guess after I get the reverse proxy should I be able to access this by just using the duckdns link?
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
So currently the url is http://localhost:1337/
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
How are you browsing to CSMM right now? What's the URL in your browser?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Well it depends on how you set it up
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
Or eh that probably wouldn't make a-lot of sense would it. :/
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
it needs csmm at the beginning of it correct?
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
aww I think I might have figured it out
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
I believe so but let me give it a full reboot just to be safe.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Did you restart CSMM after making the change?
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
It should be the same as you type in the URL bar
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
yep
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
To the duckdns domain?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah, you wanna change that
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
You're talking under the .evn file correct? for mine it's just posting to localhost?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
so for example
https://csmm.exmaple.com
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Check your CSMM_HOSTNAME env variable, it should point to the public URL of your csmm instance
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
Or maybe not. Once I try signing in it just says this site can't be reached.
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Hehe nice one! 😄
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
Holycrap it's actually launched now 🤯
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
db-data is right.
marked green = on the host
marked pink = in the container
image.png

image.png

PNG17.9 KB

Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
    xxx
    , it doesn't automatically update resulting in the error you see
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
is there a default password for the sql server or is that something I need to setup later?
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
aww nvm the seq is for the SQL server which makes sense
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Unless you changed it, they'll be running on default ports so no need to specify those either
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You dont need the numbers, just
cache
and
db
is fine
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
Here's my current .env file for reference.
Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
User 6eb6d8
No content
tempsnip.png

tempsnip.png

PNG41.8 KB

Avatar for 6eb6d8c3e385ca55e539e730182007c00a91af7f68a8a6f90639b2591762bf56
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?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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