Open jrohrauer opened 3 weeks ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
I'm not sure there's anything we can do about that. You'd need to poke a hole in your firewall to reach keyserver.ubuntu.com
That is true. But for all the folks who can't, or have a grumpy firewall admin this workaround would help :)
As an alternative you could implement this change directly into your script. This would utilize port 80, which works most of the time.
Von: snipe @.***> Gesendet: Donnerstag, 29. August 2024 17:33 An: snipe/snipe-it Cc: jrohrauer; Author Betreff: Re: [snipe/snipe-it] Installer fails when keyserver is not reachable (Issue #15413)
I'm not sure there's anything we can do about that. You'd need to poke a hole in your firewall to reach keyserver.ubuntu.com
— Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/15413#issuecomment-2318159813, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFJ6WCN6EIZY3DZ7MGVZW6TZT45LJAVCNFSM6AAAAABNKLW3CGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJYGE2TSOBRGM. You are receiving this because you authored the thread.Message ID: @.***>
Debug mode
Describe the bug
When installing Snipe-It through the installer script on a vanilla machine, it fails when the firewall blocks access to the keyserver (it usese a non-standard port 11371). The error message looks like this:
/tmp/apt-key-gpghome.Dy3dgR5VNF/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C gpg: keyserver receive failed: No keyserver available
Reproduction steps
...
Expected behavior
I expect the script to run without errors :)
Screenshots
No response
Snipe-IT Version
7.0.11
Operating System
Ubuntu 22.04
Web Server
does not apply
PHP Version
does not apply
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
The solution is quite easy. The install.sh script downloads the actual installer (at the time of writing, it is https://raw.githubusercontent.com/snipe/snipe-it/master/snipeit.sh). Line 580 and 624 both contain the following: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C
Replace ist with the following: gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5267A6C
and run the script.