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

Issues with docker alpine image #664

Open
Phhere opened this issue Sep 18, 2024 · 4 comments
Open

Issues with docker alpine image #664

Phhere opened this issue Sep 18, 2024 · 4 comments
Assignees
Labels
bug Confirmed Docker fixed but not released Issue is fixed in some branch or commit but not yet in main branch

Comments

@Phhere
Copy link

Phhere commented Sep 18, 2024

Description

Some php extensions are missing and some features are broken

Server

Debian 12 Server with latest alpine image

Client

Browser, OS, type of connection, unusual software, ...

Steps to reproduce

  • run container

Expected behaviour

Stats should be saved and results/stats.php should work

Logs

[Wed Sep 18 20:26:49.174960 2024] [php:error] [pid 24:tid 24] [client 130.226.71.21:54899] PHP Fatal error:  Uncaught Error: Class "PDO" not found in /var/www/html/results/telemetry_db.php:32\nStack trace:\n#0 /var/www/html/results/telemetry_db.php(179): getPdo()\n#1 /var/www/html/results/telemetry.php(38): insertSpeedtestUser()\n#2 {main}\n  thrown in /var/www/html/results/telemetry_db.php on line 32, referer: http://speedtest.hhu.de/speedtest_worker.js?r=0.3096700804744398
[Wed Sep 18 20:27:43.352163 2024] [php:error] [pid 26:tid 26] [client 134.99.4.16:54232] PHP Fatal error:  Uncaught Error: Call to undefined function session_start() in /var/www/html/results/stats.php:2\nStack trace:\n#0 {main}\n  thrown in /var/www/html/results/stats.php on line 2


@sstidl
Copy link
Collaborator

sstidl commented Sep 19, 2024

Please tell us the docker compose file or command line how you start the container

@Phhere
Copy link
Author

Phhere commented Sep 19, 2024

I used this docker-compose file

speedtest# cat docker-compose.yml 
version: '3.7'
services:
  speedtest:
    container_name: speedtest
    image: ghcr.io/librespeed/speedtest:latest-alpine
    restart: always
    environment:
      MODE: standalone
      TITLE: "HHU-Speedtest"
      TELEMETRY: "true"
      #ENABLE_ID_OBFUSCATION: "false"
      #REDACT_IP_ADDRESSES: "false"
      PASSWORD: "redacted"
      EMAIL: "redacted@test"
      #DISABLE_IPINFO: "false"
      #IPINFO_APIKEY: "your api key"
      #DISTANCE: "km"
      #WEBPORT: 80
    volumes:
      - $PWD/db-dir:/database
    ports:
      - "80:80" # webport mapping (host:container)

@sstidl sstidl changed the title Issues with docker apline image Issues with docker alpine image Sep 20, 2024
@sstidl sstidl self-assigned this Sep 20, 2024
@sstidl
Copy link
Collaborator

sstidl commented Sep 20, 2024

Bug confirmed.

Some dependencies are missing in alpine based image.

@sstidl
Copy link
Collaborator

sstidl commented Oct 26, 2024

0c31f1d should fix this

@sstidl sstidl added the fixed but not released Issue is fixed in some branch or commit but not yet in main branch label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed Docker fixed but not released Issue is fixed in some branch or commit but not yet in main branch
Projects
None yet
Development

No branches or pull requests

2 participants