:::: MENU ::::
Browsing posts in: debug


resolve slow network ubuntu

Disable IPV6

vi /etc/sysctl.conf

AND ADD THE NEXT LINES


net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Remove any old DNS servers from the file
/etc/resolv.conf


Centos docker x509: certificate signed by unknown authority

If you are trying to connect to a private docker registry and you have this error

x509: certificate signed by unknown authority

or this error

If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `–insecure-registry www.xxxxxx.com:5000` to the daemon’s arguments. In the case of HTTPS, if you have access to the registry’s CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/

the solution that the error mention add `–insecure-registry www.xxxxxx.com:5000` or the solution simply place the CA certificate at /etc/docker/certs.d/ Does not work

To solve the problem append the crt of your docker registry server to the end of of trusted certificates located at /etc/pki/tls/certs/ca-bundle.crt in centos:


cat docker_registry_public_key.crt >>/etc/pki/tls/certs/ca-bundle.crt



xtables-addons error: too few arguments to function ‘ipv6_find_hdr’

Enviorment:
Centos 6.5
xtables-addons-1.47.1

Error:
While installing xtables-addons-1.47.1 from code (in the make step) you get the next error:

/home/xxxxx/xtables-addons-1.47.1/extensions/compat_xtables.c: In function 'xtnu_ipv6_find_hdr':
/home/xxxxx/xtables-addons-1.47.1/extensions/compat_xtables.c:633: error: too few arguments to function 'ipv6_find_hdr'

Solution:
open the file with your preferred editor

#vi /usr/src/kernels/2.6.32-504.12.2.el6.x86_64/include/linux/autoconf.h

where 2.6.32-504.12.2.el6.x86_64 is the version of your kernel-devel you have installed

change this line

#define CONFIG_IP6_NF_IPTABLES_MODULE 1

by this other one (to comment it):

/*#define CONFIG_IP6_NF_IPTABLES_MODULE 1*/



Puppet Failed to find facts from PuppetDB at 8081 Connection refused

The Environment
Centos 6.5, puppet master, puppet 3.3.2

The Problem
When trying to run from an agent

#puppet agent --test

It fails with the next error:
Error 400 on SERVER: Could not retrieve facts for server.example.com: Failed to find facts from PuppetDB at foreman.server.com:8081: Connection refused – connect(2)

The Solution

In the puppet master restart the puppetdb and make sure its running

#  /etc/init.d/puppetdb restart
#  /etc/init.d/puppetdb status