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

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

Solved

89 Replies

ryannuggets
HOBBYOP

2 years ago

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


ryannuggets
HOBBYOP

2 years 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

2 years ago

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


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


ryannuggets
HOBBYOP

2 years ago

Here you go.



ryannuggets
HOBBYOP

2 years 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.


2 years ago

That's fine, we can help you out


2 years ago

Please make the repo public, I can't access it


ryannuggets
HOBBYOP

2 years ago

Done. Sorry.


2 years ago

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


ryannuggets
HOBBYOP

2 years ago

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


2 years ago

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


ryannuggets
HOBBYOP

2 years ago

They never told me that..


ryannuggets
HOBBYOP

2 years ago

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


ryannuggets
HOBBYOP

2 years ago

With commandkit.


2 years ago

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


ryannuggets
HOBBYOP

2 years ago

Nope.


ryannuggets
HOBBYOP

2 years ago


ryannuggets
HOBBYOP

2 years ago

1306742034073260174


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


ryannuggets
HOBBYOP

2 years ago

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


ryannuggets
HOBBYOP

2 years 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

2 years ago

@Adam


ryannuggets
HOBBYOP

2 years ago

I got the bots files all done now.


ryannuggets
HOBBYOP

2 years ago

Ill try and host it.


maddsua
HOBBY

2 years ago

<:wat:786868710791053312>


ryannuggets
HOBBYOP

2 years ago

@Adam sorry for the huge wait


ryannuggets
HOBBYOP

2 years ago

im trying to host it now


ryannuggets
HOBBYOP

2 years ago

am i able to change scripts from railway itself?


2 years ago

@𝕽𝖞𝖆𝖓 click in your service


ryannuggets
HOBBYOP

2 years ago

hi


2 years ago

you're in your project


ryannuggets
HOBBYOP

2 years ago

yes


ryannuggets
HOBBYOP

2 years ago

1309543359928340621


2 years ago

thats your project, not the service


2 years ago

the service is the FlyRyan thing


ryannuggets
HOBBYOP

2 years ago

ah


ryannuggets
HOBBYOP

2 years ago

1309543495262011453


ryannuggets
HOBBYOP

2 years ago

like this?


2 years ago

yes


2 years ago

click on every three dots thing and then abort


ryannuggets
HOBBYOP

2 years ago

okay


ryannuggets
HOBBYOP

2 years ago

these are the only options

1309543693279035432


2 years ago

yeah its remove


ryannuggets
HOBBYOP

2 years ago

all done, how do i re deploy it now?


2 years ago

ctrl + k


2 years ago

type "deploy latest commit" and then enter


ryannuggets
HOBBYOP

2 years ago

okay, its initializing


ryannuggets
HOBBYOP

2 years ago

ill keep you updated


ryannuggets
HOBBYOP

2 years ago

now its queued


ryannuggets
HOBBYOP

2 years ago

its stuck at queue again


ryannuggets
HOBBYOP

2 years ago

it deployed now


ryannuggets
HOBBYOP

2 years ago

it was active


ryannuggets
HOBBYOP

2 years ago

the discord bot was not working


ryannuggets
HOBBYOP

2 years ago

then it crashed


ryannuggets
HOBBYOP

2 years ago

how do i check like the console logs to see why


ryannuggets
HOBBYOP

2 years 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

2 years ago

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


ryannuggets
HOBBYOP

2 years ago

How do i fix this?


2 years ago

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


2 years ago

npm i puppeteer


ryannuggets
HOBBYOP

2 years ago

where do i send this?


2 years ago

in your project, locally


ryannuggets
HOBBYOP

2 years ago

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


ryannuggets
HOBBYOP

2 years ago

is it the same way like this?


ryannuggets
HOBBYOP

2 years ago

@ThallesComH


2 years ago

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


ryannuggets
HOBBYOP

2 years 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: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&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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...