Comments (8)
Howdy @MichaelDA123 , seem the node was unable to locate a file it was looking for, a few things that may help.
Make sure the .env
is present in /Master-Bot/
folder
Run cmd.exe
in administrator when running npm run dev
Much Love
-Bacon
from master-bot.
@Bacon-Fixation Ah yes, for the .env
file i've put it in root folder but the error still same
from master-bot.
There is 2 env, .env.example and
.docker.env
. im just setup .env.example
because I'm never use docker before, and I'm planning to host the bot in hosting service.
from master-bot.
this took a bit to replicate, my apology for the delay, this seems to be a Windows specific issue. Add C:\Windows\System32
to the PATH
environment variable,
Start search for "edit environment variables for your account", click new and set the name as PATH
and the value to C:\Windows\System32
click ok
should look something like this
and give it another try, may have to restart pc and/or your IDE you are using to accesses the cmd.exe
Much Love
-Bacon
from master-bot.
@Bacon-Fixation aah its works thxs :), but when i trying to host the bot in hosting service this error comes up.
[1] 08-03-2023 08:12:10 info: Twitch-Features are Disabled
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:11 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] 08-03-2023 08:12:12 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:12 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:13 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:13 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:13 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:13 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:14 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:14 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:15 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:15 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:16 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
[1] 08-03-2023 08:12:16 error: Redis Error: connect ECONNREFUSED 127.0.0.1:6379
[1] /home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250
[1] throw new DiscordjsError(unrecoverableErrorCodeMap[error.code]);
[1] ^
[1]
[1] Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
[1] at WebSocketManager.createShards (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
[1] at async ExtendedClient.login (/home/container/node_modules/discord.js/src/client/Client.js:226:7)
[1] at async ExtendedClient.login (/home/container/node_modules/@sapphire/framework/dist/lib/SapphireClient.js:76:19) {
[1] code: 'DisallowedIntents'
[1] }
[1]
[1] Node.js v17.9.1
[1] npm ERR! Lifecycle script start
failed with error:
npm ERR! Lifecycle script start
failed with error:
[1] npm ERR! Error: command failed
[1] npm ERR! in workspace: [email protected]
npm ERR! at location: /home/container/packages/bot
[1] npm run dev:bot exited with code 1
from master-bot.
Seems that the redis server is not running on localhost More Info bot looks for a redis connection at 127.0.0.1:6379 (localhost) by default it assumes redis is running on the same host as the nodejs instance, if you would like to assign a different location you can add REDIS_HOST='url2redisServer'
REDIS_PORT=5679
to the bottom of the .env
to connect to an outside redis server
Redis options available through the .env
REDIS_HOST="url2redis"
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD="redisPassword"
I hope this helps
Much Love
-Bacon
from master-bot.
Howdy @MichaelDA123,
Just wanted to catch up with you, and see if you were still having issues
Much Love
-Bacon
from master-bot.
@MichaelDA123 gunna go head and close this issue. If you are still having issues or have suggestions, please feel free to open a new tap
Much Love
-Bacon
from master-bot.
Related Issues (20)
- Gif commands not working HOT 6
- Discussion - bot compatibility with other bots HOT 9
- Invalid enviroment Variables on startup HOT 3
- Crash when attempting to play song HOT 8
- Try signing in with a different account HOT 5
- napi-rs/canvas is not marked as a dependency
- Twitch command not working HOT 4
- Top and Controversial not working in Reddit command HOT 2
- Error: P1000: Authentication failed against database server at `localhost` HOT 5
- `npm run dev` outputting multiple errors HOT 1
- Features to be added back after turborepo rewrite HOT 2
- pnpm i fails HOT 10
- STUCK : Watching for files changes HOT 9
- Not able to access website and bot not responding on discord. HOT 3
- Docker Deployment HOT 2
- My Bot Crash, I`m not able to deploy it on my computer HOT 1
- playlist commands are not working
- Bot joins call after a song is requested, and quits when the song is about to play HOT 1
- Auto db push for guild IDs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from master-bot.