nginxinc/nginx-amplify-doc

Adding public key ...(23) Failed writing body

Closed this issue · 2 comments

scyto commented

I am trying to install inside docker.latest.
I have two bind volumes.

host/docker/nginx/etc/nginx:/etc/nginx r/o
host/docker/nginx/etc/amplify-agent:/etc/amplify-agent r/w

I am getting a failed writing body, I cant find this error inside the sintall.sh so assume something else is throwing this that the script is calling?

root@nginx1:/# API_KEY='mykey5' sh ./install.sh                                                                                                          
                                                                                                                                                                                   
 --- This script will install the NGINX Amplify Agent package ---                                                                                                                  
                                                                                                                                                                                   
  1. Checking admin user ... root, ok.                                                                                                                                             
  2. Checking API key ... using 7a9ce857bdb29488c45e0fabcf7b9cf5                                                                                                                   
  3. Checking if uuid should be stored in the config ... False                                                                                                                     
  4. Checking Python ... found python 2.7                                                                                                                                          
  5. Checking OS compatibility ... debian detected.                                                                                                                                
  6. Adding public key ...(23) Failed writing body                                                                                                                                 
 failed.                                                                                                                                                                           
                    
scyto commented

just found this was the issue - the script should detect and add gnupg if not present (which it isn't inside default docker nginx image).
nginxinc/nginx-amplify-agent#121

We can close this once this is documented or added to script i suppose?

@scyto If you are still facing this problem, please create an issue in the NGINX Amplify Agent repo.