FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
812 views 3 comments
by anonymous

I have been using the speedtest-cli command for our RUTX09 routers but when I attempt this with a RUTX12 I get the below error. Do you have to select the specific modem for speedtest with RUTX12?



root@Teltonika-RUTX12:~# speedtest-cli

Retrieving speedtest.net configuration...

Traceback (most recent call last):

File "/usr/bin/speedtest-cli", line 10, in <module>

sys.exit(main())

File "/usr/lib/python2.7/site-packages/speedtest.py", line 1986, in main

shell()

File "/usr/lib/python2.7/site-packages/speedtest.py", line 1875, in shell

secure=args.secure

File "/usr/lib/python2.7/site-packages/speedtest.py", line 1091, in __init__

self.get_config()

File "/usr/lib/python2.7/site-packages/speedtest.py", line 1174, in get_config

map(int, server_config['ignoreids'].split(','))

ValueError: invalid literal for int() with base 10: ''

2 Answers

0 votes
by anonymous

Hello,

It seems that you are running a custom speedtest package. Could you provide a link to the documentation of this package? Also, my suggestion would be to use a much simpler speedtest solution: use command speedtest instead of speedtest-cli.

Regards.

by anonymous

Please see link below with suggestion from Peasent.  This has worked really well for us...

a way to speed test the connection over RMS / CLI - RUTX09 - Crowd Support Forum | Teltonika Networks (teltonika-networks.com)

If I run the command speedtest from the command line I get the following:



root@Teltonika-RUTX09:~# speedtest
Retrieving speedtest.net configuration...
Traceback (most recent call last):
File "/usr/bin/speedtest", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/speedtest.py", line 1986, in main
shell()
File "/usr/lib/python2.7/site-packages/speedtest.py", line 1875, in shell
secure=args.secure
File "/usr/lib/python2.7/site-packages/speedtest.py", line 1091, in __init__
self.get_config()
File "/usr/lib/python2.7/site-packages/speedtest.py", line 1174, in get_config
map(int, server_config['ignoreids'].split(','))
ValueError: invalid literal for int() with base 10: ''
by anonymous

It is weird that even normal speedtest command does not work for you. I have tried speedtest-cli too on my own RUTX12 and it worked flawlessly (using RUTX_R_00.02.06.1 FW).

What I would like to suggest for you is to cleanly reinstall your firmware (without keeping settings). There are several ways to do it:

1. Reset your device to the factory default configuration

2. Re-install firmware via bootloader menu: https://wiki.teltonika-networks.com/view/RUTXxx_Firmware_via_The_Bootloader_Menu

Regards.

by anonymous
Uploaded latest firmware by file and re-applied this keeping settings.  Was then able to run speedtest fine and had to download and installspeedtest-cli so thanks.

FYI once speedtest-cli has been installed typing speedtest runs the speedtest-cli so that;s why standard speedtest was not wokring.
0 votes
by anonymous
afaik this is error with the speedtest cli package and you can fix this by editing the python file directly