Netmetr Download Data stopped working

Hello, my 2 Omnia can’t download any netmetr data since yesterday. It seems like some webservice is down (see log).

Test itself seems to work as results show up on netmetr website after entering sync code.

Log:

root@MarPort:~# netmetr --dwlhist --debug

[Ommited everything exept step below]

Downloading measurement history from the control server.
{
“language”: null,
“timezone”: “CET”,
“result_limit”: “10”,
“uuid”: “XXX”
}
Traceback (most recent call last):
File “/usr/bin/netmetr”, line 9, in
load_entry_point(‘netmetr==1.4’, ‘console_scripts’, ‘netmetr’)()
File “/usr/lib/python3.6/site-packages/netmetr/main.py”, line 839, in main
netmetr.download_history()
File “/usr/lib/python3.6/site-packages/netmetr/main.py”, line 353, in download_history
resp_json = self.send_request(req_json, ‘history’)
File “/usr/lib/python3.6/site-packages/netmetr/main.py”, line 85, in send_request
resp = request.urlopen(req, data.encode(), context=ctx)
File “/usr/lib/python3.6/urllib/request.py”, line 223, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib/python3.6/urllib/request.py”, line 532, in open
response = meth(req, response)
File “/usr/lib/python3.6/urllib/request.py”, line 642, in http_response
‘http’, request, response, code, msg, hdrs)
File “/usr/lib/python3.6/urllib/request.py”, line 570, in error
return self._call_chain(*args)
File “/usr/lib/python3.6/urllib/request.py”, line 504, in _call_chain
result = func(*args)
File “/usr/lib/python3.6/urllib/request.py”, line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

EDIT: My 2 Omnia’s are located in 2 diffrent locations with own Internetaccess in 2 diffrent cities, so I don’t believe it’s related to my own network setup…
EDIT2: Turris OS version 3.11.2

1 Like

Yes, after end test (uplink) … come error mesage “Testování… CHYBA”

image

BusyBox v1.29.3 () built-in shell (ash)

  _______  _    _  _____   _____   _____   _____
 |__   __|| |  | ||  __ \ |  __ \ |_   _| / ____|
    | |   | |  | || |__) || |__) |  | |  | (___
    | |   | |  | ||  _  / |  _  /   | |   \___ \
    | |   | |__| || | \ \ | | \ \  _| |_  ____) |
    |_|    \____/ |_|  \_\|_|  \_\|_____||_____/



root@Omnia:~# mc

root@Omnia:~# netmetr --dwlhist --debug
Checking uuid on the control server...
Test settings request:
{
  "uuid": "fa194aa2-91e1-4258-90a9-664dbeb57d7a",
  "language": null,
  "timezone": "CET",
  "name": "RMBT",
  "terms_and_conditions_accepted": "true",
  "type": "DESKTOP",
  "version_code": "1",
  "version_name": "1.0"
}
Test settings response:
{
  "settings": [
    {
      "urls": {
        "url_ipv6_check": "https://control-6.netmetr.cz/RMBTControlServer/ip",
        "control_ipv4_only": "control-4.netmetr.cz",
        "url_ipv4_check": "https://control-4.netmetr.cz/RMBTControlServer/ip",
        "control_ipv6_only": "control-6.netmetr.cz"
      },
      "qostesttype_desc": [
        {
          "name": "DNS",
          "test_type": "DNS"
        },
        {
          "name": "Non Transparent Proxy",
          "test_type": "NON_TRANSPARENT_PROXY"
        },
        {
          "name": "HTTP Proxy",
          "test_type": "HTTP_PROXY"
        },
        {
          "name": "Website",
          "test_type": "WEBSITE"
        },
        {
          "name": "UDP",
          "test_type": "UDP"
        },
        {
          "name": "TCP",
          "test_type": "TCP"
        }
      ],
      "versions": {
        "control_server_version": "master_2.0.83-CZ_0.9.28-80-ga9acf33"
      },
      "history": {
        "devices": [
          "Opera",
          "Turris",
          "Turris Omnia"
        ],
        "networks": [
          "LAN"
        ]
      }
    }
  ],
  "error": []
}
Requesting test config from the control server...
Test testRequest request
{
  "client": "HW-PROBE",
  "language": null,
  "time": "1553090121000",
  "timezone": "CET",
  "type": "DESKTOP",
  "uuid": "fa194aa2-91e1-4258-90a9-664dbeb57d7a",
  "version": "0.1",
  "version_code": "1"
}
Test testRequest response:
{
  "user_server_selection": false,
  "test_server_address": "speed-4.netmetr.cz",
  "test_server_port": 8081,
  "test_server_name": "CZ.NIC (Prague)",
  "test_server_encryption": false,
  "test_server_type": "RMBT",
  "test_duration": "5",
  "test_numthreads": "3",
  "test_numpings": "10",
  "client_remote_ip": "93.91.50.207",
  "result_url": "https://control.netmetr.cz/RMBTControlServer/result",
  "result_qos_url": "https://control.netmetr.cz/RMBTControlServer/resultQoS",
  "test_token": "21389fdb-b50f-493c-acee-f9c62ff831a8_1553090121_OYFcFaCNvc9i9B7AyDuo9lU76mM=",
  "test_uuid": "21389fdb-b50f-493c-acee-f9c62ff831a8",
  "test_id": 3425193,
  "test_wait": 0,
  "error": []
}
Starting ping test...
ping_1_msec = 15.48
ping_2_msec = 17.68
ping_3_msec = 15.24
ping_4_msec = 15.54
ping_5_msec = 15.63
ping_6_msec = 15.44
ping_7_msec = 15.44
ping_8_msec = 15.20
ping_9_msec = 16.19
ping_10_msec = 16.11
Starting speed test...
==== rmbt v3.10-55-gca45c6689-dirty ====
connecting...
connected with 3 flow(s) for dl; 3 flow(s) for ul
pretest downlink start... (min 1s)
pretest downlink end.
rtt_tcp_payload start... (11 times)
rtt_tcp_payload end.
downlink test start... (5s)
downlink test end.
pretest uplink start... (min 1s)
pretest uplink end.
uplink test start... (5s)
uplink test end.
disconnecting.
dl_throughput_mbps = 28.588053
ul_throughput_mbps = 28.604019
Exiting.
Speed test result:
{
  "cnf_file_flows":"\/tmp\/tmpdwwu2k8q.xz"
}
{
  "res_id_test":"21389fdb-b50f-493c-acee-f9c62ff831a8",
  "res_time_start_s":1553090127,
  "res_time_end_s":1553090141,
  "res_status":"success",
  "res_status_msg":null,
  "res_version_client":"v3.10-55-gca45c6689-dirty",
  "res_version_server":"RMBTv0.3",
  "res_server_ip":"217.31.192.142",
  "res_server_port":8081,
  "res_encrypt":false,
  "res_chunksize":4096,
  "res_tcp_congestion":"cubic",
  "res_total_bytes_dl":22115076,
  "res_total_bytes_ul":21410858,
  "res_uname_sysname":"Linux",
  "res_uname_nodename":"Omnia",
  "res_uname_release":"4.4.169-7bc33afbb1b35f5830b2b1b42c9cd8a0-2",
  "res_uname_version":"#1 SMP Mon Jan 14 15:04:33 CET 2019",
  "res_uname_machine":"armv7l",
  "res_rtt_tcp_payload_num":11,
  "res_rtt_tcp_payload_client_ns":15747365,
  "res_rtt_tcp_payload_server_ns":16381456,
  "res_dl_num_flows":3,
  "res_dl_time_ns":5207141298,
  "res_dl_bytes":18607754,
  "res_dl_throughput_kbps":28588.053114129263,
  "res_ul_num_flows":3,
  "res_ul_time_ns":5082414958,
  "res_ul_bytes":18172187,
  "res_ul_throughput_kbps":28604.019388689983
}

Save result request (without speed array and pings)
{
  "client_language": null,
  "client_name": "RMBT",
  "client_uuid": "fa194aa2-91e1-4258-90a9-664dbeb57d7a",
  "client_version": "0.1",
  "client_software_version": "0.3",
  "geoLocations": [],
  "model": "Turris Omnia",
  "network_type": 98,
  "platform": "RMBT",
  "product": "os: 3.11.2 hw: rtrom01",
  "test_bytes_download": 22115076,
  "test_bytes_upload": 21410858,
  "test_nsec_download": 5207141298,
  "test_nsec_upload": 5082414958,
  "test_num_threads": 3,
  "test_ping_shortest": 15204000,
  "num_threads_ul": 3,
  "test_speed_download": 28588.053114129263,
  "test_speed_upload": 28604.019388689983,
  "test_token": "21389fdb-b50f-493c-acee-f9c62ff831a8_1553090121_OYFcFaCNvc9i9B7AyDuo9lU76mM=",
  "test_uuid": "21389fdb-b50f-493c-acee-f9c62ff831a8",
  "timezone": "CET",
  "type": "DESKTOP",
  "version_code": "1",
  "developer_code": 0
}
Save result response:
{
  "error": []
}
Downloading measurement history from the control server.
{
  "language": null,
  "timezone": "CET",
  "result_limit": "40",
  "uuid": "fa194aa2-91e1-4258-90a9-664dbeb57d7a"
}
Traceback (most recent call last):
  File "/usr/bin/netmetr", line 9, in <module>
    load_entry_point('netmetr==1.4', 'console_scripts', 'netmetr')()
  File "/usr/lib/python3.6/site-packages/netmetr/__main__.py", line 839, in main
    netmetr.download_history()
  File "/usr/lib/python3.6/site-packages/netmetr/__main__.py", line 353, in download_history
    resp_json = self.send_request(req_json, 'history')
  File "/usr/lib/python3.6/site-packages/netmetr/__main__.py", line 85, in send_request
    resp = request.urlopen(req, data.encode(), context=ctx)
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
root@Omnia:~#

Someone opened an issue on gitlab for it:

Works again. See link below for details: