NodeJs app keeps failing during build step

My nodejs apps randomly stopped working during the build step. I now get this error:
executor failed running [/bin/bash -ol pipefail -c apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1]: exit code: 100
executor failed running [/bin/bash -ol pipefail -c apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1]: exit code: 100
23 Replies
WilsonSquared
WilsonSquaredOP3y ago
My project id is this -> 045e21af-ff58-4d2c-a95a-4147dea211c9
milo
milo3y ago
can we see your package.json please
WilsonSquared
WilsonSquaredOP3y ago
backend/package.json
{
"name": "@senja/backend",
"version": "1.0.0",
"description": "Backend for Senja",
"main": "dist/index.js",
"private": true,
"scripts": {
"prebuild": "yarn workspace @senja/shared build",
"build": "npx tsc",
"prestart": "yarn build",
"start": "node .",
"dev": "nodemon"
},
"author": "Wilson Wilson",
"license": "ISC",
"dependencies": {
"@mux/mux-node": "^3.3.1",
"@senja/shared": "1.0.0",
"@urql/core": "^2.3.6",
"axios": "^0.27.2",
"body-parser": "^1.19.1",
"cors": "^2.8.5",
"cross-fetch": "^3.1.4",
"dotenv": "^11.0.0",
"express": "^4.17.2",
"firebase-admin": "^10.0.1",
"graphql": "^16.2.0",
"paddle-sdk": "^2.5.1",
"postmark": "^2.8.2",
"puppeteer": "^13.3.1",
"slack-notify": "^2.0.2",
"twitter-api-v2": "^1.12.2",
"uuid": "^8.3.2"
},
"_moduleAliases": {
"src/routes": "dist/routes",
"src/services": "dist/services",
"src/utils": "dist/utils"
},
"devDependencies": {
"@deepgram/sdk": "^1.4.2",
"@firebase/app-types": "^0.7.0",
"@types/body-parser": "^1.19.2",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/uuid": "^8.3.4",
"module-alias": "^2.2.2",
"nodemon": "^2.0.15",
"ts-node": "^10.5.0",
"tslint": "^6.1.3",
"typescript": "^4.5.4"
},
"workspaces": {
"nohoist": [
"module-alias"
]
},
"peerDependencies": {
"@firebase/app-types": "^0.7.0"
}
}
{
"name": "@senja/backend",
"version": "1.0.0",
"description": "Backend for Senja",
"main": "dist/index.js",
"private": true,
"scripts": {
"prebuild": "yarn workspace @senja/shared build",
"build": "npx tsc",
"prestart": "yarn build",
"start": "node .",
"dev": "nodemon"
},
"author": "Wilson Wilson",
"license": "ISC",
"dependencies": {
"@mux/mux-node": "^3.3.1",
"@senja/shared": "1.0.0",
"@urql/core": "^2.3.6",
"axios": "^0.27.2",
"body-parser": "^1.19.1",
"cors": "^2.8.5",
"cross-fetch": "^3.1.4",
"dotenv": "^11.0.0",
"express": "^4.17.2",
"firebase-admin": "^10.0.1",
"graphql": "^16.2.0",
"paddle-sdk": "^2.5.1",
"postmark": "^2.8.2",
"puppeteer": "^13.3.1",
"slack-notify": "^2.0.2",
"twitter-api-v2": "^1.12.2",
"uuid": "^8.3.2"
},
"_moduleAliases": {
"src/routes": "dist/routes",
"src/services": "dist/services",
"src/utils": "dist/utils"
},
"devDependencies": {
"@deepgram/sdk": "^1.4.2",
"@firebase/app-types": "^0.7.0",
"@types/body-parser": "^1.19.2",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/uuid": "^8.3.4",
"module-alias": "^2.2.2",
"nodemon": "^2.0.15",
"ts-node": "^10.5.0",
"tslint": "^6.1.3",
"typescript": "^4.5.4"
},
"workspaces": {
"nohoist": [
"module-alias"
]
},
"peerDependencies": {
"@firebase/app-types": "^0.7.0"
}
}
All 3 services use a "@senja/shared" package: @senja/shared/package.json
{
"name": "@senja/shared",
"version": "1.0.0",
"private": true,
"description": "Core Logic for Senja",
"type": "commonjs",
"module": "index.ts",
"main": "dist/index.js",
"scripts": {
"build": "npx tsc"
},
"license": "MIT",
"files": [
"index.ts"
],
"dependencies": {
"@urql/core": "^2.5.0",
"date-fns": "^2.28.0",
"konva": "^8.3.10",
"linkify-html": "^3.0.5",
"linkify-plugin-mention": "^3.0.4",
"linkifyjs": "^3.0.5",
"nanoid": "^3.3.4",
"rxjs": "^7.5.5",
"timeago.js": "^4.0.2"
},
"devDependencies": {
"typescript": "^4.7.4"
}
}
{
"name": "@senja/shared",
"version": "1.0.0",
"private": true,
"description": "Core Logic for Senja",
"type": "commonjs",
"module": "index.ts",
"main": "dist/index.js",
"scripts": {
"build": "npx tsc"
},
"license": "MIT",
"files": [
"index.ts"
],
"dependencies": {
"@urql/core": "^2.5.0",
"date-fns": "^2.28.0",
"konva": "^8.3.10",
"linkify-html": "^3.0.5",
"linkify-plugin-mention": "^3.0.4",
"linkifyjs": "^3.0.5",
"nanoid": "^3.3.4",
"rxjs": "^7.5.5",
"timeago.js": "^4.0.2"
},
"devDependencies": {
"typescript": "^4.7.4"
}
}
milo
milo3y ago
hmm i guess puppeteer is broken could you try redeploying? if it doesn't work, would you mind channeling all this information into a bug report please/
milo
milo3y ago
GitHub
GitHub - railwayapp/nixpacks: App source + Nix packages + Docker = ...
App source + Nix packages + Docker = Image. Contribute to railwayapp/nixpacks development by creating an account on GitHub.
WilsonSquared
WilsonSquaredOP3y ago
Sure, I'm redeploying now. Puppeteer not working doesn't make sense though, I'm not using puppeteer for all the services
milo
milo3y ago
you have puppeteer as a dependency we install required system deps if you have puppeteer and those packages are what we install lol it's really annoying becuase puppeteer is so finickity
WilsonSquared
WilsonSquaredOP3y ago
Ah I guess that makes sense The build failed again:
...
#9 6.379 installed systemd package post-installation script subprocess returned error exit status 1
#9 6.379 Setting up dmsetup (2:1.02.175-2.1) ...
#9 6.409 Errors were encountered while processing:
#9 6.409 systemd

#9 6.449 E: Sub-process /usr/bin/dpkg returned an error code (1)

#9 ERROR: executor failed running [/bin/bash -ol pipefail -c apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1]: exit code: 100
-----
> [stage-0 5/10] RUN apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1:
-----
executor failed running [/bin/bash -ol pipefail -c apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1]: exit code: 100

Error: Docker build failed
...
#9 6.379 installed systemd package post-installation script subprocess returned error exit status 1
#9 6.379 Setting up dmsetup (2:1.02.175-2.1) ...
#9 6.409 Errors were encountered while processing:
#9 6.409 systemd

#9 6.449 E: Sub-process /usr/bin/dpkg returned an error code (1)

#9 ERROR: executor failed running [/bin/bash -ol pipefail -c apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1]: exit code: 100
-----
> [stage-0 5/10] RUN apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1:
-----
executor failed running [/bin/bash -ol pipefail -c apt-get update && apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 libxshmfence1 libglu1]: exit code: 100

Error: Docker build failed
milo
milo3y ago
yup, please make a bug report
WilsonSquared
WilsonSquaredOP3y ago
What should I call this? The bug report that is
milo
milo3y ago
puppeteer system dependencies fail to install or something along the lines of that please
WilsonSquared
WilsonSquaredOP3y ago
Sure
milo
milo3y ago
thanks!
WilsonSquared
WilsonSquaredOP3y ago
Is there any way to downgrade my nixpacks version? My deploys succeeded a few days ago And I need to urgently get this out
milo
milo3y ago
no, there is no way downgrading wouldn't do anything either this is a bug in the system deps we are installign
WilsonSquared
WilsonSquaredOP3y ago
So there So there's no way for me to release the new version of my app? That's a big deal
milo
milo3y ago
are you actually using puppeteer anywhere
Puppeteer not working doesn't make sense though, I'm not using puppeteer for all the services
WilsonSquared
WilsonSquaredOP3y ago
Yes I am, in two of my services
milo
milo3y ago
oh alright
WilsonSquared
WilsonSquaredOP3y ago
Because it's a monorepo though, I use the root directory
milo
milo3y ago
yeah that's why the thing i recommend doing right now is just making a bug report i can take a look into it relatively soon
WilsonSquared
WilsonSquaredOP3y ago
Sure thing. Thanks
milo
milo3y ago
i'll archive this thread
Want results from more Discord servers?
Add your server