It does not work on OrangePi (aarch64) architectures
hufhend opened this issue · 7 comments
Expected Behavior
It works on my x86_64 laptop, I would expect it to work the same way on aarch64
Current Behavior
The build occurs and the container even runs, but the data is not displayed
Steps to Reproduce
- mkdir config data
- docker-compose up -d
Environment
OS: GNU/Linux Armbian 21.08.6 Buster
CPU architecture: aarch64, arm64
How docker service was installed: Docker version 20.10.12, build e91ed57, Docker Compose version v2.0.0
Command used to create docker container (run/create/compose/screenshot)
cat docker-compose.yml
version: "2.1"
services:
smokeping:
# build:
# context: .
# dockerfile: Dockerfile
image: ghcr.io/linuxserver/smokeping
container_name: smokeping
hostname: Kundratice
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Prague
- PGTZ=Europe/Prague
- VIRTUAL_PORT=80
# - LETSENCRYPT_TEST=true
- VIRTUAL_HOST=smokeping.kundratice.medvisek.cz
- LETSENCRYPT_HOST=smokeping.kundratice.medvisek.cz
- LETSENCRYPT_EMAIL=hufhendr@gmail.com
volumes:
- "$PWD/config:/config"
- "$PWD/data:/data"
# expose:
# - "80"
ports:
- "82:80"
restart: always
Docker logs
docker exec -it 03dc69da601d /bin/bash
root@Kundratice:/# curl localhost
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
root@Kundratice:/#
Unfortunately, there is nothing special in the logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
'Alerts' -> '/config/Alerts'
'Database' -> '/config/Database'
'General' -> '/config/General'
'Presentation' -> '/config/Presentation'
'Probes' -> '/config/Probes'
'Slaves' -> '/config/Slaves'
'Targets' -> '/config/Targets'
'pathnames' -> '/config/pathnames'
'ssmtp.conf' -> '/config/ssmtp.conf'
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.31.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.31.0.2. Set the 'ServerName' directive globally to suppress this message
docker logs nginx-proxy from acme-companion
nginx.1 | smokeping.kundratice.medvisek.cz 192.168.7.196 - - [28/Dec/2021:11:15:12 +0000] "GET / HTTP/2.0" 502 157 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "172.20.0.11:80"
nginx.1 | 2021/12/28 11:15:12 [error] 590#590: *8651 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.7.196, server: smokeping.kundratice.medvisek.cz, request: "GET /favicon.ico HTTP/2.0", upstream: "http://172.20.0.11:80/favicon.ico", host: "smokeping.kundratice.medvisek.cz", referrer: "https://smokeping.kundratice.medvisek.cz/"
I've got it working fine on RPi aarch64 so I don't think there's any inherent issue with 64-bit arm, but there may be something specific to your setup or to OrangePi hardware.
Do you see the same behaviour with
docker run -d --rm --name=smoketest --tmpfs /config -p 82:80 lscr.io/linuxserver/smokeping:latest
?
So I did it this way and unfortunately, it still doesn't work
WARNING: Hostname 'ipv6.google.com' does currently not resolve to an IPv4 address
### assuming you are using an fping copy reporting in milliseconds
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
Smokeping version 2.007003 successfully launched.
Entering multiprocess mode.
### parsing dig output...OK
Child process 357 started for probe FPing.
FPing: probing 25 targets with step 300 s and offset 175 s.
Child process 358 started for probe FPing6.
FPing6: probing 1 targets with step 300 s and offset 127 s.
Child process 359 started for probe DNS.
All probe processes started successfully.
DNS: probing 9 targets with step 300 s and offset 224 s.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[then the same thing over and over again]
docker exec -it smoketest /bin/bash
root@3737e0111619:/# curl localhost
curl: (7) Failed to connect to localhost port 80 after 0 ms: Connection refused
root@3737e0111619:/#
I got an error from the container from /var/log/apache2/error.log
[Wed Dec 29 20:37:48.333523 2021] [fcgid:emerg] [pid 7916] (38)Function not implemented: mod_fcgid: Can't create shared memory for size 1200712 bytes
How much RAM does the device have?
It has 1GB RAM and 4GB SWAP, it should be enough http://www.orangepi.org/Orange%20Pi%20Zero2/
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
d3992692bd4f smokeping 37.77% 43.18MiB / 964.6MiB 4.48% 15.8kB / 17.6kB 46.1MB / 7.3MB 7
4dd788286532 prometheus 1.53% 32.96MiB / 964.6MiB 3.42% 152MB / 20.6MB 2.24GB / 160MB 11
892847dcbd6f pushgateway 0.00% 9.188MiB / 964.6MiB 0.95% 2.78MB / 8.05MB 374MB / 5.84MB 11
8206757b1584 grafana 0.02% 23.7MiB / 964.6MiB 2.46% 24MB / 68.9MB 2.38GB / 53.7MB 14
12f598deecd1 alertmanager 0.26% 9.152MiB / 964.6MiB 0.95% 1.08MB / 0B 594MB / 2.86MB 10
a9fd74c92a83 openvpn 0.00% 444KiB / 964.6MiB 0.04% 2.25MB / 1.93MB 11.5MB / 0B 1
62ca854bf4ee nginx-proxy-acme 0.46% 8.73MiB / 964.6MiB 0.91% 6.34MB / 1.29MB 1.74GB / 54.5MB 13
87c9881ebd36 pihole 1.00% 20.91MiB / 964.6MiB 2.17% 28.1MB / 41.5MB 13.1GB / 839MB 21
a4cc2754e04e unifi-controller 4.18% 122.3MiB / 964.6MiB 12.68% 180MB / 131MB 29.1GB / 1.98GB 136
dc8c77a8065b nginx-proxy 2.04% 30.76MiB / 964.6MiB 3.19% 316MB / 322MB 3.22GB / 111MB 26
d69dffc890b3 tor 0.02% 68.04MiB / 964.6MiB 7.05% 6.94GB / 7.01GB 13.7GB / 1.82GB 19
b09018d33a6f node-exporter 0.00% 12.78MiB / 964.6MiB 1.32% 50MB / 824MB 5.2GB / 170MB 23
b70278a8ec07 snmp-exporter 15.86% 18.7MiB / 964.6MiB 1.94% 3.34GB / 1.78GB 3.62GB / 166MB 11
The googling I've done suggests a CPU or kernel limitation that might be causing it but I've not found anything specifically related to OrangePi hardware. I don't think there's anything wrong with the container configuration at any rate.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.