You are not logged in.

#1 2021-01-12 21:33:01

Kotrfa
Member
Registered: 2012-10-25
Posts: 204

[Solved] Some applications cannot connect after switching to iwd

Hi,

I have a really weird bug and have no idea how to debug it.

I switch from netctl to iwd and since then (probably), some application cannot connect to the internet.

Specifically, I found two (both vital to my workflow):

1. terraform (a tool used to manage infrastructure written in go). It simply hangs when it tries to connect to the internet (it worked before). I tried to strace it and it just "refuses to connect"/connection timed out https://gist.github.com/hnykda/132e4948 … 806f528d8f . Weird thing is that it can connect when I try it from within a docker container.
2. rescuetime (https://www.rescuetime.com/): it simply cannot connect to the internet. It's more opaque so I can't easily debug it. (strace also just shows some connection timed out, but I am weak with strace)
s

Is there some "routing" or something I am missing? Can it be IPv6 vs IPv4 problems? DNS? Aside from netctl, I also removed openresolv, wpa_supplicant and dialog packages.

Thanks a lot!

$ systemd-resolve --status
Global
           Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported                                
    resolv.conf mode: foreign                                                                       
Fallback DNS Servers: 1.1.1.1 9.9.9.10 8.8.8.8 2606:4700:4700::1111 2620:fe::10 2001:4860:4860::8888

Link 2 (enp0s31f6)
Current Scopes: none                                                        
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 4 (wlan1)
    Current Scopes: DNS LLMNR/IPv4                                              
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.0.1                                                 
       DNS Servers: 192.168.0.1                                                 
        DNS Domain: home                                                        

Link 5 (wlan0)
Current Scopes: none                                                        
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether c8:5b:76:cd:aa:36 brd ff:ff:ff:ff:ff:ff
4: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2312 qdisc mq state UP group default qlen 1000
    link/ether d0:37:45:7b:9a:f7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.121/24 scope global noprefixroute wlan1
       valid_lft forever preferred_lft forever
5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether f4:8c:50:84:c7:e0 brd ff:ff:ff:ff:ff:ff
$ iwctl station list
                            Devices in Station Mode                            
--------------------------------------------------------------------------------
  Name                State          Scanning
--------------------------------------------------------------------------------
  wlan1               connected              

 $ iwctl device list
                                    Devices                                    
--------------------------------------------------------------------------------
  Name                Address             Powered   Adapter   Mode      
--------------------------------------------------------------------------------
  wlan0               f4:8c:50:84:c7:e0   off       phy0      station   
  wlan1               d0:37:45:7b:9a:f7   on        phy1      station   

$ iwctl station wlan1 show
                                 Station: wlan1                                
--------------------------------------------------------------------------------
  Settable  Property            Value                                          
--------------------------------------------------------------------------------
            Scanning            no
            State               connected
            Connected network   Interbrigada-office-5g                         
$ cat /etc/iwd/main.conf -p
[General]
EnableNetworkConfiguration=true

[Network]
NameResolvingService=systemd

The rescuetime debug logging shows that it cannot resolve the hostname:

20210112T230152:1:[  pass  ] time_to_time_wstring_test
20210112T230152:5:***** Attempting to start RescueTime *****
20210112T230152:5:***** Starting RescueTime *****
20210112T230152:1:ERROR: Could not access the menu item: 13
20210112T230152:1:ERROR: Could not access the menu item: 41
20210112T230152:41:[qt_ui:create_system_tray] Current Thread ID: 0x7fca0eaff3c0
20210112T230152:1:QTDBG - Setting tray icon and menu after ...
20210112T230155:65:[network::request::perform_curl_request]HTTP Response (!CURLE_OK): 6 : Couldn't resolve host name
20210112T230155:65:rt::network::request::perform() CURLcode = 6
20210112T230155:65:RescueTime::Network::CurlError( "Unable to connect to the internet. No data will be lost, we'll try again in 3 to 30 min." )
20210112T230155:193:[config::is_authenticated] Caught RescueTime::Network::Exception
20210112T230158:8193:[qt_menu_action_delegate:on_menu_action_triggered] item: 7
20210112T230158:8193:[qt_system_tray_menu:trigger_menu_item] item: 7
20210112T230158:1:User Action] Open Help Window.
20210112T230158:1:[qt_ui:on_show_help_dialog_slot] opening help information.
20210112T230158:65:[network::request::perform_curl_request]HTTP Response (!CURLE_OK): 6 : Couldn't resolve host name
20210112T230158:65:rt::network::request::perform() CURLcode = 6
20210112T230158:65:RescueTime::Network::CurlError( "Unable to connect to the internet. No data will be lost, we'll try again in 3 to 30 min." )
20210112T230158:193:[config::is_authenticated] Caught RescueTime::Network::Exception
20210112T230203:65:[network::request::perform_curl_request]HTTP Response (!CURLE_OK): 6 : Couldn't resolve host name
20210112T230203:65:rt::network::request::perform() CURLcode = 6
...

that could lead to DNS issues, but have no idea how to solve it.

Last edited by Kotrfa (2021-01-12 22:11:32)

Offline

#2 2021-01-12 22:12:02

Kotrfa
Member
Registered: 2012-10-25
Posts: 204

Re: [Solved] Some applications cannot connect after switching to iwd

Offline

Board footer

Powered by FluxBB