Open djdiaguuu123 opened 3 months ago
Can you send the npm logs from before the bot starts?
I have alredy fixed this issue. I had to old version of node js. I have another issue, I've installed bot but my web panel not working. Server not responding. I am using daki.cc. Is there any option to config it?
10/08/24 14:38:56 [ERROR] (HTTP) Error: listen EADDRNOTAVAIL: address not available 141.195.113.222:4300 at Server.setupListenHandle [as _listen2] (node:net:1734:21) at listenInCluster (node:net:1799:12) at doListen (node:net:1948:7) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) { code: 'EADDRNOTAVAIL', errno: -99, syscall: 'listen', address: '141.195.113.222', port: 4300 }
Is there any way to host panel separatly on another web server?
Change HTTP_INTERNAL
back to 0.0.0.0
.
I changed it and now i have this:
10/08/24 21:56:23 [ERROR] (HTTP) Error: listen EADDRNOTAVAIL: address not available 141.195.113.222:4300 at Server.setupListenHandle [as _listen2] (node:net:1734:21) at listenInCluster (node:net:1799:12) at doListen (node:net:1948:7) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) { code: 'EADDRNOTAVAIL', errno: -99, syscall: 'listen', address: '141.195.113.222', port: 4300 }
Of course web panel still not working.
Sorry, I meant HTTP_HOST
, not HTTP_INTERNAL
.
This site is unreachable Server 141.195.113.222 taking too long to respond.
Now there arent any errors in console but it still not works.
DISCORD_SECRET=secret
DISCORD_TOKEN=token
DB_PROVIDER=mysql
HTTP_EXTERNAL=https://141.195.113.222:4300
HTTP_HOST=0.0.0.0
HTTP_PORT=4300
HTTP_INTERNAL=141.195.113.222
HTTP_TRUST_PROXY=true
INVALIDATE_TOKENS=
OVERRIDE_ARCHIVE=
PUBLIC_BOT=false
PUBLISH_COMMANDS=true
SUPER=405657136379592704
DB_CONNECTION_URL="sql"
ENCRYPTION_KEY=key
My ENV
As you wrote on discord, i have chandeg HTTP_INTERNAL to HTTP_INTERNAL=http://127.0.0.1:4300
. Still not working. Do you know how to fix this? The console shows me that it supposedly works on http://127.0.0.1:4300/ but when I go to the external IP address provided by the hosting it doesn't work and shows that the page is not responding.
My console now:
######## #### ###### ###### ####### ######## ########
## ## ## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ##
## ## ## ###### ## ## ## ######## ## ##
## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ## ##
######## #### ###### ###### ####### ## ## ########
######## #### ###### ## ## ######## ######## ######
## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ## ##### ###### ## ######
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ##
## #### ###### ## ## ######## ## ######
Discord Tickets (https://discordtickets.app) bot v4.0.19 by eartharoid
Sponsor this project at https://discordtickets.app/sponsor
11/08/24 20:48:25 [INFO] (AUTOCOMPLETE) Loaded "category" autocompleter
11/08/24 20:48:25 [INFO] (AUTOCOMPLETE) Loaded "references" autocompleter
11/08/24 20:48:25 [INFO] (AUTOCOMPLETE) Loaded "tag" autocompleter
11/08/24 20:48:25 [INFO] (AUTOCOMPLETE) Loaded "ticket" autocompleter
11/08/24 20:48:25 [INFO] (BUTTONS) Loaded "claim" button
11/08/24 20:48:25 [INFO] (BUTTONS) Loaded "close" button
11/08/24 20:48:25 [INFO] (BUTTONS) Loaded "create" button
11/08/24 20:48:25 [INFO] (BUTTONS) Loaded "edit" button
11/08/24 20:48:25 [INFO] (BUTTONS) Loaded "unclaim" button
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "Create ticket from message" message command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "Pin message" message command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "add" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "claim" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "close" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "force-close" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "help" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "move" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "new" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "priority" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "release" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "remove" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "tag" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "tickets" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "topic" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "transcript" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "transfer" slash command
11/08/24 20:48:25 [INFO] (COMMANDS) Loaded "Create ticket for user" user command
11/08/24 20:48:25 [INFO] (MENUS) Loaded "create" menu
11/08/24 20:48:25 [INFO] (MODALS) Loaded "feedback" modal
11/08/24 20:48:25 [INFO] (MODALS) Loaded "questions" modal
11/08/24 20:48:25 [INFO] (MODALS) Loaded "topic" modal
11/08/24 20:48:30 [SUCCESS] Connected to Discord as "Helpdesk Varso#9070" over 1 shards
11/08/24 20:48:30 [INFO] (PRISMA) quaint::pooled Starting a mysql pool with 25 connections.
11/08/24 20:48:30 [SUCCESS] (HTTP) Listening at http://0.0.0.0:4300
11/08/24 20:48:30 [INFO] Cached ticket count of 0 categories (0 open tickets)
11/08/24 20:48:30 [INFO] Loaded 0 active cooldowns
11/08/24 20:48:30 [INFO] Closed 0 deleted tickets
11/08/24 20:48:30 [INFO] Automatically publishing commands...
11/08/24 20:48:31 [INFO] Checking for updates...
11/08/24 20:48:31 [SUCCESS] Published 18 commands
11/08/24 20:48:31 [INFO] No updates available
11/08/24 20:48:35 [SUCCESS] Posted client stats
Your HTTP_EXTERNAL value should start with http
not https
.
It still not works.
Hey, I don't know if your bot is working by now, but if not, please try to remove the internal IP completely and if you don't use a reverse proxy (server-hosting reverse proxy is irrelevant), please set it to false. It could also be that your port is not enabled in the firewall of your system (under Debian and Ubuntu ufw by default or depending on whether another package like firewalld is installed)
Here's my config, which works perfectly:
DB_CONNECTION_URL="mysql://username:password@localhost/database"
DB_PROVIDER=mysql
DISCORD_SECRET=mydiscordsecret
DISCORD_TOKEN=mydiscordbottoken
ENCRYPTION_KEY=myencryptionkey
HTTP_EXTERNAL=http://staticpublicserverip:8169
HTTP_HOST=0.0.0.0
HTTP_INTERNAL=
HTTP_PORT=8169
HTTP_TRUST_PROXY=false
INVALIDATE_TOKENS=
NODE_ENV=production
OVERRIDE_ARCHIVE=
PUBLIC_BOT=false
PUBLISH_COMMANDS=false
Is there an existing issue for this?
Current Behavior
console
Expected Behavior
Start
Steps To Reproduce
No response
Environment
Anything else?
No response