Discord Bot | Nixpacks was unable to generate a build plan for this app.
ryannuggets
HOBBYOP

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.”

Solved

89 Replies

ryannuggets
HOBBYOP

a year ago

346a079f-6118-4d5c-861e-de6e7caeab04


ryannuggets
HOBBYOP

a year ago

I do not know why its doing this, i do not know much about coding or anything so i bought the bot.


ryannuggets
HOBBYOP

a year ago

If you have access can you check my project with the id above please.


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


ryannuggets
HOBBYOP

a year ago

Here you go.



ryannuggets
HOBBYOP

a year ago

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


ryannuggets
HOBBYOP

a year ago

Done. Sorry.


a year ago

What instructions did they give you to run the app? The file is obfuscated


ryannuggets
HOBBYOP

a year ago

They just told me to put the information in the json files.


a year ago

And then what? You'll need a command to run the js file


ryannuggets
HOBBYOP

a year ago

They never told me that..


ryannuggets
HOBBYOP

a year ago

They just told me now i need to have a bot premade.


ryannuggets
HOBBYOP

a year ago

With commandkit.


a year ago

I'm not sure what you mean by this. You mean in the Discord Developer site?


ryannuggets
HOBBYOP

a year ago

Nope.


ryannuggets
HOBBYOP

a year ago


ryannuggets
HOBBYOP

a year ago

1306742034073260300


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


ryannuggets
HOBBYOP

a year ago

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


ryannuggets
HOBBYOP

a year ago

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.


ryannuggets
HOBBYOP

a year ago

@Adam


ryannuggets
HOBBYOP

a year ago

I got the bots files all done now.


ryannuggets
HOBBYOP

a year ago

Ill try and host it.


maddsua
HOBBY

a year ago

<:wat:786868710791053312>


ryannuggets
HOBBYOP

a year ago

@Adam sorry for the huge wait


ryannuggets
HOBBYOP

a year ago

im trying to host it now


ryannuggets
HOBBYOP

a year ago

am i able to change scripts from railway itself?


a year ago

@𝕽𝖞𝖆𝖓 click in your service


ryannuggets
HOBBYOP

a year ago

hi


a year ago

you're in your project


ryannuggets
HOBBYOP

a year ago

yes


ryannuggets
HOBBYOP

a year ago

1309543359928340700


a year ago

thats your project, not the service


a year ago

the service is the FlyRyan thing


ryannuggets
HOBBYOP

a year ago

ah


ryannuggets
HOBBYOP

a year ago

1309543495262011400


ryannuggets
HOBBYOP

a year ago

like this?


a year ago

yes


a year ago

click on every three dots thing and then abort


ryannuggets
HOBBYOP

a year ago

okay


ryannuggets
HOBBYOP

a year ago

these are the only options

1309543693279035400


a year ago

yeah its remove


ryannuggets
HOBBYOP

a year ago

all done, how do i re deploy it now?


a year ago

ctrl + k


a year ago

type "deploy latest commit" and then enter


ryannuggets
HOBBYOP

a year ago

okay, its initializing


ryannuggets
HOBBYOP

a year ago

ill keep you updated


ryannuggets
HOBBYOP

a year ago

now its queued


ryannuggets
HOBBYOP

a year ago

its stuck at queue again


ryannuggets
HOBBYOP

a year ago

it deployed now


ryannuggets
HOBBYOP

a year ago

it was active


ryannuggets
HOBBYOP

a year ago

the discord bot was not working


ryannuggets
HOBBYOP

a year ago

then it crashed


ryannuggets
HOBBYOP

a year ago

how do i check like the console logs to see why


ryannuggets
HOBBYOP

a year ago

Starting Container

npm WARN config production Use `--omit=dev` instead.



&gt; commandkit-app@0.0.0 start

&gt; 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.

ryannuggets
HOBBYOP

a year ago

Thats was in the log thing, it kept sending that log many times.


ryannuggets
HOBBYOP

a year ago

How do i fix this?


a year ago

you'll need to install puppeteer as a dependency on your project


a year ago

npm i puppeteer


ryannuggets
HOBBYOP

a year ago

where do i send this?


a year ago

in your project, locally


ryannuggets
HOBBYOP

a year ago

im really new to all this sorry to be a pain, how do i do so?


ryannuggets
HOBBYOP

a year ago

is it the same way like this?


ryannuggets
HOBBYOP

a year ago

@ThallesComH


a year ago

hi, sorry, wont be able to help you right now, im at work


ryannuggets
HOBBYOP

a year ago

okay no worries


ryannuggets
HOBBYOP

a year ago

@ThallesComH are you free to help now or still busy?


a year ago

still busy


ryannuggets
HOBBYOP

a year ago

okay!


ryannuggets
HOBBYOP

a year ago

@ThallesComH free now?


ryannuggets
HOBBYOP

a year ago

I got it up and running


ryannuggets
HOBBYOP

a year ago

But when i use a command that relies on puppetear


ryannuggets
HOBBYOP

a year ago

It gives this


ryannuggets
HOBBYOP

a year ago

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&lt;:events:1083001445076455455&gt;529:35)

at ChildProcess._handle.onexit (node:internal/child_process:292:12)

some place in your code


you need

  const browser = await puppeteer.launch({
    args: ['--no-sandbox', '--disable-setuid-sandbox'],
  });

like wherever you do puppeteer.launch


ryannuggets
HOBBYOP

a year ago

So when i do puppeteer.launch, I need to have this?


ryannuggets
HOBBYOP

a year ago

you need

  const browser = await puppeteer.launch({
    args: ['--no-sandbox', '--disable-setuid-sandbox'],
  });

ryannuggets
HOBBYOP

a year ago

In my index or config?


That is what your error means I believe so yes.


a year ago

!s


Status changed to Solved adam over 1 year ago


Loading...