I’m trying to use a MySQL block with a password that contains an @
like mysql://foo:b@r@example.com:3306/mydb
This doesn’t work (received fatal alert: Handshake Error). I’ve also tried url encoding the @
: mysql://foo:b%40r@example.com:3306/mydb
but I get the same error. Is there some other way I should be escaping the @
in the password?
Hi @willgorman, I created a local MySQL user with a password with an @
in it and I’m not able to reproduce the error; the URI masking in the UI is a little off (we’ll fix that), but the user connects and I can run queries. I did the same on Postgres with the same result.
Do you have a user with a password with no special characters you can test with? I suspect the issue you’re running into isn’t related to the @
in the password.
can you try url encoding the @ character in the password? its a common issue when using database url
Ah sorry, I assumed it was the @
because of the URI masking issue but I do get the same error with a different user with no @
in the password. I now see that it looks like the HandshakeFailure likely has something to do with TLS, not the password.
Are there any internal logs I might be able to check to see more details about the HandshakeFailure error? I’m guessing that there’s something about the TLS setup with the database that rustls doesn’t like. I’d like to see if the database can be configured so that it works with Atuin but this isn’t a database that I operate and I’d like to find out as much information about the cause before I can request that it be changed.
Our logging story isn’t amazing right now, and things are still a bit opaque. It’s definitely somethign I’d like to improve really soon - perhaps a “logs” button on a block that shows an output window or something.
Do you know if you’re using self signed certificates?
You could try opening the desktop app manually, from your terminal. Setting RUST_LOG=debug will make it very chatty + potentially include something useful!
Will make this a nicer experience asap!
Do you know if you’re using self signed certificates?
This isn’t a database that I set up myself so I’m not entirely certain but I think that’s definitely possible.
You could try opening the desktop app manually, from your terminal. Setting RUST_LOG=debug will make it very chatty + potentially include something useful!
I’m trying this out on macOS and I ran export RUST_LOG=debug; open /Applications/Atuin.app
from the terminal but I’m not sure where the logs should be. I don’t see any other output in the terminal after Atuin Desktop launches and I also don’t see anything in Console.app. Is this something I’d need to try from Linux?
From what I can gather, this is an issue with SSL - I’ve switched the backend that our MySQL driver uses in 0.0.85: Desktop Devlog - 2025 week 28
Let me know if that solves it!
Otherwise for future reference, you can get verbose logging on macOS this way:
RUST_LOG=debug /Applications/Atuin.app/Contents/MacOS/atuin-desktop
It’s working in 0.0.85, thanks!
fantastic, glad it’s sorted!