gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Error: "can't bind to IPv4 port gpsd, Address already in use"


From: Doug Kaye
Subject: Fwd: Error: "can't bind to IPv4 port gpsd, Address already in use"
Date: Fri, 15 Sep 2023 17:15:11 -0700

Trying to run gpsd on a Pi Zero W. Here's the output from the debug script.

   ...doug

-----

WARNING: Please run as root
WARNING: Running under sudo confuses the results.
+ id
uid=0(root) gid=0(root) groups=0(root),117(lpadmin)
+ uname -a
Linux raspberrypi 6.1.21+ #1642 Mon Apr  3 17:19:14 BST 2023 armv6l GNU/Linux
+ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
+ command -v gpsd
/usr/sbin/gpsd
+ gpsd -V
gpsd: 3.22 (revision 3.22)
+ + gpsd -h
grep ^#.*enabled
# Socket export enabled.
# Shared memory export enabled.
# DBUS export enabled
# Control socket for hotplug notifications enabled
# Magic Hat enabled
# systemd socket activation enabled
+ command -v sockstat
+ command -v lsof
/usr/bin/lsof
+ lsof -iTCP:2947 -s TCP:LISTEN
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd   1 root   58u  IPv6  10232      0t0  TCP localhost:gpsd (LISTEN)
systemd   1 root   59u  IPv4  10236      0t0  TCP localhost:gpsd (LISTEN)
+ sed -nE 1p;/CHR|LISTEN/p
+ lsof -c gpsd
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
+ ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     2:02 /sbin/init splash
    2 ?        S      0:00 [kthreadd]
    3 ?        I<     0:00 [slub_flushwq]
    4 ?        I<     0:00 [netns]
    8 ?        I<     0:00 [mm_percpu_wq]
    9 ?        I      0:00 [rcu_tasks_rude_kthread]
   10 ?        I      0:00 [rcu_tasks_trace_kthread]
   11 ?        S      0:04 [ksoftirqd/0]
   12 ?        S      0:00 [kdevtmpfs]
   13 ?        I<     0:00 [inet_frag_wq]
   14 ?        S      0:00 [kauditd]
   15 ?        S      0:00 [khungtaskd]
   17 ?        S      0:00 [oom_reaper]
   18 ?        I<     0:00 [writeback]
   20 ?        S      0:01 [kcompactd0]
   21 ?        I<     0:00 [kintegrityd]
   22 ?        I<     0:00 [kblockd]
   23 ?        I<     0:00 [blkcg_punt_bio]
   24 ?        S      0:00 [watchdogd]
   26 ?        I<     0:00 [rpciod]
   27 ?        I<     0:00 [xprtiod]
   28 ?        S      0:03 [kswapd0]
   29 ?        I<     0:00 [nfsiod]
   33 ?        S      0:00 [hwrng]
   34 ?        I<     0:00 [iscsi_conn_clea]
   35 ?        I<     0:00 [dwc_otg]
   36 ?        I<     0:00 [DWC Notificatio]
   38 ?        S<     0:00 [vchiq-slot/0]
   39 ?        S<     0:00 [vchiq-recy/0]
   40 ?        S<     0:00 [vchiq-sync/0]
   41 ?        I<     0:00 [zswap-shrink]
   58 ?        I<     0:25 [kworker/u3:0-brcmf_wq/mmc1:0001:1]
   61 ?        I<     0:00 [mmc_complete]
   63 ?        S      0:00 [jbd2/mmcblk0p2-8]
   64 ?        I<     0:00 [ext4-rsv-conver]
   66 ?        I<     0:00 [mld]
   67 ?        I<     0:00 [ipv6_addrconf]
  105 ?        Ss     0:06 /lib/systemd/systemd-journald
  127 ?        Ss     0:02 /lib/systemd/systemd-udevd
  144 ?        S      0:00 [vchiq-keep/0]
  145 ?        S<     0:00 [SMIO]
  172 ?        I<     0:00 [mmal-vchiq]
  175 ?        I<     0:00 [mmal-vchiq]
  177 ?        I<     0:00 [mmal-vchiq]
  178 ?        I<     0:00 [mmal-vchiq]
  179 ?        I<     0:00 [mmal-vchiq]
  180 ?        I<     0:00 [mmal-vchiq]
  181 ?        I<     0:00 [mmal-vchiq]
  209 ?        Ssl    0:01 /lib/systemd/systemd-timesyncd
  243 ?        Ss     0:56 avahi-daemon: running [raspberrypi-2.local]
  244 ?        Ss     0:00 /usr/sbin/cron -f
  245 ?        Ss     0:03 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  246 ?        S      0:00 avahi-daemon: chroot helper
  256 ?        Ssl    0:00 /usr/libexec/polkitd --no-debug
  283 ?        Ss     0:00 /usr/sbin/dhcpcd -b -q
  288 ?        Ssl    0:00 /usr/sbin/rsyslogd -n -iNONE
  311 ?        Ss     0:01 /lib/systemd/systemd-logind
  316 ?        Ss     0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
  320 ?        Ssl    0:01 /usr/libexec/udisks2/udisksd
  327 ?        Ss     0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
  357 ?        Ssl    0:00 /usr/sbin/ModemManager
  358 ?        Ss     0:01 /usr/sbin/cupsd -l
  367 ?        Ss     0:00 /usr/bin/vncserver-x11-serviced -fg
  369 ?        Ssl    0:30 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
  370 ?        Sl     4:05 /usr/bin/vncserver-x11-core -service
  372 ?        Ssl    0:00 /usr/sbin/lightdm
  375 ?        Ssl    0:01 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
  393 ?        SLsl   0:00 /usr/sbin/rngd -r /dev/hwrng
  394 ?        Ss     0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
  401 ?        Ssl    0:02 /usr/libexec/colord
  422 ?        I<     0:00 [cfg80211]
  428 ?        S      0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:1c:ca:ce
  429 ?        I<     0:21 [kworker/u3:2-brcmf_wq/mmc1:0001:1]
  440 tty1     Ss     0:00 /bin/login -f
  445 ?        I<     0:00 [brcmf_wq/mmc1:0]
  446 ?        S      0:00 [cec-vc4-hdmi]
  447 ?        S      0:00 [irq/64-vc4 hdmi cec]
  448 ?        S      0:05 [brcmf_wdog/mmc1:0001:1]
  449 ?        S      0:00 [card0-crtc0]
  450 tty7     Ssl+   1:59 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
  451 ?        S      0:00 [card0-crtc1]
  452 ?        S      0:00 [card0-crtc2]
  453 ?        S      0:00 [card0-crtc3]
  477 ?        Ss     0:01 /lib/systemd/systemd --user
  481 ?        S      0:00 (sd-pam)
  500 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  501 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  502 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  503 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  505 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  506 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  507 ?        Ssl    0:02 /usr/sbin/cups-browsed
  538 ?        Ss     0:00 /usr/libexec/bluetooth/bluetoothd
  547 ?        Ssl    0:00 /usr/bin/pipewire
  554 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  563 tty1     S+     0:00 -bash
  567 ?        Sl     0:00 /usr/bin/pipewire-media-session
  607 ?        Sl     0:00 lightdm --session-child 14 17
  623 ?        S      0:30 /usr/bin/vncagent service 0
  625 ?        Ssl    0:01 /usr/bin/lxsession -s LXDE-pi -e LXDE -w openbox-lxde-pi
  647 ?        Ss     0:00 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
  688 ?        Ss     0:00 /usr/bin/ssh-agent x-session-manager
  724 ?        Ssl    0:00 /usr/libexec/gvfsd
  729 ?        Sl     0:00 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f
  739 ?        S      0:03 openbox --config-file /home/doug/.config/openbox/lxde-pi-rc.xml
  740 ?        Sl     0:00 lxpolkit
  742 ?        Sl     0:34 lxpanel --profile LXDE-pi
  745 ?        Sl     0:08 pcmanfm --desktop --profile LXDE-pi
  754 ?        S      0:00 xcompmgr -aR
  760 ?        Ss     0:00 /usr/bin/ssh-agent -s
  762 ?        S      0:04 /usr/bin/python3 /usr/share/system-config-printer/applet.py
  794 ?        S      0:03 /usr/bin/vncserverui service 0
  849 ?        S      0:00 /usr/bin/vncserverui -statusicon 0
  902 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  933 ?        S      0:00 dbus-launch --autolaunch d671354fe0a440b5829ce88e4aad7f0a --binary-syntax --close-stderr
  934 ?        Ss     0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
 1006 ?        Ssl    0:00 /usr/libexec/gvfs-udisks2-volume-monitor
 1012 ?        Sl     0:00 /usr/lib/menu-cache/menu-cached /run/user/1000/menu-cached-:0
 1018 ?        Ssl    0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
 1022 ?        Ssl    0:00 /usr/libexec/gvfs-goa-volume-monitor
 1026 ?        Ssl    0:00 /usr/libexec/gvfs-mtp-volume-monitor
 1030 ?        Ssl    0:01 /usr/libexec/gvfs-afc-volume-monitor
 1070 ?        Sl     0:00 /usr/libexec/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
 1134 ?        Ssl    0:43 /usr/libexec/packagekitd
 1139 ?        Sl     1:24 lxterminal
 1153 pts/1    Ss+    0:01 bash
 1536 ?        I<     0:04 [kworker/0:0H-mmc_complete]
 1968 ?        Ss     0:00 sshd: doug [priv]
 1975 ?        S      0:01 sshd: doug@pts/2
 1976 pts/2    Ss     0:01 -bash
 3044 ?        I      0:04 [kworker/0:0-events_freezable_power_]
 3603 ?        Sl     0:12 /usr/bin/lxterminal -t Dire Wolf -e direwolf -a 100
 3608 pts/0    Ss+    0:00 -sh -c direwolf -a 100
 3619 pts/0    Sl+    5:26 direwolf -a 100
 3890 ?        I      0:00 [kworker/u2:1-events_unbound]
 3996 ?        I      0:00 [kworker/u2:2-events_unbound]
 4057 ?        I<     0:00 [kworker/0:1H]
 4188 ?        I      0:00 [kworker/0:3-events_power_efficient]
 4214 ?        I<     0:00 [kworker/0:2H-kblockd]
 4259 pts/2    S      0:00 sudo su
 4260 pts/2    S      0:00 su
 4261 pts/2    S      0:00 bash
 4263 ?        I      0:00 [kworker/0:1-events]
 4271 ?        S      0:00 /usr/sbin/CRON -f
 4272 ?        Ss     0:00 /bin/sh -c /home/doug/dw-start.sh >/dev/null 2>&1
 4273 ?        S      0:00 bash /home/doug/dw-start.sh
 4275 ?        S      0:00 sleep 30
 4276 pts/2    S+     0:00 /bin/sh ./testgps.sh
 4288 pts/2    R+     0:00 ps ax
+ command -v gpspipe
+ command -v ipcs
/usr/bin/ipcs
+ sed -nE /key/p;/KEY/p;/0x4e5450/p
+ ipcs -m
key        shmid      owner      perms      bytes      nattch     status
0x4e545030 131084     root       600        80         0
0x4e545031 131085     root       600        80         0
0x4e545032 131086     root       666        80         0
0x4e545033 131087     root       666        80         0
0x4e545034 131088     root       666        80         0
0x4e545035 131090     root       666        80         0
0x4e545036 131091     root       666        80         0
0x4e545037 131092     root       666        80         0
+ command -v ntpshmmon
/usr/bin/ntpshmmon
+ ntpshmmon -V
ntpshmmon: version 3.22 (revision 3.22)
+ ntpshmmon -n 6 -t 10
ntpshmmon: version 3.22
#      Name  Seen@                 Clock                 Real                 L Prc
+ ls -l /dev/pps* /dev/ttyACM0 /dev/ttyAMA0 /dev/gps*
ls: cannot access '/dev/pps*': No such file or directory
ls: cannot access '/dev/gps*': No such file or directory
crw-rw---- 1 root dialout 166,  0 Sep 15 16:37 /dev/ttyACM0
crw-rw---- 1 root dialout 204, 64 Sep 15 13:58 /dev/ttyAMA0
+ command -v lsusb
/usr/bin/lsusb
+ lsusb
Bus 001 Device 004: ID 0483:a34c STMicroelectronics QLG2 GNSS RX
Bus 001 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ echo PYTHONPATH
PYTHONPATH
+ command -v gpscat
+ command -v python
/usr/bin/python
+ python -V
Python 3.9.2
+ python -c import gps;print(gps.__version__)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gps'
+ command -v python3
/usr/bin/python3
+ python3 -V
Python 3.9.2
+ python3 -c import gps;print(gps.__version__)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gps'
+ command -v systemctl
/usr/bin/systemctl
+ cat /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyACM0"

# Other options you want to pass to gpsd
GPSD_OPTIONS=""

# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="true"
+ systemctl cat gpsd.service
# /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 $OPTIONS $DEVICES

[Install]
WantedBy=multi-user.target
Also=gpsd.socket
+ systemctl cat gpsd.socket
# /lib/systemd/system/gpsd.socket
[Unit]
Description=GPS (Global Positioning System) Daemon Sockets

[Socket]
ListenStream=/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=127.0.0.1:2947
# To allow gpsd remote access, start gpsd with the -G option and
# uncomment the next two lines:
# ListenStream=[::]:2947
# ListenStream=0.0.0.0:2947
SocketMode=0600
BindIPv6Only=yes

[Install]
WantedBy=sockets.target
root@raspberrypi:/home/doug# cat testgps.log
WARNING: Please run as root
WARNING: Running under sudo confuses the results.
+ id
uid=0(root) gid=0(root) groups=0(root),117(lpadmin)
+ uname -a
Linux raspberrypi 6.1.21+ #1642 Mon Apr  3 17:19:14 BST 2023 armv6l GNU/Linux
+ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
+ command -v gpsd
/usr/sbin/gpsd
+ gpsd -V
gpsd: 3.22 (revision 3.22)
+ + gpsd -h
grep ^#.*enabled
# Socket export enabled.
# Shared memory export enabled.
# DBUS export enabled
# Control socket for hotplug notifications enabled
# Magic Hat enabled
# systemd socket activation enabled
+ command -v sockstat
+ command -v lsof
/usr/bin/lsof
+ lsof -iTCP:2947 -s TCP:LISTEN
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd   1 root   58u  IPv6  10232      0t0  TCP localhost:gpsd (LISTEN)
systemd   1 root   59u  IPv4  10236      0t0  TCP localhost:gpsd (LISTEN)
+ sed -nE 1p;/CHR|LISTEN/p
+ lsof -c gpsd
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
+ ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     2:02 /sbin/init splash
    2 ?        S      0:00 [kthreadd]
    3 ?        I<     0:00 [slub_flushwq]
    4 ?        I<     0:00 [netns]
    8 ?        I<     0:00 [mm_percpu_wq]
    9 ?        I      0:00 [rcu_tasks_rude_kthread]
   10 ?        I      0:00 [rcu_tasks_trace_kthread]
   11 ?        S      0:04 [ksoftirqd/0]
   12 ?        S      0:00 [kdevtmpfs]
   13 ?        I<     0:00 [inet_frag_wq]
   14 ?        S      0:00 [kauditd]
   15 ?        S      0:00 [khungtaskd]
   17 ?        S      0:00 [oom_reaper]
   18 ?        I<     0:00 [writeback]
   20 ?        S      0:01 [kcompactd0]
   21 ?        I<     0:00 [kintegrityd]
   22 ?        I<     0:00 [kblockd]
   23 ?        I<     0:00 [blkcg_punt_bio]
   24 ?        S      0:00 [watchdogd]
   26 ?        I<     0:00 [rpciod]
   27 ?        I<     0:00 [xprtiod]
   28 ?        S      0:03 [kswapd0]
   29 ?        I<     0:00 [nfsiod]
   33 ?        S      0:00 [hwrng]
   34 ?        I<     0:00 [iscsi_conn_clea]
   35 ?        I<     0:00 [dwc_otg]
   36 ?        I<     0:00 [DWC Notificatio]
   38 ?        S<     0:00 [vchiq-slot/0]
   39 ?        S<     0:00 [vchiq-recy/0]
   40 ?        S<     0:00 [vchiq-sync/0]
   41 ?        I<     0:00 [zswap-shrink]
   58 ?        I<     0:25 [kworker/u3:0-brcmf_wq/mmc1:0001:1]
   61 ?        I<     0:00 [mmc_complete]
   63 ?        S      0:00 [jbd2/mmcblk0p2-8]
   64 ?        I<     0:00 [ext4-rsv-conver]
   66 ?        I<     0:00 [mld]
   67 ?        I<     0:00 [ipv6_addrconf]
  105 ?        Ss     0:06 /lib/systemd/systemd-journald
  127 ?        Ss     0:02 /lib/systemd/systemd-udevd
  144 ?        S      0:00 [vchiq-keep/0]
  145 ?        S<     0:00 [SMIO]
  172 ?        I<     0:00 [mmal-vchiq]
  175 ?        I<     0:00 [mmal-vchiq]
  177 ?        I<     0:00 [mmal-vchiq]
  178 ?        I<     0:00 [mmal-vchiq]
  179 ?        I<     0:00 [mmal-vchiq]
  180 ?        I<     0:00 [mmal-vchiq]
  181 ?        I<     0:00 [mmal-vchiq]
  209 ?        Ssl    0:01 /lib/systemd/systemd-timesyncd
  243 ?        Ss     0:56 avahi-daemon: running [raspberrypi-2.local]
  244 ?        Ss     0:00 /usr/sbin/cron -f
  245 ?        Ss     0:03 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  246 ?        S      0:00 avahi-daemon: chroot helper
  256 ?        Ssl    0:00 /usr/libexec/polkitd --no-debug
  283 ?        Ss     0:00 /usr/sbin/dhcpcd -b -q
  288 ?        Ssl    0:00 /usr/sbin/rsyslogd -n -iNONE
  311 ?        Ss     0:01 /lib/systemd/systemd-logind
  316 ?        Ss     0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
  320 ?        Ssl    0:01 /usr/libexec/udisks2/udisksd
  327 ?        Ss     0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
  357 ?        Ssl    0:00 /usr/sbin/ModemManager
  358 ?        Ss     0:01 /usr/sbin/cupsd -l
  367 ?        Ss     0:00 /usr/bin/vncserver-x11-serviced -fg
  369 ?        Ssl    0:30 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
  370 ?        Sl     4:05 /usr/bin/vncserver-x11-core -service
  372 ?        Ssl    0:00 /usr/sbin/lightdm
  375 ?        Ssl    0:01 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
  393 ?        SLsl   0:00 /usr/sbin/rngd -r /dev/hwrng
  394 ?        Ss     0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
  401 ?        Ssl    0:02 /usr/libexec/colord
  422 ?        I<     0:00 [cfg80211]
  428 ?        S      0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:1c:ca:ce
  429 ?        I<     0:21 [kworker/u3:2-brcmf_wq/mmc1:0001:1]
  440 tty1     Ss     0:00 /bin/login -f
  445 ?        I<     0:00 [brcmf_wq/mmc1:0]
  446 ?        S      0:00 [cec-vc4-hdmi]
  447 ?        S      0:00 [irq/64-vc4 hdmi cec]
  448 ?        S      0:05 [brcmf_wdog/mmc1:0001:1]
  449 ?        S      0:00 [card0-crtc0]
  450 tty7     Ssl+   1:59 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
  451 ?        S      0:00 [card0-crtc1]
  452 ?        S      0:00 [card0-crtc2]
  453 ?        S      0:00 [card0-crtc3]
  477 ?        Ss     0:01 /lib/systemd/systemd --user
  481 ?        S      0:00 (sd-pam)
  500 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  501 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  502 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  503 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  505 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  506 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  507 ?        Ssl    0:02 /usr/sbin/cups-browsed
  538 ?        Ss     0:00 /usr/libexec/bluetooth/bluetoothd
  547 ?        Ssl    0:00 /usr/bin/pipewire
  554 ?        Ss     0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  563 tty1     S+     0:00 -bash
  567 ?        Sl     0:00 /usr/bin/pipewire-media-session
  607 ?        Sl     0:00 lightdm --session-child 14 17
  623 ?        S      0:30 /usr/bin/vncagent service 0
  625 ?        Ssl    0:01 /usr/bin/lxsession -s LXDE-pi -e LXDE -w openbox-lxde-pi
  647 ?        Ss     0:00 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
  688 ?        Ss     0:00 /usr/bin/ssh-agent x-session-manager
  724 ?        Ssl    0:00 /usr/libexec/gvfsd
  729 ?        Sl     0:00 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f
  739 ?        S      0:03 openbox --config-file /home/doug/.config/openbox/lxde-pi-rc.xml
  740 ?        Sl     0:00 lxpolkit
  742 ?        Sl     0:34 lxpanel --profile LXDE-pi
  745 ?        Sl     0:08 pcmanfm --desktop --profile LXDE-pi
  754 ?        S      0:00 xcompmgr -aR
  760 ?        Ss     0:00 /usr/bin/ssh-agent -s
  762 ?        S      0:04 /usr/bin/python3 /usr/share/system-config-printer/applet.py
  794 ?        S      0:03 /usr/bin/vncserverui service 0
  849 ?        S      0:00 /usr/bin/vncserverui -statusicon 0
  902 ?        S      0:00 /usr/lib/cups/notifier/dbus dbus://
  933 ?        S      0:00 dbus-launch --autolaunch d671354fe0a440b5829ce88e4aad7f0a --binary-syntax --close-stderr
  934 ?        Ss     0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
 1006 ?        Ssl    0:00 /usr/libexec/gvfs-udisks2-volume-monitor
 1012 ?        Sl     0:00 /usr/lib/menu-cache/menu-cached /run/user/1000/menu-cached-:0
 1018 ?        Ssl    0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
 1022 ?        Ssl    0:00 /usr/libexec/gvfs-goa-volume-monitor
 1026 ?        Ssl    0:00 /usr/libexec/gvfs-mtp-volume-monitor
 1030 ?        Ssl    0:01 /usr/libexec/gvfs-afc-volume-monitor
 1070 ?        Sl     0:00 /usr/libexec/gvfsd-trash --spawner :1.6 /org/gtk/gvfs/exec_spaw/0
 1134 ?        Ssl    0:43 /usr/libexec/packagekitd
 1139 ?        Sl     1:24 lxterminal
 1153 pts/1    Ss+    0:01 bash
 1536 ?        I<     0:04 [kworker/0:0H-mmc_complete]
 1968 ?        Ss     0:00 sshd: doug [priv]
 1975 ?        S      0:01 sshd: doug@pts/2
 1976 pts/2    Ss     0:01 -bash
 3044 ?        I      0:04 [kworker/0:0-events_freezable_power_]
 3603 ?        Sl     0:12 /usr/bin/lxterminal -t Dire Wolf -e direwolf -a 100
 3608 pts/0    Ss+    0:00 -sh -c direwolf -a 100
 3619 pts/0    Sl+    5:26 direwolf -a 100
 3890 ?        I      0:00 [kworker/u2:1-events_unbound]
 3996 ?        I      0:00 [kworker/u2:2-events_unbound]
 4057 ?        I<     0:00 [kworker/0:1H]
 4188 ?        I      0:00 [kworker/0:3-events_power_efficient]
 4214 ?        I<     0:00 [kworker/0:2H-kblockd]
 4259 pts/2    S      0:00 sudo su
 4260 pts/2    S      0:00 su
 4261 pts/2    S      0:00 bash
 4263 ?        I      0:00 [kworker/0:1-events]
 4271 ?        S      0:00 /usr/sbin/CRON -f
 4272 ?        Ss     0:00 /bin/sh -c /home/doug/dw-start.sh >/dev/null 2>&1
 4273 ?        S      0:00 bash /home/doug/dw-start.sh
 4275 ?        S      0:00 sleep 30
 4276 pts/2    S+     0:00 /bin/sh ./testgps.sh
 4288 pts/2    R+     0:00 ps ax
+ command -v gpspipe
+ command -v ipcs
/usr/bin/ipcs
+ sed -nE /key/p;/KEY/p;/0x4e5450/p
+ ipcs -m
key        shmid      owner      perms      bytes      nattch     status
0x4e545030 131084     root       600        80         0
0x4e545031 131085     root       600        80         0
0x4e545032 131086     root       666        80         0
0x4e545033 131087     root       666        80         0
0x4e545034 131088     root       666        80         0
0x4e545035 131090     root       666        80         0
0x4e545036 131091     root       666        80         0
0x4e545037 131092     root       666        80         0
+ command -v ntpshmmon
/usr/bin/ntpshmmon
+ ntpshmmon -V
ntpshmmon: version 3.22 (revision 3.22)
+ ntpshmmon -n 6 -t 10
ntpshmmon: version 3.22
#      Name  Seen@                 Clock                 Real                 L Prc
+ ls -l /dev/pps* /dev/ttyACM0 /dev/ttyAMA0 /dev/gps*
ls: cannot access '/dev/pps*': No such file or directory
ls: cannot access '/dev/gps*': No such file or directory
crw-rw---- 1 root dialout 166,  0 Sep 15 16:37 /dev/ttyACM0
crw-rw---- 1 root dialout 204, 64 Sep 15 13:58 /dev/ttyAMA0
+ command -v lsusb
/usr/bin/lsusb
+ lsusb
Bus 001 Device 004: ID 0483:a34c STMicroelectronics QLG2 GNSS RX
Bus 001 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+ echo PYTHONPATH
PYTHONPATH
+ command -v gpscat
+ command -v python
/usr/bin/python
+ python -V
Python 3.9.2
+ python -c import gps;print(gps.__version__)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gps'
+ command -v python3
/usr/bin/python3
+ python3 -V
Python 3.9.2
+ python3 -c import gps;print(gps.__version__)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gps'
+ command -v systemctl
/usr/bin/systemctl
+ cat /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyACM0"

# Other options you want to pass to gpsd
GPSD_OPTIONS=""

# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="true"
+ systemctl cat gpsd.service
# /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 $OPTIONS $DEVICES

[Install]
WantedBy=multi-user.target
Also=gpsd.socket
+ systemctl cat gpsd.socket
# /lib/systemd/system/gpsd.socket
[Unit]
Description=GPS (Global Positioning System) Daemon Sockets

[Socket]
ListenStream=/run/gpsd.sock
ListenStream=[::1]:2947
ListenStream=127.0.0.1:2947
# To allow gpsd remote access, start gpsd with the -G option and
# uncomment the next two lines:
# ListenStream=[::]:2947
# ListenStream=0.0.0.0:2947
SocketMode=0600
BindIPv6Only=yes

[Install]
WantedBy=sockets.target
+ systemctl status gpsd.service
● gpsd.service - GPS (Global Positioning System) Daemon
     Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
     Active: inactive (dead) since Fri 2023-09-15 16:38:25 PDT; 19min ago
TriggeredBy: ● gpsd.socket
    Process: 3689 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
   Main PID: 3690 (code=exited, status=0/SUCCESS)
        CPU: 62ms

Sep 15 16:25:04 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 16:25:05 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 16:38:25 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon...
Sep 15 16:38:25 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 16:38:25 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon.
+ 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 (listening) since Fri 2023-09-15 13:58:25 PDT; 2h 59min ago
   Triggers: ● gpsd.service
     Listen: /run/gpsd.sock (Stream)
             [::1]:2947 (Stream)
             127.0.0.1:2947 (Stream)
      Tasks: 0 (limit: 414)
        CPU: 15ms
     CGroup: /system.slice/gpsd.socket

Sep 15 13:58:25 raspberrypi systemd[1]: Listening on GPS (Global Positioning System) Daemon Sockets.
+ journalctl -u gpsd.service --since today
-- Journal begins at Tue 2023-05-02 17:36:12 PDT, ends at Fri 2023-09-15 16:57:32 PDT. --
Sep 15 13:55:42 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 13:55:43 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 13:56:06 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 13:57:26 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 13:57:26 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 13:57:56 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon...
Sep 15 13:57:59 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 13:57:59 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon.
-- Boot 8a2064e111c54dbb89d21edc9ceff782 --
Sep 15 14:08:03 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 14:08:03 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 14:10:24 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 14:13:37 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 14:13:37 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 14:21:09 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 14:31:20 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 14:31:20 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 14:33:05 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon...
Sep 15 14:33:05 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 14:33:05 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon.
Sep 15 14:33:39 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 14:33:39 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 14:36:58 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon...
Sep 15 14:36:58 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 14:36:58 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon.
Sep 15 16:24:09 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 16:24:10 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 16:24:49 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon...
Sep 15 16:24:49 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 16:24:49 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon.
Sep 15 16:25:04 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Sep 15 16:25:05 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Sep 15 16:38:25 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon...
Sep 15 16:38:25 raspberrypi systemd[1]: gpsd.service: Succeeded.
Sep 15 16:38:25 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon.
+ command -v aa-status
+ command -v apparmor_status
+ set +x
Please send the entire, untouched output.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]