×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

GPSD Crashing After Update to StellarMate 1.5.3 via Beta Channel

  • Posts: 23
  • Thank you received: 1
Nothing happened after starting gpsd, but this is the output:

stellarmate@stellarmate:~ $ sudo systemctl enable gpsd
Synchronizing state of gpsd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable gpsd
Created symlink /etc/systemd/system/multi-user.target.wants/gpsd.service \u2192 /lib/systemd/system/gpsd.service.
stellarmate@stellarmate:~ $ sudo systemctl start gpsd
stellarmate@stellarmate:~ $
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57135

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

Good deal. GPSD is now operational. You
should be able to open KSTARS and EKOS.
3 years 9 months ago #57136

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 1
Unfortunately, the gpsd driver still crashes as soon as I start indi and my devices connect.
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57137

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

Let’s check the status of GPSD.

Use: sudo systemctl status gpsd


Crashes when loading usually means the driver is expecting it to be at one port but the port is taken. In .indi at the root of /home/stellermate/.indi has the indi_gpsd. XML file. Use geany to open the file and see which port it thinks it is supposed to see. Look for ttyACM. Currently, gpsd is at ttyACM1.

I have the same uBlox-7 device.
Last edit: 3 years 9 months ago by John Robison.
3 years 9 months ago #57138

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 1
The indi_gpsd.xml file appears to be blank when opened in geany.

Status of gpsd:

stellarmate@stellarmate:~ $ sudo systemctl status gpsd
\u25cf gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-07-21 21:22:49 EDT; 34min ago
Main PID: 559 (gpsd)
Tasks: 2 (limit: 4915)
Memory: 1.8M
CGroup: /system.slice/gpsd.service
\u2514\u2500559 /usr/sbin/gpsd -n -b /dev/gps

Jul 21 21:22:49 stellarmate systemd[1]: Starting GPS (Global Positioning System) Daemon...
Jul 21 21:22:49 stellarmate systemd[1]: Started GPS (Global Positioning System) Daemon.
Jul 21 21:22:49 stellarmate gpsd[559]: gpsd:ERROR: SER: device open of /dev/ttyACM1 failed: Device or resource busy - retrying read-only
Jul 21 21:22:49 stellarmate gpsd[559]: gpsd:ERROR: SER: read-only device open of /dev/ttyACM1 failed: Device or resource busy
Jul 21 21:22:49 stellarmate gpsd[559]: gpsd:ERROR: SER: device open of /dev/ttyACM1 failed: Device or resource busy - retrying read-only
Jul 21 21:22:49 stellarmate gpsd[559]: gpsd:ERROR: SER: read-only device open of /dev/ttyACM1 failed: Device or resource busy
Jul 21 21:22:49 stellarmate gpsd[559]: gpsd:ERROR: /dev/ttyACM1: device activation failed.
Jul 21 21:22:49 stellarmate gpsd[559]: gpsd:ERROR: /dev/ttyACM1: activation failed, freeing device
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57139

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 1
I just looked at the root of /home/stellermate/.indi and there actually doesn't appear to be an indi_gpsd.xml file at all. I tried to open that file in geany through the terminal, so it looks like the application thought I wanted to create it.
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57140

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 1
I found the indi_gpsd.xml file in the following directory: /usr/share/indi

Not sure if that's right, but it's the only file with that name on the system.

This is the contents:

<?xml version="1.0" encoding="UTF-8"?>
<driversList>
<devGroup group="Auxiliary">
<device label="GPSD">
<driver name="GPSD">indi_gpsd</driver>
<version>0.5</version>
</device>
</devGroup>
</driversList>
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57144

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

We may have to look at indi_gpsd.service. This seems to be initiating a second start GPSD. This conflicts with the enabled GPSD service. This is going to take some sleuthing. I will look at this tomorrow.
3 years 9 months ago #57146

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

A fresh look at the data shows the difference between AstroBerry and StellerMate. With StellerMate, GPSD functions are managed by indi_gpsd.

Use: sudo systemctl disable gpsd

Next

Use: sudo geany /lib/systemd/system/gpsd.service

Use: sudo geany /etc/gpsd

The options look funny. The options come from /etc.
Last edit: 3 years 9 months ago by John Robison.
3 years 9 months ago #57155

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 1
From: sudo geany /lib/systemd/system/gpsd.service

[Unit]
Description=GPS (Global Positioning System) Daemon
Requires=gpsd.socket
# Needed with chrony SOCK refclock
After=chronyd.service

[Service]
Type=forking
EnvironmentFile=-/etc/default/gpsd
ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES

[Install]
WantedBy=multi-user.target
Also=gpsd.socket

When running sudo geany /etc/gpsd, it appears that there is no existing file and geany attempts to create a new blank file. When looking in the /etc directory, there is no reference to gpsd.
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57169

Please Log in or Create an account to join the conversation.

  • Posts: 389
  • Thank you received: 15
Hello,

Thank you for the first file.

Use: sudo geany /etc/default/gpsd
3 years 9 months ago #57181

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 1
Hello,

This is the output:

# Default settings for the gpsd init script and the hotplug wrapper.

# Start the gpsd daemon automatically at boot time
START_DAEMON="true"

# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/gps"

# Other options you want to pass to gpsd
GPSD_OPTIONS="-n -b"
GPSD_SOCKET="/var/run/gpsd.sock"
SkyWatcher HEQ5 > Pegasus Pocket Powerbox > Celestron Nexstar 6se OTA w/ f/6.3 FR > Nikon Z6 imaging camera > Agena StarGuider 50mm guide scope > ZWO ASI290MM Mini guide camera
3 years 9 months ago #57184

Please Log in or Create an account to join the conversation.

Time to create page: 1.263 seconds