I am working on a web app where that I divided into two blocks: 1. One for front-end. 2. One for backend doingheavy computation which won't be used every time Both parts of the web service are hosted on digital ocean. In order to cut costs, I created manually a snapshot of the back. The idea is to create a droplet from this image using a rest API if required by the front. At the start of the backend droplet, two docker containers are created immediately.

My problem is that since the droplet is a fresh ubuntu instance, my cron jobs are not executed after the creation of the droplet. I am suspecting the reason is because Ubuntu is asking for password change and blocking every thing.

For that, I need to rechange the password of the instance manually then reboot it. This is clearly not possible. Is there a way to automate this part ?

1 Answer 1


After more tests, I found out that in order to do this, I need to use an ssh key with the API. The password change phase is bypassed after this.

  • 1
    Please mark the answer as accepted if it answers your question.
    – 030
    Nov 18, 2019 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.