I broke something network related (and/or possibly curl…)

Hello all.

A few days ago I attempted to create a Samba share on my Tumbleweed (Plasma de) system so that my receiver could play music files directly over the network.

As it wasn’t possible to share a folder with Dolphin, I used YaST Samba configuration.

In the configuration window I noticed a few pre-configured shares and thought “what’s this doing here and why?”

Knowing me, it’s not unlikely that I disabled these shares or poked around a bit, thinking they had no business being there since they were not created by me.

Unfortunately I don’t recall precisely what I did apart from creating the intended share and allowing the Samba service in YaST firewall configuration.

Not long after that my system’s network connectivity became limited to the local network.

DNS resolution and pinging any IP address outside the LAN both stopped working.

Naturally my first assumption was that the system’s network configuration got borked as a result of my apelike curiosity and frantic clicking in settings without really understanding their purpose.

After fruitlessly searching the internet for solutions I disabled the firewall in YaST and tried restoring the Samba configuration to it’s previous state.

This had no effect.

I then had a peek at the journalctl log to see if anything obvious jumped out.

There were numerous red marked entries about curl core dumps.

For instance AirVPN’s Eddie application kept repeating that curl was required. Funny thing is, Eddie wasn’t even supposed to be installed anymore and wasn’t listed in the application launcher.

But it got me thinking… The VPN software has a network lock function to prevent anything from accessing the internet when the VPN is disconnected. What if, who knows how, some part of Eddie remained on my system and suddenly started causing problems?

Since the application’s GUI was not around anymore, I reinstalled it completely from the .rpm file and had a look at the settings.

It seemed my previously used settings were still in effect, including the network lock. So I disabled that function and also allowed both IPv4 and IPv6 traffic outside a tunnel, thinking this was the culprit.

Unfortunately this had no effect either.

On top of that, several other things had stopped working as well.

Zypper for example. Any zypper command would immediately spawn a bunch of curl core dumps.
Same thing with Plasma’s Discover. So I basically couldn’t even reinstall, remove or install any packages.

Launching qBittorrent resulted in a screen full of popup messages about who knows what and a frozen system, but I’ll bet they involved curl.

Trying to do anything with curl directly inevitably failed as well with more log entries about core dumps, which by the way I have no idea what it means.

So it appears that not just network related settings got garbled.

From what I was able to assess with my limited knowledge of Linux it appears curl somehow broke, thus rendering anything depending on it completely inoperable.

While searching the internet for possible causes I came across some suggestions related to DNS issues, and what do you know… While a ping command failed to resolve any domain names, the ‘host’ and ‘dig’ commands both succeeded.

So now I’m truly puzzled.

Next thing I tried was restoring a Tumbleweed snapshot from before this total clusterfudge but again, it didn’t fix anything.

So, an even earlier snapshot maybe… and an earlier one still. No result.

And this is where I’m at my wits end.

Aside from just biting the bullet and doing a complete reinstall I have absolutely no clue what could be done to recover from this.

Fearing that a fresh installation will be required I made backups of everything important to me, but before I actually proceed I thought throwing this out here may be worth a shot.

If anyone has a suggestion, I’ll gladly try it. Seeing as this installation has been rendered useless I don’t really care if it breaks completely. Might even learn a thing or two from it…

Thank you very much for your patience so far. I’m curious to see if anybody has any idea what might have gone wrong (besides me being a bit of an ape sometimes…)

Yes, this look like DNS problems.

Does “ping 8.8.8.8” work?
What does “cat /etc/resolve.conf” give? If it has nameserver entries in, can you ping those addresses?

Reading the story, a fresh install would be good. If you have a separate home that should not be too painful, during the new setup make sure to mount this old home partition as your new home partition and you will hardly notice a difference booting up the new install.

You have to reinstall packages you installed, for that I save a the output of sudo zypper lr -up and sudo zypper search -i | grep '^i+' and use that to restore the repositories and the packages I did install myself.

NB: This post made me check my resolve.conf and I was shocked what I saw but that is another story.

Hi Marel,

I’ve tried “ping 8.8.8.8” and a few other public DNS servers, nothing at all.

Will get back to you later on the resolv.conf. I did have a look at it yesterday, nothing odd. Added the IP’s of my router just to make sure, still didn’t work.

Can’t check much at the moment as I’m running a different OS (three flavours running on this system, great to have something to fall back to, lol)

Interesting thought about the fresh install. I do indeed have a seperate home partition and was thinking of trying just what you suggest. Just wasn’t sure it would work.

Need some sleep first tho. I’ll be back.

If ping does not work checking resolve.conf is not needed (yet).

It is almost impossible that dig/host works and ping not, so can you double check.

When ping is not working, check if you can ping something in your local network and if so, ping the gateway and check if the default route is set to the gateway using “ip route”

Try to disable the Firewall temporarily.

Does a ping work?

Show

grep hosts /usr/etc/nsswitch.conf /etc/nsswitch.conf

I disabled in in YaST firewall configuration, that had no effect.
Flushed iptables as well. Or at least I think that’s what happened, used a command found on the internet as I’m not too familiar with the workings of it.

@marel

***@Tumbleweed:~> cat /etc/resolv.conf

Generated by NetworkManager

search home.lan
nameserver 192.168.2.1
nameserver 192.168.10.254

It is indeed rather strange that dig and host both resolved addresses and ping did not. I have no explanation for that but did read something about one or the other using DNS root servers or not.

@arvidjaar

I’ll get back to you with the output of this.

Thanks for your suggestions so far guys.
I’m leaning towards something other than actual DNS problems though, something related to curl if journalctl is anything to go by. Seems packages that use / depend on curl have trouble operating or just close as soon as they are opened, such as Discover.
How I’ve managed to break this remains a mystery though, and the system logs are equally mysterious to me. Just seeing a bunch of curl core dumps whenever curl is invoked by another package.

As requested, the output of ‘***@Tumbleweed:~> grep hosts /usr/etc/nsswitch.conf /etc/nsswitch.conf’ :

/usr/etc/nsswitch.conf:# Valid databases are: aliases, ethers, group, gshadow, hosts,
/usr/etc/nsswitch.conf:hosts:   files dns
/etc/nsswitch.conf:# Valid databases are: aliases, ethers, group, gshadow, hosts,
/etc/nsswitch.conf:hosts:       [NOTFOUND=return] files mdns_minimal dns

And some additional stuff.

Output of ***@Tumbleweed:~> sudo zypper refresh

[sudo] password for root:

Retrieving repository 'Brave Browser' metadata .........................................................................................................................................................................................................................[error]

Repository 'Brave Browser' is invalid.

[brave-browser|https://brave-browser-rpm-release.s3.brave.com/x86_64] Valid metadata not found at specified URL

History:

- [|] Error trying to read from 'https://brave-browser-rpm-release.s3.brave.com/x86_64'

- Download (curl) error for 'https://brave-browser-rpm-release.s3.brave.com/x86_64/content':

Error code: Connection failed

Error message: Could not resolve host: brave-browser-rpm-release.s3.brave.com

Please check if the URIs defined for this repository are pointing to a valid repository.

Skipping repository 'Brave Browser' because of the above error.

Retrieving repository 'Main Repository (OSS)' metadata .................................................................................................................................................................................................................[error]

Repository 'Main Repository (OSS)' is invalid.

[download.opensuse.org-oss|http://download.opensuse.org/tumbleweed/repo/oss/] Valid metadata not found at specified URL

History:

- [|] Error trying to read from 'http://download.opensuse.org/tumbleweed/repo/oss/'

- Download (curl) error for 'http://download.opensuse.org/tumbleweed/repo/oss/content':

Error code: Connection failed

Error message: Could not resolve host: download.opensuse.org

Please check if the URIs defined for this repository are pointing to a valid repository.

Skipping repository 'Main Repository (OSS)' because of the above error.

Retrieving repository 'Main Update Repository' metadata ............................................................................................... ................................................................................................................[error]

Repository 'Main Update Repository' is invalid.

[download.opensuse.org-tumbleweed|http://download.opensuse.org/update/tumbleweed/] Valid metadata not found at specified URL

History:

- [|] Error trying to read from 'http://download.opensuse.org/update/tumbleweed/'

- Download (curl) error for 'http://download.opensuse.org/update/tumbleweed/content':

Error code: Connection failed

Error message: Could not resolve host: download.opensuse.org

Please check if the URIs defined for this repository are pointing to a valid repository.

Skipping repository 'Main Update Repository' because of the above error.

Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata­

And a snippet from journalctl | grep curl:

May 06 05:13:05 Tumbleweed systemd-coredump[23424]: Process 23422 (curl) of user 1000 dumped core.
                                                    #5  0x00007f594d49b5c1 curl_version (libcurl.so.4 + 0x825c1)
                                                    #6  0x00005567cf4628ac n/a (curl + 0xb8ac)
                                                    #9  0x00005567cf463ac5 n/a (curl + 0xcac5)
May 06 05:13:05 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:05 - Unexpected bundle executable error curl (/usr/bin/curl). Dumping report.
May 06 05:13:05 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:05 -     libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f31d5433000)
May 06 05:13:05 Tumbleweed plasmashell[23331]: W 2024.05.06 05:13:05 - curl - Not available
May 06 05:13:06 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:06 - Collect information about AirVPN ..., 1? try failed (curl is required.)
May 06 05:13:06 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:06 - Collect information about AirVPN ..., 2? try failed (curl is required.)
May 06 05:13:06 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:06 - Collect information about AirVPN ..., 3? try failed (curl is required.)
May 06 05:13:06 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:06 - Collect information about AirVPN ..., 4? try failed (curl is required.)
May 06 05:13:06 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:06 - Collect information about AirVPN ..., 5? try failed (curl is required.)
May 06 05:13:06 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:06 - Cannot retrieve information about AirVPN: curl is required.
May 06 05:13:07 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:07 - Collect information about AirVPN ..., 1? try failed (curl is required.)
May 06 05:13:07 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:07 - Collect information about AirVPN ..., 2? try failed (curl is required.)
May 06 05:13:07 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:07 - Collect information about AirVPN ..., 3? try failed (curl is required.)
May 06 05:13:07 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:07 - Collect information about AirVPN ..., 4? try failed (curl is required.)
May 06 05:13:07 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:07 - Collect information about AirVPN ..., 5? try failed (curl is required.)
May 06 05:13:07 Tumbleweed plasmashell[23331]: . 2024.05.06 05:13:07 - Cannot retrieve information about AirVPN: curl is required.
May 06 05:13:07 Tumbleweed plasmashell[23331]: F 2024.05.06 05:13:07 - curl is required.
May 06 05:13:41 Tumbleweed systemd-coredump[23780]: Process 23778 (curl) of user 1000 dumped core.
                                                    #5  0x00007f829a8395c1 curl_version (libcurl.so.4 + 0x825c1)
                                                    #6  0x0000558862b2f8ac n/a (curl + 0xb8ac)
                                                    #9  0x0000558862b30ac5 n/a (curl + 0xcac5)
May 06 05:14:12 Tumbleweed systemd-coredump[23875]: Process 23873 (curl) of user 1000 dumped core.
                                                    #5  0x00007f0a2eca45c1 curl_version (libcurl.so.4 + 0x825c1)
                                                    #6  0x000055a41b33a8ac n/a (curl + 0xb8ac)
                                                    #9  0x000055a41b33bac5 n/a (curl + 0xcac5)
May 06 05:17:59 Tumbleweed plasmashell[23331]: F 2024.05.06 05:17:59 - curl is required.
                                                   #5  0x00007fb51e2b3bc3 n/a (libcurl.so.4 + 0x1ebc3)
                                                   #6  0x00007fb51e2b4e48 n/a (libcurl.so.4 + 0x1fe48)
                                                   #1  0x00007fb51e2f5950 n/a (libcurl.so.4 + 0x60950)
                                                   #2  0x00007fb51e2eb87a n/a (libcurl.so.4 + 0x5687a)
                                                   #3  0x00007fb51e2eba2a curl_multi_poll (libcurl.so.4 + 0x56a2a)
                                                   #4  0x00007fb51e2c4122 curl_easy_perform (libcurl.so.4 + 0x2f122)
                                                   #6  0x00007f6ab02d4bc3 n/a (libcurl.so.4 + 0x1ebc3)
                                                   #7  0x00007f6ab02d5e48 n/a (libcurl.so.4 + 0x1fe48)
                                                   #1  0x00007f6ab0316950 n/a (libcurl.so.4 + 0x60950)
                                                   #2  0x00007f6ab030c87a n/a (libcurl.so.4 + 0x5687a)
                                                   #3  0x00007f6ab030ca2a curl_multi_poll (libcurl.so.4 + 0x56a2a)
                                                   #4  0x00007f6ab02e5122 curl_easy_perform (libcurl.so.4 + 0x2f122)
                                                   #6  0x00007fa54d5b1bc3 n/a (libcurl.so.4 + 0x1ebc3)
                                                   #7  0x00007fa54d5b2e48 n/a (libcurl.so.4 + 0x1fe48)
                                                   #1  0x00007fa54d5f3950 n/a (libcurl.so.4 + 0x60950)
                                                   #2  0x00007fa54d5e987a n/a (libcurl.so.4 + 0x5687a)
                                                   #3  0x00007fa54d5e9a2a curl_multi_poll (libcurl.so.4 + 0x56a2a)
                                                   #4  0x00007fa54d5c2122 curl_easy_perform (libcurl.so.4 + 0x2f122)
May 06 17:04:31 Tumbleweed systemd-coredump[9751]: Process 9749 (curl) of user 1000 dumped core.
                                                   #5  0x00007f49cb1695c1 curl_version (libcurl.so.4 + 0x825c1)
                                                   #6  0x00005579aacc48ac n/a (curl + 0xb8ac)
                                                   #9  0x00005579aacc5ac5 n/a (curl + 0xcac5)
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Unexpected bundle executable error curl (/usr/bin/curl). Dumping report.
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 -     libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f0c1dc28000)
May 06 17:04:31 Tumbleweed plasmashell[9612]: W 2024.05.06 17:04:31 - curl - Not available
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Collect information about AirVPN ..., 1? try failed (curl is required.)
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Collect information about AirVPN ..., 2? try failed (curl is required.)
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Collect information about AirVPN ..., 3? try failed (curl is required.)
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Collect information about AirVPN ..., 4? try failed (curl is required.)
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Collect information about AirVPN ..., 5? try failed (curl is required.)
May 06 17:04:31 Tumbleweed plasmashell[9612]: . 2024.05.06 17:04:31 - Cannot retrieve information about AirVPN: curl is required.
May 06 17:04:47 Tumbleweed plasmashell[9612]: F 2024.05.06 17:04:47 - curl is required.
May 06 17:05:45 Tumbleweed sudo[10010]:  ***  : TTY=pts/2 ; PWD=/home/*** ; USER=root ; COMMAND=/usr/bin/zypper install curl
May 06 17:10:37 Tumbleweed plasmashell[9612]: F 2024.05.06 17:10:37 - curl is required.
May 06 17:11:34 Tumbleweed systemd-coredump[11059]: Process 11057 (curl) of user 1000 dumped core.
                                                    #5  0x00007f3e4063b5c1 curl_version (libcurl.so.4 + 0x825c1)
                                                    #6  0x00005565a1da08ac n/a (curl + 0xb8ac)
                                                    #9  0x00005565a1da1ac5 n/a (curl + 0xcac5)
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Unexpected bundle executable error curl (/usr/bin/curl). Dumping report.
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 -     libcurl.so.4 => /lib64/libcurl.so.4 (0x00007fab7dcdd000)
May 06 17:11:34 Tumbleweed plasmashell[10939]: W 2024.05.06 17:11:34 - curl - Not available
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Collect information about AirVPN ..., 1? try failed (curl is required.)
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Collect information about AirVPN ..., 2? try failed (curl is required.)
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Collect information about AirVPN ..., 3? try failed (curl is required.)
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Collect information about AirVPN ..., 4? try failed (curl is required.)
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Collect information about AirVPN ..., 5? try failed (curl is required.)
May 06 17:11:34 Tumbleweed plasmashell[10939]: . 2024.05.06 17:11:34 - Cannot retrieve information about AirVPN: curl is required.
                                                   #5  0x00007fc2091c2bc3 n/a (libcurl.so.4 + 0x1ebc3)
                                                   #6  0x00007fc2091c3e48 n/a (libcurl.so.4 + 0x1fe48)
                                                   #1  0x00007fc209204950 n/a (libcurl.so.4 + 0x60950)
                                                   #2  0x00007fc2091fa87a n/a (libcurl.so.4 + 0x5687a)
                                                   #3  0x00007fc2091faa2a curl_multi_poll (libcurl.so.4 + 0x56a2a)
                                                   #4  0x00007fc2091d3122 curl_easy_perform (libcurl.so.4 + 0x2f122)

Any other information that could provide some insight I’ll happily provide.

Change it to

/etc/nsswitch.conf:hosts:     files mdns_minimal [NOTFOUND=return] dns

Well I’ll be dipped. :slight_smile:
Thank you very much @arvidjaar

I’m not entire sure what this did, but it worked. Connectivity is entirely restored.
So no curl issues despite all the log entries that led me to believe so.

Would you mind briefly explaining what your suggested change did and how this might have broken?

Most likely some package that edits /etc/nsswitch.conf creates the wrong configuration. Looking at the (only known to me) package that does it I do not see how it can happen. To troubleshoot it one needs the file state before this change. If you are using snapshots - check them. If you have snapshot where this file is different, we could proceed further.

Thanks. I’ll just leave it be. Things are working again, so I thank you guys for the assistance. :slight_smile:

This problem is haunting this forum for years. Guess why?

I’m not sure I follow…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.