No build logs found for deployment

Hello, i've trying to build a program for hours now but it takes like 5-10-20 mins to deploy and when it does, it just says failed
57 Replies
Percy
Percy11mo ago
Project ID: c2a419a0-3800-4ec5-a7fd-e229dd460a4d
SpushFNBR
SpushFNBROP11mo ago
c2a419a0-3800-4ec5-a7fd-e229dd460a4d
Fragly
Fragly11mo ago
what kind of app is this?
SpushFNBR
SpushFNBROP11mo ago
api
Fragly
Fragly11mo ago
most informative answer ever 💀 nah like, what's the stack, do you have a dockerfile?
SpushFNBR
SpushFNBROP11mo ago
im from spain and my english is terrible and im just starting learning so thats why 💀
Fragly
Fragly11mo ago
Oh no problem Are you using NodeJS, Go, Python .. ?
SpushFNBR
SpushFNBROP11mo ago
javascript
Fragly
Fragly11mo ago
do you have a pom file in your app?
SpushFNBR
SpushFNBROP11mo ago
Fragly
Fragly11mo ago
oh that's javascript SMH java
SpushFNBR
SpushFNBROP11mo ago
yeah
Fragly
Fragly11mo ago
do you have a package.json ?
SpushFNBR
SpushFNBROP11mo ago
yea
LaCrak27
LaCrak2711mo ago
oh holy i am spanish too
Fragly
Fragly11mo ago
And no dockerfile right?
SpushFNBR
SpushFNBROP11mo ago
{
"name": "nodejs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@discordjs/builders": "^1.6.5",
"@discordjs/rest": "^2.0.1",
"discord-api-types": "^0.37.58",
"discord.js": "^14.13.0",
"@types/node": "^20.6.5",
"@vladfrangu/async_event_emitter": "^2.2.3",
"axios": "^1.5.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"fs-extra": "^11.1.1",
"json-difference": "^1.15.7",
"moment": "^2.29.4",
"mongoose": "^7.5.2",
"node-cron": "^3.0.2",
"path": "0.12.7",
"to-hex": "^0.0.18",
"request": "^2.88.2"
}
}
{
"name": "nodejs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@discordjs/builders": "^1.6.5",
"@discordjs/rest": "^2.0.1",
"discord-api-types": "^0.37.58",
"discord.js": "^14.13.0",
"@types/node": "^20.6.5",
"@vladfrangu/async_event_emitter": "^2.2.3",
"axios": "^1.5.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"fs-extra": "^11.1.1",
"json-difference": "^1.15.7",
"moment": "^2.29.4",
"mongoose": "^7.5.2",
"node-cron": "^3.0.2",
"path": "0.12.7",
"to-hex": "^0.0.18",
"request": "^2.88.2"
}
}
LaCrak27
LaCrak2711mo ago
puedo traducir ;)
SpushFNBR
SpushFNBROP11mo ago
holaa this is it fragly
LaCrak27
LaCrak2711mo ago
package.json right?
Fragly
Fragly11mo ago
you have no dockerfile right?
LaCrak27
LaCrak2711mo ago
can you send a link to the repo you're deploying? un link al repo de github porfaa
SpushFNBR
SpushFNBROP11mo ago
its a private repo dont think so
LaCrak27
LaCrak2711mo ago
ok so there is a package.json huh...
SpushFNBR
SpushFNBROP11mo ago
yeah this one
LaCrak27
LaCrak2711mo ago
could you by any chance invite me to your repo? i wanna see what behavior it has (it's ok if you don't wanna, i understand)
SpushFNBR
SpushFNBROP11mo ago
sure whats your name on github
LaCrak27
LaCrak2711mo ago
LaCrak27
SpushFNBR
SpushFNBROP11mo ago
nvm yap te envie soli
Fragly
Fragly11mo ago
Pretty sure Nixpacks relies on package-lock.json to build your app
LaCrak27
LaCrak2711mo ago
perfe oh yeah true that ain't in there did you install dependencies?
Adam
Adam11mo ago
y’all are welcome to communicate in spanish here if that’s what you’re both comfortable with btw
Fragly
Fragly11mo ago
you can bring the lockfile back by running
npm i --package-lock-only
npm i --package-lock-only
Adam
Adam11mo ago
just give a tldr in english once the issue is solved
LaCrak27
LaCrak2711mo ago
ok, good to know on your machine, then push
SpushFNBR
SpushFNBROP11mo ago
🫶
Adam
Adam11mo ago
I would kick this off with trying to use brody’s api to pull the build logs, sometimes it can pull when the ui can’t
LaCrak27
LaCrak2711mo ago
ok basicamente lo que dice fragly es lo que es
Fragly
Fragly11mo ago
I don't think they have build logs
LaCrak27
LaCrak2711mo ago
necesitas un package-lock.json
Fragly
Fragly11mo ago
LaCrak27
LaCrak2711mo ago
es un archivo que dice cuales son las dependencias y eso para volver a construir el archivo
Fragly
Fragly11mo ago
true!
LaCrak27
LaCrak2711mo ago
clonas el repo, ejecutas npm i --package-lock-only
Adam
Adam11mo ago
^ give this a shot
SpushFNBR
SpushFNBROP11mo ago
i've getting this issue for hours now
LaCrak27
LaCrak2711mo ago
y pusheas si quieres te hago una pr con el fix
SpushFNBR
SpushFNBROP11mo ago
puedes hacerlo? porfa tengo que irme
LaCrak27
LaCrak2711mo ago
sip te dejo la PR hecha sin problema solo dame 5 mins
Fragly
Fragly11mo ago
dame dame! dameyo! that song is spanish? nvm it's japanese
LaCrak27
LaCrak2711mo ago
💀 can confirm, after the fix, railway builds it waiting for deployment there ya go, deployed @SpushFNBR just merge the PR i made also TL;DR, just make sure you have a valid package-lock.json, if you don't, you can make one with npm i --package-lock-only
SpushFNBR
SpushFNBROP11mo ago
muchas gracias!! ❤️ se cambio el url? @LaCrak27
LaCrak27
LaCrak2711mo ago
no no yo no he tocado nada en railway lo que tienes que hacer es desde github
SpushFNBR
SpushFNBROP11mo ago
ahh vale vale
LaCrak27
LaCrak2711mo ago
aprobar my PR a main cuando la apruebes ya hara el deploy solo he usado otra rama
SpushFNBR
SpushFNBROP11mo ago
gracias
Want results from more Discord servers?
Add your server