-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Error ( Sail up / Sail Build ): "gpg: keyserver receive failed: Server indicated a failure." #383
Comments
Hi @dmmiguel
Warning: These commands will erase your existing volumes. |
Thanks for the suggestion. I have tried that and still gotten the same error. It only appears to work when I modify the Docker file with the settings I listed. |
Try |
Thanks. I Attempted that as well. using both sail and regular docker-compose / docker-compose --no-cache and still the same error, Also tried docker system prune --force, docker volume prune --force before running the build command with no cache. All my other docker-compose configurations work fine just not any sail projects (Without the modification). I have also tried updating composer, creating a new Laravel app. and still get the same error. I think it the issue is with line 21 ,specifically as the dockerfile. It builds up to that point and dies when it receives no response from the gpg key server. |
Thanks, I attempted a PR here: #384 |
Sweet thanks for the help guys :) |
@driesvints I'm having the same or a similar issue, so I'm not sure if the issue is fully resolved. I manually updated the vendor/laravel/sail/runtimes/8.1/Dockerfile with the changes in PR #384, but I'm still receiving the error regarding
|
@cdterry87 try editing to this and see if it works:
can you verify it works? my coworker had the same issue and it fixed it for him as well see the original info. should get you going at least. till it's fixed.
|
@dmmiguel The fixes you suggested do work for me. Thanks so much for that! |
Glad I could help. Take care my good sir. |
I can confirm that this also worked for me too! Thank you very much! |
@dmmiguel I can confirm this solves the problem for me too. |
Can anyone send in a PR? |
Work here. |
@dmmiguel your suggestion solved my problem too. |
Ran into this issue as well, with the update from @driesvints's PR applied. Swapping to the unencrypted keyserver endpoint worked. Not sure why the request to the encrypted keyserver is failing vs the unencrypted one. I could certainly put in a PR, but that feels like an upstream problem to me. Don't know if there are other opinions on that. |
I'm following the instructions at https://laravel.com/docs/9.x/installation to have a play with Laravel and can confirm that tweaking this line fixed this issue for me today. |
@Evertt Thanks for putting in the PR and getting this fixed. |
Description:
Build failure, appears to happen when attempting "sail up" or "sail build". The issue happens at line 21 in the dockerfile for the 8.1 runtime. A warning also appears stating that apt-key is deprecated.
Line: 21 in /vendor/laravel/sail/runtimes/8.1/Dockerfile
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C \
Error:
gpg: keyserver receive failed: Server indicated a failure
Temporary Solution (Workaround): I was able to get this working by modifying line 21 to the following value. (Not sure if this is the right thing to do but it worked)
Disclaimer: I understand docker and docker compose fairly well but I only vaguely understand the modifications I made other than changing the protocol and adding something I found on stack overflow about adding a 0x to get things working.
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C \
Other solutions attempted:
Steps To Reproduce:
Run "sail up" or "sail build" on wsl terminal
The text was updated successfully, but these errors were encountered: