unexpected character '.' while parsing major version number
Opened this issue · 4 comments
Checking for updates...
AdGuardian is up-to-date, running version 1.6.0
Starting initialization checks...
ADGUARD_IP is set to test.lan
ADGUARD_PORT is set to 8888
ADGUARD_PROTOCOL is set to http
ADGUARD_USERNAME is set to admin
ADGUARD_PASSWORD is set to ******
Verifying connection to your AdGuard instance...
thread 'main' panicked at /home/yonas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/adguardian-1.6.0/src/welcome.rs:75:69:
called `Result::unwrap()` on an `Err` value: Error("unexpected character '.' while parsing major version number")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
OS: FreeBSD 14.0
AdGuardian-Term: 1.6.0
Having same issue. Did you get this resolved?
I hacked the.cargo/registry/src/index.crates.io-6f17d22bba15001f/adguardian-1.6.0/src/welcome.rs
file by changing line 75 from:
let adguard_version = Version::parse(&version_str[1..]).unwrap();
to
let adguard_version = Version::parse(version_str).unwrap();
with some help from ChatGPT.
I then rebuilt adguardian with:
cargo install adguardian --force
After that running the app worked for me. Just be aware that I have no expertise to know if this is good coding or not.
@seven-of-eleven I'm not able to reproduce this now.
I'm getting another error: error sending request for url (http://127.0.0.1:5553/control/status): operation timed out
To me that looks like an error connecting to your adguardhome instance. Check your IP, port number... try a ping test to ensure you can "see" the server.
Best of luck.