speedtest icon indicating copy to clipboard operation
speedtest copied to clipboard

The new troubleshooting general

Open adolfintel opened this issue 5 years ago • 292 comments

If you need troubleshooting, send me an email at [email protected], or use this thread. Please don't make new issues if you just need help.

adolfintel avatar Jun 30 '19 06:06 adolfintel

Why is it required to run a docker-compose build instead of just pulling the image from docker hub? Thanks!

majerus1223 avatar Jul 03 '19 18:07 majerus1223

@majerus1223 you can just pull the image, I should update the readme.

adolfintel avatar Jul 03 '19 18:07 adolfintel

One other thing to mention if you do not have a volume setup and use the docker-compose file you have listed you receive a 404. Not really sure what I should be passing to the volume. If you comment out the volumes the container will run fine from docker hub

volumes: - .:var/www/html

majerus1223 avatar Jul 03 '19 18:07 majerus1223

I must have messed it up when I did the last update. Do you want to send a PR to fix it?

adolfintel avatar Jul 03 '19 18:07 adolfintel

Im not sure if this is just me, but I've tried this speed test tool on a few websites, including my own web server, and each time the upload speed appears to be half of what is anticipated, or what is measured in other speed test tools. Am I missing something?

ryanbohn avatar Jul 03 '19 21:07 ryanbohn

@ryanbohn that's a new one for sure. Does this happen on my demo? What's the expected upload? What can you tell me about your setup? (OS, internet connection, browser, ...)

adolfintel avatar Jul 04 '19 03:07 adolfintel

@adolfintel it happens with Microsoft edge and internet explorer. Google chrome appears to be fine. Im running windows 10.

My internet connection is a enterprise grade 300d/300u and I see 300 on the download test, and about 150-170 on the upload to my providers speedtest site which is using your code: http://babylon.bb.telus.com/speedtest/

I also have your code running on my local web server, same issue. I have a 1gb link to it, and I get 1gb down and 380 up: https://rdcohelp.com/speedtest/

Your test server gives me 62 down and 22 up.

And as I mentioned, Chrome seems to work perfectly with all those sites, upload speed shows as it should.

ryanbohn avatar Jul 06 '19 22:07 ryanbohn

@ryanbohn I checked both your links and they seem to work fine on Firefox and IE11. I'm really not sure why you're having this problem, is hardware acceleration enabled?

adolfintel avatar Jul 07 '19 04:07 adolfintel

Hi,

I install but theTelemetry don't work.

I start a test and in Webpage don't have the result telemetry

do you have an idea of the problem ?

thank's

barto95100 avatar Jul 11 '19 12:07 barto95100

@barto95100 I need some information to help you:

  • What database are you using?
  • Did you configure telemetry_settings.php?
  • Did you import the database file (if necessary)?
  • Is the PHP module for your database installed and enabled in php.ini?

adolfintel avatar Jul 11 '19 16:07 adolfintel

Hi,

What database are you using? Mysql-server (MariaDB)

Did you configure telemetry_settings.php? YEs Telemetry is configured with login/password Root Account

Did you import the database file (if necessary)? Yes I import the telemetry_.......sql with this command -> mysql -uroot -p speedtest < telemetry_mysql.xxxxxx.sql

Is the PHP module for your database installed and enabled in php.ini?

the module is PHP7-mysql ?

barto95100 avatar Jul 11 '19 21:07 barto95100

@barto95100 run sudo phpenmod mysqli just to be sure that the module is enabled. Other than that it seems to be configured properly.

If that still doesn't work, look at the server logs to see what's happening.

Oh, and another thing, you are using one of the examples with telemetry enabled, right?

adolfintel avatar Jul 12 '19 04:07 adolfintel

I run the command :

root@speedtest:/home/barto# phpenmod mysqli root@speedtest:/home/barto#

I use the template example-singleServer-full.html -> var/www/html/index.html

I view the log access apache and I have a error of Mysqli "Access Deniad to Mysql"

The problem is resolve (password don't match to pasword mysql loooool

thank's :)

barto95100 avatar Jul 12 '19 07:07 barto95100

Hi Frederico,

Great project, thank you for sharing. Please, can you say if there is an easy way to limit access to your backends from only your frontend? Basically, so that only you can call your test servers and not someone else's front end.

Thanks so much

Simon

Si-Richards avatar Jul 22 '19 15:07 Si-Richards

@Si-Richards Hi, In all php files in the backend folder, you'll find

Access-Control-Allow-Origin: *

Replace the asterisk with a list of allowed domains in all files.

Keep in mind that this will break compatibility with older browsers.

adolfintel avatar Jul 22 '19 15:07 adolfintel

Is it possible to reverse proxy the docker install via Apache?

gerroon avatar Jul 30 '19 22:07 gerroon

@gerroon It should work, I haven't tried it myself though. You may have to edit getIP.php to get the original IP address from the header of the forwarded HTTP request.

adolfintel avatar Jul 31 '19 04:07 adolfintel

@adolfintel

Thanks I will try it.

gerroon avatar Jul 31 '19 14:07 gerroon

@adolfintel First off, thanks very much for the speed test. Very handy!

In the Share Results area I get a link, like the following, and a broken image icon on the web page. The link is non-functional. Is this an appropriate link or have I just misconfigured something? http://<SERVERFQDN>/results/?id=1b8yxxx

Lastly, I've like to leverage the log column in the speedtest table inside of MySQL. Is it feasible to add a single form field on the speedtest page that a user inputs their name into before starting the test so that the name is logged with the speedtest results in the DB? Thanks again for the help and the product!

ZeroCrash0 avatar Aug 01 '19 13:08 ZeroCrash0

@Malthesis

In the Share Results area I get a link, like the following, and a broken image icon on the web page. The link is non-functional. Is this an appropriate link or have I just misconfigured something? http:///results/?id=1b8yxxx

That's not normal. The image not appearing indicates a server error (you're probably missing FreeType2) and the link is supposed to say http://yourwebsite/results/?id=whatever. It's the first time someone reports a problem with the generation of the link, exactly how are you running the test? (server, browser, etc.)

Is it feasible to add a single form field on the speedtest page that a user inputs their name into before starting the test so that the name is logged with the speedtest results in the DB?

Yes you can, you just have to modify the frontend to make use of the extra field in the telemetry. See test parameters, specifically telemetry_extra.

adolfintel avatar Aug 01 '19 13:08 adolfintel

Thank you for the response. Sorry, for some reason, the paste didn't come through and that link you quoted is not the actual one. I'll try to past again. I think it is correct though given what you've said. http://speedtest.mydomain.com/results/?id=1b8y6cl That is actually what the link looks like and it gives me a 500 error when I try to use it.

ZeroCrash0 avatar Aug 01 '19 13:08 ZeroCrash0

@Malthesis Ok so the link generation is fine, you have a problem with the image generation itself. As I said, this is usually because you're missing FreeType2 in your PHP install. Check phpinfo to see if you have it.

adolfintel avatar Aug 01 '19 14:08 adolfintel

Ok, thank you @adolfintel

ZeroCrash0 avatar Aug 01 '19 15:08 ZeroCrash0

How should I change the timezone? I tried:

  1. Change the timezone in php.ini
  2. Change the timezone of my VPS

None of these worked.

Any help would be high appreciate!

Best regards!

yylzcom avatar Aug 19 '19 08:08 yylzcom

@yylzcom Timestamps are generated by the database. Specifically, since the timestamp field is of type timestamp, they are UTC timestamps. If you want to change that to your local timezone, simply change the type of that field to datetime.

adolfintel avatar Aug 19 '19 09:08 adolfintel

@adolfintel Thank you for your reply.

I will modify my code to display in my timezone. It is like stored unix timestamp and is OK for me.

Thank you for your amazing code!

Little tip for those who face same timezone problem: The timstamp stored in MySQL is utc time, it is stored without timezone. However, when fetch from the data base, it will adjust to the timezone according to mysql setting(Unix timestamp is still without timezone).

MySQL timestamp fetched: 2019-08-21 2:16pm (convert to timezone of MySql) Unix timestamp fetched: 1566397006 (without time zone)

mysql> SELECT @@global.time_zone, @@session.time_zone;
mysql> SELECT @@system_time_zone;

Above command help me understand better. After changing system timezone, try reboot machine and/or restart MySQL.

I made a page for my readers to have a overview of speedtest result. Date and time dispaly in GMT+8(Asia/Hongkong).

https://speedtest.gubo.org

yylzcom avatar Aug 19 '19 09:08 yylzcom

@adolfintel Thanks for the tool! Hi my deployment was very straight forward: 1- Clone repo 2- Switch to docker branch 3- docker-compose up

Couple of questions: 1- Is there documentation on basic configuration changes? I'm running it on a server on my network and connect to the server IP on port 8888 and launch the test and I get 1000 mb up/down and 1 ms ping. I assume there is somewhere I can update config to give it a speed test location? something like speedtest.net 2- Is it possible to automate the test to run at a scheduled interval? 3- Is there any support for graphing or plotting the data?

russmalloypers avatar Aug 21 '19 06:08 russmalloypers

@russmalloypers

1- Is there documentation on basic configuration changes?

Yes, all the documentation is in doc.md and on the wiki. What you're looking for is Multiple test points. The docker version is incomplete at the moment so you'll have to do a regular installation if you want to use it.

2- Is it possible to automate the test to run at a scheduled interval?

No, that is outside the scope of this test, this is meant for the end user who wants to test the speed of their internet connection. I recommend iperf if you want to do this.

3- Is there any support for graphing or plotting the data?

Yes, see example-singleServer-chart.html

adolfintel avatar Aug 21 '19 06:08 adolfintel

@adolfintel I've just installed the speedtest on CentOS 7 and is working very good, thanks for this great tool! The only issue I am facing is that whenever I press the start button it takes around 1 minute to actually start performing the test, do you know if there is any related configuration which I'm missing in order for it to start the test immediatly after you press the button?

robbychucky avatar Sep 05 '19 14:09 robbychucky

@robbychucky I think your problem is that getIP.php takes a long time to execute because it can't connect to ipInfo.io. Make sure your web server is allowed to connect.

adolfintel avatar Sep 05 '19 15:09 adolfintel