8 months ago
While trying to deploy my Laravel application, when it tried to run the nix-env command, 2 errors appeared.
Running phase: installPhase
building '/nix/store/dkfps9kvha7xpgygv4l40vay5gbkdlcn-e24b4c09e963677b1beea49d411cd315a024ad3a-env.drv'...
error: collision between /nix/store/qn1wvz93s3c4f9c74qzb0rpgyrwip6kn-yarn/LICENSE' and /nix/store/i19139857sjanc5llcl360w4wppn4vb3-composer-2.8.4/LICENSE'
error: builder for '/nix/store/dkfps9kvha7xpgygv4l40vay5gbkdlcn-e24b4c09e963677b1beea49d411cd315a024ad3a-env.drv' failed with exit code 25
[ 4/12] RUN nix-env -if .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix && nix-collect-garbage -d
Dockerfile:8
-------------------
6 |
7 | COPY .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix
8 | >>> RUN nix-env -if .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix && nix-collect-garbage -d
9 |
10 | COPY .nixpacks/assets /assets/
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100
Error: Docker build failed
3 Replies
8 months ago
Hey mecanicatotalsistemas, can you try changing the builder from Nixpacks to Railpack under your service's settings?
8 months ago
I did that, but it still failed.
It gave me the following error:
No version available for php 8.1
mecanicatotalsistemas
I did that, but it still failed.It gave me the following error:No version available for php 8.1
8 months ago
In this case, can you try using a custom Dockerfile if you have to use php 8.1, otherwise if you are not bound to php 8.1, try a version that is >= 8.2.