2 years ago
I try and deploy this bot i bought and i keep getting the error “Nixpacks was unable to generate a build plan for this app.”
89 Replies
I do not know why its doing this, i do not know much about coding or anything so i bought the bot.
2 years ago
Nixpacks isn't magic, if your files aren't named in conventional ways it won't know what to do with them
2 years ago
Please send your Github repo
I don’t know anything about this, all i did was buy the script, put it into a github repo and tried hosting it.
2 years ago
That's fine, we can help you out
2 years ago
Please make the repo public, I can't access it
2 years ago
What instructions did they give you to run the app? The file is obfuscated
2 years ago
And then what? You'll need a command to run the js file
2 years ago
I'm not sure what you mean by this. You mean in the Discord Developer site?
2 years ago
It seems to me like you didn't buy an entire premade bot. They're expecting you to follow the tutorial and build the basic bot for yourself, then somehow add their code to it
2 years ago
You should discuss hosting this with the person you bought it from and follow the instructions they give you
I spoke to them about hosting not the bot and they said “i dont think railway can host discord bots”..
2 years ago
Railway absolutely can host Discord bots, I have 3 running right now
2 years ago
Ask them how to run the bot locally. We can make it work on Railway from there
Okay, i need to make a bot first then add the obfuscated script to my bot. Ill try that in the morning and let you know. Thank you.
2 years ago
@𝕽𝖞𝖆𝖓 click in your service
2 years ago
you're in your project
2 years ago
thats your project, not the service
2 years ago
the service is the FlyRyan thing
2 years ago
yes
2 years ago
click on every three dots thing and then abort
2 years ago
yeah its remove
2 years ago
ctrl + k
2 years ago
type "deploy latest commit" and then enter
Starting Container
npm WARN config production Use `--omit=dev` instead.
> commandkit-app@0.0.0 start
> node ./src/index.js
node:internal/modules/cjs/loader:1140
const err = new Error(message);
^
Error: Cannot find module 'puppeteer'
Require stack:
- /app/src/commands/General/post-ad.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/app/src/commands/General/post-ad.js:1:43760)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at ModuleWrap. (node:internal/modules/esm/translators:203:29) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/src/commands/General/post-ad.js' ]
}
Node.js v18.20.2
npm WARN config production Use `--omit=dev` instead.2 years ago
you'll need to install puppeteer as a dependency on your project
2 years ago
npm i puppeteer
2 years ago
in your project, locally
2 years ago
hi, sorry, wont be able to help you right now, im at work
a year ago
still busy
Error posting ad with Puppeteer: Error: Failed to launch the browser process! undefined
[26:26:1123/064647.466824:ERROR:zygote_host_impl_linux.cc(101)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
TROUBLESHOOTING: https://pptr.dev/troubleshooting
at ChildProcess.onClose (/app/node_modules/@puppeteer/browsers/lib/cjs/launch.js:314:24)
at ChildProcess.emit (node<:events:1083001445076455455>529:35)
at ChildProcess._handle.onexit (node:internal/child_process:292:12)a year ago
some place in your code
a year ago
you need
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});a year ago
like wherever you do puppeteer.launch
you need
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});a year ago
That is what your error means I believe so yes.
a year ago
!s
Status changed to Solved adam • over 1 year ago



