Docker build fails
atakansavas
PROOP

2 years ago

Im always gettings this error. I dont understand what is going on. In the description of error, it says Contact railway support. Can you help me about that?

Here is my build logs;

#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.67kB done
#1 DONE 0.0s

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

#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: 58.73kB done
#5 DONE 0.0s

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

#7 [stage-0  3/10] COPY .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix
#7 CACHED

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

#9 [stage-0  5/10] COPY . /app/.
#9 CACHED

#10 [stage-0  6/10] RUN --mount=type=cache,id=s/46e992af-ff0d-4a13-a43d-798bd5695d8d-/root/npm,target=/root/.npm npm i
#10 0.609 npm

WARN config production Use `--omit=dev` instead.

#10 5.980
#10 5.980 added 159 packages, and audited 160 packages in 5s
#10 5.980
#10 5.980 25 packages are looking for funding
#10 5.980   run `npm fund` for details
#10 5.982
#10 5.982 found 0 vulnerabilities

#10 DONE 6.2s

#11 [stage-0  7/10] COPY . /app/.

#11 DONE 0.0s

View Deploy details

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

Solved

12 Replies


atakansavas
PROOP

2 years ago

Full build logs please - https://bookmarklets.up.railway.app/log-downloader/

Here is my full build logs


atakansavas
PROOP

2 years ago

Sorry i didnt check files. Here is;

Attachments


2 years ago

What version of node do you use locally to develop this application with?


atakansavas
PROOP

2 years ago

It seems 20.9.0


2 years ago

Try setting the engines.node property in your package.json to 20


atakansavas
PROOP

2 years ago

It gives same error. I attached the logs.

Attachments


atakansavas
PROOP

2 years ago

Hello there again,

Im still getting same error. Here is my build logs;

Attachments


Status changed to Awaiting Railway Response Railway over 1 year ago


atakansavas
PROOP

2 years ago

Hello there, its been 5 days and im still trying to find a solution. Can you guys help me?


According to your logs, it looks like you're having duplicate identifiers. So multiple variables or functions or classes or types with the same name in the same scope. This seems to be an issue with your code, and once addressed, you should be able to build and deploy.


Status changed to Awaiting User Response Railway over 1 year ago


atakansavas
PROOP

2 years ago

Hi there, thank you for response. Can you share any detail about which variable or name or something else. Because its working on local and i didnt catch the error.


Status changed to Awaiting Railway Response Railway over 1 year ago


2 years ago

Christian has access to the same logs you do, please review your build and or deploy logs, so that you can fix the code issue.


Status changed to Awaiting User Response christian over 1 year ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...