Docker build fails

atakansavasPRO

a year 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.

Awaiting User Response

12 Replies


atakansavasPRO

a year ago

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

Here is my full build logs


atakansavasPRO

a year ago

Sorry i didnt check files. Here is;

Attachments


a year ago

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


atakansavasPRO

a year ago

It seems 20.9.0


a year ago

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


atakansavasPRO

a year ago

It gives same error. I attached the logs.

Attachments


atakansavasPRO

a year ago

Hello there again,

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

Attachments


Status changed to Awaiting Railway Response railway[bot] 11 months ago


atakansavasPRO

10 months ago

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


10 months ago

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[bot] 11 months ago


atakansavasPRO

10 months 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[bot] 11 months ago


10 months 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 11 months ago