Failed Deployment

Hi all,

I am new to Netlify and have received a deployment error. My site name is loquacious-chaja-490f2f

I have tried updating the composer.json to PHP 8.2.5" - re-ran composer update in my cli. Tried redeoplying but I still receive this error: Root composer.json requires php ^8.2.5 but your php version (8.0.30) does not satisfy that requirement.

Any idea how to address this error?

Full Log:
7:18:00 PM: build-image version: 2a79f2b6b97edab3f858983ec4cea00280a2836a (focal)
7:18:00 PM: buildbot version: 7dd8429028e6fffe1e65d79b0c01bd3eb285899c
7:18:00 PM: Fetching cached dependencies
7:18:00 PM: Failed to fetch cache, continuing with build
7:18:00 PM: Starting to prepare the repo for build
7:18:00 PM: No cached dependencies found. Cloning fresh repo
7:18:00 PM: git clone --filter=blob:none https://github.com/Lefty3/webdd
7:18:00 PM: Preparing Git Reference refs/heads/main
7:18:02 PM: Starting to install dependencies
7:18:02 PM: Python version set to 3.8
7:18:02 PM: Attempting Ruby version 2.7.2, read from environment
7:18:03 PM: Using Ruby version 2.7.2
7:18:03 PM: Started restoring cached go cache
7:18:03 PM: Finished restoring cached go cache
7:18:03 PM: go version go1.19.13 linux/amd64
7:18:04 PM: Failed during stage “Install dependencies”: dependency_installation script returned non-zero exit code: 2
7:18:04 PM: Using PHP version 8.0
7:18:04 PM: Started restoring cached composer dependencies
7:18:04 PM: Finished restoring cached composer dependencies
7:18:04 PM: Installing dependencies from lock file (including require-dev)
7:18:04 PM: Verifying lock file contents can be installed on current platform.
7:18:04 PM: Your lock file does not contain a compatible set of packages. Please run composer update.
7:18:04 PM: Problem 1
7:18:04 PM: - Root composer.json requires php ^8.1 but your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 2
7:18:04 PM: - doctrine/lexer is locked to version 3.0.0 and an update of this package was not requested.
7:18:04 PM: - doctrine/lexer 3.0.0 requires php ^8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 3
7:18:04 PM: - egulias/email-validator is locked to version 4.0.2 and an update of this package was not requested.
7:18:04 PM: - egulias/email-validator 4.0.2 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 4
7:18:04 PM: - laravel/framework is locked to version v10.28.0 and an update of this package was not requested.
7:18:04 PM: - laravel/framework v10.28.0 requires php ^8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 5
7:18:04 PM: - laravel/prompts is locked to version v0.1.11 and an update of this package was not requested.
7:18:04 PM: - laravel/prompts v0.1.11 requires php ^8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 6
7:18:04 PM: - monolog/monolog is locked to version 3.4.0 and an update of this package was not requested.
7:18:04 PM: - monolog/monolog 3.4.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 7
7:18:04 PM: - ramsey/collection is locked to version 2.0.0 and an update of this package was not requested.
7:18:04 PM: - ramsey/collection 2.0.0 requires php ^8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 8
7:18:04 PM: - symfony/console is locked to version v6.3.4 and an update of this package was not requested.
7:18:04 PM: - symfony/console v6.3.4 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 9
7:18:04 PM: - symfony/css-selector is locked to version v6.3.2 and an update of this package was not requested.
7:18:04 PM: - symfony/css-selector v6.3.2 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 10
7:18:04 PM: - symfony/deprecation-contracts is locked to version v3.3.0 and an update of this package was not requested.
7:18:04 PM: - symfony/deprecation-contracts v3.3.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 11
7:18:04 PM: - symfony/error-handler is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/error-handler v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 12
7:18:04 PM: - symfony/event-dispatcher is locked to version v6.3.2 and an update of this package was not requested.
7:18:04 PM: - symfony/event-dispatcher v6.3.2 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 13
7:18:04 PM: - symfony/event-dispatcher-contracts is locked to version v3.3.0 and an update of this package was not requested.
7:18:04 PM: - symfony/event-dispatcher-contracts v3.3.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 14
7:18:04 PM: - symfony/finder is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/finder v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 15
7:18:04 PM: - symfony/http-foundation is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/http-foundation v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 16
7:18:04 PM: - symfony/http-kernel is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/http-kernel v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 17
7:18:04 PM: - symfony/mailer is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/mailer v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 18
7:18:04 PM: - symfony/mime is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/mime v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 19
7:18:04 PM: - symfony/process is locked to version v6.3.4 and an update of this package was not requested.
7:18:04 PM: - symfony/process v6.3.4 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 20
7:18:04 PM: - symfony/routing is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/routing v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 21
7:18:04 PM: - symfony/service-contracts is locked to version v3.3.0 and an update of this package was not requested.
7:18:04 PM: - symfony/service-contracts v3.3.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 22
7:18:04 PM: - symfony/string is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/string v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 23
7:18:04 PM: - symfony/translation is locked to version v6.3.3 and an update of this package was not requested.
7:18:04 PM: - symfony/translation v6.3.3 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 24
7:18:04 PM: - symfony/translation-contracts is locked to version v3.3.0 and an update of this package was not requested.
7:18:04 PM: - symfony/translation-contracts v3.3.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 25
7:18:04 PM: - symfony/uid is locked to version v6.3.0 and an update of this package was not requested.
7:18:04 PM: - symfony/uid v6.3.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 26
7:18:04 PM: - symfony/var-dumper is locked to version v6.3.5 and an update of this package was not requested.
7:18:04 PM: - symfony/var-dumper v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 27
7:18:04 PM: - laravel/pint is locked to version v1.13.3 and an update of this package was not requested.
7:18:04 PM: - laravel/pint v1.13.3 requires php ^8.1.0 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 28
7:18:04 PM: - nunomaduro/collision is locked to version v7.10.0 and an update of this package was not requested.
7:18:04 PM: - nunomaduro/collision v7.10.0 requires php ^8.1.0 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 29
7:18:04 PM: - phpunit/php-code-coverage is locked to version 10.1.7 and an update of this package was not requested.
7:18:04 PM: - phpunit/php-code-coverage 10.1.7 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 30
7:18:04 PM: - phpunit/php-file-iterator is locked to version 4.1.0 and an update of this package was not requested.
7:18:04 PM: - phpunit/php-file-iterator 4.1.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 31
7:18:04 PM: - phpunit/php-invoker is locked to version 4.0.0 and an update of this package was not requested.
7:18:04 PM: - phpunit/php-invoker 4.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 32
7:18:04 PM: - phpunit/php-text-template is locked to version 3.0.1 and an update of this package was not requested.
7:18:04 PM: - phpunit/php-text-template 3.0.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 33
7:18:04 PM: - phpunit/php-timer is locked to version 6.0.0 and an update of this package was not requested.
7:18:04 PM: - phpunit/php-timer 6.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 34
7:18:04 PM: - phpunit/phpunit is locked to version 10.4.1 and an update of this package was not requested.
7:18:04 PM: - phpunit/phpunit 10.4.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 35
7:18:04 PM: - sebastian/cli-parser is locked to version 2.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/cli-parser 2.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 36
7:18:04 PM: - sebastian/code-unit is locked to version 2.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/code-unit 2.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 37
7:18:04 PM: - sebastian/code-unit-reverse-lookup is locked to version 3.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/code-unit-reverse-lookup 3.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 38
7:18:04 PM: - sebastian/comparator is locked to version 5.0.1 and an update of this package was not requested.
7:18:04 PM: - sebastian/comparator 5.0.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 39
7:18:04 PM: - sebastian/complexity is locked to version 3.1.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/complexity 3.1.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 40
7:18:04 PM: - sebastian/diff is locked to version 5.0.3 and an update of this package was not requested.
7:18:04 PM: - sebastian/diff 5.0.3 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 41
7:18:04 PM: - sebastian/environment is locked to version 6.0.1 and an update of this package was not requested.
7:18:04 PM: - sebastian/environment 6.0.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 42
7:18:04 PM: - sebastian/exporter is locked to version 5.1.1 and an update of this package was not requested.
7:18:04 PM: - sebastian/exporter 5.1.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 43
7:18:04 PM: - sebastian/global-state is locked to version 6.0.1 and an update of this package was not requested.
7:18:04 PM: - sebastian/global-state 6.0.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 44
7:18:04 PM: - sebastian/lines-of-code is locked to version 2.0.1 and an update of this package was not requested.
7:18:04 PM: - sebastian/lines-of-code 2.0.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 45
7:18:04 PM: - sebastian/object-enumerator is locked to version 5.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/object-enumerator 5.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 46
7:18:04 PM: - sebastian/object-reflector is locked to version 3.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/object-reflector 3.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 47
7:18:04 PM: - sebastian/recursion-context is locked to version 5.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/recursion-context 5.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 48
7:18:04 PM: - sebastian/type is locked to version 4.0.0 and an update of this package was not requested.
7:18:04 PM: - sebastian/type 4.0.0 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 49
7:18:04 PM: - sebastian/version is locked to version 4.0.1 and an update of this package was not requested.
7:18:04 PM: - sebastian/version 4.0.1 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 50
7:18:04 PM: - spatie/laravel-ignition is locked to version 2.3.1 and an update of this package was not requested.
7:18:04 PM: - spatie/laravel-ignition 2.3.1 requires php ^8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 51
7:18:04 PM: - symfony/yaml is locked to version v6.3.3 and an update of this package was not requested.
7:18:04 PM: - symfony/yaml v6.3.3 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: Problem 52
7:18:04 PM: - symfony/http-foundation v6.3.5 requires php >=8.1 → your php version (8.0.30) does not satisfy that requirement.
7:18:04 PM: - spatie/flare-client-php 1.4.3 requires symfony/http-foundation ^5.2|^6.0|^7.0 → satisfiable by symfony/http-foundation[v6.3.5].
7:18:04 PM: - spatie/flare-client-php is locked to version 1.4.3 and an update of this package was not requested.
7:18:04 PM: Build failed due to a user error: dependency_installation script returned non-zero exit code: 2
7:18:04 PM: Failing build: Failed to install dependencies
7:18:04 PM: Finished processing build request in 4.59s

See:

Thank you. The environment variable of PHP 8.1 worked and deployed the site.

A secondary issue is that I am getting a ‘Page not found’ - I read the Page Not Found Support Guide.
I am using Laravel/Vite - in the doc, it states:

  1. SPA redirect rule missing: A variety of tools like Create React App, Vite, Angular, etc. are used to create Single-Page Applications. These applications don’t have a HTML page per path, but instead rely on JavaScript to handle the navigation. For such apps, it is important to have the following contents:
/* /index.html 200

as the contents of the _redirects file which should exist in the public (or similar) folder, so that it’s copied over to your publish directory when the site is being built.

Where exactly am I including the_redirects file? I tried placing it in the Public folder and included a nelify.toml file in the root directory. Page not found is still occurring.

I attached a screenshot showing my folder layout

@Lefty3 The _redirects file would need to end up in whatever folder is set as your Publish directory for Netlify.

Make sure you aren’t getting confused with the use of PHP too, it can be used during build time (for example a PHP based static site generator), but it can’t be used at run time, see: