Comments (26)
How can I access the panel from a device other than the host?
You need to port forward your local IP to your public IP, or use an online VPS.
from botmaster.
alright, should I try a re-run afterwards?
from botmaster.
What if it's on the same network? Normally I can just type in the local IP of the device and the port
from botmaster.
What if it's on the same network? Normally I can just type in the local IP of the device and the port
Check the logs for any errors and make sure the panel is working.
from botmaster.
@jareer12 this is what I'm getting:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: index.js
(node:2168) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2168) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
that's it though, doesn't seem to be anything fatal
from botmaster.
and this is my nginx config:
server {
listen 80;
server_name 192.168.1.18; ## Your Server
location / {
proxy_pass http://192.168.1.18:2278; ### Replace "2278"
With Your Port(If You Changed).
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
from botmaster.
I don't think that's how server_name
works, it has to be a domain. If you aren't using a domain, remove the server_name
option.
from botmaster.
from botmaster.
still doesn't work
Try 127.0.0.1:2278
.
from botmaster.
well that's an issue since I'm running Ubuntu Server 22.04 LTS, meaning that I can't really connect to a website locally since there is no desktop installed
from botmaster.
well that's an issue since I'm running Ubuntu Server 22.04 LTS, meaning that I can't really connect to a website locally since there is no desktop installed
You can run curl http://127.0.0.1:2278
to test on the Ubuntu machine, also make sure you changed .env.example
to .env
and the panel is actually running on port 2278
from botmaster.
yeah it doesn't work, which means no web server is running
from botmaster.
what should I do now to troubleshoot? Obviously no one else has had this issue
from botmaster.
what should I do now to troubleshoot? Obviously no one else has had this issue
Run forever logs
.
from botmaster.
info: Logs for running Forever processes
data: script logfile
data: [0] index.js /home/pi/.forever/VZYF.log
data: [1] index.js /home/pi/.forever/z9f9.log
that's it
from botmaster.
info: Logs for running Forever processes data: script logfile data: [0] index.js /home/pi/.forever/VZYF.log data: [1] index.js /home/pi/.forever/z9f9.log
forever logs 0
forever logs 1
from botmaster.
forever logs 1 throws this:
data: index.js:570774 - internal/modules/cjs/loader.js:818
data: index.js:570774 - throw err;
data: index.js:570774 - ^
data: index.js:570774 - Error: Cannot find module 'fs/promises'
data: index.js:570774 - Require stack:
data: index.js:570774 - - /home/pi/DiscordBotPanel/modules/InsertBase.js
data: index.js:570774 - - /home/pi/DiscordBotPanel/modules/loader.js
data: index.js:570774 - - /home/pi/DiscordBotPanel/index.js
data: index.js:570774 - at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
data: index.js:570774 - at Function.Module._load (internal/modules/cjs/loader.js:667:27)
data: index.js:570774 - at Module.require (internal/modules/cjs/loader.js:887:19)
data: index.js:570774 - at require (internal/modules/cjs/helpers.js:74:18)
data: index.js:570774 - at Object.<anonymous> (/home/pi/DiscordBotPanel/modules/InsertBase.js:3:10)
data: index.js:570774 - at Module._compile (internal/modules/cjs/loader.js:999:30)
data: index.js:570774 - at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
data: index.js:570774 - at Module.load (internal/modules/cjs/loader.js:863:32)
data: index.js:570774 - at Function.Module._load (internal/modules/cjs/loader.js:708:14)
data: index.js:570774 - at Module.require (internal/modules/cjs/loader.js:887:19) {
data: index.js:570774 - code: 'MODULE_NOT_FOUND',
data: index.js:570774 - requireStack: [
data: index.js:570774 - '/home/pi/DiscordBotPanel/modules/InsertBase.js',
data: index.js:570774 - '/home/pi/DiscordBotPanel/modules/loader.js',
data: index.js:570774 - '/home/pi/DiscordBotPanel/index.js'
data: index.js:570774 - ]
data: index.js:570774 - }
data: index.js:570774 - {"level":"error","message":"Forever detected script exited with code: 1"}
from botmaster.
forever logs 0 is the same basically
from botmaster.
@jareer12 it might be problematic that I'm using node v12.22.9
. Should I try updating it maybe?
from botmaster.
Run npm i fs/promises
.
from botmaster.
Hold on I'm rebooting the machine rn, will be a minute. I also updated to node v16
from botmaster.
npm i fs/promises
Sadly it's throwing the following, even with sudo:
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/fs/promises.git
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-06-26T12_24_06_630Z-debug-0.log
it seems the repo probably doesn't exist
from botmaster.
@jareer12 I got it to work by running npm install fs.promises
, not fs/promises
. Now the web server is running and I can access it anywhere on the network! Thanks for the help 👍
Logs:
(node:2745) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2745) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
data: index.js:2701 - (node:2694) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
data: index.js:2701 - (Use `node --trace-warnings ...` to show where the warning was created)
data: index.js:2701 - _ _ _
data: index.js:2701 - /\ \ / /\ /\ \
data: index.js:2701 - / \ \____ / / \ / \ \
data: index.js:2701 - / /\ \_____\ / / /\ \ / /\ \ \
data: index.js:2701 - / / /\/___ // / /\ \ \ / / /\ \_\
data: index.js:2701 - / / / / / // / /\ \_\ \ / / /_/ / /
data: index.js:2701 - / / / / / // / /\ \ \___\ / / /__\/ /
data: index.js:2701 - / / / / / // / / \ \ \__/ / / /_____/
data: index.js:2701 - \ \ \__/ / // / /____\_\ \ / / /
data: index.js:2701 - \ \___\/ // / /__________\/ / /
data: index.js:2701 - \/_____/ \/_____________/\/_/
data: index.js:2701 - [!] Dashboard Is Open On http://localhost:2278
from botmaster.
@jareer12 one more question - is there any way to run python bots with your panel, or just JS? Thanks
from botmaster.
@jareer12 one more question - is there any way to run python bots with your panel, or just JS? Thanks
No, this panel only supports node.js scripts/applications. I'm working on a new project like this. It's called Dynamo
from botmaster.
wow Dynamo looks epic! I'm gonna try it out so I can host other things too with more customizability! You're amazing!
from botmaster.
Related Issues (15)
- Discord.py support HOT 1
- Question: Can this host discord.py bots? HOT 1
- Error running with forever HOT 6
- Can I create multiple users to access the panel? HOT 2
- Delete files isn't working HOT 11
- Features Request!! HOT 2
- [ERR_INVALID_ARG_VALUE] error HOT 2
- Sync Panel button not working HOT 1
- 4+ ERROR TO FIX
- Deletes all of pm2!
- Reverse Proxy Issue | Express-session not working with nginx proxy HOT 1
- Docker Support
- Demo link dead HOT 1
- fs/promises HOT 2
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 botmaster.