You are not logged in.

#1 2016-10-28 15:21:50

Dark.Light
Member
Registered: 2010-08-09
Posts: 19

[Solved] Firefox works, but ping, pacman, curl doesn't work...

I'm experiencing a very strange issue. It is happening since today morning.

When I try upgrading the system, I receive the below errors:

[noel@Daedalus ~]$ sudo pacman -Syu
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from archlinux.polymorf.fr : Could not resolve host: archlinux.polymorf.fr
error: failed retrieving file 'core.db' from mirror.one.com : Could not resolve host: mirror.one.com
error: failed retrieving file 'core.db' from mirror.js-webcoding.de : Could not resolve host: mirror.js-webcoding.de
error: failed retrieving file 'core.db' from ftp.nluug.nl : Could not resolve host: ftp.nluug.nl
error: failed retrieving file 'core.db' from archlinux.my-universe.com : Could not resolve host: archlinux.my-universe.com
error: failed retrieving file 'core.db' from os-sharing.org : Could not resolve host: os-sharing.org
error: failed retrieving file 'core.db' from mirror.lightcone.eu : Could not resolve host: mirror.lightcone.eu
error: failed retrieving file 'core.db' from mirror.us.leaseweb.net : Could not resolve host: mirror.us.leaseweb.net
error: failed retrieving file 'core.db' from mirror.gnomus.de : Could not resolve host: mirror.gnomus.de
error: failed retrieving file 'core.db' from archlinux.beccacervello.it : Could not resolve host: archlinux.beccacervello.it
error: failed retrieving file 'core.db' from archlinux.mirrors.uk2.net : Could not resolve host: archlinux.mirrors.uk2.net
error: failed retrieving file 'core.db' from mirror.fluxent.de : Could not resolve host: mirror.fluxent.de
error: failed retrieving file 'core.db' from mirror.de.leaseweb.net : Could not resolve host: mirror.de.leaseweb.net
......

When I try ping, this happens:

[noel@Daedalus ~]$ ping www.google.com
ping: www.google.com: System error
[noel@Daedalus ~]$ ping -v www.google.com
ping: socket: Permission denied, attempting raw socket...
ping: socket: Permission denied, attempting raw socket...
ping: www.google.com: System error

Similar problems also come up with curl, wget etc.

[noel@Daedalus ~]$ curl www.google.com
curl: (6) Could not resolve host: www.google.com
[noel@Daedalus ~]$ wget www.google.com
--2016-10-28 20:46:03--  http://www.google.com/
Resolving www.google.com (www.google.com)... failed: No such file or directory.
wget: unable to resolve host address ‘www.google.com’

However, ping with direct ip address works.

[noel@Daedalus ~]$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=22.8 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=22.6 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=23.6 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 22.679/23.046/23.641/0.424 ms

So, the problem must be somewhere in DNS system but I can't find where.

I also tried strace but I'm not able to make sense of it.

[noel@Daedalus ~]$ strace ping www.google.com
execve("/usr/bin/ping", ["ping", "www.google.com"], [/* 39 vars */]) = 0
brk(NULL)                               = 0x19d8000
fcntl(0, F_GETFD)                       = 0
fcntl(1, F_GETFD)                       = 0
fcntl(2, F_GETFD)                       = 0
access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=322033, ...}) = 0
mmap(NULL, 322033, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fec39483000
close(3)                                = 0
open("/usr/lib/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=17256, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fec39481000
mmap(NULL, 2112504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fec390ac000
mprotect(0x7fec390b0000, 2093056, PROT_NONE) = 0
mmap(0x7fec392af000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fec392af000
close(3)                                = 0
open("/usr/lib/libidn.so.11", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3600\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=211496, ...}) = 0
mmap(NULL, 2306512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fec38e78000
mprotect(0x7fec38eaa000, 2097152, PROT_NONE) = 0
mmap(0x7fec390aa000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x32000) = 0x7fec390aa000
close(3)                                = 0
open("/usr/lib/libnettle.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\235\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=228600, ...}) = 0
mmap(NULL, 2323648, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fec38c40000
mprotect(0x7fec38c76000, 2093056, PROT_NONE) = 0
mmap(0x7fec38e75000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35000) = 0x7fec38e75000
close(3)                                = 0
open("/usr/lib/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p9\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=84816, ...}) = 0
mmap(NULL, 2189896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fec38a29000
mprotect(0x7fec38a3d000, 2093056, PROT_NONE) = 0
mmap(0x7fec38c3c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x7fec38c3c000
mmap(0x7fec38c3e000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fec38c3e000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\3\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1951744, ...}) = 0
mmap(NULL, 3791152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fec3868b000
mprotect(0x7fec38820000, 2093056, PROT_NONE) = 0
mmap(0x7fec38a1f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x194000) = 0x7fec38a1f000
mmap(0x7fec38a25000, 14640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fec38a25000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fec3947f000
arch_prctl(ARCH_SET_FS, 0x7fec3947fbc0) = 0
mprotect(0x7fec38a1f000, 16384, PROT_READ) = 0
mprotect(0x7fec38c3c000, 4096, PROT_READ) = 0
mprotect(0x7fec38e75000, 8192, PROT_READ) = 0
mprotect(0x7fec390aa000, 4096, PROT_READ) = 0
mprotect(0x60d000, 4096, PROT_READ)     = 0
mprotect(0x7fec394d2000, 4096, PROT_READ) = 0
munmap(0x7fec39483000, 322033)          = 0
brk(NULL)                               = 0x19d8000
brk(0x19f9000)                          = 0x19f9000
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {0, 0, 0}) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, 0, 0}) = 0
prctl(PR_SET_KEEPCAPS, 1)               = 0
getuid()                                = 1000
setuid(1000)                            = 0
prctl(PR_SET_KEEPCAPS, 0)               = 0
getuid()                                = 1000
geteuid()                               = 1000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2318864, ...}) = 0
mmap(NULL, 2318864, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fec38454000
close(3)                                = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {0, 0, 0}) = 0
socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP) = -1 EACCES (Permission denied)
socket(AF_INET, SOCK_RAW, IPPROTO_ICMP) = -1 EPERM (Operation not permitted)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2997, ...}) = 0
read(3, "# Locale name alias data base.\n#"..., 4096) = 2997
read(3, "", 4096)                       = 0
close(3)                                = 0
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "ping: socket: Operation not perm"..., 38ping: socket: Operation not permitted
) = 38
socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6) = -1 EACCES (Permission denied)
socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6) = -1 EPERM (Operation not permitted)
write(2, "ping: socket: Operation not perm"..., 38ping: socket: Operation not permitted
) = 38
exit_group(2)                           = ?
+++ exited with 2 +++

While running all of the above commands which do not work, journald logs no errors.

The strange thing is that Firefox is working without any problems. It resolves domain names without any problems. I'm writing this post on the same system using firefox. Chromium is working. Steam is also working and updating Dota2 as I'm writing this. However, Thunderbird fails to connect to any email servers.

I have tried below to pinpoint the issue but it doesn't change anything:
- downgrading dnsmasq doesn't change anything.
- downgrading curl, wget etc doesn't change anything.
- switching kernel to lts (I have both regular and lts kernel installed always...) also doesn't change anything.

I'm at my wit's end... Don't know what else to do? Kindly help.

Last edited by Dark.Light (2016-10-29 04:03:55)

Offline

#2 2016-10-28 15:32:08

mk
Member
From: Denmark
Registered: 2012-01-23
Posts: 3

Re: [Solved] Firefox works, but ping, pacman, curl doesn't work...

Currently experiencing the same issues immediately after upgrading.

`curl` etc. tries to connect using ipv6, but I don't have a network interface with an ipv6 address. Chromium works fine.

mk@eva ~ % curl google.com
curl: (6) Could not resolve host: google.com
mk@eva ~ % curl -4 google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.dk/?gws_rd=cr&amp;ei=-24TWPKAM-jI6ATW_I6gAw">here</A>.
</BODY></HTML>
mk@eva ~ % dig +short google.com 
212.98.120.59
212.98.120.31
212.98.120.37
…

This is the upgrade that supposedly broke everything, which is weird, because none of the packages seem relevant.

[2016-10-28 16:55] [PACMAN] Running 'pacman -S -y -u'
[2016-10-28 16:55] [PACMAN] synchronizing package lists
[2016-10-28 16:55] [PACMAN] starting full system upgrade
[2016-10-28 16:56] [ALPM] transaction started
[2016-10-28 16:56] [ALPM] upgraded cython (0.24.1-1 -> 0.25.1-1)
[2016-10-28 16:56] [ALPM] upgraded cython2 (0.24.1-1 -> 0.25.1-1)
[2016-10-28 16:56] [ALPM] upgraded docker (1:1.12.2-1 -> 1:1.12.3-1)
[2016-10-28 16:56] [ALPM] upgraded file (5.28-1 -> 5.29-1)
[2016-10-28 16:56] [ALPM] upgraded gtk-update-icon-cache (3.22.1+69+ga1115c0-1 -> 3.22.2+4+gc54f348-1)
[2016-10-28 16:56] [ALPM] upgraded harfbuzz (1.3.2-1 -> 1.3.3-1)
[2016-10-28 16:56] [ALPM] upgraded gtk3 (3.22.1+69+ga1115c0-1 -> 3.22.2+4+gc54f348-1)
[2016-10-28 16:56] [ALPM] upgraded gtk3-print-backends (3.22.1+69+ga1115c0-1 -> 3.22.2+4+gc54f348-1)
[2016-10-28 16:56] [ALPM] upgraded harfbuzz-icu (1.3.2-1 -> 1.3.3-1)
[2016-10-28 16:56] [ALPM] upgraded less (481-2 -> 487-1)
[2016-10-28 16:56] [ALPM] upgraded libuv (1.9.1-1 -> 1.10.0-1)
[2016-10-28 16:56] [ALPM] upgraded libwbclient (4.5.0-2 -> 4.5.1-1)
[2016-10-28 16:56] [ALPM] upgraded libytnef (1.5-4 -> 1.8-1)
[2016-10-28 16:56] [ALPM] upgraded nginx (1.10.1-1 -> 1.10.2-1)
[2016-10-28 16:56] [ALPM] upgraded python-urllib3 (1.18-1 -> 1.18.1-1)
[2016-10-28 16:56] [ALPM] upgraded python-docker-py (1.10.4-1 -> 1.10.5-1)
[2016-10-28 16:56] [ALPM] upgraded python-magic (5.25-3 -> 5.29-1)
[2016-10-28 16:56] [ALPM] upgraded python-werkzeug (0.11.10-1 -> 0.11.11-1)
[2016-10-28 16:56] [ALPM] upgraded python2-magic (5.25-3 -> 5.29-1)
[2016-10-28 16:56] [ALPM] upgraded python2-urllib3 (1.18-1 -> 1.18.1-1)
[2016-10-28 16:56] [ALPM] upgraded python2-werkzeug (0.11.10-1 -> 0.11.11-1)
[2016-10-28 16:56] [ALPM] upgraded redis (3.2.4-1 -> 3.2.5-1)
[2016-10-28 16:56] [ALPM] upgraded s-nail (14.8.12-1 -> 14.8.14-1)
[2016-10-28 16:56] [ALPM] upgraded tevent (1:0.9.29-2 -> 1:0.9.31-1)
[2016-10-28 16:56] [ALPM] upgraded smbclient (4.5.0-2 -> 4.5.1-1)
[2016-10-28 16:56] [ALPM] upgraded samba (4.5.0-2 -> 4.5.1-1)
[2016-10-28 16:56] [ALPM] upgraded valgrind (3.11.0-4 -> 3.12.0-1)
[2016-10-28 16:56] [ALPM] upgraded wireshark-cli (2.2.0-2 -> 2.2.1-1)
[2016-10-28 16:56] [ALPM] upgraded wireshark-common (2.2.0-2 -> 2.2.1-1)
[2016-10-28 16:56] [ALPM] upgraded wireshark-gtk (2.2.0-2 -> 2.2.1-1)
[2016-10-28 16:56] [ALPM] upgraded wireshark-qt (2.2.0-2 -> 2.2.1-1)
[2016-10-28 16:56] [ALPM] upgraded x265 (2.1-1 -> 2.1-2)
[2016-10-28 16:56] [ALPM] upgraded youtube-dl (2016.10.25-1 -> 2016.10.26-1)
[2016-10-28 16:56] [ALPM] transaction completed
[2016-10-28 16:56] [ALPM] running 'glib-compile-schemas.hook'...
[2016-10-28 16:56] [ALPM] running 'gtk-query-immodules-3.0.hook'...
[2016-10-28 16:56] [ALPM] running 'gtk-update-icon-cache.hook'...
[2016-10-28 16:56] [ALPM] running 'update-desktop-database.hook'...
[2016-10-28 16:56] [ALPM] running 'update-mime-database.hook'...

Last edited by mk (2016-10-28 15:39:02)

Offline

#3 2016-10-28 15:53:08

mk
Member
From: Denmark
Registered: 2012-01-23
Posts: 3

Re: [Solved] Firefox works, but ping, pacman, curl doesn't work...

Aha - found the issue. It's smbclient that's broken.

There's an issue for it.

Either downgrade smbclient or remove “wins” from /etc/nsswitch.conf.

Last edited by mk (2016-10-28 15:53:44)

Offline

#4 2016-10-29 04:01:23

Dark.Light
Member
Registered: 2010-08-09
Posts: 19

Re: [Solved] Firefox works, but ping, pacman, curl doesn't work...

Yes. That's it.

Thanks mk.

Offline

#5 2016-11-06 11:55:14

rkrell
Member
Registered: 2016-11-06
Posts: 1

Re: [Solved] Firefox works, but ping, pacman, curl doesn't work...

Do you know about any issue reported to Samba for this?
Removing 'wins' from nsswitch.conf is just a workaround, isn't it?

Offline

Board footer

Powered by FluxBB