# Cloud-init script does not run (Vultr)

**URL:** <https://forums.suse.com/t/cloud-init-script-does-not-run-vultr/1060>\
**Category:** RancherOS\
**Created:** [November 24, 2015, 8:52am UTC](https://forums.suse.com/t/cloud-init-script-does-not-run-vultr/1060 "2015-11-24T08:52:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carloss](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@carloss](https://forums.suse.com/u/carloss)\
**Post date:** [November 24, 2015, 8:52am UTC](https://forums.suse.com/t/cloud-init-script-does-not-run-vultr/1060/1 "2015-11-24T08:52:10Z")

</div>

Hello,

this is from the Rancher OS manual:

`If the file starts with #!<interpreter> (e.g., #!/bin/sh), cloud-init will simply execute that file. You can place any configuration commands in the file as scripts.`

However I am not able to make this working. If I run the script from running Rancher OS, it works correctly. Is it possible to debug the cloud-init process somehow? The problem is that if it fails, I cannot login to the system because of missing SSH keys, so it is very troublesome to debug.

Script example here:  
[http://pastebin.com/DxkFZuTm](http://pastebin.com/DxkFZuTm)

This script has been tested on Vultr to launch and install Rancher OS instance. If I replace it by regular cloud config yml file, this file is processed correctly. Problem is with running the script.
