Troubleshooting
Installing and first launch
macOS: first launch is blocked
“StoneQL” Not Opened (“Apple could not verify “StoneQL” is free of malware…”), with only Move to Trash and Done.
This is expected: the beta is not notarized by Apple. If the checksum matched:
- Choose Done (not Move to Trash).
- Open System Settings → Privacy & Security and scroll to the message about StoneQL.
- Choose Open Anyway and confirm (macOS may ask for your login password).
If you chose Move to Trash by mistake, install again from the DMG. A newly downloaded build may need this approval again after an update.
Windows: “Windows protected your PC”
Microsoft Defender SmartScreen shows this blue window when you run the installer, because the beta installer is not signed. If the checksum matched, choose More info, then Run anyway. If there is no Run anyway button, your organization may block unsigned programs; ask your administrator.
Windows: WebView2 is missing
StoneQL draws its window with Microsoft Edge WebView2. Windows 11 includes it and Windows 10 usually has it. If it is missing, the installer downloads it, which needs an internet connection. If the installer could not download it, or StoneQL does not open after installing:
- Connect to the internet and run the StoneQL installer again; or
- install the Microsoft Edge WebView2 Runtime from Microsoft's WebView2 download page, then open StoneQL.
Linux: apt cannot install the package
StoneQL needs libwebkit2gtk-4.1-0 version 2.38 or later. Ubuntu 22.04's original package source has only 2.36; the newer version is in jammy-updates. Without it, apt stops with a message like Depends: libwebkit2gtk-4.1-0 (>= 2.38) but 2.36… is to be installed or unmet dependencies.
- Enable the updates and community package sources: open Software & Updates, tick Community-maintained free and open-source software (universe) on the first tab, and Recommended updates (jammy-updates) on the Updates tab. Without a desktop, check that
/etc/apt/sources.listhasjammy-updateslines withuniverse, or runsudo add-apt-repository universe. - Run
sudo apt update, then install again withsudo apt install ./<file>.deb(with the./).
Installing with dpkg -i does not install the packages StoneQL needs; use apt install instead. The package needs glibc 2.34 or later, which Ubuntu 22.04 and Debian 12 have; older distributions are not supported.
Keychain prompts
When StoneQL reads a saved password for the first time after an update, macOS asks for your login password twice for the same saved item:
- “…wants to use your confidential information…”
- “…wants to access key…”
Both refer to the same saved password. Enter your login password and choose Always Allow each time.
- Allow permits only this one read, so you will be asked again next time.
- Deny refuses it. StoneQL then reports “The saved credential is unavailable or belongs to a different target. Enter it again.” and does not retry.
Every beta build counts as a new app for macOS, so expect these prompts once after each update.
If the prompts keep coming back (Always Allow does not always stick for this beta), save the password again from the installed build:
- Open Manage connections and edit the connection.
- Type the database password (or SSH password or key passphrase) again, with Remember … ticked.
- Save. The saved item now belongs to the installed build, and later connections do not prompt.
While a Keychain prompt is open, StoneQL waits up to 75 seconds. Cancel connecting stops waiting, but the macOS prompt may stay on screen; its answer is then ignored.
Saved passwords on Linux
See Saved passwords for how StoneQL chooses where to save on Linux.
The desktop keyring is locked or refuses
“Password not saved: the system credential store refused it or is locked. Unlock it and try again, or turn off Remember to save the connection without it.”
A desktop keyring is running but did not accept the password, for example because it is locked and you dismissed its unlock prompt. Nothing was saved, and StoneQL does not fall back to its own file while a keyring is running. Unlock the keyring (for GNOME Keyring, sign in to the desktop with your account password, or unlock the Login keyring in Passwords and Keys) and save the connection again. Or untick Remember database password and type the password each time.
No desktop keyring is running
Without a keyring, StoneQL asks you to choose a master password and saves passwords in its own encrypted file. If you prefer the keyring, install and start one (for example gnome-keyring, included in most GNOME desktops) before saving passwords. Passwords already saved in the file stay there and keep working.
If the dialog says “Password not saved: this system has no credential store (Secret Service) available.”, StoneQL found no place to save passwords on this system. Untick Remember to save the connection without the password.
Forgotten master password
The master password cannot be recovered. In the Unlock saved passwords dialog, choose Reset saved passwords… and confirm. This deletes every password saved in StoneQL's encrypted file; your connections keep their other settings. Then choose a new master password and type each connection's password again.
Connection errors
Messages appear in the connection dialog or as a notice. Find the message below.
“Connection failed. Check authentication, TLS and availability.”
StoneQL could not open the connection. It deliberately does not show the server's own error text. Check, in this order:
- Server running and reachable: the host name and port are correct, the server is running and no firewall blocks it.
- Account: the username and password are correct, and the account may connect from your computer.
- TLS on a remote server: StoneQL verifies the server certificate and that it names the host you typed. Use the host name in the certificate (not an IP address, unless the certificate includes it). If the certificate comes from a private certificate authority, add the CA's PEM file under Trusted CA certificate (optional, session only). StoneQL never falls back to a connection without TLS.
- SSH tunnel: TLS is verified against the database Host you entered (as the SSH server sees it), so that name must be covered by the database server's certificate.
- TLS on this computer (MySQL/MariaDB): if the message adds “If this local server has no certificate trusted for this host name, turn off Use TLS and try again.”, edit the connection, untick Use TLS and connect again. Local development servers often have a self-signed certificate.
- TLS off (MySQL/MariaDB): if the message adds “Without TLS this also happens when the account requires TLS (REQUIRE SSL)…”, the server may require TLS for this account. It reports that the same way as a wrong password. Turn Use TLS on. If you chose Encrypt it with the server's public key (trusted), also check that the key is this server's: a server creates a new key pair when its data directory is created.
- PostgreSQL: StoneQL refuses to start a PostgreSQL connection while the
PGSSLROOTCERT,PGSSLCERT,PGSSLKEYorPGOPTIONSenvironment variables are set, and it does not accept Unix-socket hosts. Use a TCP host name and port.
“The server asked for a full sign-in…”
Full message: “The server asked for a full sign-in (MySQL caching_sha2_password, for example after a restart). Without TLS this needs the server’s RSA public key: turn on Use TLS, or under Password without TLS paste the server’s public key or allow fetching it. The password was not sent.”
In v0.1.0-beta.2 this message reads “The server requires an encrypted sign-in for this account…” and Password without TLS does not exist yet: turn Use TLS on, or sign in once with the
mysqlcommand-line client after the server starts, then connect again.
You connected to MySQL with Use TLS off, and the server needs the password itself. MySQL 8 accounts using caching_sha2_password (the default) need this after every server restart, until the account has signed in once. Without TLS, StoneQL sends the password only encrypted with the server's RSA public key, and only as you chose. Edit the connection and either:
- turn Use TLS on (the server needs a certificate trusted for the host name), or
- under Password without TLS, choose Encrypt it with the server's public key (trusted) and paste the server's public key (see TLS and certificates for how to get it), or
- choose Fetch the key from the server without verifying it, if you trust the network path to the server.
RSA protects only the password; queries and results are still sent unencrypted. You no longer need to sign in once with the mysql client after a restart.
“The server accepts only TLS connections…”
Full message: “The server accepts only TLS connections. Turn on Use TLS; StoneQL never switches between TLS and plaintext by itself.”
The server is set to require_secure_transport=ON. Turn Use TLS on. For MySQL with an account that is not yet cached and no RSA option chosen, you see the full sign-in message above first; turning TLS on fixes both.
SSH host key unknown or changed
- “The SSH host key is not enrolled. Fetch it, verify the fingerprint and trust it explicitly.”: choose Fetch host key, compare the fingerprint with the one from the server's administrator, and choose Trust this host key only if they match. See Connect through an SSH tunnel.
- “SSH host key changed — connection refused. Verify the new key with the server administrator; forget the stored key only after verification.”: the server presented a different key than the one you trusted. This can mean the server was reinstalled, or that someone is intercepting the connection. Ask the administrator. Only if they confirm the change: edit the connection, choose Forget host key, fetch and verify the new key, and trust it. Saved SSH passwords for that server must then be entered again.
SSH tunnel on Windows
SSH tunnels are not available on Windows yet; the SSH Tunnel option cannot connect there. Use a Direct connection, for example to a database you can reach directly or through a VPN.
“SSH authentication failed. Check the SSH username, password, key file or passphrase.”
Check the SSH username and the chosen method. RSA keys are not supported yet: use an Ed25519 or ECDSA key. After restarting StoneQL, choose the key file again with Choose key file….
“The SSH agent is unavailable. Start an agent with your key loaded, or choose another method.”
StoneQL found no usable SSH agent. StoneQL uses the agent available when it started: make sure an agent is running and holds your key (add it with ssh-add), then quit and reopen StoneQL. Or choose Private key or Password instead.
“The saved credential is unavailable or belongs to a different target. Enter it again.”
The saved password could not be used. Causes:
- on macOS you chose Deny at a Keychain prompt, or the Keychain is locked; on Linux the keyring is locked;
- you changed the server, account or route (direct or SSH) after saving the password; a saved password works only for the target it was saved for.
Edit the connection, type the password again with Remember … ticked, and save.
“Choose or enter the default database. Test connection lists the databases you can use.”
A connection needs a default database before it can be saved. Choose Test connection and pick one from Databases on this server, or type its name.
“The server denied this account access; nothing was changed.” / “That database does not exist on the server.”
The account lacks the privilege for that database or action, or the database name is wrong. Ask the database administrator for access, or choose another database. When switching databases, StoneQL stays on the current one.
“This connection is busy with another statement or an open transaction. Nothing was queued or sent.”
The connection is still running a statement, or a transaction is open where the action is not allowed. Wait for the statement to finish or choose Cancel, and Commit or Rollback an open transaction before switching databases or changing structure.
“Operation timed out; server-side cancellation is unconfirmed.”
The server did not answer in time. The server may still be working on, or may have completed, the request. Check the network and the server's load, verify on the server whether the change happened, and try again.
“Connection limit reached. Disconnect another live workspace.”
Too many live connections are open. Disconnect or close a connection tab you are not using.
“Connection is unavailable to this session. Reconnect before running queries.”
The connection is no longer available to this window, for example because its session ended (sessions last one hour). Choose Connect again; StoneQL never reconnects by itself.
“Native host unavailable · Restart StoneQL to connect”
Shown in the status bar when the app's connection engine did not start. Quit StoneQL and open it again.
The window goes blank on Windows
If StoneQL's window turns blank or stops responding because its web view crashed, StoneQL does not recover by itself on Windows (macOS and Linux reload the window automatically). Quit StoneQL and open it again.
Unknown outcomes
If a red Outcome unknown panel appears, StoneQL could not confirm whether the server applied some work. See Unknown outcomes.
Still stuck?
Check What's in the beta to see whether the feature is available yet on your system. Report problems in the StoneQL repository on GitHub, with your operating system and version and the file you installed; see How to report a problem. Never include passwords, keys or private data in a report.