Announcing PiAware 3.8.1!

"Cannot load plugin mod_setenv more than once, please fix your config"
Is this serious, or should be ignored?

please scroll right to see the in full

pi@piaware:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

pi@piaware:~ $ sudo journalctl --no-pager -u lighttpd
-- Logs begin at Fri 2020-01-24 10:12:16 UTC, end at Fri 2020-01-24 18:53:40 UTC. --
Jan 24 10:12:34 piaware systemd[1]: Starting Lighttpd Daemon...
Jan 24 10:12:37 piaware lighttpd[587]: 2020-01-24 10:12:34: (plugin.c.190) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Jan 24 10:12:37 piaware systemd[1]: Started Lighttpd Daemon.
Jan 24 10:12:39 piaware lighttpd[716]: 2020-01-24 10:12:37: (plugin.c.190) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)

It might cause problems with some things - specifically it was hindering the loading of history files in tar1090. I found it was enabled twice in different .conf files in /etc/lighttpd, once in the dump1090-fa one and once in its own file that contained only that option. Deleted the duplicate and restarted lighttpd and everything works properly again.

Can you please tell me exact steps to do it?
I am facing problem in Fedora fetching files ( wget http://localhost/dump1090-fa/data/aircraft.json). Connects, but says Forbidden 403. May be what you have done will help on Fedora also

Try this to find out where the duplication is:

grep mod_setenv /etc/lighttpd/conf-enabled/*.conf

It should return the files which have that option in them. Then either edit one of them to remove that line or if itā€™s defined in its own conf file, just remove that one.

If I remember what @wiedehopf told me correctly, itā€™s possible that dump978 and dump1090 are both defining that option.

Not sure if the 403 error you are seeing is as a result of that though - could be file permissions or server config causing that. Double check the lighttpd user (www-data on raspbian, but could well be different on Fedora) has access.

2 Likes

The tar1090 install script fixes that issue if for Debian/Raspbian lighttpd installs.

You donā€™t have a duplicate mod_setenv on Fedora.

Itā€™s a completely different problem.

Why donā€™t you install nginx and use the tar1090 interface exclusively, it provides an nginx configuration to put into the server section of /etc/nginx/sites-enabled/default ā€¦

Some googling in regards to your Fedora issue: How to Disable SELinux Temporarily or Permanently

Iā€™d suspect lighttpd is just not meant for Fedora ā€¦

1 Like

Tanks @caius & @wiedehopf for help.

Will try your tips on Fedora tonight.

@wiedehopf: I have already decided to uninstall lighttpd and install nginx, was going to do this tonight :slight_smile:

Can I just add Buster to my current SD card setup or do I need to start from scratch ?
Where can I find the code to install buster ?
Have been live for years and now I have no tracking.
Jpdies

Best to download the current sd-card image and write it to the sd-card, just start with number 2 on this page:
PiAware - build your own ADS-B ground station for integration with FlightAware - FlightAware

Then when before you put the sd-card into the RPi, add the feeder-id to your configuration:

For Beginners - How to Get Back Existing Station Number in A Fresh Install - #8 by abcd567

I wasted over 2 hours trying to get the pi to use a static IP - very frustrating. Honestly, I understand that they are trying to make it easier with the piaware-config.txt file but really? At least test it and release the bug fix immediately!

Two things:

  1. the line ā€œwired-type staticā€ is missing from the sample piaware-config.txt file. It should at least be there and commented out as is standard practice.
  2. generate-network-config has the stated bug, I fixed it, rebooted and it still didnā€™t work. Manually running generate-network-config gave another error (I think because it wasnā€™t called in the proper sequence when I invoked from the command line)

So, I gave up and renamed generate-network-config to generate-network-config.f**kme. I was then able to set the dhcpcd.conf file with a static IP and I finally got my static IP!

SO DAMN FRUSTRATED (and Iā€™m an old UNIX guy!).

Just use Raspbian Lite then.

Never seen the appeal of the sd-card images.
(at least for those who can manage to set up Raspbian Lite)

Itā€™s fixed in 3.8.1 but no idea when thatā€™s being released. In the meantime can section 3 of the PiAware build instructions please highlight the bug and the workaround?

[ Workaround: Enable SSH and configure initially as dynamic IP. Apply fix as detailed by @nu3e. Then configure as static IP as originally desired. ]

Iā€™d like to see all the piaware-config.txt options (and any hidden ones not listed there) placed into the file, commented out and explained in there, so they can be uncommented and edited as needed.

[Copied to feature requests]

1 Like

Exactly what I did but still didnā€™t workā€¦

I use the MAC binding facility on my router to bind the Piā€™s MAC address to a fixed IP. Itā€™s quite handy having a one stop shop to manage all my fixed IPs.

I went a bit further in having the first 20 IP addresses on the router subnet outside of the DHCP scope, reserved for fixed IPs

2 Likes

Aye thatā€™s a good way to manage it if the DHCP interface supports it ā€“ you end up with permanently assigned dymanic IPs for the hosts that need it, so they can just stay configured as DHCP clients as standard, and you also have a small range reserved for genuine static IPs if needed.

Exactly - it seemed the most fuss free way of doing it. Also handy when firing up a cloned card on a test Pi as itā€™s not configured for a fixed IP in the image, clashing with a live device. Admittedly, Iā€™m not sure how common MAC address binding is in ā€œhomeā€ routers these days.

it is; however, I think I am too OCD - all my printers are in one range, WAPs in another, piā€™s in another, etc. Only PCs and laptops are DHCP.

Also, I have found that binding the MAC in the router is not a good idea when you have to factory reset a router or replace it.

Nothing wrong with having some good structure to oneā€™s network :slight_smile:

I save a backup of my router config after making changes or installing firmware updates. Fortunately I only came to rely on a backup just the once!

Also it is not good idea for assigning fixed IP to distros in Virtual Machine.

I installed Red Hat Enterprise Linux x86_64 and through router I assigned it a fixed IP using MAC. As I was experimenting to build & install dump1090 and piawre from source-code, after lots of trials-and-errors, I had to delete itā€™s hard disk (RHEL 8.1.vdi), then recreate a fresh hard disk. This I had to do several times, and each time VM assigned it a new MAC.

I then stopped configuring fixed IP in router. Instead I created a fixed IP through Gnomeā€™s Settings window.

I am using a AVM router (popular in Germany) with the option ā€œAlways assign the same IP adressā€ after i set it fixed for this device. This is a ā€œquasiā€ fixed IP.

Whenever the device starts i am getting exactly this one. And even a reinstall of the RPi does not matter.
And i did not need to reset the router to factory the last three years