singlelink-co / Singlelink

The open-source Linktree alternative.
https://singlelink.co
GNU General Public License v3.0
550 stars 117 forks source link

deployment fail on railway #247

Open paulponraj opened 1 year ago

paulponraj commented 1 year ago

Tried deploying on railwayapp [database from planetscale] entered the variables. Deployment log

11 0.719 npm

WARN config production Use --omit=dev instead.

11 7.670 npm WARN deprecated subscriptions-transport-ws@0.11.0: The subscriptions-transport-ws package is no longer maintained. We recommend you use graphql-ws instead. For help migrating Apollo software to graphql-ws, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using graphql-ws, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md

11 10.66 npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

11 11.16 npm WARN deprecated core-js-pure@3.21.0: core-js-pure@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.

11 12.41

11 12.41 > singlelink@4.1.0 postinstall

11 12.41 > npx migrate-mysql

11 12.41

11 12.81 npm

WARN config production Use --omit=dev instead.

11 13.02 Starting Migrate MySQL...

11 23.03 /app/node_modules/mysql2/promise.js:242

11 23.03 const createConnectionErr = new Error();

11 23.03 ^

11 23.03

11 23.03 Error: connect ETIMEDOUT

11 23.03 at Object.createConnection (/app/node_modules/mysql2/promise.js:242:31)

11 23.03 at Object. (/app/node_modules/migrate-mysql/bin/index.js:52:48)

11 23.03 at step (/app/node_modules/migrate-mysql/bin/index.js:33:23)

11 23.03 at Object.next (/app/node_modules/migrate-mysql/bin/index.js:14:53)

11 23.03 at /app/node_modules/migrate-mysql/bin/index.js:8:71

11 23.03 at new Promise ()

11 23.03 at __awaiter (/app/node_modules/migrate-mysql/bin/index.js:4:12)

11 23.03 at /app/node_modules/migrate-mysql/bin/index.js:47:23

11 23.03 at Object. (/app/node_modules/migrate-mysql/bin/index.js:146:7)

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

11 23.03 code: 'ETIMEDOUT',

11 23.03 errno: undefined,

11 23.03 sqlState: undefined

11 23.03 }

11 23.05 npm ERR! code 1

11 23.05 npm ERR! path /app

11 23.06 npm ERR! command failed

11 23.06 npm ERR! command sh -c -- npx migrate-mysql

11 23.06

11 23.06 npm ERR! A complete log of this run can be found in:

11 23.06 npm ERR! /root/.npm/_logs/2022-12-18T19_25_11_250Z-debug-0.log

11 ERROR: executor failed running [/bin/bash -ol pipefail -c npm ci]: exit code: 1


[stage-0 7/10] RUN --mount=type=cache,id=s/df1fb504-706d-4c69-bb15-46b306a0e900-/root/npm,target=/root/.npm npm ci:

executor failed running [/bin/bash -ol pipefail -c npm ci]: exit code: 1

Error: Docker build failed

Another issue: the one click deployment button also not working. Error: it is not available as template

simonManydata commented 1 year ago

same