sdr-enthusiasts / docker-planefence

GNU General Public License v3.0
97 stars 17 forks source link

403 Forbidden when clicking monitored aircraft Alert List #210

Open kimfr opened 2 weeks ago

kimfr commented 2 weeks ago

In a newly deployed planefence container - when I click on the monitored aircraft Alert List - I get a 403 Forbidden.

Looking at the link via the page http://:8088/plane-alert/ - I can see it points to http://:8088/plane-alert/alertlist.txt

Looking inside the planefence container, I get:

# find / -name alertlist.txt
/usr/share/planefence/html/plane-alert/alertlist.txt
/usr/share/plane-alert/html/alertlist.txt

# ls -la /usr/share/planefence/html/plane-alert/alertlist.txt
lrwxrwxrwx 1 root root 58 Nov 13 12:34 /usr/share/planefence/html/plane-alert/alertlist.txt -> /usr/share/planefence/persist/.internal/plane-alert-db.txt

# ls -la /usr/share/planefence/persist/.internal/plane-alert-db.txt
-rw-r--r-- 1 root root 3767636 Nov 13 12:34 /usr/share/planefence/persist/.internal/plane-alert-db.txt

# ls -la /usr/share/plane-alert/html/alertlist.txt
-rw-r--r-- 1 root root 10545 Aug 16 22:17 /usr/share/plane-alert/html/alertlist.txt

Both files can be read from within the planefence container:

tail -n1 /usr/share/planefence/html/plane-alert/alertlist.txt
E940FB,FAB-002,Gov of Bolivia,Dassault Falcon 50,FA50,Gov,Government,Must Be Nice,Free And Fair Elections,Dictator Alert,https://w.wiki/B3LJ,https://cdn.jetphotos.com/full/6/55153_1575059321.jpg,https://cdn.jetphotos.com/full/5/83758_1487098979.jpg,https://cdn.jetphotos.com/full/5/17432_1487090281.jpg,

tail -n1 /usr/share/plane-alert/html/alertlist.txt           
A2B2D2,N273NE,NE Life Flight,EuroCopter 45

I'm also a little confused as to why there are 2 different files?

dziban303 commented 2 weeks ago

I believe it takes a little while for it to sort itself out after being deployed, probably needs a plane present in the plane-alert-db.txt database to show up first. That could take a bit, maybe hours or a day or two depending on how high traffic your area is. Just keep trying, it should start to work

kimfr commented 2 weeks ago

It's NOT the plane-alert-db.txt that's the issue, it's working fine - it's when built in "alertlist.txt" - ie. the list of used for Plane-Alert.

kimfr commented 2 weeks ago

It's NOT the plane-alert-db.txt that's the issue, it's working fine - it's when built in "alertlist.txt" - ie. the list of used for Plane-Alert.

Sorry - Yes off course it's the plane-alert-db.txt - the file is there and can be read - suspect it's something to do with the web server not being able to read the file and/or not allowed to follow symbolic links... I just can't figure it out...

kimfr commented 2 weeks ago

Left it running overnight and this morning it has now picked up 2 aircrafts so the list is being read and used - but when I click on the "list of monitored aircraft" - I still get a 403 Forbidden. image image