[Support] Linuxserver.io - Librespeed


Recommended Posts

linuxserver_medium.png?v=4&s=4000

 

Application Name: Librespeed
Application Site: https://github.com/librespeed/speedtest
Docker Hub: https://hub.docker.com/r/linuxserver/librespeed/
Github: https://github.com/linuxserver/docker-librespeed

 

Please post any questions/issues relating to this docker you have in this thread.

If you are not using Unraid (and you should be!) then please do not post here, rather use the linuxserver.io forum for support.

Link to comment

Tried it out.. seems nearly useless/pointless in it's current state.  To make use of this docker it would seem that you should configure it with more arguments as seen here https://github.com/librespeed/speedtest/blob/docker/doc.md

 

Also, it would seem that it takes some amount of customization to get working in the first place... there appears to be no servers configured by default to run a speed test against.  So hmm.. more work and effort involved than it might be worth just for a speed test.

 

The privacy policy leaves much to be desired.  It's unclear whether or not the TELEMETRY option turns off all the data collection mentioned in the privacy policy.

Link to comment
8 hours ago, Energen said:

Tried it out.. seems nearly useless/pointless in it's current state.  To make use of this docker it would seem that you should configure it with more arguments as seen here https://github.com/librespeed/speedtest/blob/docker/doc.md

 

Also, it would seem that it takes some amount of customization to get working in the first place... there appears to be no servers configured by default to run a speed test against.  So hmm.. more work and effort involved than it might be worth just for a speed test.

 

The privacy policy leaves much to be desired.  It's unclear whether or not the TELEMETRY option turns off all the data collection mentioned in the privacy policy.

What exactly is needed in your opinion?

 

Telemetry isn't anything we added, so you have to talk to the librespeed devs about that one.

Link to comment

Maybe I'm misunderstanding but this is a selfhosted speedtest application that you and other users can test the speed to the server it's installed on. Any telemetry is stored on YOUR server. e.g. http://192.168.1.34:8264/results/stats.php There you can see the telemetry data that is mentioned. 

Edited by GilbN
Link to comment
1 hour ago, saarg said:

What exactly is needed in your opinion?

 

Telemetry isn't anything we added, so you have to talk to the librespeed devs about that one.

What is needed, or at least what would be extremely nice, is to be able to just install the template and run it .. out of the box, so to say.  I mean having to track down and then configure your own servers to run speed tests against is not good..  why have a working docker template that doesn't do anything?

 

I have no need for a speed test docker.. so I installed it just to check it out because it was new... found that it doesn't work.  Delete.  That's what most people are going to do.

 

Scanning through the librespeed doc file, apparently you need to add files to the server (appdata folder?) that are not included with this docker but are in the github



To install the speedtest frontend, copy the following files to your web server:

speedtest.js

speedtest_worker.js

Optionally, the results folder

 

Wait a minute... hold the horses... I was under the impression that this was a normal speed test docker.. but after some more reading this is not a standalone speed test application... it's a server/client setup.  That changes everything.

 

Test backends: the servers used to actually perform the test. There can be 1+ of these, and they only host the backend files.

 



Test backends

These are the servers that will actually be used to perform the test.

To install a backend, simply copy all the files in the backend folder to your backend server.

 

So this app is only for speedtests between multiple servers that you have access to for installing/configuring the backend stuff, or have access to the ip information for from other people running the backend servers.

 

Librespeed is a very lightweight Speedtest implemented in Javascript, using XMLHttpRequest and Web Workers. No Flash, No Java, No Websocket,

No Bullshit.

 

Perhaps that description needs to be changed to reflect that you can't just install this and run speedtests like Speedtest.net (my impression when seeing it).

Link to comment
1 hour ago, Energen said:

What is needed, or at least what would be extremely nice, is to be able to just install the template and run it .. out of the box, so to say.  I mean having to track down and then configure your own servers to run speed tests against is not good..  why have a working docker template that doesn't do anything?

 

I have no need for a speed test docker.. so I installed it just to check it out because it was new... found that it doesn't work.  Delete.  That's what most people are going to do.

 

Scanning through the librespeed doc file, apparently you need to add files to the server (appdata folder?) that are not included with this docker but are in the github

 

 

 

Wait a minute... hold the horses... I was under the impression that this was a normal speed test docker.. but after some more reading this is not a standalone speed test application... it's a server/client setup.  That changes everything.

 

 

 

 

 

 

 

So this app is only for speedtests between multiple servers that you have access to for installing/configuring the backend stuff, or have access to the ip information for from other people running the backend servers.

 

 

 

 

Perhaps that description needs to be changed to reflect that you can't just install this and run speedtests like Speedtest.net (my impression when seeing it).

This is a speedtest server that is selfhosted and is used to test the connection between the user accessing the server and the server.

 

  • Thanks 1
Link to comment
  • 4 months later...

I can't seem to get my librespeed proxy working in swag... I noticed that my host port is 3333 (my preference) and the container port needs to be 80 to work. So I can get to it from UNRAIDSERVER:3333 locally, but through the proxy librespeed.subdomain.com results in a bad gateway. Any idea why?

 

 


    server_name librespeed.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app librespeed;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

 

Link to comment
2 hours ago, bigbangus said:

I can't seem to get my librespeed proxy working in swag... I noticed that my host port is 3333 (my preference) and the container port needs to be 80 to work. So I can get to it from UNRAIDSERVER:3333 locally, but through the proxy librespeed.subdomain.com results in a bad gateway. Any idea why?

 

 



    server_name librespeed.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app librespeed;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

 

Did you use the same custom bridge for librespeed as you use for swag?

  • Thanks 1
Link to comment
10 hours ago, bigbangus said:


Yes... the same “proxynet” I use for all my dockers behind the reverse proxy. 

 

Does it have something to do with the fact that librespeed has a container port different from the host port?

That's the host port and not the one used in swag. Swag talks directly to the container using the container port.

Post your docker run command.

  • Thanks 1
Link to comment
  • 2 weeks later...

Hi,

 

I don't see Download results.

Progress bar is grow up when download is tested, but always show 0.00 as result. Upload speed is ok.

After ~20 tests I see big files an patch \appdata\librespeed\log\nginx

access.log = 36MB

error.log = 82MB

Every test adds few MB for each file.

 

Access logs: 

10.xx.xx.xx - - [28/Feb/2021:14:33:07 +0100] "GET /backend/garbage.php?r=0.46221209264303265&ckSize=100 HTTP/1.1" 500 5 "http://10.xx.xx.xx:3002/speedtest_worker.js?r=0.6029260239670162" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36"

 

Error logs:

#0 /usr/share/webapps/librespeed/backend/garbage.php(53): getChunkCount()
#1 {main}
  thrown in /usr/share/webapps/librespeed/backend/garbage.php on line 15" while reading response header from upstream, client: 10.xx.xx.xx, server: _, request: "GET /backend/garbage.php?r=0.8301026199060471&ckSize=100 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "10.xx.xx.xx:3002", referrer: "http://10.xx.xx.xx:3002/speedtest_worker.js?r=0.6029260239670162"
2021/02/28 14:33:07 [error] 342#342: *4613 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function ctype_digit() in /usr/share/webapps/librespeed/backend/garbage.php:15
Stack trace:
 

Any advice?

Link to comment
  • 2 years later...

I love this container. It's a great way to test my connection to my unraid server. 

 

I wanted to customize the UI a bit though. I tried updating the index.html file in /config/www/ and they're not taking. I cleared the cache and history in my browsers, and nothing. Am I updating the wrong HTML file?

Edited by yujkore
Grammar
Link to comment
  • 2 weeks later...

Never mind; I figured it out. I found that there's a "www" folder within the "app" directory that needed to be modified. I had to use docker exec to copy files from my config folder.

 

I do, however, have to make this a housekeeping item for whenever I update the container. Anything that doesn't have a mounted volume is overwritten during an update. #userscriptsftw.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.