Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden when clicking monitored aircraft Alert List #210

Open
kimfr opened this issue Nov 13, 2024 · 4 comments
Open

403 Forbidden when clicking monitored aircraft Alert List #210

kimfr opened this issue Nov 13, 2024 · 4 comments

Comments

@kimfr
Copy link

kimfr commented Nov 13, 2024

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
Copy link
Contributor

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
Copy link
Author

kimfr commented Nov 13, 2024

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
Copy link
Author

kimfr commented Nov 13, 2024

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
Copy link
Author

kimfr commented Nov 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants