Comments (15)
Check Docker's own logs with docker logs arewedown
(or the name specified in the compose file). If that output doesn't help, feel free to post it here. The container exiting immediately and not writing to local ./logs folder is often caused by it not having write permission to that folder.
from arewedown.
Docker logs shows nothing:
$ docker-compose up
Creating network "dietpi_default" with the default driver
Creating arewedown ... done
Attaching to arewedown
I followed the step in the readme to chown -R 1000 ./logs
but to no avail.
from arewedown.
that looks like docker-compose's output, what does docker logs arewedown
give?
from arewedown.
that looks like docker-compose's output, what does
docker logs arewedown
give?
Sorry, yes you're right.
But it's the same blank output and detach behaviour as when I run the container:
$ docker-compose logs
Attaching to arewedown
from arewedown.
Interesting - haven't see this before. Which distro/version are your running on your Pi? Also which version of docker? (docker -v
)
from arewedown.
Using DietPi Buster, which is effectively Raspbian 10 (Buster).
$ docker -v
Docker version 20.10.6, build 370c289
from arewedown.
$ docker-compose logs Attaching to arewedown
hmm. just to be totally sure on this, you did run docker logs arewedown
, right? Not docker-compose logs
, those are two different things. Not really too interested in what docker-compose is logging, a failure to spin up the container will happen on the docker
level, regardless of orchestrator.
from arewedown.
My understanding of docker-compose logs
is that is will produce the app output logs from all containers defined in the compose file.
Anyhow, docker logs arewedown
produces nothing i.e. blank output:
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c2071e93f259 shukriadams/arewedown:0.2.0-arm "/bin/sh -c 'cd /etc…" 17 minutes ago Restarting (132) 15 seconds ago arewedown
$ docker logs arewedown
from arewedown.
That is really interesting - I should have a Model B+ lying around somewhere, haven't tried running on that, so far the oldest Pi that I can confirm it works on is a Pi 3. I'll look into it- thanks for flagging this.
from arewedown.
No worries. I am also thinking it's maybe to do with the B+, like being armhf architecture not being happy with the image.
from arewedown.
Using the non-arm tagged Docker image, I get some output that suggests that it has a problem with the architecture of the image not built for the architecture of the host, which makes sense.
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0fafcbe1ab17 shukriadams/arewedown:0.2.0 "/bin/sh -c 'cd /etc…" 6 minutes ago Restarting (1) 33 seconds ago arewedown
$ docker-compose logs
Attaching to arewedown
arewedown | standard_init_linux.go:219: exec user process caused: exec format error
arewedown | standard_init_linux.go:219: exec user process caused: exec format error
$ arch
armv6l
$ dpkg --print-architecture
armhf
So using arewedown:0.2.0-arm
doesn't error out this way because of wrong architecture, but it still doesn't produce any logs.
from arewedown.
Didn't get an alert for your follow-up post. Yeah, my guess is the container is completely failing to start on the original Pi CPU, assuming that's what you got this on. Still haven't had time to set up a testing station on a model B yet, will try for this weekend.
from arewedown.
If you have any test cases/steps I'm happy to run them for you on my Pi and report back.
from arewedown.
Ok, dug a bit deeper. Error confirmed on my own Pi B+, also confirmed on the base ubuntu 20.04 image I'm building from. Turns out Ubuntu works on armv7 only (read the fine print I guess), I will add an additional build for arm6 on Alpine to cover this gap, should be out next release.
Thanks for catching, wasn't planning on building this project on Alpine, but this turns that decision around.
from arewedown.
So it turns out ARM6 Docker builds aren't feasible, not as things are now. I managed to build a working container image, but I do all release builds via automated Github Actions, and I just noticed that Actions can't run on ARM6 at all (actions/runner#688).
If I can find another way to automate the builds for that architecture (such as via cross compilation) I will revisit this. Disappointed as I would have loved to include older models. You can still install AWD? from source as a NodeJS app.
from arewedown.
Related Issues (15)
- ICMP (Ping) possible? HOT 3
- SMTP Gmail configuration does not sem to work HOT 3
- Typo HOT 1
- Docker ARM image not working on QNAP ARM Cortex-A15 HOT 3
- custom root path HOT 2
- Feature Request : Telegram Notification Support
- Dashboard memory leak over time HOT 2
- ping from docker doesn't seem to work. HOT 6
- From Field via SMTP not populating correctly HOT 7
- Limit of monitoring? HOT 6
- Custom tests HOT 2
- Feedback on 0.3.0 HOT 1
- Feature Request: Shell command alert mechanism
- Docker 64bit armv8 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arewedown.