a year 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.
a year ago
Nixpacks isn't magic, if your files aren't named in conventional ways it won't know what to do with them
a year 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.
a year ago
That's fine, we can help you out
a year ago
Please make the repo public, I can't access it
a year ago
What instructions did they give you to run the app? The file is obfuscated
a year ago
And then what? You'll need a command to run the js file
a year ago
I'm not sure what you mean by this. You mean in the Discord Developer site?
a year 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
a year 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”..
a year ago
Railway absolutely can host Discord bots, I have 3 running right now
a year 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.
a year ago
@𝕽𝖞𝖆𝖓 click in your service
a year ago
you're in your project
a year ago
thats your project, not the service
a year ago
the service is the FlyRyan thing
a year ago
yes
a year ago
click on every three dots thing and then abort
a year ago
yeah its remove
a year ago
ctrl + k
a year 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.a year ago
you'll need to install puppeteer as a dependency on your project
a year ago
npm i puppeteer
a year ago
in your project, locally
a year 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:zygotehostimpl_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 • about 1 year ago



