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

Unable to access the main web interface on port 80 after moving sd card to another pi #151

Closed
ebc1613 opened this issue Apr 9, 2024 · 9 comments

Comments

@ebc1613
Copy link

ebc1613 commented Apr 9, 2024

Hello!
Please pardon my lack of programmer language, I'm just an aviation enthusiast that tinkers with SBCs.

I have been running this image for about 3 weeks now and I like how simple it is for people like me.

However, the Pi4B I was running the system on suffered a power surge and died... no big deal, I have a 3B+ I can replace it with temporarily while the replacement 4B+ is in the mail.

After replacing the board, I cannot access the web interface on port 80.

I thought it may have just been the 3b's fault.

After I put the sd card back in a replacement 4b+, I still cannot access the web server

If I add :8080 at the end of my url, I can access the tar1090 map fine. Same with Dozzle (9999)

The image is feeding all of my aggregators just fine.

SSH works as well.

Any help or insight is appreciated.

ps: the site is atop a 330' tower so reflashing and replacing the card is not a practical option.
This is just a QOL thing for me. I can live without it.

-B

@dirkhh
Copy link
Owner

dirkhh commented Apr 9, 2024

330' tower. WOW. I am curious about the amount of planes that you see from there. Nice.
Well, if you have access to ssh then we should certainly be able to restore the web interface.
The first question is of course "why is it down right now?"
Let's start with Dozzle and look at the output from the adsb-setup-proxy container. Any errors? Anything that indicates why the setup app (that's basically the web UI you are missing) isn't starting?

@ebc1613
Copy link
Author

ebc1613 commented Apr 9, 2024

`Running on all addresses (0.0.0.0)
04/09/2024
01:33:25 PM

  • Running on http:https://127.0.0.1:80
    04/09/2024
    01:33:25 PM
  • Running on http:https://172.16.189.172:80
    04/09/2024
    01:33:25 PM
    Press CTRL+C to quit
    04/09/2024
    01:33:28 PM
    fatal: bad object refs/tags/v1.3.5
    04/09/2024
    01:33:28 PM
    error: https://github.com/dirkhh/adsb-feeder-image did not send all necessary objects
    04/09/2024
    01:33:28 PM
    04/09/2024
    01:33:28 PM
    git fetch in /opt/adsb-feeder-update/adsb-feeder-image failed
    04/09/2024
    01:33:28 PM
    bash /opt/adsb/feeder-update called docker-compose-adsb up -d -t 30 --remove-orphans
    04/09/2024
    01:33:28 PM
    AF_IS_RADARBOX_ENABLED=True`

@ebc1613 ebc1613 closed this as completed Apr 9, 2024
@ebc1613 ebc1613 reopened this Apr 9, 2024
@ebc1613
Copy link
Author

ebc1613 commented Apr 9, 2024

that is the only "fatal error" I saw from the log

during peak it sees about 550 aircraft.
about 1600 messages / second.

@dirkhh
Copy link
Owner

dirkhh commented Apr 9, 2024

ahh, so the update was interrupted and likely caused corruption in the git repo... but that shouldn't stop the web UI from coming up.
What's at the very bottom of that log, so the last few lines?

Also, when copy-and-pasting these, it works best if you include them in three backticks, so
```
log text you want to paste
```

@ebc1613
Copy link
Author

ebc1613 commented Apr 9, 2024

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
04/09/2024
01:33:25 PM
 * Running on all addresses (0.0.0.0)
04/09/2024
01:33:25 PM
 * Running on http:https://127.0.0.1:80
04/09/2024
01:33:25 PM
 * Running on http:https://172.16.189.172:80
04/09/2024
01:33:25 PM
Press CTRL+C to quit
04/09/2024
01:33:28 PM
fatal: bad object refs/tags/v1.3.5
04/09/2024
01:33:28 PM
error: https://github.com/dirkhh/adsb-feeder-image did not send all necessary objects
04/09/2024
01:33:28 PM
04/09/2024
01:33:28 PM
git fetch in /opt/adsb-feeder-update/adsb-feeder-image failed
04/09/2024
01:33:28 PM
bash /opt/adsb/feeder-update called docker-compose-adsb up -d -t 30 --remove-orphans
04/09/2024
01:33:28 PM
AF_IS_RADARBOX_ENABLED=True
04/09/2024
01:33:28 PM
calling docker compose for the enabled containers
04/09/2024
01:33:33 PM
level=
warning
msg=
The "ADSB_SDR_PPM" variable is not set. Defaulting to a blank string.
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/dozzle.yml: `version` is obsolete
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
The "UAT_SDR_PPM" variable is not set. Defaulting to a blank string.
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/uat978.yml: `version` is obsolete
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
The "FEEDER_FR24_MLAT" variable is not set. Defaulting to a blank string.
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/fr24.yml: `version` is obsolete
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/fa.yml: `version` is obsolete
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/rb.yml: `version` is obsolete
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/pf.yml: `version` is obsolete
time=
2024-04-09T12:33:32-05:00
04/09/2024
01:33:33 PM
 Container adsb-setup-proxy  Running
04/09/2024
01:33:33 PM
 Container dump978  Running
04/09/2024
01:33:33 PM
 Container pfclient  Running
04/09/2024
01:33:33 PM
 Container dozzle  Running
04/09/2024
01:33:33 PM
 Container rbfeeder  Running
04/09/2024
01:33:33 PM
 Container fr24feed  Running
04/09/2024
01:33:33 PM
 Container piaware  Running
04/09/2024
01:33:33 PM
 Container ultrafeeder  Running
04/09/2024
01:33:33 PM
finished attempting to bring up the containers
04/09/2024
01:33:33 PM
level=
warning
msg=
The "ADSB_SDR_PPM" variable is not set. Defaulting to a blank string.
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/dozzle.yml: `version` is obsolete
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
The "UAT_SDR_PPM" variable is not set. Defaulting to a blank string.
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/uat978.yml: `version` is obsolete
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
The "FEEDER_FR24_MLAT" variable is not set. Defaulting to a blank string.
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/fr24.yml: `version` is obsolete
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/fa.yml: `version` is obsolete
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/rb.yml: `version` is obsolete
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:33 PM
level=
warning
msg=
/opt/adsb/config/pf.yml: `version` is obsolete
time=
2024-04-09T12:33:33-05:00
04/09/2024
01:33:34 PM
Traceback (most recent call last):
04/09/2024
01:33:34 PM
  File "/opt/adsb/adsb-setup/app.py", line 25, in <module>
04/09/2024
01:33:34 PM
    from utils.config import (
04/09/2024
01:33:34 PM
  File "/opt/adsb/adsb-setup/utils/__init__.py", line 7, in <module>
04/09/2024
01:33:34 PM
    from .data import Data
04/09/2024
01:33:34 PM
ImportError: cannot import name 'Data' from 'utils.data' (/opt/adsb/adsb-setup/utils/data.py)
04/09/2024
01:33:34 PM
Traceback (most recent call last):
04/09/2024
01:33:34 PM
  File "/opt/adsb/adsb-setup/app.py", line 25, in <module>
04/09/2024
01:33:34 PM
    from utils.config import (
04/09/2024
01:33:34 PM
  File "/opt/adsb/adsb-setup/utils/__init__.py", line 7, in <module>
04/09/2024
01:33:34 PM
    from .data import Data
04/09/2024
01:33:34 PM
ImportError: cannot import name 'Data' from 'utils.data' (/opt/adsb/adsb-setup/utils/data.py)
04/09/2024
01:33:35 PM
Traceback (most recent call last):
04/09/2024
01:33:35 PM
  File "/opt/adsb/adsb-setup/app.py", line 25, in <module>
04/09/2024
01:33:35 PM
    from utils.config import (
04/09/2024
01:33:35 PM
  File "/opt/adsb/adsb-setup/utils/__init__.py", line 7, in <module>
04/09/2024
01:33:35 PM
    from .data import Data
04/09/2024
01:33:35 PM
ImportError: cannot import name 'Data' from 'utils.data' (/opt/adsb/adsb-setup/utils/data.py)
04/09/2024
01:33:35 PM
Traceback (most recent call last):
04/09/2024
01:33:35 PM
  File "/opt/adsb/adsb-setup/app.py", line 25, in <module>
04/09/2024
01:33:35 PM
    from utils.config import (
04/09/2024
01:33:35 PM
  File "/opt/adsb/adsb-setup/utils/__init__.py", line 7, in <module>
04/09/2024
01:33:35 PM
    from .data import Data
04/09/2024
01:33:35 PM
ImportError: cannot import name 'Data' from 'utils.data' (/opt/adsb/adsb-setup/utils/data.py)
04/09/2024
01:33:36 PM
Traceback (most recent call last):
04/09/2024
01:33:36 PM
  File "/opt/adsb/adsb-setup/app.py", line 25, in <module>
04/09/2024
01:33:36 PM
    from utils.config import (
04/09/2024
01:33:36 PM
  File "/opt/adsb/adsb-setup/utils/__init__.py", line 7, in <module>
04/09/2024
01:33:36 PM
    from .data import Data
04/09/2024
01:33:36 PM
ImportError: cannot import name 'Data' from 'utils.data' (/opt/adsb/adsb-setup/utils/data.py)```

there's the logs from the fatal error to the last log.  Apologies - new to GitHub. 

UAT for FR24 is not working either - I can open a new ticket for that later. 

@dirkhh
Copy link
Owner

dirkhh commented Apr 9, 2024

No problem - and this one shows us what is wrong. The failed update is to blame.

Please ssh into the feeder as root and run the following:

mv /opt/adsb-feeder-update /opt/adsb-feeder-update-broken
/opt/adsb/feeder-update stable

Once this completes the web UI should be running. If it doesn't, please do this:

tail -50 /opt/adsb/adsb-setup.log

and cut and paste the output into this issue.

@ebc1613
Copy link
Author

ebc1613 commented Apr 9, 2024

can I run it as my user with sudo? I need to reset the root password - don't remember what it is.

@wiedehopf
Copy link
Collaborator

to become root: sudo su -

@ebc1613
Copy link
Author

ebc1613 commented Apr 9, 2024

That fixed it!

Thank you for the help. Beautifully designed software right here.

wiedehopf - thanks for that trick, learned something new.

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

3 participants