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>/…). 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, a 5xx, or the owner variants that both answer 404), otherwise 0. A “warning” or “skipped” check does not fail the run. 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)
--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 protocol URLs; --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
- rp profile - Manage the host profiles