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

Synology docker container: download speed is always 0 #613

Closed
zypA13510 opened this issue Apr 15, 2024 · 6 comments · Fixed by #617
Closed

Synology docker container: download speed is always 0 #613

zypA13510 opened this issue Apr 15, 2024 · 6 comments · Fixed by #617

Comments

@zypA13510
Copy link
Contributor

zypA13510 commented Apr 15, 2024

Description

I run librespeed via docker-compose. When I run the speedtest, the download speed is always 0 but upload is normal.

In the network panel, garbage.php would all fail with (canceled) on Chrome or (aborted) on Firefox.
But opening the garbage.php request in a new tab works (it begins downloading a file called random.dat).

The same setup works fine if reverted to previous image version adolfintel/speedtest:latest (sha256:1f828fe8337470d2ed5841176bfa6633fd94bda97261a636c35d0bef60a35270). It also works on GCP using the new image.

image Google Compute Engine / Debian 12 Synology / DiskStation Manager 7 (Linux 4.4 x86_64)
adolfintel/speedtest (not tested)
ghcr.io/librespeed/speedtest

Additionally, I've compared the docker log from both image when running on the same Synology server, I noticed that on the old image, as soon as the test goes to the download step, there will be multiple log entries containing "garbage.php" printed. Whereas on the new image, the "garbage.php" logs only appear after the download test ended with 0 Mbit/s result and before the upload test.

Looks like a compatibility/regression issue?

Server

docker-compose.yml

version: "3.7"
services:
  librespeed:
    image: ghcr.io/librespeed/speedtest
    environment:
      MODE: standalone
    restart: unless-stopped
    ports:
      - 5202:80

Docker version 20.10.23, build 876964a
Docker Compose version v2.9.0-6413-g38f6acd
Using Synology Container Manager as a frontend for docker, but I don't think it's any different than running docker in CLI.

Client

Tested on Chrome v126, Firefox v126, Edge v123, Edge v124, neither of which worked.
Windows 11 23H2 build 22631.3447

Steps to reproduce

  1. On the server side, create docker-compose.yml as above.
  2. Start the docker-compose project.
  3. On the client side, go to http://<IP>:5202 in the browser
  4. Click start button to begin speedtest.

Expected behaviour

Download speed is non-zero.

Screenshots

image

@msalmasi
Copy link

Can confirm I have the same issue running in docker. Also on Synology if that somehow makes a difference, but I am using CLI to manage containers.

@zypA13510
Copy link
Contributor Author

I cannot reproduce it on GCP with Debian 12. Seems like it may be a Synology-specific issue, or it could be related to software version/configuration.

@zypA13510
Copy link
Contributor Author

On Chrome/Firefox, the issue is the same. But the network panel gives "(canceled)" as the reason.
I tried to open the xhr request URL (garbage.php) in a new tab, it works normally - it starts downloading a file called random.dat.
@adolfintel any idea why? What can I do to troubleshoot this issue?

@kimsonvu
Copy link

kimsonvu commented May 1, 2024

Same story here after i moveDocker from Synology DS218+ to DS1621+. I don't know why.

@zypA13510
Copy link
Contributor Author

zypA13510 commented May 5, 2024

Some additional information: the docker image adolfintel/speedtest:latest (I suppose it is a previous version) works fine. This issue only affects the GitHub image ghcr.io/librespeed/speedtest:latest.

@zypA13510 zypA13510 changed the title Download speed always 0 when running in docker Synology docker container: download speed is always 0 May 5, 2024
@kimsonvu
Copy link

kimsonvu commented May 5, 2024

Some additional information: the docker image adolfintel/speedtest:latest (I suppose it is a previous version) works fine. This issue only affects the GitHub image ghcr.io/librespeed/speedtest:latest.

Thanks to share this detail. I confirm that it work well with me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants