librespeed / speedtest-go

Go backend for LibreSpeed
GNU Lesser General Public License v3.0
700 stars 152 forks source link

No Test Results ID being display #31

Open fitchtravis opened 2 years ago

fitchtravis commented 2 years ago

Description

Missing share results and test_id after a speedtest run

After a speedtest run the older versions used to display something like

Share results Test ID: 01FG7XB4PS50W16J7N5F12BAGY

And a reference back to the test result http://xxx.xxx.xxx.xxx:8080/results/?id=01FG7XB4PS50W16J7N5F12BAGY

With the latest version, this is no longer the behaviour

maddie commented 2 years ago

What's the database type you've configured in the settings.toml?

fitchtravis commented 2 years ago

From settings.toml

# database type for statistics data, currently supports: none, memory, bolt, mysql, postgresql # if none is specified, no telemetry/stats will be recorded, and no result PNG will be generated database_type="bolt" database_hostname="" database_name="" database_username="" database_password=""

# if you use bolt as database, set database_file to database file location database_file="speedtest.db"

maddie commented 2 years ago

The data store logic for bolt type hasn't been changed in the last few commits. Can you confirm if there's any error being printed in the backend program or frontend console?

EDIT: A quick local test with the same database configuration works just fine:

image

Also check the frontend to see if it actually has the PNG output section.

fitchtravis commented 2 years ago

Getting back to this, after a very busy period IRL ... I forgot to mention that I'm running this under docker

From the screenshot below, I dont see the Test Result ID being display image

And there is nothing in the container logs to indicate any issues

image