[02:05] so I see the user-data.txt being downloaded after cloud-init clean and reboot; but it does not seem it was ran; can't really find anything relevant in /var/log/cloud-init.log; the only mentions of user-data is "writing to ... instances/(a lot of digits)/user' and there is no such file now, probably a temp file [02:07] my config had to mount a disk and restart docker -- none of this has happened [02:08] config :https://dpaste.org/LDAY/slim [02:12] 2021-07-31 01:58:15,732 - __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'b'bootcmd:'...' .... 2021-07-31 01:58:15,736 - handlers.py[DEBUG]: finish: init-network/consume-user-data: SUCCESS: reading and applying user-data [02:15] the yaml seems to be valid https://dpaste.org/FANA/slim [02:36] oh, the /var/lib/cloud/instances/8675720279121330233/cloud-config.txt actually exists, but it's 0 bytes long [02:44] I'll look into using 'write-files' [02:45] still weird though that it didn't rerun the Config sine I did the 'clean' before machine restart [03:02] didn't help; the /var/lib/cloud/instance/user-data.txt has been updated with https://dpaste.org/Ncbq/slim ; the sdb is visible in lsblk, but the disk didn't mount and docker is still using his default directory [03:04] log part: https://dpaste.org/VK1U/slim [03:05] oh, and the /var/lib/cloud/scripts/per-boot/ is empty actually [03:06] the write_files portion of logs https://dpaste.org/ANs4/slim [03:13] oh, the yaml had an error -- need a '-' before 'path:' to put it in an array; but it still didn't help: instance restarted, user-data.txt updated, the log still says no/empty 'write [03:13] _files' key in configuration [03:19] so 1. the command "cloud-init devel schema --system --annotate" from here https://cloudinit.readthedocs.io/en/latest/topics/faq.html#how-can-i-debug-my-user-data throws "error: unrecognized arguments: --system" [03:20] 2. sudo cloud-init devel schema --config-file /var/lib/cloud/instance/user-data.txt says: "needs to begin with "#cloud-config"" -- finally a clue! didn't expect this, I thought it's just a comment that is commonly put in docs when the example file is listed [03:36] still does not work though https://dpaste.org/TokQ/slim [03:49] oh, do I have to add the permissions: '0744' and shebang? [03:54] yes! it works now === felfert is now known as felfert_ === felfert_ is now known as felfert