Edge for Private Cloud v. 4.17.09
Edge Router は Nginx ルーターを使用して実装されています。Edge のアップグレード プロセス中
Router の構成を変更する際に、Nginx の構成エラーが表示されることがあります。日時
エラーが発生すると、Edge は、問題の原因となった Nginx 構成ファイルを
/opt/nginx/conf.d
。その後、
Nginx configtest
ツールを使用して、以下を行います。
エラーの原因を特定します。
たとえば、/opt/nginx/conf.d
を調べると、次のようになります。
ファイル:
-rw-r--r-- 1 apigee apigee 522 Jul 20 08:41 0-default.conf.bad -rw-r--r-- 1 apigee apigee 577 Jul 20 08:42 0-fallback.conf -rw-r--r-- 1 apigee apigee 1062 Jul 20 08:18 0-map.conf -rw-r--r-- 1 apigee apigee 1887 Jul 20 08:42 custorg_test_default.conf.bad
いくつかのファイルに .bad という接尾辞が付いていることに注目してください。
通常、これらのエラーは、
/opt/apigee/customer/application/router.properties
仮想ホストに誤った変更を行った可能性があります。たとえば、以下を追加しました。
conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size=32k
この値は使用できません。
このエラーを解決するには:
- ファイル内のファイル名から接尾辞 .bad を削除します。
/opt/nginx/conf.d
個のフォルダ .conf で終わるようにします。 - Nginx
configtest
を実行する ツールを実行して、失敗の理由を表示します。/opt/nginx/scripts/apigee-nginx configtest
出力は次のようになります。
nginx: [emerg] "proxy_busy_buffers_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /opt/nginx/conf/nginx.conf:47
/opt/apigee/customer/application/router.properties
を編集してconf_load_balancing_load.balancing.driver.proxy.busy.buffer.size
~ 128k。/opt/nginx/conf.d
ディレクトリを削除しました。rm -rf /opt/nginx/conf.d
- Router を再起動します。
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
/opt/nginx/conf.d
に不正な構成ファイルが表示されなくなりました。 フォルダに配置されます。