Skip to content

Troubleshooting: connection

routermaintain-troubleshooting-connection

Find why the Desktop App cannot connect to the Backend or sign in, and go to the fix.

Find why the Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary cannot connect to the BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary or cannot sign insign in — To show the Backend who you are, with a sign-in provider or a single-user token. The verb is "sign in"; the noun and the adjective are "sign-in". Glossary. Each problem below gives the message that you see, its cause, one command to check it, and the page with the fix. The examples use platforma.example.com as the address of the Backend.

Find the message

The Desktop App shows the error under the address and sign-in form. The message is often long: look for the words in the sections below. The Desktop App also writes the full error to its log, and the Backend writes the sign-in errors to its log. For where the logs are, see Get help.

Users type the address with the scheme. Without a port, https:// means port 443 and http:// means port 80:

https://platforma.example.com: the entry pointentry point — The way in to the Backend from outside the cluster, a load balancer or an Ingress with a DNS name. It usually ends TLS and sends the traffic to the Backend pod. Glossary listens on port 443.

Network

The name does not resolve

  • Symptom. The message contains Name resolution failed or ENOTFOUND.

  • Cause. The host name has an error, or the DNS record does not exist, or the computer uses a DNS server that does not know the corporate names. A VPN often changes the DNS server of the computer: the name can resolve only with the VPN on, only with it off, or to a different address.

  • Check, on the computer of the user:

    Terminal window
    nslookup platforma.example.com

    The answer must give the address of the entry point (KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary) or of the server (Single Server mode). When users connect through a VPN, do the check with the VPN on and with it off, and compare the addresses.

  • Fix. Correct the address in the Desktop App, or make the DNS record. For a VPN, add the record to the DNS server that the VPN gives. See Host name and DNS.

The port does not answer

  • Symptom. The message contains ECONNREFUSED, No connection established, Failed to connect before the deadline, or UNAVAILABLE.

  • Cause. A firewall closes the port, the address has the wrong port, or the load balancer is not ready. A new cloud load balancer can need some minutes before it sends traffic.

  • Check, on the computer of the user (on Windows, use Test-NetConnection platforma.example.com -Port 443):

    Terminal window
    nc -vz platforma.example.com 443
  • Fix. Open the port in the firewall, or wait for the load balancer. For the ports, see Ports and endpoints; for the entry point, see Entry point and TLS. When the port answers but the connection fails, the Backend can be down: see The Backend does not run.

The entry point answers with an HTTP error

  • Symptom. The message contains Received HTTP status code 502, 503 or 504, or the connection breaks after 30 to 60 seconds.
  • Cause. The entry point does not reach a ready Backend pod, or a part of the path cuts the long gRPC streams: the load balancer, or a proxy or a firewall that closes idle connections.
  • Check. See The Backend does not run.
  • Fix. See What each entry point must carry. For a proxy or a firewall between the computers and the entry point, let its team keep idle connections to the host of the Backend open as long as the load balancer does.

Files do not upload or download

  • Symptom. Users sign in and see their projects, but uploads of files do not end, downloads fail, or the Desktop App does not show the results (tables, charts), although the jobsjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary end.

  • Cause. When the primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary is a bucket, the Desktop App uploads and downloads the files directly from the bucket, not through the Backend. The computer of the user cannot reach the bucket, for example because of a firewall, a proxy, or a bucket policy that allows only the network of the cluster.

  • Check, on the computer of the user:

    Terminal window
    nc -vz <bucket>.s3.<region>.amazonaws.com 443 # Amazon S3
    nc -vz storage.googleapis.com 443 # Google Cloud Storage

    For an S3-compatible storage, check the host of its endpoint. In Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary with a folder storage, check port 6347 of the server.

  • Fix. Open the way from the computers of users to the storage, also through the VPN and the proxy. See How files move and Downloads fail in the Desktop App.

TLS

Run the TLS checks on the computer of the user: the result depends on the trust store of this computer. In Single Server mode, use port 6345 instead of 443.

The certificate is not trusted

  • Symptom. The message contains unable to get local issuer certificate, self-signed certificate or self-signed certificate in certificate chain.

  • Cause. A corporate certificate authority or a self-signed certificate signed the certificate, and the computer does not trust it. The Desktop App reads the trust store only when it starts.

  • Check:

    Terminal window
    openssl s_client -connect platforma.example.com:443 -servername platforma.example.com </dev/null 2>/dev/null | grep -E "issuer=|Verify return code"

    Verify return code: 0 (ok) means that the computer trusts the certificate.

  • Fix. Add the certificate authority to the trust store of the operating system, then start the Desktop App again. See What the Desktop App trusts and Self-signed certificate.

The name does not match the certificate

  • Symptom. The message contains Hostname/IP does not match certificate's altnames.

  • Cause. The certificate does not cover the host name that the user typed. A wildcard covers exactly one label: *.example.com does not cover platforma.lab.example.com.

  • Check:

    Terminal window
    openssl s_client -connect platforma.example.com:443 -servername platforma.example.com </dev/null 2>/dev/null | openssl x509 -noout -ext subjectAltName

    The list must contain the host name that the user typed.

  • Fix. Add the host name to the certificate, or let users type a name that it covers. See TLS at the entry point.

The scheme does not match TLS

  • Symptom. The connection fails at once. The message can contain wrong version number or Connection dropped.
  • Cause. The address has http://, but the Backend or the entry point serves TLS, or the address has https://, but the port serves plain HTTP/2.
  • Check. Run the openssl s_client command of The certificate is not trusted. When it does not show a certificate, the port does not serve TLS.
  • Fix. Use https:// for a port with TLS. See TLS on the Backend.

Proxy

The proxy asks for a password, or inspects TLS

  • Symptom. The Desktop App shows Proxy Authentication Required, or the TLS check shows a certificate whose issuer= is the corporate proxy, not the certificate authority of the Backend.
  • Cause. A proxy between the computer and the Backend needs a user name and password, or it opens the TLS traffic and signs it again with its own certificate authority. An antivirus program that scans HTTPS traffic on the computer does the same as a proxy that inspects TLS.
  • Check. Run the openssl s_client command of The certificate is not trusted and read the issuer= line.
  • Fix. Give the proxy credentials in the Desktop App settings. For TLS inspection, exclude the host of the Backend from the inspection of the proxy or of the antivirus program, or add the certificate authority of the proxy to the trust store of the computer. The Desktop App tries the Backend both directly and through the proxy, and uses the way that works. See Proxy and custom CA.

Sign-in

The Desktop App shows sign-in errors with the prefix LoginFailed:. The Backend writes the details to its log with the message authentication error.

The password or the login is wrong

  • Symptom. LoginFailed: invalid credentials.

  • Cause. The login or the password is wrong, or the login is not in the static list of usersstatic list of users — A sign-in provider that is a file with the logins and the password hashes of the users, in the htpasswd format. The Backend reads it again when it changes. Glossary or in the directory.

  • Check. In Single Server mode with a static list of users, look for the login in the file:

    Terminal window
    sudo grep '^<login>:' /etc/platforma/users.htpasswd
  • Fix. Correct the login or the password, or add the user. See Static list of users and LDAP.

LDAP does not answer, or the search account is refused

  • Symptom. LoginFailed: authentication error. See server logs for details. The log of the Backend has authentication error with failed to auth in LDAP for user search (the search account is refused), found more than 1 user by search criteria (the search filter is too wide), or a network or certificate error to the LDAPLDAP — The directory of users of a company. The Backend can check logins and passwords in it. Glossary server.
  • Cause. The settings of the LDAP provider, the search account, or the network between the Backend and the directory.
  • Check. Find the line in the log of the Backend. See Get help for where the log is.
  • Fix. Correct the LDAP settings. See LDAP.

The SSO sign-in fails

  • Symptom. One of these messages in the Desktop App:
    • IdP error: … with the error of the identity provider, for example access_denied;
    • token endpoint 401: … with invalid_client;
    • All SSO redirect ports are already in use: 8765;
    • the identity provider shows an error page about the redirect URI in the browser;
    • after the sign-in at the identity provider, the browser cannot open http://127.0.0.1:8765/callback, and the Desktop App waits;
    • a message that contains failed to open session, and the log of the Backend has refresh token required.
  • Cause, in the same order:
    • the identity provider refuses the user (for example, the application is not assigned to the user);
    • the client secret is wrong, or the client is confidential and the Backend does not have its secret;
    • another program uses the local redirect port on the computer;
    • the redirect URI http://127.0.0.1:<port>/callback is not registered at the identity provider;
    • endpoint security software on the computer stops the Desktop App from listening on the port, or stops the browser from opening the local address;
    • the identity provider did not give a refresh token: the scope offline_access is missing or not allowed for the client, or, for Google, accessType: offline is not set.
  • Check. Compare the client at the identity provider with the SSOsingle sign-on — Sign-in through the identity service of the company, with the same account as for other company systems. Glossary settings of the Backend: client ID, client secret, scopes, and one registered redirect URI for each port in redirectPorts.
  • Fix. See What to register at the identity provider. When endpoint security stops the use of the local port, let its team allow the Desktop App to listen on 127.0.0.1 at the ports of redirectPorts, or set other ports and register them.

The user is not allowed to sign in

  • Symptom. LoginFailed: user is not provisioned and this provider does not allow creating new users.
  • Cause. The directory or the identity provider accepts the person, but the Backend does not have an account for them, and the provider does not create accounts.
  • Check. Look at the createUsers setting of the provider in the configuration of the Backend.
  • Fix. Set createUsers: true, or make the account in advance. See Who can sign in and New users at the first sign-in.

Backend

The Backend does not run

  • Symptom. The port does not answer (ECONNREFUSED, UNAVAILABLE), or the entry point gives Received HTTP status code 503.

  • Cause. The Backend did not start, or it is not ready. With SSO, the Backend does not start when it cannot read the discovery document of the identity provider.

  • Check:

    Terminal window
    kubectl --namespace <namespace> get pods

    The pod of the Backend must be Running with 1/1 in READY.

  • Fix. See Verify the installation. When the identity provider is down, see Start the Backend while the identity provider is down.

The license is not valid

  • Symptom. Users can sign in, but the Desktop App shows License Expired, and BlocksBlock — A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools. Glossary do not run. At start, the Backend writes License verification failed to its log.
  • Cause. The license has expired, or the key is wrong. The Backend then gives only the license status and does not run computations.
  • Check. See Check the license.
  • Fix. See Renew or change the license.

Session and versions

The login is no longer valid

  • Symptom. During work, the Desktop App shows Connection to platforma.example.com lost and Your login is no longer valid., with the button Log in again.
  • Cause. The Backend ended the session: for example, the session expired, the user was removed, the sign-in providersign-in provider — A configured way for users to sign in to the Backend: single sign-on (SSO), LDAP or a static list of users. One Backend can have more than one. Glossary changed, or the master secret changed.
  • Check. Sign in again. When the sign-in fails, see Sign-in.
  • Fix. For the changes that end sessions, see Change the sign-in settings.

The versions do not match

  • Symptom. The Desktop App shows Please update the Desktop Application. The server you're trying to connect to requires a newer Desktop App version., or This Platforma backend is too old and is no longer supported. Please update it to a newer version.
  • Cause. The Desktop App is older than the Backend needs, or the Backend is too old for the Desktop App.
  • Check. Compare the versions: see Get help.
  • Fix. Update the Desktop App, or upgrade the Backend. See Upgrading.

Next