Edit icon Edit This Page

Check the connection of the current profile and store what was found

Connect to the API host, the registry host and the web (panel) URL of the current profile, report TLS, proxy and DNS problems, and, on Cloud with –repo, find out whether the registry URLs carry the owner segment (/<owner>/<repo>/… or /<repo>/…) by asking for the repository on the index path of every format. The result is stored in hosts.yml: the owner variant when it was found, and the outcome of each check. A profile that is not stored yet is created with just its product and this result.

Doctor sends no credentials and prints none.

Exit code: 1 when any check has the status “failed” (a host that cannot be reached, a TLS error, a 404 where a Repsy answer is expected or a 5xx), otherwise 0. A “warning” or “skipped” check does not fail the run; an owner check that cannot decide (for example an empty Go repository, or a repository that does not exist) is a warning. The report is the only output, with –output json too: no error is printed after it.

rp profile doctor [flags]

Options

      --repo string   A repository to probe when detecting the owner segment (Cloud)

Options inherited from parent commands

      --api-url string           Panel API URL of the profile, overrides the stored value
      --ca-file string           PEM file with extra trusted CA certificates
      --debug                    Print debug output with secrets redacted
      --hostname string          Repsy host to use instead of the current profile
      --insecure                 Do not verify TLS certificates (unsafe; plain http is chosen with the URL, not with this flag)
      --insecure-storage         Keep credentials in a plain 0600 file instead of the OS keyring (unsafe; a warning is printed once per command)
      --jq string                Filter JSON output with a jq expression (implies --output json)
      --no-color                 Disable colored output
      --no-input                 Never prompt; fail when input is needed
      --output table|json|yaml   Output format: table, json or yaml (default table; json when --jq is given)
      --owner string             Owner segment of Cloud URLs (default: your account, or the one account that shares a repository of that name with you); --owner= means none
      --registry-url string      Protocol host URL of the profile, overrides the stored value
      --type os|cloud            Product of the host, overrides detection
      --web-url string           Panel UI URL of the profile (where /cli/auth lives), overrides the stored value
      --yes                      Answer yes to confirmation prompts

See also

Found a problem with this page?