Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Happy defaults #12

Open
drewwells opened this issue Nov 26, 2024 · 4 comments
Open

Happy defaults #12

drewwells opened this issue Nov 26, 2024 · 4 comments

Comments

@drewwells
Copy link

I replaced speedtest-go with speedtest-rust and running into a couple configuration issues. I'll try to fix them, novice rust developer though.

listen_port="" // Rust is unhappy that this isn't a u16, it should default to 8080 when empty string is offered

sqlite can not start. It has write permissions to the directory so some issue is happening here.
Error setup sqlite SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file: speedtest.db"))

@SudoDios
Copy link
Collaborator

Hi @drewwells
how interesting!
But type listen_port is not string.
Did you run it on the go sqlite database?

@drewwells
Copy link
Author

It would be helpful if the program accepted strings, config is safer to pass around as strings that get interpreted. I didn't find a spec for how to describe config across these different language implementations of librespeed.

Go didn't have a db, so it's starting from a non-existent file. Does it attempt to create a db if nothing exists? I didn't see any special instructions in the docs and this appears to be the default setup. Maybe default of no db is easier to start from?

@SudoDios
Copy link
Collaborator

Oh, Ok.
The root of the problem is probably clear.
Can you fix it yourself?

@drewwells
Copy link
Author

Yes, Im taking a stab at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants