gpsd-users
[Top][All Lists]
Advanced

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

[gpsd-users] Unable to init server: Could not connect: Connection refuse


From: Charles Curley
Subject: [gpsd-users] Unable to init server: Could not connect: Connection refused
Date: Sat, 6 Oct 2018 12:58:32 -0600

Something else to add to your Lovecraftian week.

After checking out master, and running scons...

I don't know what "the server" is, but I am guessing it is gpsd, and I
assume it is the just compiled version in the build directory. I checked
to be sure there are no other versions of gpsd running.

--------------------------------------------------
address@hidden:~/versioned/gpsd# scons check
scons: Reading SConscript files ...
Checking if compiler accepts -pthread... (cached) yes
Checking whether the C++ compiler works... (cached) yes
Checking pkg-config for ncurses... (cached) yes
Checking pkg-config for tinfo... (cached) yes
Checking pkg-config for libusb-1.0... (cached) yes
Checking for C library librt... (cached) yes
Checking pkg-config for dbus-1... (cached) yes
Checking pkg-config for bluez... (cached) yes
Checking for C type in_port_t... (cached) yes
Checking whether SUN_LEN is declared... (cached) yes
Checking for C header file linux/can.h... (cached) yes
You have kernel CANbus available.
Checking if compiler is C11... (cached) yes
Checking if compiler supplies __STDC_NO_ATOMICS__... (cached) no
Checking for C header file stdatomic.h... (cached) yes
Checking if compiler supplies __ORDER_BIG_ENDIAN__... (cached) yes
Checking if compiler supplies __ORDER_LITTLE_ENDIAN__... (cached) yes
Checking if compiler supplies __BYTE_ORDER__... (cached) yes
Your compiler has built-in endianness support.
Checking for C header file sys/un.h... (cached) yes
Checking for C header file sys/socket.h... (cached) yes
Checking for C header file sys/select.h... (cached) yes
Checking for C header file netdb.h... (cached) yes
Checking for C header file netinet/in.h... (cached) yes
Checking for C header file netinet/ip.h... (cached) yes
Checking for C header file arpa/inet.h... (cached) yes
Checking for C header file syslog.h... (cached) yes
Checking for C header file termios.h... (cached) yes
Checking for C header file winsock2.h... (cached) no
Checking for C function daemon()... (cached) yes
Checking for C function strlcpy()... (cached) no
Checking for C function strlcat()... (cached) no
Checking for C function clock_gettime()... (cached) yes
Checking for C function strptime()... (cached) yes
Checking for C function gmtime_r()... (cached) yes
Checking for C function inet_ntop()... (cached) yes
Checking for C function fcntl()... (cached) yes
Checking for C function fork()... (cached) yes
Checking for C header file sys/timepps.h... (cached) yes
Checking if sys/ioctl.h supplies TIOCMIWAIT... (cached) yes
Checking for C library libbluetooth... (cached) yes
Checking for C library libdbus-1... (cached) yes
Checking that xsltproc can make man pages... (cached) yes
Checking pkg-config for QtNetwork... (cached) yes
Checking if compiler accepts -Wextra... (cached) yes
Checking if compiler accepts -Wall... (cached) yes
Checking if compiler accepts -Wno-uninitialized... (cached) yes
Checking if compiler accepts -Wno-missing-field-initializers... (cached) yes
Checking if compiler accepts -Wcast-align... (cached) yes
Checking if compiler accepts -Wmissing-declarations... (cached) yes
Checking if compiler accepts -Wmissing-prototypes... (cached) yes
Checking if compiler accepts -Wstrict-prototypes... (cached) yes
Checking if compiler accepts -Wpointer-arith... (cached) yes
Checking if compiler accepts -Wreturn-type... (cached) yes
Checking whether python program exists.../usr/bin/python
Obtaining Python exe path... /usr/bin/python
Obtaining Python lib dir... /usr/lib/python2.7/dist-packages
Obtaining Python config vars... ok
All configuration flags are defaulted.
scons: done reading SConscript files.
scons: Building targets ...
leapseconds_cache_rebuild(["leapseconds.cache"], ["leapsecond.py"])
timebase_h(["timebase.h"], ["leapseconds.cache"])
gcc -o timebase.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 
timebase.c
ar rc libgpsd.a bsd_base64.o crc24q.o driver_ais.o driver_evermore.o 
driver_garmin.o driver_garmin_txt.o driver_geostar.o driver_greis.o 
driver_greis_checksum.o driver_italk.o driver_navcom.o driver_nmea0183.o 
driver_nmea2000.o driver_oncore.o driver_rtcm2.o driver_rtcm3.o drivers.o 
driver_sirf.o driver_skytraq.o driver_superstar2.o driver_tsip.o driver_ubx.o 
driver_zodiac.o geoid.o gpsd_json.o isgps.o libgpsd_core.o matrix.o 
net_dgpsip.o net_gnss_dispatch.o net_ntrip.o ntpshmread.o ntpshmwrite.o 
packet.o ppsthread.o pseudoais.o pseudonmea.o serial.o subframe.o timebase.o 
timespec_str.o
ranlib libgpsd.a
gcc -o gpsdecode -pthread gpsdecode.o -L. -lgpsd -lgps_static -lusb-1.0 
-lbluetooth -lm -lrt -ldbus-1
Testing AIVDM decoding w/ CSV format...
 Testing ./test/sample.aivdm...
Testing AIVDM decoding w/ JSON unscaled format...
 Testing ./test/sample.aivdm...
Testing AIVDM decoding w/ JSON scaled format...
 Testing ./test/sample.aivdm...
Testing idempotency of unscaled JSON dump/decode for AIS
Testing idempotency of scaled JSON dump/decode for AIS
gcc -o test_bits -pthread test_bits.o -L. -lgps_static
./test_bits --quiet
Run normal regression tests for dev-3.19-20-gb689ae71...
gcc -o test_geoid.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 
test_geoid.c
gcc -o test_geoid -pthread test_geoid.o -L. -lgpsd -lgps_static -lusb-1.0 
-lbluetooth -lm -lrt -ldbus-1
Testing the geoid model...
./test_geoid 37.371192 122.014965 | diff -u ./test/geoid.test.chk -
gcc -o test_json.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 
test_json.c
gcc -o test_json -pthread test_json.o -L. -lgps_static -lm -lrt -lusb-1.0 
-ldbus-1
./test_json
JSON unit tests
succeeded.
Testing the Maidenhead Locator conversion...
/usr/bin/python ./test_maidenhead.py >/dev/null
gcc -o test_matrix.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 
test_matrix.c
gcc -o test_matrix -pthread test_matrix.o -L. -lgpsd -lgps_static -lusb-1.0 
-lbluetooth -lm -lrt -ldbus-1
./test_matrix --quiet
Matrix-algebra regression test succeeded
gcc -o test_packet.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 
test_packet.c
gcc -o test_packet -pthread test_packet.o -L. -lgpsd -lgps_static -lusb-1.0 
-lbluetooth -lm -lrt -ldbus-1
Consistency-checking driver methods...
./test_packet -c >/dev/null
Testing detection of invalid packets...
./test_packet | diff -u ./test/packet.test.chk -
check_compile(["python-compilation-regress"], ["gpscap.py", "gpssim.py", 
"jsongen.py", "leapsecond.py", "maskaudit.py", "test_maidenhead.py", 
"test_misc.py", "test_xgps_deps.py", "valgrind-audit.py", "gps/__init__.py", 
"gps/client.py", "gps/fake.py", "gps/gps.py", "gps/misc.py", 
"gps/watch_options.py", "gegps", "gpscat", "gpsfake", "gpsprof", "ubxtool", 
"zerk", "xgps", "xgpsspeed", "SConstruct"])
Install file: "gegps" as "/usr/local/bin/gegps"
Install file: "gpscat" as "/usr/local/bin/gpscat"
Install file: "gpsfake" as "/usr/local/bin/gpsfake"
Install file: "gpsprof" as "/usr/local/bin/gpsprof"
Install file: "xgps" as "/usr/local/bin/xgps"
Install file: "xgpsspeed" as "/usr/local/bin/xgpsspeed"
./gegps -V
gegps: Version 3.19~dev
./gpscat -V
gpscat: Version 3.19~dev
./gpsfake -V
gpsfake: Version 3.19~dev
./gpsprof -V
gpsprof: Version 3.19~dev
./ubxtool -V
ubxtool: Version 3.19~dev
./zerk -V
zerk: Version 3.19~dev
./xgps -V
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
xgps: Version 3.19~dev
./xgpsspeed -V
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
xgpspeed: Version 3.19~dev
Testing RTCM decoding...
 Testing ./test/sample.rtcm2...
Testing idempotency of JSON dump/decode for RTCM2
Testing xgps/xgpsspeed dependencies (since xgps=yes)...
/usr/bin/python ./test_xgps_deps.py
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
gcc -o test_mktime.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include test_mktime.c
gcc -o test_mktime -pthread test_mktime.o -L. -lgps_static -lm
./test_mktime
gcc -o test_timespec.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/libusb-1.0 
test_timespec.c
gcc -o test_timespec -pthread test_timespec.o -L. -lgpsd -lgps_static -lusb-1.0 
-lbluetooth -lm -lrt -ldbus-1
./test_timespec
timespec_str test succeeded

timespec subtract test succeeded

ns subtract test succeeded

timespec tests succeeded
gcc -o test_libgps.o -c -pthread -Wextra -Wall -Wno-uninitialized 
-Wno-missing-field-initializers -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -O2 
-pthread -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include test_libgps.c
gcc -o test_libgps -pthread test_libgps.o -L. -lgps_static -lm -lrt -ldbus-1
Testing the client-library sentence decoder...
./regress-driver -c ./test/clientlib/*.log
Testing the clientlib...
Regression test successful: no errors in 1 tests (0 not found).
Elapsed time: .12
gcc -o gpsd -pthread dbusexport.o gpsd.o shmexport.o timehint.o sd_socket.o -L. 
-lgpsd -lgps_static -lusb-1.0 -lbluetooth -lm -lrt -ldbus-1
gcc -o gpsctl -pthread gpsctl.o -L. -lgpsd -lgps_static -lusb-1.0 -lbluetooth 
-lm -lrt -ldbus-1
:; /usr/bin/python ./gpsfake -T
sys linux2 platform Linux-4.9.0-8-amd64-x86_64-with-debian-9.5: WRITE_PAD = 
0.00000
./regress-driver -q test/daemon/passthrough.log
Processing test/daemon/passthrough.log
Regression test test/daemon/passthrough.log successful
./regress-driver -q -u test/daemon/passthrough.log
Processing test/daemon/passthrough.log
Regression test test/daemon/passthrough.log successful
./regress-driver -q -o -t test/daemon/passthrough.log
Processing test/daemon/passthrough.log
Regression test test/daemon/passthrough.log successful
./regress-driver test/daemon/*.log
Testing the daemon...
Processing test/daemon/GPSmap-76S.log
Processing test/daemon/ac12.log
Processing test/daemon/ac12_binary.log
Processing test/daemon/ais-nmea-type6-fid55.log
Processing test/daemon/ais_unpack_sixbit.log
Processing test/daemon/ait250.log
Processing test/daemon/beidou-bd.log
Processing test/daemon/beidou-gb.log
Processing test/daemon/blumax-gps009.log
Processing test/daemon/bn-9015.log
Processing test/daemon/bt-q818.log
Processing test/daemon/bt451.log
Processing test/daemon/bu303-climbing.log
Processing test/daemon/bu303-moving.log
Processing test/daemon/bu303-nofix.log
Processing test/daemon/bu303-stillfix.log
Processing test/daemon/bu303b-nofix.log
Processing test/daemon/bu353-glonass.log
Processing test/daemon/bu353s4.log
Processing test/daemon/ch-4701.log
Processing test/daemon/ch-4711.log
Processing test/daemon/com-1289.log
Processing test/daemon/eXplorist110.log
Processing test/daemon/eXplorist210.log
Processing test/daemon/et-332.log
Processing test/daemon/firefly-II.log
Processing test/daemon/foretrex-201.log
Processing test/daemon/garmin-10x.log
Processing test/daemon/garmin-geko201.log
Processing test/daemon/garmin17n.log
Processing test/daemon/garmin25lp.log
Processing test/daemon/garmin38.log
Processing test/daemon/garmin48.log
Processing test/daemon/geos-1m.log
Processing test/daemon/geostar-geos1m-binary.log
Processing test/daemon/gp-320fw-2019-03-28.log
Processing test/daemon/gp-320fw-2019-04-06-overflow.log
Processing test/daemon/gp-320fw-2019-04-07-coldboot.log
Processing test/daemon/gps-360.log
Processing test/daemon/gpslim236.log
Processing test/daemon/gr601-w.log
Processing test/daemon/gr8013-w.log
Processing test/daemon/greis-binary.log
Processing test/daemon/greis-def.log
Processing test/daemon/greis-reset.log
Processing test/daemon/greis-test.log
Processing test/daemon/greis-test2.log
Processing test/daemon/hab-gpspi.log
Processing test/daemon/haicom-305N.log
Processing test/daemon/hemi.log
Processing test/daemon/holux-gm-210.log
Processing test/daemon/hp58534a.log
Processing test/daemon/humminbird-M37.log
Processing test/daemon/iTrek.log
Processing test/daemon/isync.log
Processing test/daemon/italk-binary.log
Processing test/daemon/magellan-ec10.log
Processing test/daemon/magellan315.log
Processing test/daemon/motorola-t805.log
Processing test/daemon/mr-350p.log
Processing test/daemon/mt3339.log
Processing test/daemon/mtk-3301.log
Processing test/daemon/mtk-3329.log
Processing test/daemon/myguide-3100.log
Processing test/daemon/naujoks-ntrip.log
Processing test/daemon/naujoks-rtcm2.log
Processing test/daemon/navcom.log
Processing test/daemon/navika-100-fix.log
Processing test/daemon/nd-1005.log
Processing test/daemon/neo-m8n.log
Processing test/daemon/nl2008u.log
Processing test/daemon/nl402u.log
Processing test/daemon/nl551e.log
Processing test/daemon/nokia-ld-4w.log
Processing test/daemon/ntrip_sourcetable.log
Processing test/daemon/oncore.log
Processing test/daemon/passthrough.log
Processing test/daemon/pharos-360.log
Processing test/daemon/polarx2.log
Processing test/daemon/rgm3800.log
Processing test/daemon/rst39.log
Processing test/daemon/rtcm2.log
Processing test/daemon/rtcm3.2.log
Processing test/daemon/rtcm3.log
Processing test/daemon/rx210.log
Processing test/daemon/saab-r4.log
Processing test/daemon/skytraq-bin.log
Processing test/daemon/skytraq-dgps.log
Processing test/daemon/skytraq-err.log
Processing test/daemon/skytraq-fix.log
Processing test/daemon/skytraq-fixB.log
Processing test/daemon/skytraq.log
Processing test/daemon/sl869.log
Processing test/daemon/sounder.log
Processing test/daemon/superstar2.log
Processing test/daemon/tcp-test.log
Processing test/daemon/tcp-torture.log
Processing test/daemon/tn200-all.log
Processing test/daemon/tn200.log
Processing test/daemon/tn204.log
Processing test/daemon/tnt-revolution.log
Processing test/daemon/tomtom-mkII.log
Processing test/daemon/tr737A+.log
Processing test/daemon/trimble-lassen_iq-3dfix.log
Processing test/daemon/trimble-lassen_iq-playacar.log
Processing test/daemon/trimble-lassen_iq.log
Processing test/daemon/triton400.log
Processing test/daemon/ublox-8-time.log
Processing test/daemon/ublox-8.log
Processing test/daemon/ublox-aek-4t.log
Processing test/daemon/ublox-lea-4h.log
Processing test/daemon/ublox-lea-4s.log
Processing test/daemon/ublox-lea-4t.log
Processing test/daemon/ublox-lea-5h.log
Processing test/daemon/ublox-lea-5q.log
Processing test/daemon/ublox-neo-m8n.log
Processing test/daemon/ublox-sirf1.log
Processing test/daemon/udp-test.log
Processing test/daemon/venus634lp.log
Processing test/daemon/zodiac.log
Regression test successful: no errors in 120 tests (0 not found).
Elapsed time: 189.09
scons: done building targets.
address@hidden:~/versioned/gpsd#
--------------------------------------------------

I can run all three programs stand-alone without gpsd running:

--------------------------------------------------
address@hidden:~/versioned/gpsd# ./zerk -V
zerk: Version 3.19~dev
address@hidden:~/versioned/gpsd# ./xgps -V
xgps: Version 3.19~dev
address@hidden:~/versioned/gpsd# ./xgpsspeed -V
xgpspeed: Version 3.19~dev
address@hidden:~/versioned/gpsd# 
--------------------------------------------------

But when I run the version installed by "scons check":

--------------------------------------------------
address@hidden:/media/offsite/myob/systems# xgps -V
Traceback (most recent call last):
  File "/usr/local/bin/xgps", line 55, in <module>
    if gps.__version__ != gps_version:
AttributeError: 'module' object has no attribute '__version__'
address@hidden:/media/offsite/myob/systems# which xgps
/usr/local/bin/xgps
address@hidden:/media/offsite/myob/systems# ll $(which xgps)
-rwxr-xr-x 1 root root 47828 Oct  6 12:18 /usr/local/bin/xgps*
address@hidden:/media/offsite/myob/systems#
--------------------------------------------------

Once I run "scons udev-install", it works correctly.

--------------------------------------------------
address@hidden:/media/offsite/myob/systems# xgps -V
xgps: Version 3.19~dev
address@hidden:/media/offsite/myob/systems# 
--------------------------------------------------

That may help you track down where "scons check" is installing those
programs.

-- 
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
https://charlescurley.com



reply via email to

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