laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 473 forks source link

Get 404 when the container tries to install Node #632

Closed fjmn2001 closed 10 months ago

fjmn2001 commented 10 months ago

Sail Version

1.16.6

Laravel Version

9.45.1

PHP Version

8.1.17

Operating System

macOS

OS Version

14.1

Description

When I try to do CI with GitHub, I am getting 404 error when the container tries to install Node.

This is the output: 130.0 Reading state information... 130.3 The following NEW packages will be installed: 130.3 nodejs 130.5 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 130.5 Need to get 30.3 MB of archives. 130.5 After this operation, 194 MB of additional disk space will be used. 130.5 Err:1 https://deb.nodesource.com/node_20.x jammy/main amd64 nodejs amd64 20.5.1-deb-1nodesource1 130.5 404 Not Found [IP: 172.67.10.205 443] 130.5 E: Failed to fetch https://deb.nodesource.com/node_20.x/pool/main/n/nodejs/nodejs_20.5.1-deb-1nodesource1_amd64.deb 404 Not Found [IP: 172.67.10.205 443] 130.5 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Error: Process completed with exit code 2.

The default version is Node 18, but trying to fixing it I am changing this value in docker-compose.yml

Steps To Reproduce

Try to run:

./vendor/bin/sail up -d

in GitHub CI flow

pb30 commented 10 months ago

Latest Sail (v1.26.0) has new way of installing node. Does upgrading fix this?

fjmn2001 commented 10 months ago

Yes, after upgrade to version v1.26.0 is all ok, thanks! @pb30