algo icon indicating copy to clipboard operation
algo copied to clipboard

Deploying to Digital Ocean takes extremely long time

Open ndtob opened this issue 9 years ago • 2 comments

OS / Environment

MacOS High Sierra 10.13.1

Ansible version

ansible 2.1.2.0

Version of components from requirements.txt

Name: setuptools Version: 18.5 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://bitbucket.org/pypa/setuptools Author: Python Packaging Authority Author-email: [email protected] License: PSF or ZPL Location: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python Requires:

Name: ansible Version: 2.1.2.0 Summary: Radically simple IT automation Home-page: http://ansible.com/ Author: Ansible, Inc. Author-email: [email protected] License: GPLv3 Location: /Library/Python/2.7/site-packages Requires: paramiko, jinja2, PyYAML, setuptools, pycrypto

Name: dopy Version: 0.3.5 Summary: Python client for the Digital Ocean API Home-page: https://github.com/devo-ps/dopy Author: Vincent Viallet Author-email: [email protected] License: The MIT License (MIT) Location: /Library/Python/2.7/site-packages Requires: requests

Name: boto Version: 2.42.0 Summary: Amazon Web Services Library Home-page: https://github.com/boto/boto/ Author: Mitch Garnaat Author-email: [email protected] License: MIT Location: /Library/Python/2.7/site-packages Requires:

Name: azure Version: 1.0.3 Summary: Microsoft Azure Client Libraries for Python Home-page: https://github.com/Azure/azure-sdk-for-python Author: Microsoft Corporation Author-email: [email protected] License: Apache License 2.0 Location: /Library/Python/2.7/site-packages Requires: azure-mgmt, azure-servicebus, azure-storage, azure-servicemanagement-legacy

Name: apache-libcloud Version: 1.3.0 Summary: A standard Python library that abstracts away differences among multiple cloud provider APIs. For more information and documentation, please see http://libcloud.apache.org Home-page: http://libcloud.apache.org/ Author: Apache Software Foundation Author-email: [email protected] License: Apache License (2.0) Location: /Library/Python/2.7/site-packages Requires:

Name: six Version: 1.4.1 Summary: Python 2 and 3 compatibility utilities Home-page: http://pypi.python.org/pypi/six/ Author: Benjamin Peterson Author-email: [email protected] License: UNKNOWN Location: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python Requires:

Name: pyOpenSSL Version: 0.13.1 Summary: Python wrapper module around the OpenSSL library Home-page: http://pyopenssl.sourceforge.net/ Author: Jean-Paul Calderone Author-email: [email protected] License: APL2 Location: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python Requires:

Name: Jinja2 Version: 2.8 Summary: A small but fast and easy to use stand-alone template engine written in pure python. Home-page: http://jinja.pocoo.org/ Author: Armin Ronacher Author-email: [email protected] License: BSD Location: /Library/Python/2.7/site-packages Requires: MarkupSafe

Summary of the problem

While running Algo from the latest master branch on the above platform deploying to DigitalOcean the script progresses extremely slowly, taking over an hour to complete. Each check/step along the way takes several minutes to complete even tasks which should not take more than a few seconds.. This is repeatable and does not seem to depend on deployment location or options selected.

Steps to reproduce the behavior

Deploy Algo on DigitalOcean in any configuration and in any location.

The way of deployment (cloud or local)

cloud

Expected behavior

Algo should progress through setup and simple checks quickly. It used to take only a few minutes for the entire process.

Actual behavior

Algo script progresses extremely slowly through all steps, setup and checks.

Full log

Currently the script is still running, every step is succeeding however it's been 2 hours and is progressing extremely slowly.

ndtob avatar Nov 14 '17 15:11 ndtob

In the last couple of days, so that I can get familiar with the process, I've used the instructions at https://github.com/trailofbits/algo#deploy-the-algo-server to create a few new Digital Ocean droplets running Algo. I've had no issues. The script took around 5-10 minutes to run each time.

After seeing this issue, I just downloaded the latest Algo zip file and followed the same instructions. After I entered the ./algo command, it took 6 minutes for the script to run completely and report, "Congratulations! Your Algo server is running."

ndtob, I can't comment on what might be causing the delay you're experiencing but it appears that the script is running fine for at least me.

FWIW, I'm using a MacBook Air running macOS 10.13.1.

useradd-deploy avatar Nov 14 '17 18:11 useradd-deploy

These are temporary issues with DigitalOcean, and they are not our fault. Their VPS infrastructure is sometimes unreliable and has wide swings in performance. The best I can offer is 1) make sure you have a reliable connection to the internet yourself 2) choose a different VPS provider or at least a different datacenter.

dguido avatar Nov 19 '17 18:11 dguido