Public bug reported:

I'm aware that the underlying service is going to be retired as covered by:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/2062178

However, the service is still active as of writing but somehow GNOME
desktop env cannot determine the timezone. It's worth noting that gnome-
maps for example can successfully locate where I am through the geoclue.

By toggling the config off and on by:
$ gsettings set org.gnome.desktop.datetime automatic-timezone false
$ gsettings set org.gnome.desktop.datetime automatic-timezone true

I only get:
> May 05 21:57:22 t14 geoclue[71430]: Failed to query location: No WiFi 
> networks found
and nothing happens.

By stopping the geoclue service and running it by hand with more debugging, I 
get more output including the exact location though.
$ sudo systemctl stop geoclue.service


$ sudo -H -u geoclue env G_MESSAGES_DEBUG=Geoclue /usr/libexec/geoclue | tee 
geoclue_debug.log
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Loading config: 
/etc/geoclue/geoclue.conf
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Using the default locate URL: Key 
file does not have key “url” in group “wifi”
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Using the default submission URL: 
Key file does not have key “submission-url” in group “wifi”
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: GeoClue configuration:
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Agents:
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   geoclue-demo-agent
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   gnome-shell
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   
io.elementary.desktop.agent-geoclue2
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   sm.puri.Phosh
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   lipstick
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Network NMEA source: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Network NMEA socket: none
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: 3G source: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: CDMA source: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Modem GPS source: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: WiFi source: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: WiFi locate URL: 
https://location.services.mozilla.com/v1/geolocate?key=<redacted>
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: WiFi submit URL: 
https://location.services.mozilla.com/v2/geosubmit?key=<redacted>
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: WiFi submit data: disabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: WiFi submission nickname: geoclue
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Static source: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Compass: enabled
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239: Application configs:
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: lipstick
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: firefox
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: no
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: epiphany
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: no
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: sm.puri.Phosh
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: 
io.elementary.desktop.agent-geoclue2
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: org.gnome.Shell
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: gnome-color-panel
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:   ID: gnome-datetime-panel
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Allowed: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           System: yes
(geoclue:87959): Geoclue-DEBUG: 22:00:05.239:           Users: all
(geoclue:87959): Geoclue-DEBUG: 22:00:05.259: Cache miss for key (99, '', 0, 0, 
[])
(geoclue:87959): Geoclue-DEBUG: 22:00:05.263: Static source monitoring 
'/etc/geolocation', trying initial load
(geoclue:87959): Geoclue-DEBUG: 22:00:05.265: Failed to query location: Source 
is inactive
(geoclue:87959): Geoclue-DEBUG: 22:00:05.269: WiFi device 'wlp2s0' added.
(geoclue:87959): Geoclue-DEBUG: 22:00:05.269: Cache miss for key (99, '', 0, 0, 
[])
(geoclue:87959): Geoclue-DEBUG: 22:00:05.269: Failed to query location: Source 
is inactive
(geoclue:87959): Geoclue-DEBUG: 22:00:05.274: Avahi Service Browser's 
CACHE_EXHAUSTED event occurred
(geoclue:87959): Geoclue-DEBUG: 22:00:05.274: Avahi Service Browser's 
ALL_FOR_NOW event occurred
(geoclue:87959): Geoclue-DEBUG: 22:00:05.281: New agent for user ID '1000'
(geoclue:87959): Geoclue-DEBUG: 22:00:05.282: Network changed: Enabling locate 
URL queries
(geoclue:87959): Geoclue-DEBUG: 22:00:05.282: Network changed: Enabling locate 
URL queries
(geoclue:87959): Geoclue-DEBUG: 22:00:05.282: Cache miss for key (99, '', 0, 0, 
[])
(geoclue:87959): Geoclue-DEBUG: 22:00:05.282: Available accuracy level from 
GClueWifi: 6
(geoclue:87959): Geoclue-DEBUG: 22:00:05.282: Failed to query location: Source 
is inactive
(geoclue:87959): Geoclue-DEBUG: 22:00:05.282: Failed to query location: Source 
is inactive

[automatic-timezone turned off]

(geoclue:87959): Geoclue-DEBUG: 22:00:15.662: Number of connected
clients: 0

[automatic-timezone turned on again]

(geoclue:87959): Geoclue-DEBUG: 22:00:20.520: Service now in use
(geoclue:87959): Geoclue-DEBUG: 22:00:20.520: Number of connected clients: 1
(geoclue:87959): Geoclue-DEBUG: 22:00:20.523: requested accuracy level: 4. Max 
accuracy level allowed by agent: 8
(geoclue:87959): Geoclue-DEBUG: 22:00:20.524: Cache miss for key (99, '', 0, 0, 
[])
(geoclue:87959): Geoclue-DEBUG: 22:00:20.524: Static source monitoring 
'/etc/geolocation', trying initial load
(geoclue:87959): Geoclue-DEBUG: 22:00:20.524: GClueModemManager: New 
time-threshold:  0
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: GClueLocator now active
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Not starting GClue3G (accuracy 
level: 0). Requested accuracy level: 4.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Not starting GClueCDMA (accuracy 
level: 0). Requested accuracy level: 4.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Not starting GClueWifi (accuracy 
level: 0). Requested accuracy level: 4.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Not starting GClueModemGPS 
(accuracy level: 0). Requested accuracy level: 4.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Not starting GClueNMEASource 
(accuracy level: 0). Requested accuracy level: 4.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Not starting GClueStaticSource 
(accuracy level: 0). Requested accuracy level: 4.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: 'gnome-datetime-panel' started.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.525: Failed to query location: Source 
is inactive
(geoclue:87959): Geoclue-DEBUG: 22:00:20.527: WiFi device 'wlp2s0' added.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.527: Cache miss for key (99, '', 0, 0, 
[])
(geoclue:87959): Geoclue-DEBUG: 22:00:20.528: Failed to query location: Source 
is inactive
(geoclue:87959): Geoclue-DEBUG: 22:00:20.550: Network changed: Enabling locate 
URL queries
(geoclue:87959): Geoclue-DEBUG: 22:00:20.550: Cache miss for key (99, '', 0, 0, 
[])
(geoclue:87959): Geoclue-DEBUG: 22:00:20.550: Available accuracy level from 
GClueWifi: 4
(geoclue:87959): Geoclue-DEBUG: 22:00:20.551: GClueWifi now active
(geoclue:87959): Geoclue-DEBUG: 22:00:20.551: Connecting cache prune timeout
(geoclue:87959): Geoclue-DEBUG: 22:00:20.551: Starting WiFi scan…
(geoclue:87959): Geoclue-DEBUG: 22:00:20.555: Network changed: Enabling locate 
URL queries

(geoclue:87959): Geoclue-WARNING **: 22:00:20.570: Failed to query location: No 
WiFi networks found
(geoclue:87959): Geoclue-DEBUG: 22:00:20.571: Failed to query location: Source 
is inactive
(geoclue:87959): Geoclue-DEBUG: 22:00:20.605: Got WiFi AP 'Canonical'
(geoclue:87959): Geoclue-DEBUG: 22:00:20.605: WiFi AP 'Canonical' added.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.606: Got WiFi AP 'Canonical'
(geoclue:87959): Geoclue-DEBUG: 22:00:20.606: WiFi AP 'Canonical' added.
(geoclue:87959): Geoclue-DEBUG: 22:00:20.606: Got WiFi AP 'Canonical'
(geoclue:87959): Geoclue-DEBUG: 22:00:20.606: WiFi AP 'Canonical' added.

<REDACTED>

(geoclue:87959): Geoclue-DEBUG: 22:00:28.607: Got following response from 
'https://location.services.mozilla.com/v1/geolocate?key=geoclue':
{"location": {"lat": <REDACTED>, "lng": <REDACTED>}, "accuracy": 131.872348}
(geoclue:87959): Geoclue-DEBUG: 22:00:28.607: GClueWifi location scrambled
(geoclue:87959): Geoclue-DEBUG: 22:00:28.607: New location available from 
GClueWifi

...

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-control-center 1:46.0.1-1ubuntu7
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun May  5 22:09:46 2024
InstallationDate: Installed on 2024-05-03 (2 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-control-center (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2064859

Title:
  GNOME's automatic timezone doesn't work with Failed to query location:
  No WiFi networks found

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/2064859/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to