linuxserver / docker-librespeed

GNU General Public License v3.0
76 stars 9 forks source link

Results don't work with MySQL (pdo_mysql driver not loaded) #17

Closed bvmensvoort closed 1 year ago

bvmensvoort commented 2 years ago

linuxserver.io

The results page does work in SQLite, but doesn't with MySQL. Error message shows 'could not find driver'.


Expected Behavior

When loading results/stats.php and logging in with web password, I expect a message that no results exist or a list of results.

Current Behavior

Instead a (general) error message is shown.

When using MySQL environment vars and dbtype mysql, an error message appears (when turning on error_reporting): Error could not find driver. When looking in Google, I stumble upon [https://stackoverflow.com/questions/2852748/pdoexception-could-not-find-driver](). And indeed in /etc/php7/php.ini the extension=pdo_mysql is commented. I wasn't able to test this solution, unfortunately. But it looks spot on.

Steps to Reproduce

  1. Use docker image
  2. For environment variables: all MySQL variables and dbtype=mysql
  3. open /result/stats.php

Environment

OS: Docker CPU architecture: arm64 How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Via Docker Swarm, with compose file and image: linuxserver/librespeed:arm64v8-5.2.5 Using, among others:

Docker logs

no relevant logging after the container is started. Not even when visiting /results/stats.php

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

github-actions[bot] commented 2 years ago

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.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity