Error deploying project

2 years ago

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

My code runs well on the localhost but when I deploy from GitHub with MySQL connect, I have the error message about. Please help me out.

View Deploy details

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

9 Replies


2 years ago

Here is the full error log


2 years ago

Sorry I could not add the file directly, but I have uploaded it to my drive and granted public access: https://drive.google.com/drive/folders/1kD2lqzdluPXSxhPKZgCi0Sp5q2lFv6r4?usp=sharing


2 years ago

PHP 8.0 is not supported anymore, please update to PHP 8.1.


2 years ago

Okay, lemme do that now


2 years ago

Please I am unsure how to update my PHP version to 8.1, any tips will greatly help


2 years ago

That would be done in your composer file.


2 years ago

Below is a short view of my composer.json file. I saved and ran composer update, git add . git commit and then git push, i have a new error from, here is the complete log: https://drive.google.com/file/d/1C5UykgOacRqSGYHvBa5Py07_Ednp6BhD/view?usp=sharing

"license": "MIT",
    "type": "project",
    "require": {
        "php": "^8.1",
        "barryvdh/laravel-dompdf": "^0.8.3",
        "fakerphp/faker": "^1.14",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "hashids/hashids": "^4.1.0",
        "laravel/framework": "^8.40",
        "laravel/tinker": "^2.5",
        "laravel/ui": "^3.0"
    },


2 years ago

Something in your node dependencies is needing python2, python 2 is long since been depreciated, please remove the need for that.


Loading...