Build seems to keep timing out, cannot deploy project!

dann303
TRIAL

a year ago

I am trying to deploy a node app (that i built during a course) but it seems to not work.

I have the project uploaded on github : https://github.com/Dann303/task-manager-api

The problem occurs when I try to create the node project from my github repo, it starts by initializing everything and then it goes on for the building stage and gets stuck there for minutes until it eventually times out and fails…

I tried searching for answers but failed miserably, and tried redeploying several times without any results.

Here's a part of the log if it helps :

[Region: us-west1]

==============

Using Nixpacks

==============

context: caf3315d422cfea32fefd5d1d438f70f

╔════════ Nixpacks v1.24.0 ═══════╗

║ setup │ nodejs18, npm-9x ║

║─────────────────────────────────║

║ install │ npm ci ║

║─────────────────────────────────║

║ start │ npm run start ║

╚═════════════════════════════════╝

0 building with "default" instance using docker driver

1 [internal] load build definition from Dockerfile

1 transferring dockerfile: 1.75kB done

1 DONE 0.0s

2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1716249803

2 DONE 0.1s

3 [internal] load .dockerignore

3 transferring context: 2B done

3 DONE 0.0s

4 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1716249803@sha256:5ef4d2021c418fcaabb56cea5ea9e24a5fdedfe27f58062d9689214dfed45c46

4 DONE 0.0s

5 [internal] load build context

5 transferring context: 196.03kB done

5 DONE 0.0s

6 [stage-0 2/8] WORKDIR /app/

6 CACHED

7 [stage-0 3/8] COPY .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix

7 CACHED

8 [stage-0 4/8] RUN nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d

8 CACHED

9 [stage-0 5/8] COPY . /app/.

9 DONE 0.0s

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

10 Replies


dann303
TRIAL

a year ago

Full build logs please -

https://bookmarklets.up.railway.app/log-downloader/

Here

After waiting for several minutes it just time outs every single time.

Attachments


a year ago

Have you tried enabling the new builder in the service settings?


dann303
TRIAL

a year ago

Have you tried enabling the new builder in the service settings?

Yes

Here's the logs that were created after trying this setting.

Attachments


a year ago

What version of node do you use locally?


dann303
TRIAL

a year ago

v21.6.2


dann303
TRIAL

a year ago

I noticed my last logs changed a little bit, this is the first time Im having a different ending.

Attachments


a year ago

The build command is not for the install command, please remove that.


dann303
TRIAL

a year ago

Then how do i tell it how to install dependencies, and then which exact file to run to start up everything? I do have a start script written in my package.json file, is there smth else to add?


a year ago

As per your build logs, npm ci is ran by default.

Some dependency is hanging on install and timing out the build, please search for the affected dependency and fix the issue.


Build seems to keep timing out, cannot deploy project! - Railway Help Station