niekcandaele / CSGO-RankMe-stats

Application that displays stats from the Kento RankMe plugin
33 stars 6 forks source link

Fresh install, get error #15

Closed ezspot closed 5 years ago

ezspot commented 5 years ago

rankme-stats@1.2.5 start /usr/src/app node src/index.js

info: Detected 1 available CPUs, scaling webserver to 1 processes info: Unhandled Rejection at: Promise npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! rankme-stats@1.2.5 start: node src/index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the rankme-stats@1.2.5 start 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! /root/.npm/_logs/2019-06-04T23_12_51_111Z-debug.log root@**:~# more /root/.npm/_logs/2019-06-04T23_12_51_111Z-debug.log more: stat of /root/.npm/_logs/2019-06-04T23_12_51_111Z-debug.log failed: No such file or directory

niekcandaele commented 5 years ago

Could you show me the contents of the .env file please (make sure to redact/change) any sensitive info? I suspect there's a misconfiguration there and the app is not reporting it correctly

info: Unhandled Rejection at: Promise is the (very helpful :)) log line

ezspot commented 5 years ago

.env contains: MYSQL_DB=games MYSQL_TABLE= MYSQL_HOST=IP MYSQL_PASSWORD= MYSQL_USER=**

ezspot commented 5 years ago

I assume DISCORD_TOKEN is not a req. variable? So i just updated it with my mysql info. Just nano .env and entered the detailes in root.

ezspot commented 5 years ago

Seems like it is req?

Got this now:

`root@**:~# docker run --env-file ~/.env catalysm/csgo-rankme:latest

rankme-stats@1.2.5 start /usr/src/app node src/index.js

info: Detected 1 available CPUs, scaling webserver to 1 processes


| _ \ | | _| \/ | | |_ | | _ | |) / ` | ' | |/ / |\/| |/ \ / | _/ ` | / | | < (| | | | | <| | | | / _ \ || (| | |_ \ || __,|| |||__| ||_| |/__,|_|___/

info: Unhandled Rejection at: Promise npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! rankme-stats@1.2.5 start: node src/index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the rankme-stats@1.2.5 start 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! /root/.npm/_logs/2019-06-04T23_35_24_749Z-debug.log root@**:~# `

ezspot commented 5 years ago

Anyway to fix it manually easy? Should it not just need my DB-info to connect to and we are good to go?

ezspot commented 5 years ago

@niekcandaele

niekcandaele commented 5 years ago

Please don't spam like that, I'll get to your issue when I have time.

EDIT: btw, you can just disable the discord bot in config.json

ezspot commented 5 years ago

Seems like i fixed it.