Sign-in fails or the session expired
devo login stops with an error, or a command that used to work now says you need to sign in. The error code at the start of the message tells you which case you're in.
Why it happens
No context is selected, or the selected context has no sign-in information.
The browser session expired and can't be renewed.
The environment variable or file that holds your application secret, API key, or password isn't available.
The key, secret, or password is wrong.
The sign-in method doesn't suit the computer, for example a browser sign-in on a computer without a browser.
Devolutions Cloud or Devolutions Server didn't answer in time.
Check where you stand
Before you change anything, see what Devolutions CLI knows about the current context:
devo statusIt shows the context, its kind, and, for Devolutions Cloud or Devolutions Server, whether sign-in information is stored. It doesn't contact the workspace. To test the sign-in for real, add --online:
devo status --onlineTo check another context, add its name: devo status <context-name>.
Fix it
Select the right context
contextNotFound
No current context, or no context with that name. Run devo context list, then devo context use <context-name>, or sign in with devo login.
cloudAuthenticationRequired
serverAuthenticationRequired
The context has no sign-in information, for example after devo logout. Sign in again with devo login.
contextAmbiguous
Two contexts of different kinds share the name. Delete one with devo context delete <context-name> --kind <kind>.
Sign in again when the session expired
A browser sign-in (--oauth) gives Devolutions CLI a session that it renews by itself. When that's no longer possible, you see one of these codes:
cloudOAuthSessionExpired,cloudOAuthRefreshFailedserverOAuthSessionInvalid,serverOAuthRefreshFailed
Sign out, then sign in again with the same context name. The context is updated, and your scripts and references keep working:
For Devolutions Server, use --server https://<your-server-address> instead of --cloud.
cloudOAuthRefreshBusy or serverOAuthRefreshBusy means another devo command was renewing the same session for more than 60 seconds. Wait for it to finish, then run your command again.
Make the secret available again
When you sign in with an application key (Devolutions Cloud), an API key or a password (Devolutions Server), the context remembers where the secret is, the environment variable or the file you named, not the secret itself. Devolutions CLI reads it again whenever it needs it.
secretReferenceUnavailable means that variable isn't set, or that file can't be read, at the moment of the command. Set the variable in the terminal, script, or pipeline that runs the command, or restore the file.
The background process reads the variable from its own environment, so after you set it, restart the process from that same terminal:
Check the credentials
cloudAuthenticationFailed
The application key or application secret is wrong, or the application was denied. Check both in Devolutions Cloud, then sign in again.
serverAuthenticationFailed
Devolutions Server refused the API key, user name, or password. Check them, and the domain if you use --domain-id, then sign in again.
invalidParameterValue during devo login
The options don't fit together, for example Devolutions Server options with --cloud, or a context name already used by another kind of context. The message names the problem.
Pick a sign-in method that suits the computer
cloudOAuthLoopbackUnsupported
serverOAuthLoopbackUnsupported
The browser sign-in isn't offered. On Devolutions Server, add --use-device-code to devo login and follow the instructions in the terminal. On Devolutions Cloud, sign in with an application key instead.
cloudOAuthLoopbackUnavailable
serverOAuthLoopbackUnavailable
Devolutions CLI couldn't start the local listener that receives the browser's answer. Try again. On Devolutions Server, you can also use --use-device-code; on Devolutions Cloud, an application key.
cloudOAuthAuthorizationExpired
serverOAuthAuthorizationExpired
You didn't finish signing in in the browser in time. Run devo login again.
cloudOAuthAccountKeyMissing
This Devolutions Cloud session can't open vault data. It happens with a session from --use-device-code. Sign in again with the browser flow, --oauth without --use-device-code, or with an application key.
windowsAuthenticationUnsupported
--windows-auth works on Windows only. Use another sign-in method on macOS and Linux.
Give the workspace more time
cloudRequestTimeout or serverRequestTimeout means Devolutions Cloud or Devolutions Server didn't answer in time. Check that you can reach the address from this computer, for example through a VPN or a proxy. If the workspace is just slow, raise the time limit of devo login with --timeout, in seconds, from 3 to 600. The default is 15.
Still failing?
Run the command again with --verbose, then collect diagnostics and contact Devolutions support. Never send your key, secret, or password.
Last updated
Was this helpful?