From 4f927ea53fabeb56154060333b97de706f5c95e8 Mon Sep 17 00:00:00 2001 From: Stuart Clements Date: Wed, 18 Dec 2019 14:49:50 +0100 Subject: [PATCH] Reorg --- docs/harbor-doc-reorg/_index.md | 3 +-- .../installation/troubleshoot_installation.md | 17 +++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/harbor-doc-reorg/_index.md b/docs/harbor-doc-reorg/_index.md index a42db09ed..8c8b61d51 100644 --- a/docs/harbor-doc-reorg/_index.md +++ b/docs/harbor-doc-reorg/_index.md @@ -17,6 +17,7 @@ This section describes how to install Harbor and perform the required initial co - [Troubleshooting Harbor Installation](install_config/installation/troubleshoot_installation.md) - [Post-Installation Configuration](install_config/configuration/_index.md) - [Reconfigure Harbor and Manage the Harbor Lifecycle](install_config/configuration/reconfigure_manage_lifecycle.md) + - [Access Harbor Logs](install_config/configuration/access_logs.md) - [Customize the Harbor Token Service](install_config/configuration/customize_token_service.md) - [Configure Notary Content Trust](install_config/configuration/configure_notary_content_trust.md) - [Initial Configuration in the Harbor UI](install_config/configuration/initial_config_ui.md) @@ -48,8 +49,6 @@ This section describes how to use and maintain Harbor after deployment. These da - [Upgrading Harbor](administration/upgrade/_index.md) - [Upgrade Harbor and Migrate Data](administration/upgrade/upgrade_migrate_data.md) - [Roll Back an Upgrade](administration/upgrade/roll_back_upgrade.md) -- [Manage the Harbor Instance](administration/manage_harbor/_index.md) - - [Access Harbor Logs](administration/manage_harbor/access_logs.md) ## [Working with Harbor Projects](working_with_projects/_index.md) diff --git a/docs/harbor-doc-reorg/install_config/installation/troubleshoot_installation.md b/docs/harbor-doc-reorg/install_config/installation/troubleshoot_installation.md index 3eb1e7579..420fa6880 100644 --- a/docs/harbor-doc-reorg/install_config/installation/troubleshoot_installation.md +++ b/docs/harbor-doc-reorg/install_config/installation/troubleshoot_installation.md @@ -4,13 +4,14 @@ # Troubleshooting Harbor Installation -## Harbor Doesn't Start or Functions Incorrectly +The following sections help you to solve problems when installing Harbor. -Harbor Doesn't Start or Functions Incorrectly +## Harbor Does Not Start or Functions Incorrectly + +If Harbor does not start or functions incorrectly, run the following command to check whether all of Harbor's containers are in the `Up` state. -When Harbor does not function correctly, run the following commands to find out if all of Harbor's containers in **UP** status: ``` - $ sudo docker-compose ps +sudo docker-compose ps Name Command State Ports ----------------------------------------------------------------------------------------------------------------------------- harbor-core /harbor/start.sh Up @@ -26,15 +27,15 @@ When Harbor does not function correctly, run the following commands to find out If a container is not in the `Up` state, check the log file for that container in `/var/log/harbor`. For example, if the `harbor-core` container is not running, look at the `core.log` log file. -## Using nginx or Load Balancing +## Using `nginx` or Load Balancing -When setting up Harbor behind an `nginx` proxy or elastic load balancing, look for the following line in `common/config/nginx/nginx.conf` and, if the proxy already has similar settings, remove it from the sections `location /`, `location /v2/` and `location /service/`. +If Harbor is running behind an `nginx` proxy or elastic load balancing, look for the line below in `common/config/nginx/nginx.conf`. -``` sh +``` proxy_set_header X-Forwarded-Proto $scheme; ``` -Then re-deploy Harbor per the instructions in "Managing Harbor Lifecycle. +If the proxy already has similar settings, remove it from the sections `location /`, `location /v2/` and `location /service/` and redeploy Harbor. For instructions about how to redeploy Harbor, see [Reconfigure Harbor and Manage the Harbor Lifecycle](../configuration/reconfigure_manage_lifecycle.md). ----------