Skip to content

Instantly share code, notes, and snippets.

View kikicarbonell's full-sized avatar

Enrique Carbonell kikicarbonell

  • Montevideo,Uruguay
View GitHub Profile
@kikicarbonell
kikicarbonell / docker link error
Created June 9, 2015 17:58
docker link error
@kikicarbonell
kikicarbonell / docker-machine-create-log1
Last active August 29, 2015 14:22
error log of provision docker with docker-machine
docker-machine --debug create --driver generic --engine-insecure-registry myprivatehub:5000 --generic-ip-address 172.23.10.115 --generic-ssh-user ubuntu --generic-ssh-key /home/myuser/.ssh/id_rsa vbox
Importing SSH key...
IP: 172.23.10.115
Getting to WaitForSSH function...
Testing TCP connection to: 172.23.10.115:22
Using SSH client type: external
About to run SSH command:
exit 0
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /home/myuser/.docker/machine/machines/vbox/id_rsa -p 22 [email protected] exit 0] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
@kikicarbonell
kikicarbonell / docker-machine-create
Created June 5, 2015 13:46
docker-machine with generic driver using ssh connection
docker-machine create --driver generic --engine-insecure-registry myregistry:5000 --generic-ip-address 172.23.10.27 --generic-ssh-
user vagrant --generic-ssh-key /home/<myuser>/.ssh/id_rsa vbox
Importing SSH key...
Error getting SSH command to check if the daemon is up: exit status 1
Error getting SSH command to check if the daemon is up: exit status 1
Error getting SSH command to check if the daemon is up: exit status 1
Error getting SSH command to check if the daemon is up: exit status 1
Error getting SSH command to check if the daemon is up: exit status 1
Error getting SSH command to check if the daemon is up: exit status 1
Error getting SSH command to check if the daemon is up: exit status 1
@kikicarbonell
kikicarbonell / journalctl-systemd-hostnamed
Created September 19, 2014 18:22
journalctl -u systemd-hostnamed --no-pager
-- Logs begin at Wed 2014-09-17 10:41:18 UTC, end at Fri 2014-09-19 11:14:39 UTC. --
Sep 17 10:41:23 localhost systemd[1]: Starting Hostname Service...
Sep 17 10:41:23 deis-server2 systemd-hostnamed[606]: Changed static host name to 'deis-server2'
Sep 17 10:41:23 deis-server2 systemd-hostnamed[606]: Changed host name to 'deis-server2'
Sep 17 10:41:23 deis-server2 systemd[1]: Started Hostname Service.
-- Reboot --
Sep 17 10:58:00 deis-server2 systemd[1]: Starting Hostname Service...
Sep 17 10:58:00 deis-server2 systemd[1]: Started Hostname Service.
-- Reboot --
Sep 17 12:49:22 deis-server2 systemd[1]: Starting Hostname Service...
@kikicarbonell
kikicarbonell / journalctl-"user-cloudinit@var-lib-coreos\x2dinstall-user_data.service
Created September 19, 2014 17:10
journalctl -b --no-pager -u "user-cloudinit@var-lib-coreos\x2dinstall-user_data.service"
-- Logs begin at Wed 2014-09-17 10:41:18 UTC, end at Fri 2014-09-19 10:02:34 UTC. --
Sep 19 09:43:01 deis-server2 coreos-cloudinit[564]: Checking availability of "local-file"
Sep 19 09:43:01 deis-server2 coreos-cloudinit[564]: Fetching user-data from datasource of type "local-file"
Sep 19 09:43:01 deis-server2 coreos-cloudinit[564]: Fetching meta-data from datasource of type "local-file"
Sep 19 09:43:01 deis-server2 coreos-cloudinit[564]: 2014/09/19 09:42:25 Parsing user-data as cloud-config
Sep 19 09:43:01 deis-server2 coreos-cloudinit[564]: Processing cloud-config from user-data
Sep 19 09:43:01 deis-server2 coreos-cloudinit[564]: Failed to apply cloud-config: exit status 1
Sep 19 09:43:01 deis-server2 systemd[1]: user-cloudinit@var-lib-coreos\x2dinstall-user_data.service: main process exited, code=exited, status=1/FAILURE
Sep 19 09:43:01 deis-server2 systemd[1]: Failed to start Load cloud-config from /var/lib/coreos-install/user_data.
Sep 19 09:43:01 deis-server2 systemd[1]: Unit user-cloudinit@var-lib-core
-- Logs begin at Wed 2014-09-17 10:41:18 UTC, end at Fri 2014-09-19 09:46:44 UTC. --
Sep 19 09:42:21 localhost systemd-journal[127]: Runtime journal is using 8.0M (max allowed 400.2M, trying to leave 600.3M free of 3.9G available → current limit 400.2M).
Sep 19 09:42:21 localhost systemd-journal[127]: Runtime journal is using 8.0M (max allowed 400.2M, trying to leave 600.3M free of 3.9G available → current limit 400.2M).
Sep 19 09:42:21 localhost kernel: Initializing cgroup subsys cpuset
Sep 19 09:42:21 localhost kernel: Initializing cgroup subsys cpu
Sep 19 09:42:21 localhost kernel: Initializing cgroup subsys cpuacct
Sep 19 09:42:21 localhost kernel: Linux version 3.15.8+ (buildbot@ip-10-204-3-57) (gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.13, pie-0.5.2) ) #2 SMP Fri Aug 15 22:29:31 UTC 2014
Sep 19 09:42:21 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c94a-213a-4e
@kikicarbonell
kikicarbonell / user-cloudinit@var-lib-coreos\x2dinstall-user_data.service
Created September 19, 2014 16:26
journalctl -b --no-pager -u "user-cloudinit@var-lib-coreos\x2dinstall-user_data.service"
-- Logs begin at Wed 2014-09-17 10:41:18 UTC, end at Fri 2014-09-19 09:19:29 UTC. --
Sep 19 07:09:16 deis-server2 coreos-cloudinit[561]: Checking availability of "local-file"
Sep 19 07:09:16 deis-server2 coreos-cloudinit[561]: Fetching user-data from datasource of type "local-file"
Sep 19 07:09:16 deis-server2 coreos-cloudinit[561]: Fetching meta-data from datasource of type "local-file"
Sep 19 07:09:16 deis-server2 coreos-cloudinit[561]: 2014/09/19 07:08:38 Parsing user-data as cloud-config
Sep 19 07:09:16 deis-server2 coreos-cloudinit[561]: Processing cloud-config from user-data
Sep 19 07:09:16 deis-server2 coreos-cloudinit[561]: Failed to apply cloud-config: exit status 1
Sep 19 07:09:16 deis-server2 systemd[1]: user-cloudinit@var-lib-coreos\x2dinstall-user_data.service: main process exited, code=exited, status=1/FAILURE
Sep 19 07:09:16 deis-server2 systemd[1]: Failed to start Load cloud-config from /var/lib/coreos-install/user_data.
Sep 19 07:09:16 deis-server2 systemd[1]: Unit user-cloudinit@var-lib-core
@kikicarbonell
kikicarbonell / deis-cloud-config
Created September 19, 2014 14:18
deis-cloud-config
#cloud-config
hostname: deis-server2
users:
- name: devops
passwd: $6$rounds=4096$z3E4YVD5Jq$VmaIx64Ab2pS6I0lZKMWrsvDDcQ8tv2.c1.EfDh9W2haEvzFjeKhYg2wu7ZZEttwNFBs9QUvrQxvYORLiR/qV. #devops
groups:
- sudo
- docker
coreos:
etcd:
@kikicarbonell
kikicarbonell / deis-router-nginx.conf
Created August 27, 2014 20:53
/etc/nginx/nginx.conf
# required to run in a container
daemon off;
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;