setup icon indicating copy to clipboard operation
setup copied to clipboard

Setup Script Timeout

Open krejko opened this issue 2 years ago • 0 comments

I am trying to install redash on a new Ubuntu 18.04 server using the setup.sh install script. However, I have encountered some error's I haven't seen from any of my previous redash installations using the script:

<succesful script execution above - can be provided if needed> 
...
Digest: sha256:4eaaa7af6476b0422058b0022661ad6129dfbf9065c506fb0904bbf0a16f2007
Status: Downloaded newer image for redash/nginx:latest
redash_postgres_1 is up-to-date                                                                              
redash_redis_1 is up-to-date                                                                                 
Creating redash_server_1 ...                                                                                 
Creating redash_scheduler_1 ...                                                                              
Creating redash_scheduled_worker_1 ...                                                                       
Creating redash_adhoc_worker_1     ...                                                                       
                                                                                                             
ERROR: for redash_scheduler_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read tim
eout=60)                                                                                                     
                                                                                                             
ERROR: for redash_scheduled_worker_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (r
ead timeout=60)                                                                                              
                                                                                                             
ERROR: for redash_server_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeou
t=60)                                                                                                        
                                                                                                             
ERROR: for redash_adhoc_worker_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read 
timeout=60)                                                                                                  
                                                                                                             
ERROR: for scheduler  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60) 
                                                                                                             
ERROR: for scheduled_worker  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeo
ut=60)                                                                                                       
                                                                                                             
ERROR: for server  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)    
                                                                                                             
ERROR: for adhoc_worker  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=6
0)                                                                                                           
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEO
UT to a higher value (current value: 60).                                                                    

After each run of the setup.sh script I have removed the /opt/redash/ folder, stopped all the running docker containers, and have run docker system prune -a -f to try and reset the environment. However, each time I run the script it still ends up failing on the An HTTP request took too long to complete error.

The script seems to run successfully until the following line of the setup.sh script:

    sudo docker-compose run --rm server create_db

But this line also produces the error:

$:/opt/redash# sudo docker-compose run --rm server create_db                                     
Starting redash_redis_1    ... done
Starting redash_postgres_1 ... done
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEO
UT to a higher value (current value: 60).                                                                    
root@vps92871:/opt/redash#                                                                                   

Any advice on why this might be or what I can do about it would be very much appreciated. Thanks in advance!

krejko avatar Feb 09 '23 21:02 krejko