Closed MrSuttonmann closed 4 years ago
Hi @plinkpaste, thanks for getting in touch.
It looks like the readsb
binary is exiting abnormally when it's trying to start.
Could you try running readsb
manually to see if this gives us any more meaningful info?
To do this:
docker run --rm -it --name readsb --device /dev/bus/usb/001/005:/dev/bus/usb/001/005 -p 8080:80 -p 30005:30005 --entrypoint bash mikenye/readsb
This will create the container and drop you into a shell.
One in there, please run:
readsb --dcfilter --device-type=rtlsdr --fix --forward-mlat --json-location-accuracy=2 --lat=REDACTED --lon=REDACTED --mlat --modeac --ppm=0 --net --stats-every=3600
Please change REDACTED
to valid lat/long.
If you could post the output of this process, it would be appreciated.
Once readsb
fails, if you can exit the container with CTRL-D. This temporary container will be automatically deleted upon exit (--rm
).
Also, I've had another user report an issue with the RTL2838
. The solution was to downgrade rtl-sdr
to 0.5.3 (from 0.6.0). Unfortunately I can't get readsb
to build against rtl-sdr
0.5.3, so if your problem ends up being related, you may have to forego the readsb
container, and use the piaware
container instead (which uses dump1090
, which readsb
is forked from). See: https://github.com/mikenye/docker-piaware/issues/15
Thanks!
-Mike
Hi Mike, thanks for your response.
I tried running manually, but this is the output I get:
pi@adsbpi:/opt/adsb $ docker run --rm -it --name readsb --device /dev/bus/usb/001/005:/dev/bus/usb/001/005 -p 8080:80 -p 30005:30005 --entrypoint bash mikenye/readsb
failed to resize tty, using default size
pi@adsbpi:/opt/adsb $
I think it's possible my Pi might not be able to handle running Docker.
Try docker run hello-world
. Does that work?
No, I get a blank output.
I'll give this a go with my Pi 4, the only issue is I'm currently using that as a TV tuner, so I hope the DVB I'm using for ADSB won't interfere...
OK, it sounds like your docker
install might have issues...
Came across this.
Apparently the default hello-world container doesn't work on ARM. I tried the ARM version and got an output:
pi@adsbpi:/opt/adsb $ docker run hypriot/armhf-hello-world
Unable to find image 'hypriot/armhf-hello-world:latest' locally
latest: Pulling from hypriot/armhf-hello-world
Image docker.io/hypriot/armhf-hello-world:latest uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
4b84770bb49c: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:b618ec0cc3acf683e8d77ad6c5ec81546cddde2036eda9a78f628effdeca74cd
Status: Downloaded newer image for hypriot/armhf-hello-world:latest
Hello from Docker.
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker Hub account:
https://hub.docker.com
For more examples and ideas, visit:
https://docs.docker.com/userguide/
pi@adsbpi:/opt/adsb $
I see you've tested readsb on a Raspi 4, which is also ARM, so in theory it should work, right?
Running on my Odroid, I get the following:
$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm32v7)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
So the default hello-world should work on ARM...
Could you post the output of uname -m
?
Hm, interesting.
uname -m
gives the following:
armv6l
Are you sure it’s an RPi2? What operating system and version are you running? The RPi 2 should have an A7 CPU, and hence have an architecture of ‘armv7l’. If you’re running an old OS it is possible that this is the culprit. For example, even though the newer RPis have ARMv8 CPUs, the operating system at the time of release was built for the ‘armv7l’ architecture and we are only recently getting versions that fully support the ARMv8 architecture...
The wikipedia page has a handy table with the specifications for each model: https://en.wikipedia.org/wiki/Raspberry_Pi
My bad, it's actually a RPi 1 B+, and I'm running Raspbian Buster on it.
I should probably upgrade it, or just run fr24feed on it instead.
No problems. You could try building the containers yourself? It isn't too hard.
git clone https://github.com/mikenye/docker-readsb.git
cd docker-readsb
docker build -t readsb .
See how you go.
For now, I'll close this one out as this architecture isn't one I can support - I don't have an RPi1B+ to compile on! :-)
Good luck and if you need any further assistance please get in touch.
Kind regards, Mike Nye
I'll give that a go. Thanks for your help!
Any time!
Hi, I'm trying your guide out of a Raspberry Pi 2 Model B, and I've got the container running.
I didn't get any output when I tried to run
docker exec -it readsb viewadsb
, and when runningdocker ps
I could see the container restarting every few seconds, so I thought I'd view the logs:I think the key entry in the log is this one:
Here's my YML file:
and the output of
lsusb
:Any ideas? Thanks for your hard work on this guide, I'd love to see this working!