Closed xworks closed 3 months ago
It looks like the issue with creating clusters when using the /apollo
path prefix might be due to incorrect reverse proxy configuration or the Apollo Portal application not being properly set up to handle the /apollo
context path. Here's a more focused approach to troubleshoot and resolve this issue:
Ensure Apollo Portal is Configured for /apollo
Context Path: Make sure the Apollo Portal application is configured to recognize the /apollo
context path. This can be done by setting the system property -Dserver.servlet.context-path=/apollo
or the equivalent environment variable SERVER_SERVLET_CONTEXT_PATH=/apollo
.
Configure Reverse Proxy Correctly: If you're using a reverse proxy like nginx, ensure it's configured to forward requests to the Apollo Portal application correctly. An example nginx configuration would be:
location /apollo/ {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8070/apollo/;
}
This configuration ensures that requests to /apollo
are forwarded correctly, including the path prefix.
Check for Existing Clusters with the Same Name: The error might also occur if a cluster with the specified name already exists. The Apollo system throws a BadRequestException
for duplicate cluster names during creation.
Verify Request Payload and Permissions: Ensure that the request payload for creating a cluster is correctly formatted and includes all required fields. Also, verify that the user account used for the operation has the necessary permissions.
Review Logs and Error Messages: Look into the Apollo Portal's log files for any error messages or stack traces related to the cluster creation process. This can provide more specific insights into what might be going wrong.
By following these steps, you should be able to identify and resolve the issue with creating clusters when using the /apollo
path prefix. If the problem persists, providing more detailed information such as error logs, request payloads, and the specific configurations you're using can help further diagnose the issue.
To continue the conversation, mention @dosu.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.
描述bug portal站点统一使用路径前缀/apollo,创建集群失败
复现
通过如下步骤可以复现:
期望
创建成功
截图 截图显示路径不对,404
额外的细节和日志