chrome browser not able to connect to internet.

1,003 views
Skip to first unread message

Ajit

unread,
Apr 4, 2014, 11:15:27 PM4/4/14
to Chromium OS dev
Hi Dev,

I am doing chrome os bring up on ARM based board, facing issue in browser internet connectivity. I am able to ping websites from command line, that means wifi connection is up, also settings -> internet connection shows all info about connected wifi network SSID, BSSID, IP address, Subnet mask, Gateway etc, all this info looks alright but still browser say "Unable to connect to the internet" when I am opening webpages.


I ran network_dignostics utility, gave me following output:
#network_dignostics
Trying to contact https://www.google.com ... (waiting up to 10 seconds)
Trying to contact http://www.google.com ... (waiting up to 10 seconds)
PASS: Loaded www.google.com via HTTP (ignore any tlsdate failure below)
Entering diag_date www.google.com
Local time of day: Wed Dec 31 23:56:32 PST 1969
FAIL: Unable to get date via tlsdate from www.google.com: V: tlsdate version 0.0.5
V: We were called with the following arguments:
V: validate SSL certificates host = www.google.com:443
V: time is currently 28592.428572133
V: local clock time is less than RECENT_COMPILE_DATE
V: using TLSv1_client_method()
V: opening socket to www.google.com:443
SSL connection failed
child process failed in SSL handshake
PASS: Current LinkMonitor latency for /device/wlan0 is 7ms

# network_diagnostics  --flimflam
Entering diag_flimflam
PASS: shill is running, pid 814
Listing of /var/run/shill
total 12
drwxr-xr-x  2 root root 4096 Dec 31 23:51 .
drwxr-xr-x 13 root root 4096 Dec 31 23:49 ..
-rw-r--r--  1 root root    0 Dec 31 23:49 loaded_profile_list
-rw-r--r--  1 root root   68 Dec 31 23:51 resolv.conf
Entering diag_flimflam_dbus
Flimflam Manager:
/0/ActiveProfile /profile/default
/1/ArpGateway true
/2/AvailableTechnologies/0 wifi
/3/CheckPortalList ''
/4/ConnectedTechnologies/0 wifi
/5/ConnectionState online
/6/Country
/7/DefaultService /service/6
/8/DefaultTechnology wifi
/9/Devices/0 /device/wlan0
/10/EnabledTechnologies/0 wifi
/11/HostName
/12/IgnoredDNSSearchPaths gateway.2wire.net
/13/LinkMonitorTechnologies wifi
/14/OfflineMode false
/15/PortalCheckInterval 30
/16/PortalURL http://www.gstatic.com/generate_204
/17/Profiles/0 /profile/default
/18/ServiceCompleteList/0 /service/6
/18/ServiceCompleteList/1 /service/0
/19/ServiceWatchList/0 /service/6
/20/Services/0 /service/6
/21/State online
Service /service/6
/0/AutoConnect true
/1/CheckPortal auto
/2/Connectable true
/3/Country
/4/Device /device/wlan0
/7/EAP.AnonymousIdentity
/8/EAP.CACert
/9/EAP.CACertID
/10/EAP.CACertNSS
/12/EAP.CertID
/13/EAP.ClientCert
/14/EAP.EAP
/15/EAP.Identity
/16/EAP.InnerEAP
/17/EAP.KeyID
/18/EAP.KeyMgmt NONE
/19/EAP.PIN
/20/EAP.PrivateKey
/22/EAP.SubjectMatch
/23/EAP.UseSystemCAs true
/24/Error Unknown
/25/ErrorDetails
/26/GUID
/27/HTTPProxyPort 49739
/28/IPConfig /ipconfig/wlan0_0_dhcp
/29/IsActive true
/30/Mode managed
/31/Name vdas
/32/PassphraseRequired false
/33/Priority 0
/34/Profile /profile/default
/35/ProxyConfig
/36/SaveCredentials true
/37/SavedIP.Address 192.168.43.235
/38/SavedIP.Gateway 192.168.43.1
/39/SavedIP.Mtu 0
/40/SavedIP.NameServers 192.168.43.1
/41/SavedIP.PeerAddress
/42/SavedIP.Prefixlen 24
/43/Security none
/44/State online
/45/Strength 4b
/46/Tethering Confirmed
/47/Type wifi
/48/UIData
/49/WiFi.AuthMode
/50/WiFi.BSSID 00:0a:f5:##:##:##
/51/WiFi.Frequency 2437
/52/WiFi.FrequencyList/0 2437
/53/WiFi.HexSSID 76646173
/54/WiFi.HiddenSSID false
/55/WiFi.PhyMode 4
/56/WiFi.ProtectedManagementFrameRequired false
/57/WiFi.VendorInformation/0/OUIList 00-a0-c6
Device /device/wlan0
/0/Address 00a0c6eb####
/1/BgscanMethod simple
/2/BgscanShortInterval 30
/3/BgscanSignalThreshold -50
/4/IPConfigs/0 /ipconfig/wlan0_0_dhcp
/5/Interface wlan0
/6/LinkMonitorResponseTime 5
/7/LinkStatistics/0/LastReceiveSignalDbm -45
/7/LinkStatistics/1/PacketReceiveSuccesses 184
/7/LinkStatistics/2/PacketTransmitFailures 0
/7/LinkStatistics/3/PacketTrasmitSuccesses 0
/7/LinkStatistics/4/TransmitBitrate 72.2 MBit/s MCS 7 short GI
/7/LinkStatistics/5/TransmitRetries 0
/8/Name wlan0
/9/Powered true
/10/ReceiveByteCount 59798
/11/RoamThreshold 18
/12/ScanInterval 180
/13/Scanning false
/14/TransmitByteCount 0
/15/Type wifi


it would be great if anyone give me pointers what could be the reason and where to look and debug.

Thanks,
Ajit

Mukesh Agrawal

unread,
Apr 4, 2014, 11:23:48 PM4/4/14
to Ajit, Chromium OS dev
Hi Ajit,

From the network_diagnostics output, it looks like the system has some trouble connecting to SSL websites. Do you know if the sites you're trying to test in the browser are SSL or unencrypted HTTP?

If they are unencrypted HTTP, then the next thing to try would be:
  1. open chrome://net-internals
  2. open another tab and try loading a web page
  3. switch back to the net-internals tab
  4. in the drop-down menu in the upper left, switch from "Export" to "Events"
  5. analyze the event data to determine why chrome was unable to connect to the site
If you want to test connectivity to SSL web sites, please make sure you've set the clock on the device. (The network diagnostics indicate that the clock is set to some time in 1969.)
 


--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


Ajit

unread,
Apr 6, 2014, 12:46:47 AM4/6/14
to Mukesh Agrawal, Chromium OS dev
Thanks Mukesh for giving pointers to debug this issue, really appreciate your help !

>>>> Do you know if the sites you're trying to test in the browser are SSL or unencrypted HTTP?
I am trying with www.google.com

>>>> If you want to test connectivity to SSL web sites, please make sure you've set the clock on the device. (The network diagnostics indicate that the clock is set to some time in 1969.)
How can I set date and time without connection? in date & time setting I see only time zone setting. Is there any cmd line utility in chrome to set date & time ?

I checked chrome://net-internals -> event logs after opening google.com as you mentioned.

it shows following logs (pasting only error logs):

section:
URL_REQUEST:

HTTP_CACHE_OPEN_ENTRY [dt=0]
--> net_error = -2 (ERR_FAILED)
-URL_REQUEST_START_JOB
--> net_error = - 105 (ERR_NAME_NOT_RESOLVED)

section:
HOST_RESOLVER_IMPL_REQUEST

-HOST_RESOLVER_IMPL_REQUEST
--> net_error = -804 (ERR_DNS_CACHE_MISS)

section:
CONNECT_JOB:

-SOCKET_POOL_CONNECT_JOB_CONNECT
--> net_error: -105 (ERR_NAME_NOT_RESOLVED)


section:
HOST_RESOLVER_IMPL_JOB:

-DNS_TRANSACTION
--> net_error = -102 (ERR_CONNECTION_REFUSED)
-HOST_RESOLVER_IMPL_DNS_TASK
--> net_error = 102 (ERR_CONNECTION_REFUSED)
-DNS_TRANSACTION
--> net_error= -3 (ERR_ABORT)


section:
UDP_SOCKET:

-UDP_CONNECT
--> net_error = -10 (ERR_ACCESS_DENIED)

After seeing these logs seems, connection to DNS server itself is failed and site name is not resolved.
please have a look at logs, what could be the reason for this.

PS:when I am doing ping to www.google.com from cmd line then it is able to  connect and able to resolve name

#ping www.google.com
PING www.google.com (74.125.239.113) 56(84) bytes of data.
64 bytes from nuq05s01-in-f17.1e100.net (74.125.239.113): icmp_req=1 ttl=52 time=141 ms
64 bytes from nuq05s01-in-f17.1e100.net (74.125.239.113): icmp_req=2 ttl=52 time=124 ms
64 bytes from nuq05s01-in-f17.1e100.net (74.125.239.113): icmp_req=3 ttl=52 time=88.5 ms
that means from cmd line (ping) DNS is able to resolve site name and able to connect.


Thanks,
Ajit

Mukesh Agrawal

unread,
Apr 7, 2014, 10:03:36 PM4/7/14
to Ajit, Chromium OS dev
On Sat, Apr 5, 2014 at 9:46 PM, Ajit <aji...@gmail.com> wrote:
>>>> Do you know if the sites you're trying to test in the browser are SSL or unencrypted HTTP?
I am trying with www.google.com

I think www.google.com requires an SSL connection. Since SSL depends on the system clock being up-to-date, this will fail. Please try a non-SSL site, such as http://cnn.com.
 
>>>> If you want to test connectivity to SSL web sites, please make sure you've set the clock on the device. (The network diagnostics indicate that the clock is set to some time in 1969.)
How can I set date and time without connection? in date & time setting I see only time zone setting. Is there any cmd line utility in chrome to set date & time ?

 Yes, the "date" command can be used to set the clock from a root shell. E.g.

# date --set='2014-04-07 18:57:00-07:00'

I checked chrome://net-internals -> event logs after opening google.com as you mentioned.

it shows following logs (pasting only error logs):

Unfortunately, there's not enough detail here to be sure what's going on. Some ERR_NAME_NOT_RESOLVED errors are to be expected, since Chrome deliberately resolves non-existent names at startup. (I believe this is used to detect things like DNS servers that redirect missing hosts to search pages.)

If you can save the events to a net-internals.json file, that will have the data necessary to determine if the failures are for this non-existent names, for google.com, or for something else.

However, I'd try the non-SSL site first. If that passes, then try setting the clock to the current time, and retry the SSL test.

good luck!

Ajit

unread,
Apr 9, 2014, 11:29:25 AM4/9/14
to Mukesh Agrawal, Chromium OS dev

Thanks Mukesh.

On Mon, Apr 7, 2014 at 7:03 PM, Mukesh Agrawal <qui...@chromium.org> wrote:
On Sat, Apr 5, 2014 at 9:46 PM, Ajit <aji...@gmail.com> wrote:
>>>> Do you know if the sites you're trying to test in the browser are SSL or unencrypted HTTP?
I am trying with www.google.com

I think www.google.com requires an SSL connection. Since SSL depends on the system clock being up-to-date, this will fail. Please try a non-SSL site, such as http://cnn.com.
 
>>>> If you want to test connectivity to SSL web sites, please make sure you've set the clock on the device. (The network diagnostics indicate that the clock is set to some time in 1969.)
How can I set date and time without connection? in date & time setting I see only time zone setting. Is there any cmd line utility in chrome to set date & time ?

 Yes, the "date" command can be used to set the clock from a root shell. E.g.

# date --set='2014-04-07 18:57:00-07:00'
 
After setting date through cmd line, browser is able to open SSL enabled website also. chrome://net-internals logs helped to fix issue.
Thanks for your help.

Mukesh Agrawal

unread,
Apr 9, 2014, 3:09:51 PM4/9/14
to Ajit, Chromium OS dev
Sure. Good luck with the rest of your bring up. :)
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages