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
Percy6mo ago
Project ID: c2a419a0-3800-4ec5-a7fd-e229dd460a4d
SpushFNBR
SpushFNBR6mo ago
c2a419a0-3800-4ec5-a7fd-e229dd460a4d
Fragly
Fragly6mo ago
what kind of app is this?
SpushFNBR
SpushFNBR6mo ago
api
Fragly
Fragly6mo ago
most informative answer ever 💀 nah like, what's the stack, do you have a dockerfile?
SpushFNBR
SpushFNBR6mo ago
im from spain and my english is terrible and im just starting learning so thats why 💀
Fragly
Fragly6mo ago
Oh no problem Are you using NodeJS, Go, Python .. ?
SpushFNBR
SpushFNBR6mo ago
javascript
Fragly
Fragly6mo ago
do you have a pom file in your app?
SpushFNBR
SpushFNBR6mo ago
Fragly
Fragly6mo ago
oh that's javascript SMH java
SpushFNBR
SpushFNBR6mo ago
yeah
Fragly
Fragly6mo ago
do you have a package.json ?
SpushFNBR
SpushFNBR6mo ago
yea
LaCrak27
LaCrak276mo ago
oh holy i am spanish too
Fragly
Fragly6mo ago
And no dockerfile right?
SpushFNBR
SpushFNBR6mo 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
LaCrak276mo ago
puedo traducir ;)
SpushFNBR
SpushFNBR6mo ago
holaa this is it fragly
LaCrak27
LaCrak276mo ago
package.json right?
Fragly
Fragly6mo ago
you have no dockerfile right?
LaCrak27
LaCrak276mo ago
can you send a link to the repo you're deploying? un link al repo de github porfaa
SpushFNBR
SpushFNBR6mo ago
its a private repo dont think so
LaCrak27
LaCrak276mo ago
ok so there is a package.json huh...
SpushFNBR
SpushFNBR6mo ago
yeah this one
LaCrak27
LaCrak276mo 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
SpushFNBR6mo ago
sure whats your name on github
LaCrak27
LaCrak276mo ago
LaCrak27
SpushFNBR
SpushFNBR6mo ago
nvm yap te envie soli
Fragly
Fragly6mo ago
Pretty sure Nixpacks relies on package-lock.json to build your app
LaCrak27
LaCrak276mo ago
perfe oh yeah true that ain't in there did you install dependencies?
Adam
Adam6mo ago
y’all are welcome to communicate in spanish here if that’s what you’re both comfortable with btw
Fragly
Fragly6mo ago
you can bring the lockfile back by running
npm i --package-lock-only
npm i --package-lock-only
Adam
Adam6mo ago
just give a tldr in english once the issue is solved
LaCrak27
LaCrak276mo ago
ok, good to know on your machine, then push
SpushFNBR
SpushFNBR6mo ago
🫶
Adam
Adam6mo 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
LaCrak276mo ago
ok basicamente lo que dice fragly es lo que es
Fragly
Fragly6mo ago
I don't think they have build logs
LaCrak27
LaCrak276mo ago
necesitas un package-lock.json
Fragly
Fragly6mo ago
LaCrak27
LaCrak276mo ago
es un archivo que dice cuales son las dependencias y eso para volver a construir el archivo
Fragly
Fragly6mo ago
true!
LaCrak27
LaCrak276mo ago
clonas el repo, ejecutas npm i --package-lock-only
Adam
Adam6mo ago
^ give this a shot
SpushFNBR
SpushFNBR6mo ago
i've getting this issue for hours now
LaCrak27
LaCrak276mo ago
y pusheas si quieres te hago una pr con el fix
SpushFNBR
SpushFNBR6mo ago
puedes hacerlo? porfa tengo que irme
LaCrak27
LaCrak276mo ago
sip te dejo la PR hecha sin problema solo dame 5 mins
Fragly
Fragly6mo ago
dame dame! dameyo! that song is spanish? nvm it's japanese
LaCrak27
LaCrak276mo 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
SpushFNBR6mo ago
muchas gracias!! ❤️ se cambio el url? @LaCrak27
LaCrak27
LaCrak276mo ago
no no yo no he tocado nada en railway lo que tienes que hacer es desde github
SpushFNBR
SpushFNBR6mo ago
ahh vale vale
LaCrak27
LaCrak276mo ago
aprobar my PR a main cuando la apruebes ya hara el deploy solo he usado otra rama
SpushFNBR
SpushFNBR6mo ago
gracias