There are heaps of history_xx.json files in folder /run/dump1090-fa, but these somehow do not make their way to the page usr/share/dump1090-fa/html/index.html
I found this when making lighttpd integration on ArchLinux, whose lighttpd.conf file was almost identical to Fedora one, and until I added mod-alias, the map wont display. Anyway no harm in adding this module. The file 89-dump1090-fa has alias redirect in it and needs this module. I think in Debian/Raspbian version of lighttpd.conf this module is included by default.
[abcd@fedora-31 ~]$ sudo journalctl --no-pager -u lighttpd
[sudo] password for abcd:
-- Logs begin at Sun 2019-12-22 13:55:51 EST, end at Sun 2020-01-19 18:30:10 EST. --
Jan 19 10:35:54 fedora-31 systemd[1]: /usr/lib/systemd/system/lighttpd.service:6: PIDFile= references a path below legacy directory /var/run/, updating /var/run/lighttpd.pid → /run/lighttpd.pid; please update the unit file accordingly.
Jan 19 10:36:15 fedora-31 systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Jan 19 10:36:15 fedora-31 lighttpd[2696]: 2020-01-19 10:36:15: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 10:36:15 fedora-31 lighttpd[2696]: 2020-01-19 10:36:15: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 10:36:15 fedora-31 lighttpd[2696]: 2020-01-19 10:36:15: (server.c.1437) can't have more connections than fds/2: 1024 1024
Jan 19 11:03:09 fedora-31 systemd[1]: Stopping Lightning Fast Webserver With Light System Requirements...
Jan 19 11:03:11 fedora-31 systemd[1]: lighttpd.service: Succeeded.
Jan 19 11:03:11 fedora-31 systemd[1]: Stopped Lightning Fast Webserver With Light System Requirements.
-- Reboot --
Jan 19 11:04:08 fedora-31 systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Jan 19 11:04:08 fedora-31 lighttpd[778]: Duplicate array-key '/dump1090-fa/data/'
Jan 19 11:04:09 fedora-31 lighttpd[778]: 2020-01-19 11:04:08: (configfile.c.1309) source: /etc/lighttpd/conf.d/89-dump1090-fa.conf line: 11 pos: 13 parser failed somehow near here: (EOL)
Jan 19 11:04:09 fedora-31 lighttpd[778]: 2020-01-19 11:04:08: (configfile.c.1309) source: /etc/lighttpd/lighttpd.conf line: 489 pos: 1 parser failed somehow near here: (EOL)
Jan 19 11:04:08 fedora-31 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/EXCEPTION
Jan 19 11:04:08 fedora-31 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 19 11:36:40 fedora-31 systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Jan 19 11:36:40 fedora-31 lighttpd[2147]: 2020-01-19 11:36:40: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 11:36:40 fedora-31 lighttpd[2147]: 2020-01-19 11:36:40: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 11:36:40 fedora-31 lighttpd[2147]: 2020-01-19 11:36:40: (server.c.1437) can't have more connections than fds/2: 1024 1024
Jan 19 11:49:55 fedora-31 systemd[1]: Stopping Lightning Fast Webserver With Light System Requirements...
Jan 19 11:49:56 fedora-31 systemd[1]: lighttpd.service: Succeeded.
Jan 19 11:49:56 fedora-31 systemd[1]: Stopped Lightning Fast Webserver With Light System Requirements.
-- Reboot --
Jan 19 15:30:40 fedora-31 systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Jan 19 15:30:41 fedora-31 lighttpd[775]: 2020-01-19 15:30:40: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 15:30:41 fedora-31 lighttpd[775]: 2020-01-19 15:30:40: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 15:30:41 fedora-31 lighttpd[775]: 2020-01-19 15:30:40: (server.c.1437) can't have more connections than fds/2: 1024 1024
Jan 19 15:52:20 fedora-31 systemd[1]: Stopping Lightning Fast Webserver With Light System Requirements...
Jan 19 15:52:21 fedora-31 systemd[1]: lighttpd.service: Succeeded.
Jan 19 15:52:21 fedora-31 systemd[1]: Stopped Lightning Fast Webserver With Light System Requirements.
-- Reboot --
Jan 19 15:53:19 fedora-31 systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Jan 19 15:53:19 fedora-31 lighttpd[768]: 2020-01-19 15:53:19: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 15:53:19 fedora-31 lighttpd[768]: 2020-01-19 15:53:19: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 15:53:19 fedora-31 lighttpd[768]: 2020-01-19 15:53:19: (server.c.1437) can't have more connections than fds/2: 1024 1024
-- Reboot --
Jan 19 17:14:49 fedora-31 systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Jan 19 17:14:50 fedora-31 lighttpd[760]: 2020-01-19 17:14:49: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 17:14:50 fedora-31 lighttpd[760]: 2020-01-19 17:14:49: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Jan 19 17:14:50 fedora-31 lighttpd[760]: 2020-01-19 17:14:49: (server.c.1437) can't have more connections than fds/2: 1024 1024
[abcd@fedora-31 ~]$
.
[abcd@fedora-31 ~]$ ls /etc/lighttpd/conf-enabled
ls: cannot access '/etc/lighttpd/conf-enabled': No such file or directory
Fedora’s lighttpd has folder conf.d instead of Debian’s folder conf-enabled
Accordingly I have added in lighttpd.conf of Fedora as follows: include "/etc/lighttpd/conf.d/89-dump1090-fa.conf"
make failed without librtlsdr even though I have installed rtl-sdr
make succeded only after librtlsdr was installed.
With rtl-sdr installed, but without installing librtlsdr
[abcd@localhost dump1090-fa]$ sudo dnf install rtl-sdr
[abcd@localhost dump1090-fa]$ sudo make BLADERF=no
.... .... ....
Package 'librtlsdr', required by 'virtual:world', not found
cc -DMODES_DUMP1090_VERSION=\"\" -DMODES_DUMP1090_VARIANT=\"dump1090-fa\" -DENABLE_RTLSDR -std=c11 -O2 -g -Wall -Werror -W -D_DEFAULT_SOURCE -c ais_charset.c -o ais_charset.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
Package 'librtlsdr', required by 'virtual:world', not found
cc -DMODES_DUMP1090_VERSION=\"\" -DMODES_DUMP1090_VARIANT=\"dump1090-fa\" -DENABLE_RTLSDR -std=c11 -O2 -g -Wall -Werror -W -D_DEFAULT_SOURCE -c sdr_rtlsdr.c -o sdr_rtlsdr.o
sdr_rtlsdr.c:54:10: fatal error: rtl-sdr.h: No such file or directory
54 | #include <rtl-sdr.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:45: sdr_rtlsdr.o] Error 1
.
(B) rtl-sdr
With librtlsdr installed and rtl-sdr removed
[abcd@localhost dump1090-fa]$ sudo dnf remove rtl-sdr
[abcd@localhost dump1090-fa]$ ./dump1090
./dump1090: error while loading shared libraries: librtlsdr.so.0: cannot open shared object file: No such file or directory
.
With rtl-sdr installed
[abcd@localhost dump1090-fa]$ sudo dnf install rtl-sdr
[abcd@localhost dump1090-fa]$ ./dump1090
Wed Jan 22 13:24:29 2020 EST dump1090-fa starting up.
rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832UFA, SN 00000101)
Detached kernel driver
Found Rafael Micro R820T tuner
rtlsdr: tuner gain set to 49.6 dB
Allocating 4 zero-copy buffers
*5dc01aa771a3b9;
CRC: 000000
RSSI: -1.8 dBFS
Score: 750
Time: 8929001.67us
DF:11 AA:C01AA7 IID:0 CA:5
All Call Reply (reliable)
ICAO Address: C01AA7 (Mode S / ADS-B)
Air/Ground: airborne
I don’t think you understand the packaging here. The compile failure will be because you’re missing a development/headers package somewhere.
My point was that it makes no sense to mix the distribution-provided packages with a compiled-from-source library, and doing so is asking for random crashes in anything that uses the library if there have been any ABI changes. If you’re going to build from source and install system-wide, then don’t install the distribution-provided packages, and you should probably rebuild everything that uses librtlsdr from source too.
After some “research” & Googling, I found that make install installs librtlsdr.so.xx file in directory /usr/lib/. This does not match Fedora/RHEL, which requires the x64 library files to be located in /usr/lib64. As a result installing x64 package rtl-sdr from Fedora repository became necessary.
SOLUTION:
Added following flags to cmake ../ command: -DLIB_INSTALL_DIR=/usr/lib64 -DCMAKE_INSTALL_PREFIX=/usr
Added command sudo ldconfig
(ldconfig command alone did not solve the problem untill I first rebuilt and reinstalled using above noted flags with cmake).
By doing above two things, I no longer needed following two commands:
NEXT ISSUE: SkyView fails to load from another computer on same network (This problem is NOT due to disabling of SELinux. It existed even before disabling SELinux)