self-host-csmm-support

textPage 69 of 373
50 messages on this page
Sunday, April 16, 2023
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
Your wiki has the following notation when creating the user "csmm":
CREATE USER 'csmm'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your-db-password';
but with this notation i got a syntax error. I wrote it like this:
CREATE USER csmm@localhost IDENTIFIED BY 'your-db-password';
and got no error. Can this be the reason why no connection can be established?
csmmstatus1.png

csmmstatus1.png

PNG11.0 KB

Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
changing the port seems to have been enough.
But it seems that no connection to mariadb or to the database can be established.
csmmstatus.png

csmmstatus.png

PNG33.8 KB

Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
If you change those in Apache it should not conflict anymore
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
It probab borks on 80 and 443
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
ok, but do i need to uninstall my already installed webserver to use caddy?
Maybe stupid question sorry.
I guess yes. Or is it enough to change the port?
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Go with caddy
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
If not
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
IF you know how to secure reverse proxy to csmm with apache
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
If you already have a webserver, you dont need to use the one included in the compose
Avatar for 7043bcd6eea1c598329f323b118b3e725a981888cd605e52d8ed76026963bf2b
User 7043bc
i'm trying again on the docker image. Now I get the following message:
there is an apache2 already installed. Is that why the error message appears?
Do I have to uninstall the apache2 service first?
docker_address_in_use.png

docker_address_in_use.png

PNG25.9 KB

Friday, April 14, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
The support bot has a command that should do it but it broke :( Haven't gotten around to fixing it
Avatar for b540ebc385b1106c1e0848827f0c1b78508584dea0bf56e8f165a18688010836
User b540eb
Alright and my apologies I thought that just gave me the description of what the command does
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah, say2 is basically an upgraded version of say, and likewise for pm and pm2
Avatar for b540ebc385b1106c1e0848827f0c1b78508584dea0bf56e8f165a18688010836
User b540eb
Ok
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Try doing that in your discord server 😉
Avatar for ff88dda6f45872f4b9f20db32b0bcc6f69a05ac32a97dbb4123375d191f505d7
User ff88dd
🔴 something unexpected went wrong while executing this command :( If this problem persists, please join the support server and report this issue.
Avatar for b540ebc385b1106c1e0848827f0c1b78508584dea0bf56e8f165a18688010836
User b540eb
Oh i forgot to put the 2. And thank you.
So does the
say2
function message the entire server?
Avatar for 76be4d0a56a584df6bb681ac45277a351d0c422b938c243c68f81c53cae09fad
User 76be4d
No content
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Check out
pm2
for that ^^
Avatar for b540ebc385b1106c1e0848827f0c1b78508584dea0bf56e8f165a18688010836
User b540eb
Does
say2
work like
pm
?
Trying to have a message sent to players upon them joining the server.
And ngl I am genuinely having fun trying to learn how to use csmm 😂
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
I dont think that healthcheck is causing high RAM usage, it's going to be something else
If you want to disable the healthcheck though, it's using standard docker healthcheck stuff: https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck
Thursday, April 13, 2023
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
csmm-db-1 | 2023-04-13 22:39:53 8 [Warning] Aborted connection 8 to db: 'csmm' user: 'csmm' host: '172.19.0.4' (Got an error reading communication packets)
csmm-csmm-web-1 | verbose: Starting app at /usr/src/app...
csmm-csmm-web-1 | verbose: Running the setup logic in
sails.config.bootstrap(done)
...
csmm-csmm-web-1 | info: Started the system stats gathering interval
csmm-csmm-web-1 | info: Importing files enabled, looking for JSON files at /home/docker/csmm
csmm-csmm-web-1 | warn: Error while trying to import, continuing with CSMM boot
csmm-csmm-web-1 | error: undefined {"code":"ENOENT","errno":-2,"path":"/home/docker/csmm","syscall":"scandir"}
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
kk want to Thank CSMM group for all the help they have help with on my setup. And I want to put a big thanks to @User 44750902 and reason is if he did not ask the things he did. I would be going at this for a lot more weeks. Yes I scroll up before asking for help. A big Thanks. Now I have few things to fine tuned and need little more help. I have drop caddy and now using my pfsense/HAProxy. I am seeing a lot more ram being use when csmm is running. How to turn health check down some? that is when I am seeing ram go up. With HAproxy I do not need to have it going so much and turn down csmm-db-1 check. and fix this small error
Friday, April 7, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ah nice, I haven't needed it so didn't really look into that yet
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
the free one
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
Not sure u check into but cloudflare tunnel help me with my Reverse proxy
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Not an error, just the framework giving some tips on how to type less :)
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
verbose: Watch out! Nesting helpers more than one sub-folder deep can be a liability. It also means that you'll need to type more every time you want to use your helper. Instead, try keeping your directory structure as flat as possible; i.e. in general, having more explicit filenames is better than having deep, complicated folder hierarchies.
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
BTW here is little code error i was going but just let u know
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
woot THANKS . all cause of me not setting ntp to true
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
and I am in
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
csmm@csmm:$ timedatectl set-ntp true
==== AUTHENTICATING FOR org.freedesktop.timedate1.set-ntp ===
Authentication is required to control whether network time synchronization shall be enabled.
Authenticating as: csmm
Password:
==== AUTHENTICATION COMPLETE ===
csmm@csmm:
$ timedatectl
Local time: Fri 2023-04-07 05:24:55 EDT
Universal time: Fri 2023-04-07 09:24:55 UTC
RTC time: Fri 2023-04-07 09:24:55
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah bad time on your server causes a lot of issues, it's important to always get that correct
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
was but now its not me fix it see if get again
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
yes
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Is your server time correct? Eg are you syncing it with some NTP server?
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
I will block out ID things if that make u feel safer
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
do u want me to send my .env and .yml to u
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Oh my bad, I looked wrong. The migrations container should stop yeah. It sets up the database structure for you. You start it, it does a bunch of SQL and then exits. I was confusing with the worker
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
So I dunno what's wrong still, I can give some more info though
  • The loglevel env var is not active in the web container, somethings is wrong with config there. Notice that for the worker you are getting debug and verbose level logs but not in web
  • The error is
    Invalid or replayed nonce
    . In openID, when you try to login it creates a nonce, a one-time use value. This is a security mechanism to ensure that malicious actors cannot take your first login flow and replay it to also login. So for some reason this is firing twice for you?
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
csmm-migrations:
#build: .
image: catalysm/csmm
depends_on:
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
entrypoint: ["sh", "-c", "npm run wait-for:db && npm run db:migrate"]
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
me put less stop in code cause there is not one
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
well its keep stoping
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yes it needs to keep running, as you use CSMM there will be more 'work' for it to do
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
I did some testing and my steam api ID is working and I have it set csmm.altoyda.us
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
No content

csmm_log.7z

7Z5.9 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
No content
brave_u2163os0Qi.png

brave_u2163os0Qi.png

PNG12.6 KB

Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
I have all the new logs not sure how u want them in a zip file or just upload here do not want keeping spamming chat with them. csmm log only change the worker not csmm web and csmm web is where i am getting the error. BTW is this need to be running or just stop after it finish its work.
Thursday, April 6, 2023
Avatar for 97b28aa0c201755a23b14a992c919e4966467583cdaa173ead9115b980a66e77
User 97b28a
kk that what i was thinking and been working on script to take the owner info and input it. that is why i am looking at caddy the other call for a lot of labels
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Does not need to be on the same machine, RAM/CPU usage will depend a lot on how much you use it. Start with a VM with like 8 GB ram, that should be plenty