Redshift fails to find location from geoclue

Bug #808006 reported by James Fellows Yates
202
This bug affects 48 people
Affects Status Importance Assigned to Milestone
Redshift
New
Undecided
Unassigned
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

I just installed Redshift 1.7. When I try loading from the GUI nothing happens. When I try loading redshift from terminal I get this warning:

** (process:6923): WARNING **: Metadata for error domain "geoclue-error-quark" already registered

Started Geoclue provider `Geoclue Master'.
Using provider `geoclue'.
Could not get location: Geoclue master client has no usable Position providers.
Unable to get location from provider.

Therefore, redshift fails to start. I haven't tried doing the LAT:LON command, but it's a shame it couldn't find it automatically.

Tags: geoclue
summary: - Redshift fails to find location from either Provider or LAT:LON command
+ Redshift fails to find location from either Provider
summary: - Redshift fails to find location from either Provider
+ Redshift fails to find location from Provider
Revision history for this message
nemix (nemix-deactivatedaccount) wrote : Re: Redshift fails to find location from Provider

I get the same error:

$ gtk-redshift

** (process:6130): WARNING **: Metadata for error domain "geoclue-error-quark" already registered

Started Geoclue provider `Geoclue Master'.
Użycie dostawcy `geoclue'.
Could not get location: Geoclue master client has no usable Position providers.
Nie udało się uzyskać lokalizacji od dostawcy.

Using Mint 11 x64 and Redshift 1.7

Revision history for this message
James Fellows Yates (jfy133) wrote :

Sorry, I'll add that I was running Ubuntu 11.04 32bit

Revision history for this message
Jon Lund Steffensen (jonls) wrote :

I have one report that reinstalling the geoclue position provider fixed the problem. Please try that.

Revision history for this message
James Fellows Yates (jfy133) wrote :

Still have the same problem:

** (process:12962): WARNING **: Metadata for error domain "geoclue-error-quark" already registered

Started Geoclue provider `Geoclue Master'.
Using provider `geoclue'.
Could not get location: Geoclue master client has no usable Position providers.
Unable to get location from provider.

Revision history for this message
nemix (nemix-deactivatedaccount) wrote :

Reinstalling do not help.
I should also mention that I am running "gtk-redshift" and have location set in gnome calendar.
In Mint 10 and Redshift 1.6 everything was working fine.

Revision history for this message
Ethan Shalev (shalev-ethan) wrote :

I'm encountering this problem with Redshift 1.7 from the PPA, on Ubuntu 11.04 64 bit.
Reinstalling geoclue and geoclue-ubuntu-geoip did not resolve it.
still getting

** (process:4571): WARNING **: Metadata for error domain "geoclue-error-quark" already registered

Started Geoclue provider `Geoclue Master'.
Using provider `geoclue'.
Could not get location: Geoclue master client has no usable Position providers.
Unable to get location from provider.

-Ethan

Revision history for this message
Ethan Shalev (shalev-ethan) wrote :

I read the help file for reshift ($redshift -h), and found:

-l PROVIDER Select provider for automatic location updates
    (Type `list' to see available providers)
so I went ahead and typed $redshift -l list, and got the following output:
Available location providers:
  geoclue
  gnome-clock
  manual

knowing that geoclue doesn't seem to be working at the moment, I ran $redshift -l gnome-clock, and voila! it works!

So I now added the following to my startup applications:
gtk-redshift -t6500:4800 -l gnome-clock (I find the 4800 color temperature to be ideal for night-use).

This bug should still be addressed, but till it is, I hope this helps others make use of this great program!

-Ethan

summary: - Redshift fails to find location from Provider
+ Redshift fails to find location from geoclue
Revision history for this message
Felix Möller (felix-derklecks) wrote :

duplicate of bug #868904 ?

Revision history for this message
Jon Lund Steffensen (jonls) wrote :

> duplicate of bug #868904 ?
As far as I can tell this bug is not specifically about redshift startup problems. The other one is.

Revision history for this message
Simba MacDhuibh (spacesimba08) wrote :

** (process:31117): WARNING **: Metadata for error domain "geoclue-error-quark" already registered

Started Geoclue provider `Geoclue Master'.
Using provider `geoclue'.
According to the geoclue provider we're at: blah.blah, -yup.mmhm
Using method `randr'.

It works, but still produces that quark thingy. Don't think that suppose to happen. I had bug #868904, but installed geoclue-hostip and it worked. Should be inclueded in dependancies. Ubuntu 11.10 AMD64

Revision history for this message
Joseph Turian (turian-gmail) wrote :

geoclue-hostip solved the problem for me too.

I agree that it should be a dependency.

Revision history for this message
Jamie Lawler (jamie-lawler) wrote :

I'm getting this same error on 12.10 and redshift 1.7. I've installed geoclue-hostip and that doesn't seem to fix the problem either.

Revision history for this message
krogon (krogon) wrote :

If you are using geoclue-hostip verify that your Location is properly set up on website (http://www.hostip.info/) and is not marked as "guessed". Actual data are shown at http://api.hostip.info/

Revision history for this message
Brian Neltner (neltnerb) wrote :

I can verify that I also encounter this bug on Ubuntu 12.10. I tried both reinstalling geoclue and installing geoclue-hostip and it did not help. I suspect that this is because my dynamic IP address viewable by the world is owned by RCN and thus only localizes to "United States".

It seems sane to have this default to using the gnome-clock as this is easily user update-able already.

I tried updating the .desktop file to automatically launch with -l gnome-clock (which works for me correctly in the terminal) by modifying the EXEC line of /usr/share/app-install/desktop/gtk-redshift:gtk-redshift.desktop to say

Exec=gtk-redshift -l gnome-clock

however, this does not work for me immediately. Unfortunately, I am at work so I don't have time to try logging out and logging back in, so it may be working fine now but a simple issue with not updating the dash directory or however dash works.

Igor (ishl)
no longer affects: ubuntu
Revision history for this message
Olivier Berger (olivierberger) wrote :

For those having problems, may I suggest to check that http://www.hostip.info/ really provides a location including a city, and checking that the following program will be able to retrieved the latitude and longitude :
http://developer.gnome.org/geoclue/unstable/simple-example.html

Then you may also want to check whether the following helps :
gtk-redshift -l geoclue:name=org.freedesktop.Geoclue.Providers.Hostip:path=/org/freedesktop/Geoclue/Providers/Hostip

After filling the details of the location of my IP on hostip.info, this helped :-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Patrik B. (inoki-deactivatedaccount) wrote :

Trying location provider `geoclue'...
Started Geoclue provider `Geoclue Master'.
Using provider `geoclue'.

** (process:12088): WARNING **: Could not get location, 3 retries left.

** (process:12088): WARNING **: Could not get location, 2 retries left.

** (process:12088): WARNING **: Could not get location, 1 retries left.

** (process:12088): WARNING **: Provider does not have a valid location available.
Unable to get location from provider.

Xubuntu 14.04.2 x64

Revision history for this message
chevrier (tc-s) wrote :

incredible... almost 6 years since this was opened and 2 years since the last comment... also affected (must be doing something wrong!?), but seems like #68 from https://bugs.launchpad.net/ubuntu/+source/redshift/+bug/868904 solves it...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.