henrywhitaker3 / Speedtest-Tracker

Continuously track your internet speed
GNU General Public License v3.0
1.51k stars 121 forks source link

[BUG] #524

Closed Alcedema closed 3 years ago

Alcedema commented 3 years ago

Just pulled latest-arm and although I connect to the webui, it hangs on the loading animation.

I've noticed that the time/date is now completely off.

Compose:

    container_name: speedtest
    image: henrywhitaker3/speedtest-tracker:latest-arm
    ports:
      - 8765:80
    volumes:
      - /etc/docker/speedtest:/config
    environment:
      - TZ=Europe/London
      - PGID=100
      - PUID=1001
      - OOKLA_EULA_GDPR=true
      - AUTH=true
    logging:
      driver: "json-file"
      options:
        max-file: "10"
        max-size: "200k"
    restart: unless-stopped

Logs:

2106/01/21 13:44:24 [error] 436#436: *43 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.1.105, server: _, request: "GET /files/icons/fav/apple-icon-180x180.png HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.6:8765", referrer: "http://192.168.1.6:8765/"
root@Media:/etc/docker/speedtest/log/nginx#

Nothing untoward in container logs:

Attaching to speedtest
speedtest       | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
speedtest       | [s6-init] ensuring user provided files have correct perms...exited 0.speedtest       | [fix-attrs.d] applying ownership & permissions fixes...
speedtest       | [fix-attrs.d] done.
speedtest       | [cont-init.d] executing container initialization scripts...
speedtest       | [cont-init.d] 01-envfile: executing... 
speedtest       | [cont-init.d] 01-envfile: exited 0.
speedtest       | [cont-init.d] 10-adduser: executing... 
speedtest       | 
speedtest       | -------------------------------------
speedtest       |           _         ()
speedtest       |          | |  ___   _    __
speedtest       |          | | / __| | |  /  \ 
speedtest       |          | | \__ \ | | | () |
speedtest       |          |_| |___/ |_|  \__/
speedtest       | 
speedtest       | 
speedtest       | Brought to you by linuxserver.io
speedtest       | -------------------------------------
speedtest       | 
speedtest       | To support LSIO projects visit:
speedtest       | https://www.linuxserver.io/donate/
speedtest       | -------------------------------------
speedtest       | GID/UID
speedtest       | -------------------------------------
speedtest       | 
speedtest       | User uid:    1001
speedtest       | User gid:    100
speedtest       | -------------------------------------
speedtest       | 
speedtest       | [cont-init.d] 10-adduser: exited 0.
speedtest       | [cont-init.d] 20-config: executing... 
speedtest       | [cont-init.d] 20-config: exited 0.
speedtest       | [cont-init.d] 30-keygen: executing... 
speedtest       | using keys found in /config/keys
speedtest       | [cont-init.d] 30-keygen: exited 0.
speedtest       | [cont-init.d] 40-config: executing... 
speedtest       | Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb
speedtest       | [cont-init.d] 40-config: exited 0.
speedtest       | [cont-init.d] 50-speedtest: executing... 
speedtest       | Copying latest site files to config
speedtest       | Database file exists
speedtest       | Env file exists
speedtest       | Running database migrations
speedtest       | Nothing to migrate.
speedtest       | App key exists
speedtest       | JWT secret exists
speedtest       | Slack webhook is unset
speedtest       | Telegram chat id and bot token unset
speedtest       | Base path is unset
speedtest       | AUTH variable set. Enabling authentication
speedtest       | Enabling authentication
speedtest       | Clearing old jobs from queue
speedtest       | [cont-init.d] 50-speedtest: exited 0.
speedtest       | [cont-init.d] 99-custom-files: executing... 
speedtest       | [custom-init] no custom files found exiting...
speedtest       | [cont-init.d] 99-custom-files: exited 0.
speedtest       | [cont-init.d] done.
speedtest       | [services.d] starting services
speedtest       | [services.d] done.

Docker version 20.10.5, build 55c4c88

Alcedema commented 3 years ago

I've removed the current config, started from scratch and now every time exits with this:

speedtest       | writing new private key to '/config/keys/cert.key'
speedtest       | -----
speedtest       | 4156511120:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
speedtest       | [cont-init.d] 30-keygen: exited 1.
speedtest       | [cont-finish.d] executing container finish scripts...
speedtest       | [cont-finish.d] done.
speedtest       | [s6-finish] waiting for services.
speedtest       | [s6-finish] sending all processes the TERM signal.
speedtest       | [s6-finish] sending all processes the KILL signal and exiting.
Alcedema commented 3 years ago

Same for dev-arm

rumd3x commented 3 years ago

I'm also having trouble with the ARM image, and it seems to be related to this issue. But in my case I cant even start the container, it gives error 1995940752:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:.

Here's the full log:

pi@D3XPI:~ $ docker logs speedtest 
[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... 
usermod: no changes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Your DockerHost is most likely running an outdated version of libseccomp

To fix this, please visit https://docs.linuxserver.io/faq#libseccomp

Some apps might not behave correctly without this

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    911
User gid:    911
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
generating self-signed keys in /config/keys, you can replace these with your own keys if required
Generating a RSA private key
....+++++
...+++++
writing new private key to '/config/keys/cert.key'
-----
1995940752:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
[cont-init.d] 30-keygen: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
henrywhitaker3 commented 3 years ago

Will have a look at this either tomorrow or Thursday

NeoTrace82 commented 3 years ago

Same issue here, don't want to stress you but have you looked into it?

today at 10:29  -------------------------------------
today at 10:29            _         ()
today at 10:29           | |  ___   _    __
today at 10:29           | | / __| | |  /  \ 
today at 10:29           | | \__ \ | | | () |
today at 10:29           |_| |___/ |_|  \__/
today at 10:29  
today at 10:29  
today at 10:29  Brought to you by linuxserver.io
today at 10:29  -------------------------------------
today at 10:29  
today at 10:29  To support LSIO projects visit:
today at 10:29  https://www.linuxserver.io/donate/
today at 10:29  -------------------------------------
today at 10:29  GID/UID
today at 10:29  -------------------------------------
today at 10:29  
today at 10:29  User uid:    998
today at 10:29  User gid:    100
today at 10:29  -------------------------------------
today at 10:29  
today at 10:29  [cont-init.d] 10-adduser: exited 0.
today at 10:29  [cont-init.d] 20-config: executing... 
today at 10:29  [cont-init.d] 20-config: exited 0.
today at 10:29  [cont-init.d] 30-keygen: executing... 
today at 10:29  generating self-signed keys in /config/keys, you can replace these with your own keys if required
today at 10:29  Generating a RSA private key
today at 10:29  ...........................................................................+++++
today at 10:29  .......................................................+++++
today at 10:29  writing new private key to '/config/keys/cert.key'
today at 10:29  -----
today at 10:29  4152931216:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
today at 10:29  [cont-init.d] 30-keygen: exited 1.
today at 10:29  [cont-finish.d] executing container finish scripts...
today at 10:29  [cont-finish.d] done.
today at 10:29  [s6-finish] waiting for services.
today at 10:29  [s6-finish] sending all processes the TERM signal.
today at 10:29  [s6-finish] sending all processes the KILL signal and exiting.
today at 10:29 Container stopped
henrywhitaker3 commented 3 years ago

Haven't had the time to have a look yet. Have just triggered a rebuild to see if that sorts it (give it ~10 mins). Have just found this which points to dependencies on the pi itself potentially being the issue https://github.com/alpinelinux/docker-alpine/issues/110

Alcedema commented 3 years ago

Haven't had the time to have a look yet. Have just triggered a rebuild to see if that sorts it (give it ~10 mins). Have just found this which points to dependencies on the pi itself potentially being the issue alpinelinux/docker-alpine#110

Thanks, this was it. To update libseccomp2 to 2.4.4 I ran the following on the host and now works perfectly:

apt-get install libseccomp2/buster-backports
corasaniti commented 3 years ago

Hi guys, someone help me? If I run the command

sudo apt-get install libseccomp2/buster-backports

pi@twisteros:~ $ sudo apt-get install libseccomp2/buster-backports
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'buster-backports' for 'libseccomp2' was not found

I use Twister OS that is a Debian based distro...

pi@twisteros:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

The prevoius version of speed tracker works. Please help me. Thanks Piero

corasaniti commented 3 years ago

Thanks, this was it. To update libseccomp2 to 2.4.4 I ran the following on the host and now works perfectly:

@Alcedema Hi, how did you update the library libseccomp2 to 2.4.4 for your raspbery Raspian buster? Thanks