-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error creating machine #114
Comments
Hi, the exit status comes from the commands run by Can you try runnning |
Alright, I tested the command directly with ssh and it works well. I searched this command in the docker-machine repo and I found it there. But why does this command works well using ssh and failed with the docker-machine.
|
Very strange indeed. Can you perhaps try If the command were to run successful even then, I'm out of ideas right now. I have seen a fair share of driver-related stuff, but heisenbugs in regards to seemingly simple shell commands are a first... |
No more ideas, I stopped the creating process before the |
@julianboehne I've encountered the same issue yesterday as well and figured out the problem
That means that every time #cloud-config
package_update: true
packages:
- fail2ban
bootcmd:
# Temporarely disable ssh, otherwise docker-machine will try to install
# its stuff before we're done running the cloud-init
- systemctl disable --now ssh.service
write_files:
- path: /etc/fail2ban/jail.local
content: |
[sshd]
enabled = true
mode = aggressive
- path: /etc/ssh/sshd_config.d/custom.conf
content: |
MaxStartups 300:30:1000
PasswordAuthentication no
runcmd:
- systemctl enable --now fail2ban.service
- systemctl enable --now ssh.service |
@mrjackv where did I find the |
You need to save the contents to a file and then use the command line option |
I tried it like this:
But it didn't work. Did I understand something wrong? |
Thanks for the observation @mrjackv. Despite maintaining the driver I run mostly on Hetzner metal, so I don't always have an insight as to what is currently happening in the cloud world. Therefore having some input of the 'front users' is invaluable. @julianboehne Did you get any kind of error message or did it just exhibit the same behavior as initially described in this issue? |
After trying to create the docker-machine, I could observe following error by using
Additionally some informations: |
Can you try and SSH into the machine after creation to see, whether the docker daemon is actually running ( Other than that, do you have a firewall configured (either on the machine itself or via Hetzner)? Could you also post the output of |
Docker is not running on the Hetzner Server I created. To my knowledge, I have not configured any firewalls.
|
Debug output when doing package: action=install name=curl
(GitLab-Docker-Machine) Calling .GetSSHHostname
(GitLab-Docker-Machine) Calling .GetSSHPort
(GitLab-Docker-Machine) Calling .GetSSHKeyPath
(GitLab-Docker-Machine) Calling .GetSSHKeyPath
(GitLab-Docker-Machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /root/.docker/machine/machines/GitLab-Docker-Machine/id_rsa (-rw-------)
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -o IdentitiesOnly=yes -i /root/.docker/machine/machines/GitLab-Docker-Machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl
SSH cmd err, output: exit status 255:
Error running "DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl": ssh command error:
command : DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl
err : exit status 255
output : Doing the corresponding |
Hello,
I used this driver on different autoscaling images like this one. I'm running Docker on my Windows system locally and an error occurs when i try the command:
The server is starting on the Hetzner Cloud but i get this ssh-error:
I also tried to connect to the server inside the docker container and this works well with ssh.
What can I do?
The text was updated successfully, but these errors were encountered: