laravel deployment failed during build process on railway

I am trying to deploy laravel application on railway but I keep getting this error: #8 22.79 error: php80 has been dropped due to the lack of maintenance from upstream for future releases #8 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1 -----
[ 4/12] RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d:
22.79 … while evaluating attribute 'passAsFile' of derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env' 22.79 22.79 at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/build-support/trivial-builders/default.nix:88:7: 22.79 22.79 87| inherit buildCommand name; 22.79 88| passAsFile = [ "buildCommand" ] 22.79 | ^ 22.79 89| ++ (derivationArgs.passAsFile or []); 22.79 22.79 error: php80 has been dropped due to the lack of maintenance from upstream for future releases ----- Dockerfile:8 ------------------- 6 | 7 | COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix 8 | >>> RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.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-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1 Error: Docker build failed
3 Replies
Percy
Percy14mo ago
Project ID: N/A
Johnson Oroyemi
Johnson OroyemiOP14mo ago
92b1e649-901b-43da-bb68-cbf21dc3066c
Brody
Brody14mo ago
php 8.0 isn't supported, you will want to use 8.1 or 8.2, update the php version in your composer file
Want results from more Discord servers?
Add your server