Packer: scaleway errored: unexpected EOF

Created on 22 Sep 2018  ยท  12Comments  ยท  Source: hashicorp/packer

When using:

{
    "variables": {
        "git_commit": "{{env `CI_COMMIT_SHA`}}"
    },
    "builders": [
        {
            "type":"scaleway",
            "image": "b5a754d1-8262-47d2-acb2-22739295bb68",
            "image_name": "ubuntu-k8s-{{user `git_commit`}}",
            "region":"par1",
            "commercial_type":"START1-S",
            "ssh_username":"root"
        }
    ],
    "provisioners": [
        {
            "type": "shell",
            "inline": [
                "sleep 30",
                "apt-get update",
        "DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" dist-upgrade",
                "DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" curl apt-transport-https linux-image-generic-hwe-16.04 linux-headers-generic-hwe-16.04 byobu",
        "DEBIAN_FRONTEND=noninteractive apt-get -y remove linux-image-generic",
        "purge-old-kernels --keep 1",
                "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -",
                "curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -",
        "echo \"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list",
        "echo \"deb http://apt.kubernetes.io/ kubernetes-xenial main\" | sudo tee /etc/apt/sources.list.d/k8s.list",
        "apt-get update && apt-get install -y -qq --no-install-recommends docker-ce=17.03.0~ce-0~ubuntu-xenial",
        "apt-mark hold docker-ce",
        "usermod -aG docker ubuntu",
        "DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" kubelet kubeadm kubectl kubernetes-cni",
                "DEBIAN_FRONTEND=noninteractive apt-get autoclean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/*"
            ]
        }
    ]
}

This is working fine with packer 1.2.5.

bug buildescaleway regression

All 12 comments

Hey @captnbp, thanks for reporting this, will look into this asap.

Hey @captnbp, I think I already fixed it, can you please tell me if that binary ( from PR #6739 ) fixes it for you:

packer.zip

Thanks ๐Ÿ™‚

@azr there is another problem, I am bringing a PR with the complete bugfix :)

Awesome @mvaude thanks, I'm soon going to have a Scaleway access, so it's going to be easier to debug ๐Ÿ™‚

Howdy again @captnbp, can you please tell me if this one does it for you ?

packer.zip

Thanks @azr , now it works perfectly !

Sure, It was all @mvaude's job I have just been facilitating ๐Ÿ™‚

Looking forward to 1.3.2. It fixed the issue I ran into. Thanks!

1.3.2 is out now ๐Ÿ˜„

Homebrew/homebrew-core#33495 is now merged ! ๐Ÿ™‚

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings