Friday, June 15, 2018

Failed to add /run/systemd/ask-password to directory watch: No space left on device

Solution :


echo 1048576 > /proc/sys/fs/inotify/max_user_watches

The long-term fix is to edit the file /etc/sysctl.conf to include the line:

fs.inotify.max_user_watches=1048576
Reload Kernel.
sysctl -p
Reload settings from all system configuration files.

Type the following command to reload settings from config files without rebooting the box:

sysctl --system

Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Solution :
Your gcc is older and you need to upgrade new.

If you are using centos, here is the procedure to upgrade gcc
wget https://ftp.gnu.org/gnu/gcc/gcc-8.1.0/gcc-8.1.0.tar.gz
yum install libmpc-devel mpfr-devel gmp-devel zlib-devel*
./configure --with-system-zlib --disable-multilib --enable-languages=c,c++
make -j 8
make install



Monday, May 21, 2018

docker compose error : ERROR: Service failed to build

ERROR: Service failed to build: Get https://registry-1.docker.io/: Get https://auth.docker.io/token?scope=: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:48237->127.0.1.1:53: i/o timeout

ERROR: Get https://registry-1.docker.io: Get https://auth.docker.io: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:47094->127.0.1.1:53: i/o timeout


Solution :
Add 8.8.8.8 in /etc/resolv.conf as a nameserver.
nameserver 8.8.8.8

Now try to run 
docker-compose up

You should not get the same error again.