External IP address not working

Hi All. My flightaware external IP has stopped working for some reason I have port 8080 open on my router and my external IP hasn’t changed. Can anyone advise on what may be wrong?

Image below of what shows

Untitled

Can you access it internally, then it’s a problem with the router forwarding.

For checking the local webserver, this log is useful:

sudo journalctl --no-pager -u lighttpd

You’ll need local or SSH access though.

I have done that and get this back

pi@piaware:~ $ sudo journalctl --no-pager -u lighttpd
– Logs begin at Thu 2019-10-31 17:52:17 UTC, end at Sat 2019-11-02 21:03:13 UTC . –
Nov 01 03:43:14 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:14 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:14 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:14 piaware lighttpd[10884]: 2019-11-01 03:43:14: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:14 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:14 piaware lighttpd[10893]: 2019-11-01 03:43:14: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:18 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:18 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:18 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:18 piaware lighttpd[11002]: 2019-11-01 03:43:18: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:18 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:18 piaware lighttpd[11010]: 2019-11-01 03:43:18: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:23 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:23 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:23 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:23 piaware lighttpd[11164]: 2019-11-01 03:43:23: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:23 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:23 piaware lighttpd[11173]: 2019-11-01 03:43:23: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)

	while read -r FILE; do sudo sed -i -e 's/^server.modules += ( "mod_setenv" )/#server.modules += ( "mod_setenv" )/'  "$FILE"; done < <(find /etc/lighttpd/conf-available/* | grep -v dump1090-fa)

This should do the trick if you paste it in one piece :wink:
Then restart lighttpd:

sudo systemctl restart lighttpd

You can check the log if it’s starting now.

Don’t think I have done it right as it’s not working

pi@piaware:~ $ sudo systemctl lighttpd
Unknown operation lighttpd.
pi@piaware:~ $ while read -r FILE; do

Display all 1594 possibilities? (y or n)
:
!
./
[
[[
]]
{
}
2to3
2to3-2.7
2to3-3.5
accessdb
aclocal
aclocal-1.15
aconnect
addgnupghome
addgroup
addpart
addr2line
add-shell
adduser
adsbhub.sh
agetty
al
al2
alias
_allowed_groups
_allowed_users
alsabat
alsabat-test
alsactl
alsa-info
alsaloop
alsamixer
alsatplg
alsaucm
amidi
amixer
aplay
aplaymidi
applygnupgdefaults
apropos
apt
apt-cache
apt-cdrom
apt-config
apt-extracttemplates
apt-ftparchive
apt-get
aptitude
aptitude-create-state-bundle
aptitude-curses
aptitude-run-state-bundle
apt-key
apt-listchanges
apt-mark
apt-sortpkgs
ar
arch
arecord
arecordmidi
arm-linux-gnueabihf-addr2line
arm-linux-gnueabihf-ar
arm-linux-gnueabihf-as
arm-linux-gnueabihf-c++filt
arm-linux-gnueabihf-cpp
arm-linux-gnueabihf-cpp-6
arm-linux-gnueabihf-dwp
arm-linux-gnueabihf-elfedit
arm-linux-gnueabihf-g++
arm-linux-gnueabihf-g+±6
arm-linux-gnueabihf-gcc
arm-linux-gnueabihf-gcc-6
arm-linux-gnueabihf-gcc-ar
arm-linux-gnueabihf-gcc-ar-6
arm-linux-gnueabihf-gcc-nm
arm-linux-gnueabihf-gcc-nm-6
arm-linux-gnueabihf-gcc-ranlib
arm-linux-gnueabihf-gcc-ranlib-6
arm-linux-gnueabihf-gcov
arm-linux-gnueabihf-gcov-6
arm-linux-gnueabihf-gcov-dump
arm-linux-gnueabihf-gcov-dump-6
arm-linux-gnueabihf-gcov-tool
arm-linux-gnueabihf-gcov-tool-6
arm-linux-gnueabihf-gprof
arm-linux-gnueabihf-ld
arm-linux-gnueabihf-ld.bfd
arm-linux-gnueabihf-ld.gold
arm-linux-gnueabihf-nm
arm-linux-gnueabihf-objcopy
arm-linux-gnueabihf-objdump
arm-linux-gnueabihf-pkg-config
arm-linux-gnueabihf-python3.5-config
arm-linux-gnueabihf-python3.5m-config
arm-linux-gnueabihf-python3-config
arm-linux-gnueabihf-python3m-config
arm-linux-gnueabihf-ranlib
arm-linux-gnueabihf-readelf
arm-linux-gnueabihf-run
arm-linux-gnueabihf-size
arm-linux-gnueabihf-strings
arm-linux-gnueabihf-strip
arm-unknown-linux-gnueabihf-pkg-config
arp
arpd
as
aseqdump
aseqnet
aspell
aspell-autobuildhash
aspell-import
atmel_fwl
autoconf
autoheader
autom4te
automake
automake-1.15
autopoint
autoreconf
autoscan
autoupdate
avahi-daemon
_available_interfaces
awk
b2sum
badblocks
base32
base64
basename
bash
bashbug
bccmd
beast-splitter
bg
bind
blkdeactivate
blkdiscard
blkid
blkmapd
blockdev
bluemoon
bluetoothctl
bluetoothd
bootctl
break
bridge
bsd-from
bsd-write
btattach
bthelper
btmgmt
btmon
btuart
builtin
bunzip2
busctl
bzcat
bzcmp
bzdiff
bzegrep

v" )/#server.modules += ( “mod_setenv” )/’ “$FILE”
done < <(find /etc/lighttpd/conf-available/* | grep -v dump1090-fa)
sudo systemctl restart lighttpd

You’d need to paste all 3 lines at once.
I’ve made it one line, but be sure you get everything until the end.

Do I need to type another code first? Nothing happens

pi@piaware:~ $ while read -r FILE; do sudo sed -i -e ‘s/^server.modules += ( “mo d_setenv” )/#server.modules += ( “mod_setenv” )/’ “$FILE”; done < <(find /etc/l ighttpd/conf-available/* | grep -v dump1090-fa)
pi@piaware:~ $

Nope, shouldn’t output anything.
Just change something.
Try restarting and check the log.

pi@piaware:~ $ sudo journalctl --no-pager -u lighttpd
– Logs begin at Fri 2019-11-01 00:25:01 UTC, end at Sat 2019-11-02 21:38:32 UTC . –
Nov 01 03:43:14 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:14 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:14 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:14 piaware lighttpd[10884]: 2019-11-01 03:43:14: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:14 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:14 piaware lighttpd[10893]: 2019-11-01 03:43:14: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:18 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:18 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:18 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:18 piaware lighttpd[11002]: 2019-11-01 03:43:18: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:18 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:18 piaware lighttpd[11010]: 2019-11-01 03:43:18: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:23 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:23 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:23 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:23 piaware lighttpd[11164]: 2019-11-01 03:43:23: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:23 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:23 piaware lighttpd[11173]: 2019-11-01 03:43:23: (plugin.c.187) Can not load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
pi@piaware:~ $ while read -r FILE; do sudo sed -i -e ‘s/^server.modules += ( “mod_setenv” )/#server.modules += ( “mod_setenv” )/’ “$FILE”; done < <(find /etc/lighttpd/conf-available/* | grep -v dump1090-fa)
pi@piaware:~ $ sudo systemctl restart lighttpd
pi@piaware:~ $ sudo journalctl --no-pager -u lighttpd
– Logs begin at Fri 2019-11-01 00:25:01 UTC, end at Sat 2019-11-02 21:39:23 UTC. –
Nov 01 03:43:14 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:14 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:14 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:14 piaware lighttpd[10884]: 2019-11-01 03:43:14: (plugin.c.187) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:14 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:14 piaware lighttpd[10893]: 2019-11-01 03:43:14: (plugin.c.187) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:18 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:18 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:18 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:18 piaware lighttpd[11002]: 2019-11-01 03:43:18: (plugin.c.187) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:18 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:18 piaware lighttpd[11010]: 2019-11-01 03:43:18: (plugin.c.187) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:23 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 01 03:43:23 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 01 03:43:23 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 01 03:43:23 piaware lighttpd[11164]: 2019-11-01 03:43:23: (plugin.c.187) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 01 03:43:23 piaware systemd[1]: Started Lighttpd Daemon.
Nov 01 03:43:23 piaware lighttpd[11173]: 2019-11-01 03:43:23: (plugin.c.187) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future releases)
Nov 02 21:39:11 piaware systemd[1]: Stopping Lighttpd Daemon…
Nov 02 21:39:11 piaware systemd[1]: Stopped Lighttpd Daemon.
Nov 02 21:39:11 piaware systemd[1]: Starting Lighttpd Daemon…
Nov 02 21:39:11 piaware systemd[1]: Started Lighttpd Daemon.
pi@piaware:~ $

Why are you posting it, it’s working.

Also please see this page for reference on how to post logs:
Debug commands · wiedehopf/adsb-wiki Wiki · GitHub

Or just use pastebin the next time and only post the link here :slight_smile:

My external IP still isn’t working, so I thought I hadn’t done something right

Well the web server is running.

Ctrl-F5?

In doubt, use a fresh image.
(For Beginners - How to Get Back Existing Station Number in A Fresh Install)

Yep. It’s still not loading. I’ll have a look and see what I can do.

wget http://localhost:8080/index.html

What does this return?
Also do a reboot and show the lighttpd log again, but post it on https://pastebin.com/ so it’s easier to read and post the link here.

Thanks. I’ll take a long at some point tomorrow

Done that command

  1. pi@piaware:~ $ wget http://localhost:8080/index.html

  2. –2019-11-03 11:42:19-- http://localhost:8080/index.html

  3. Resolving localhost (localhost)… ::1, 127.0.0.1

  4. Connecting to localhost (localhost)|::1|:8080… failed: Connection refused.

  5. Connecting to localhost (localhost)|127.0.0.1|:8080… connected.

  6. HTTP request sent, awaiting response… 200 OK

  7. Length: 30194 (29K) [text/html]

  8. Saving to: ‘index.html’

  • index.html 100%[===================>] 29.49K --.-KB/s in 0s

  • 2019-11-03 11:42:19 (123 MB/s) - ‘index.html’ saved [30194/30194]

  • pi@piaware:~ $

So you see the webserver is working.

The router forwarding the port is not.

As you can see here I have ports open but it still doesn’t connect

download%20(1)

And that worked before?

There is no outgoing data on port 8080 that could activate this forwarding.
You need proper port forwarding, not this.

Sorted! I had 8081 open in the PF section but not 8080