WilsonSquared
WilsonSquared
Explore posts from servers
RRailway
Created by WilsonSquared on 9/20/2024 in #✋|help
Build stuck on postinstall
I'm trying to build a new nodejs service with railway. Everything was going ok until I tried to deploy it. The build has been running for 30 minutes now


#12 30.70 apps/pages postinstall$ svelte-kit sync

#12 30.70 apps/app postinstall$ svelte-kit sync

#12 30.77 apps/widget postinstall$ svelte-kit sync


#12 31.52 apps/app postinstall: Done


#12 ...



#7 [stage-0 2/12] WORKDIR /app/



#7 CACHED



#12 [stage-0 7/11] RUN --mount=type=cache,id=s/e09838c9-28e6-4a40-8e7c-a8bd6f5ec7d4-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i




#12 30.70 apps/pages postinstall$ svelte-kit sync

#12 30.70 apps/app postinstall$ svelte-kit sync

#12 30.77 apps/widget postinstall$ svelte-kit sync


#12 31.52 apps/app postinstall: Done


#12 ...



#7 [stage-0 2/12] WORKDIR /app/



#7 CACHED



#12 [stage-0 7/11] RUN --mount=type=cache,id=s/e09838c9-28e6-4a40-8e7c-a8bd6f5ec7d4-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i


4 replies
DTDrizzle Team
Created by WilsonSquared on 9/14/2024 in #help
Introspection fails sonb_build_array(" is not valid JSON
I'm trying to switch from prisma to drizzle. To begin, I've tried introspecting my database, but it fails with an error sonb_build_array(" is not valid JSON. No logs either. Any idea what could be causing this
npx drizzle-kit introspect

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/wilson/Developer/Projects/senja/apps/api/drizzle.config.ts'
Pulling from ['public'] list of schemas

Using 'postgres' driver for database querying
[✓] 49 tables fetched
[⣟] 471 columns fetching
[✓] 0 enums fetched
[⣟] 0 indexes fetching
[⣟] 9 foreign keys fetching
undefined:1
sonb_build_array(
^

SyntaxError: Unexpected token 's', "sonb_build_array(" is not valid JSON
at JSON.parse (<anonymous>)
at defaultForColumn (/Users/wilson/Developer/Projects/senja/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:19380:55)
npx drizzle-kit introspect

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/wilson/Developer/Projects/senja/apps/api/drizzle.config.ts'
Pulling from ['public'] list of schemas

Using 'postgres' driver for database querying
[✓] 49 tables fetched
[⣟] 471 columns fetching
[✓] 0 enums fetched
[⣟] 0 indexes fetching
[⣟] 9 foreign keys fetching
undefined:1
sonb_build_array(
^

SyntaxError: Unexpected token 's', "sonb_build_array(" is not valid JSON
at JSON.parse (<anonymous>)
at defaultForColumn (/Users/wilson/Developer/Projects/senja/node_modules/.pnpm/[email protected]/node_modules/drizzle-kit/bin.cjs:19380:55)
4 replies
RRailway
Created by WilsonSquared on 7/24/2024 in #✋|help
Why does publishing my image take forever
All my builds on Railway take ❤️ minutes. Publishing the image, however takes 10-15 minutes. Why is this happening and how do I speed it up?
9 replies
RRailway
Created by WilsonSquared on 7/7/2024 in #✋|help
Magic ports aren't being resolved correctly
I have just generated a domain that points to port 4000 of my railway deployment. Problem is, it's stll pointing to the port of my custom domain (9600) Any idea why? Project: https://railway.app/project/045e21af-ff58-4d2c-a95a-4147dea211c9/service/c040e311-95df-41bf-82ff-e87da0aa84fe/settings
62 replies
DTDrizzle Team
Created by WilsonSquared on 5/25/2024 in #help
Drizzlekit push fails with "database...TypeError: Cannot use 'in' operator to search for 'default'"
I'm trying to run a migration on my Neon postgres instance, but I keep getting this error: Any ideas on how to solve/workaround this error?
Reading config file '/Users/wilson/Developer/Projects/rewardmojo/pkgs/db/drizzle.config.ts'
Using 'postgres' driver for database querying
[✓] Pulling schema from database...TypeError: Cannot use 'in' operator to search for 'default' in undefined
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18362:23
at Array.map (<anonymous>)
at alternationsInColumn (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18361:10)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:49
at Array.map (<anonymous>)
at findAlternationsInTable (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:37)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18203:14
at Array.map (<anonymous>)
at applyJsonDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18201:69)
at applyPgSnapshotsDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:19822:26)
Reading config file '/Users/wilson/Developer/Projects/rewardmojo/pkgs/db/drizzle.config.ts'
Using 'postgres' driver for database querying
[✓] Pulling schema from database...TypeError: Cannot use 'in' operator to search for 'default' in undefined
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18362:23
at Array.map (<anonymous>)
at alternationsInColumn (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18361:10)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:49
at Array.map (<anonymous>)
at findAlternationsInTable (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18321:37)
at /Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18203:14
at Array.map (<anonymous>)
at applyJsonDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:18201:69)
at applyPgSnapshotsDiff (/Users/wilson/Developer/Projects/rewardmojo/node_modules/drizzle-kit/bin.cjs:19822:26)
10 replies
RRailway
Created by WilsonSquared on 3/6/2024 in #✋|help
Error: libuuid.so.1: cannot open shared object file: No such file or directory
Getting this error with puppeteer on Railway.
node:internal/modules/cjs/loader:1239

return process.dlopen(module, path.toNamespacedPath(filename));

^

Error: libuuid.so.1: cannot open shared object file: No such file or directory

at Object.Module._extensions..node (node:internal/modules/cjs/loader:1239:18)

at Module.load (node:internal/modules/cjs/loader:1033:32)

at Function.Module._load (node:internal/modules/cjs/loader:868:12)

at Module.require (node:internal/modules/cjs/loader:1057:19)

at require (node:internal/modules/cjs/helpers:103:18)

at Object.<anonymous> (/app/node_modules/.pnpm/[email protected]/node_modules/canvas/lib/bindings.js:3:18)

at Module._compile (node:internal/modules/cjs/loader:1155:14)

at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)

at Module.load (node:internal/modules/cjs/loader:1033:32)

at Function.Module._load (node:internal/modules/cjs/loader:868:12) {

code: 'ERR_DLOPEN_FAILED'

}
node:internal/modules/cjs/loader:1239

return process.dlopen(module, path.toNamespacedPath(filename));

^

Error: libuuid.so.1: cannot open shared object file: No such file or directory

at Object.Module._extensions..node (node:internal/modules/cjs/loader:1239:18)

at Module.load (node:internal/modules/cjs/loader:1033:32)

at Function.Module._load (node:internal/modules/cjs/loader:868:12)

at Module.require (node:internal/modules/cjs/loader:1057:19)

at require (node:internal/modules/cjs/helpers:103:18)

at Object.<anonymous> (/app/node_modules/.pnpm/[email protected]/node_modules/canvas/lib/bindings.js:3:18)

at Module._compile (node:internal/modules/cjs/loader:1155:14)

at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)

at Module.load (node:internal/modules/cjs/loader:1033:32)

at Function.Module._load (node:internal/modules/cjs/loader:868:12) {

code: 'ERR_DLOPEN_FAILED'

}
railway.toml
[phases.setup]
aptPkgs = ['...', 'libuuid1']
nixPkgs = ['...', 'libuuid1']
nixLibs = ["...", "libuuid", "libGL"]

[build]
nixpacksVersion = "1.15.0"
[phases.setup]
aptPkgs = ['...', 'libuuid1']
nixPkgs = ['...', 'libuuid1']
nixLibs = ["...", "libuuid", "libGL"]

[build]
nixpacksVersion = "1.15.0"
Project ID: 045e21af-ff58-4d2c-a95a-4147dea211c9 Service ID: c040e311-95df-41bf-82ff-e87da0aa84fe Currently blocked on a release bc I can't get puppeteer to work
13 replies
RRailway
Created by WilsonSquared on 10/2/2023 in #✋|help
Puppeteer GLIBC version error
I'm using puppeteer with railway, and I'm getting this error in a monorepo. ⛔️ Error: Failed to launch the browser process! TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md /app/apps/image/node_modules/.remotion/.chromium/linux-1002410/chrome-linux/chrome: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/9lhvbvvm3s7kv7maak5vm7as6fwjgfa7-util-linux-minimal-2.39.2-lib/lib/libmount.so.1) I have my nixpacks apt packages set to libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0 What's going wrong? Any ideas?
6 replies
RRailway
Created by WilsonSquared on 4/25/2023 in #✋|help
Urgent: Can't restore railway tar.gz file
Made an error when working with my database and I'm trying to restore a backup from a tar.gz created using the automatic backup solution by railway, but I keep on getting the error:
pg_restore: error: corrupt tar header found in (expected 0, computed 69815) file position 512
pg_restore: error: corrupt tar header found in (expected 0, computed 69815) file position 512
4 replies
RRailway
Created by WilsonSquared on 3/16/2023 in #✋|help
Error after installing puppeteer-core. libuuid.so.1
After installing puppeteer core and deploying my application, my app crashed with this error:
Error: libuuid.so.1: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1239:18)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/node_modules/canvas/lib/canvas.js:9:18)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/node_modules/canvas/index.js:1:16)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10) {
code: 'ERR_DLOPEN_FAILED'
}
Error: libuuid.so.1: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1239:18)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/node_modules/canvas/lib/canvas.js:9:18)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/node_modules/canvas/index.js:1:16)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10) {
code: 'ERR_DLOPEN_FAILED'
}
This issue appeared after I installed puppeteer-core. I've read all similar issues on discord and github looking for a solution, but I found nothing.
30 replies
RRailway
Created by WilsonSquared on 11/21/2022 in #✋|help
read ECONNRESET on my database
Connections and queries to my database suddenly stoped working, and I have no idea why.
39 replies
RRailway
Created by WilsonSquared on 9/1/2022 in #✋|help
I urgently need to restore a postgres databse
How can I restore my database using railway's automatic backups?
69 replies
RRailway
Created by WilsonSquared on 8/26/2022 in #✋|help
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
42 replies