Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

GPSD not working

Need help with peripherals or devices?
Post Reply
Message
Author
jeffry7
Posts: 26
Joined: 2017-12-03 16:41

GPSD not working

#1 Post by jeffry7 »

So if I start gpsd manually with an argument to set the port to 8000, I can connect with cgps or xgps.

If I try to run by just plugging in the USB GPS and start the client nothing happens.

Apparently the USB insertion is detected and systemd does start GPSD, but for some reason I never get a fix. It even looks like there is a network connection as I can do an ss and see that cgps has the same port number as gpsd, i.e. they are connected to each other.

The only clearly odd thing is when I look at systemctl it looks like something is disabled.

Code: Select all

csg2@IronGiant:/etc/default$ systemctl status gpsd
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-04-03 19:57:48 CDT; 11min ago
  Process: 1386 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 1387 (gpsd)
    Tasks: 1 (limit: 4915)
   Memory: 1.2M
   CGroup: /system.slice/gpsd.service
           └─1387 /usr/sbin/gpsd


User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: GPSD not working

#2 Post by Head_on_a_Stick »

jeffry7 wrote:The only clearly odd thing is when I look at systemctl it looks like something is disabled
Is the socket running?

Code: Select all

systemctl status gpsd.socket
I've never used that program so I don't know how it's supposed to work but have you tried enabling it manually?

Check the journal for clues:

Code: Select all

journalctl -u gpsd.service -u gpsd.socket
There's also an instance that's activated on a per-device basis:

Code: Select all

systemctl --all | grep gpsd@
But again, I don't know how that's supposed to work (sorry).
deadbang

arzgi
Posts: 1194
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: GPSD not working

#3 Post by arzgi »

Don't know if related, I had this issue in the past http://forums.debian.net/viewtopic.php?f=5&t=138762

jeffry7
Posts: 26
Joined: 2017-12-03 16:41

Re: GPSD not working

#4 Post by jeffry7 »

Head_on_a_Stick wrote:
jeffry7 wrote:The only clearly odd thing is when I look at systemctl it looks like something is disabled
Is the socket running?

Code: Select all

systemctl status gpsd.socket
I've never used that program so I don't know how it's supposed to work but have you tried enabling it manually?

Check the journal for clues:

Code: Select all

journalctl -u gpsd.service -u gpsd.socket
There's also an instance that's activated on a per-device basis:

Code: Select all

systemctl --all | grep gpsd@
But again, I don't know how that's supposed to work (sorry).
gpsd.socket is all enabled

Code: Select all

csg2@IronGiant:/etc/default$ systemctl status gpsd.socket
● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
   Loaded: loaded (/lib/systemd/system/gpsd.socket; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-04-03 19:50:46 CDT; 15h ago
   Listen: /var/run/gpsd.sock (Stream)
           [::1]:2947 (Stream)
           127.0.0.1:2947 (Stream)
    Tasks: 0 (limit: 4915)
   Memory: 44.0K
   CGroup: /system.slice/gpsd.socket
Enabling gpsd via systemctl did not allow the test client to connect.

Nothing special in the journal

Code: Select all

root@IronGiant:/etc/default# journalctl -u gpsd.service -u gpsd.socket
-- Logs begin at Fri 2020-04-03 19:50:36 CDT, end at Sat 2020-04-04 11:46:37 CDT. --
Apr 03 19:50:46 IronGiant systemd[1]: Listening on GPS (Global Positioning System) Daemon Sockets.
Apr 03 19:57:48 IronGiant systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 03 19:57:48 IronGiant systemd[1]: Started GPS (Global Positioning System) Daemon.
It looks like everything is enabled now, but still no joy.

Code: Select all

root@IronGiant:/etc/default# systemctl -all | grep gpsd
  gpsd.service                                                                                           loaded    active   running   GPS (Global Positioning System) Daemon                                          
  gpsd.socket                                                                                            loaded    active   running   GPS (Global Positioning System) Daemon Sockets                                  
root@IronGiant:/etc/default# 

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: GPSD not working

#5 Post by Head_on_a_Stick »

Did you check arzgi's link?
deadbang

Post Reply