sail: Sail fresh installation is not starting and trhows errors when run sail up
- Sail Version: 1.0.1
- Laravel Version: v8.49.2
- PHP Version: 8.0.8
- OS: macOS BigSur
Description:
After run sail up it starts to build the containers but stops with the error below:
PS! I already created another sail projects on the same computer and it works, until this one now.
$ sail up -d
Building laravel.test
[+] Building 3.2s (8/15)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:21.04 0.8s
=> [ 1/11] FROM docker.io/library/ubuntu:21.04@sha256:a30456233740024b9d297f5bcaa7439446a97bc59b25cadcdae829c334827945 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 99B 0.0s
=> CACHED [ 2/11] WORKDIR /var/www/html 0.0s
=> CACHED [ 3/11] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone 0.0s
=> ERROR [ 4/11] RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlit 2.3s
------
> [ 4/11] RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 && mkdir -p ~/.gnupg && chmod 600 ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list && apt-get update && apt-get install -y php8.0-cli php8.0-dev php8.0-pgsql php8.0-sqlite3 php8.0-gd php8.0-curl php8.0-memcached php8.0-imap php8.0-mysql php8.0-mbstring php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap php8.0-intl php8.0-readline php8.0-pcov php8.0-msgpack php8.0-igbinary php8.0-ldap php8.0-redis php8.0-swoole && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer && curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn && apt-get install -y mysql-client && apt-get install -y postgresql-client && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*:
#7 0.652 Get:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease [101 kB]
#7 0.763 Get:2 http://archive.ubuntu.com/ubuntu hirsute InRelease [269 kB]
#7 1.149 Err:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease
#7 1.149 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 1.705 Err:2 http://archive.ubuntu.com/ubuntu hirsute InRelease
#7 1.705 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 1.871 Get:3 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [109 kB]
#7 1.978 Err:3 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease
#7 1.978 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 2.137 Get:4 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [90.7 kB]
#7 2.232 Err:4 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease
#7 2.232 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 2.236 Reading package lists...
#7 2.249 W: GPG error: http://security.ubuntu.com/ubuntu hirsute-security InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 2.249 E: The repository 'http://security.ubuntu.com/ubuntu hirsute-security InRelease' is not signed.
#7 2.250 W: GPG error: http://archive.ubuntu.com/ubuntu hirsute InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 2.250 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute InRelease' is not signed.
#7 2.250 W: GPG error: http://archive.ubuntu.com/ubuntu hirsute-updates InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 2.250 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-updates InRelease' is not signed.
#7 2.250 W: GPG error: http://archive.ubuntu.com/ubuntu hirsute-backports InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#7 2.250 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-backports InRelease' is not signed.
------
executor failed running [/bin/sh -c apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 && mkdir -p ~/.gnupg && chmod 600 ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list && apt-get update && apt-get install -y php8.0-cli php8.0-dev php8.0-pgsql php8.0-sqlite3 php8.0-gd php8.0-curl php8.0-memcached php8.0-imap php8.0-mysql php8.0-mbstring php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap php8.0-intl php8.0-readline php8.0-pcov php8.0-msgpack php8.0-igbinary php8.0-ldap php8.0-redis php8.0-swoole && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer && curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install -y yarn && apt-get install -y mysql-client && apt-get install -y postgresql-client && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*]: exit code: 100
ERROR: Service 'laravel.test' failed to build
Steps To Reproduce:
curl -s "https://laravel.build/example-app?with=mariadb,redis" | bashcd example-app./vendor/bin/sail up
Check the issue repo: https://github.com/wemersonrv/sail-issue
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 7
- Comments: 39 (1 by maintainers)
Commits related to this issue
- Update composer lock (revert to use sail v1.7). Latest version of laravel sail is having issues: https://github.com/laravel/sail/issues/190 — committed to tuannpa/loan_app by tuannpa 3 years ago
Update to the latest sail and try again.
Running this command solved this for me:
docker system prune --forceIn case anyone run into the same issue, the solution is to update docker to its latest version. The problem’s gone away when I updated docker to version 20.10.6 😃
I had the same issue arise earlier today with fresh install on macos. Workaround for me was to go back to a prior release of sail. Not an ideal solution but you can modify
composer.jsonand pin to an older version which worked for me.“laravel/sail”: “1.7.0” $ sail up --build
Will revisit once this issue is resolved.
was struggling for two days with all solutions above and failed. but now after turning off my vpn its works LOL
none of the above helped in my case 😦 I solved the issue via
Upgrading laravel/sail (v1.14.1 => v1.15.1).macOS Monterey Version 12.3, Docker version 20.10.17.
I had this issue and found updating my docker machine has worked and my sail is now installing!
Same issue here. I’ve tried it both via laravel.build and
composer create-projectand
Output
I’m on Kubuntu 21.04 Docker version 19.03.13, build 4484c46d9d
@jorgenordonez What Docker version resolved the issue for you?
FYI
vendor/bin/sail upcan fail initially, but subsequent runs start up without issue. This is because the issue is in the build. If you want to reliably reproduce the issue, you need to issuevendor/bin/sail up --build.There seem to be various reasons people get into this situation. One thing you can try as suggested above, is to remove docker images/volumes/etc to reclaim space. This is why
docker system prune --forceordocker system prune -amay work for you.This is also solved my issues. I went away after upgrading my docker-machine then I was able to build again.
@dinamic This is separate issue, see #596 and possible temporary workaround
Using Docker Desktop 4.21.1 on macOS and this is still a problem.
Any ideas on how to resolve this?
@makebettertechtoday It came back for you maybe it would do the same for me. I need to see if I have the same effect. Haven’t been on my Laravel project for some time.
@reaves-tyler
sail upran successfully…meaning it worked for you?@jorgenordonez Ah, apparently the docker apt repository got removed when upgrading Kubuntu which is why apt no longer upgraded my Docker version. It’s fixed now. Thanks!