You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/14 23:57:15 UTC
[GitHub] [apisix] hozaifaaoud opened a new issue #4054: 503 Service Temporarily Unavailable
hozaifaaoud opened a new issue #4054:
URL: https://github.com/apache/apisix/issues/4054
### Issue description
### Environment
* apisix version (cmd: `apisix version`): 2.4
* OS (cmd: `uname -a`): #60-Ubuntu
* OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
* etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
* apisix-dashboard version, if have:
Hi all,
I am new to APISIX.
I just trying to create a route to an API the is up and running on my local machine.
the details of the route are :
curl http://127.0.0.1:9080/apisix/admin/routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
"uri": "/testrouting",
"upstream": {
"type": "roundrobin",
"nodes": {
"http://127.0.0.1:9090": 1
}
}
}'
this return that the route created successfully
when I am trying to access the route using this link:
curl http://127.0.0.1:9080/testrouting
then this appear
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>openresty</center>
</body>
</html>
So could you please help me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou edited a comment on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
Firstsawyou edited a comment on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-819947915
The addresses in upstream nodes need to be configured with a domain name or IP. Your route should be created like this:
```shell
curl http://127.0.0.1:9080/apisix/admin/routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
"uri": "/testrouting",
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:9090": 1
}
}
}'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820855609
yes I tried accessing the service directly
my test API is up and running in this port 9090
here is the request
curl http://127.0.0.1:9090/
and here is the response
![image](https://user-images.githubusercontent.com/79872781/114960899-42d56200-9e68-11eb-9907-43ebba2bff3c.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820837225
You should provide detailed configuration information to facilitate troubleshooting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-819947915
You need to configure the domain name or IP in the upstream nodes. Your route should be created like this:
```shell
curl http://127.0.0.1:9080/apisix/admin/routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
"uri": "/testrouting",
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:9090": 1
}
}
}'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820651525
Thank you for your response,
I tried your solution and currently, I am facing this issue
![image](https://user-images.githubusercontent.com/79872781/114921608-0a636300-9e2b-11eb-8fc0-bf1bb522a3b2.png)
could you please help me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] leslie-tsang closed issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
leslie-tsang closed issue #4054:
URL: https://github.com/apache/apisix/issues/4054
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] leslie-tsang commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
leslie-tsang commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-1086607214
Considered resolved due to lack of feedback. Feel free to reopen it if needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-821164511
calling this url
curl http://127.0.0.1:9090/testrouting
returns my service response
![image](https://user-images.githubusercontent.com/79872781/115029337-2cf68a00-9ec6-11eb-9a3f-190395f72071.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud edited a comment on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud edited a comment on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820651525
Thank you for your response,
I applied your solution.
And I tried calling the API using :
curl http://127.0.0.1:9080/testrouting
then I faced this issue
![image](https://user-images.githubusercontent.com/79872781/114926850-21a54f00-9e31-11eb-892b-77fa6dcaac5a.png)
could you please help me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820931069
You try to access like this, is there any response data?
```shell
curl http://127.0.0.1:9090/testrouting
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud removed a comment on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud removed a comment on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820695697
> The addresses in upstream nodes need to be configured with a domain name or IP. Your route should be created like this:
>
> ```shell
> curl http://127.0.0.1:9080/apisix/admin/routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
> {
> "uri": "/testrouting",
> "upstream": {
> "type": "roundrobin",
> "nodes": {
> "127.0.0.1:9090": 1
> }
> }
> }'
> ```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] github-actions[bot] commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-1086606756
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud closed issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud closed issue #4054:
URL: https://github.com/apache/apisix/issues/4054
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820695697
> The addresses in upstream nodes need to be configured with a domain name or IP. Your route should be created like this:
>
> ```shell
> curl http://127.0.0.1:9080/apisix/admin/routes/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
> {
> "uri": "/testrouting",
> "upstream": {
> "type": "roundrobin",
> "nodes": {
> "127.0.0.1:9090": 1
> }
> }
> }'
> ```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820840548
here is the configuration file :
apisix:
node_listen: 9080 # APISIX listening port
enable_ipv6: false
allow_admin: # http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
- 0.0.0.0/0 # We need to restrict ip access rules for security. 0.0.0.0/0 is for test.
admin_key:
- name: "admin"
key: edd1c9f034335f136f87ad84b625c8f1
role: admin # admin: manage all configuration data
# viewer: only can view configuration data
- name: "viewer"
key: 4054f7cf07e344346cd3f287985e76a2
role: viewer
etcd:
host: # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
- "http://etcd:2379" # multiple etcd address
prefix: "/apisix" # apisix configurations prefix
timeout: 30 # 30 seconds
------------
if there are any other configurations you need... please let me know.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] hozaifaaoud edited a comment on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
hozaifaaoud edited a comment on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820651525
Thank you for your response,
I applied your solution.
And I tried calling the API using :
curl http://127.0.0.1:9080/testrouting
then I faced this issue
![image](https://user-images.githubusercontent.com/79872781/114921608-0a636300-9e2b-11eb-8fc0-bf1bb522a3b2.png)
could you please help me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-821289653
This issue is the same as https://github.com/apache/apisix/issues/4065 , and we will discuss it on https://github.com/apache/apisix/issues/4065.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] tokers commented on issue #4054: 503 Service Temporarily Unavailable
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4054:
URL: https://github.com/apache/apisix/issues/4054#issuecomment-820842578
> Thank you for your response,
>
> I applied your solution.
>
> And I tried calling the API using :
>
> curl http://127.0.0.1:9080/testrouting
>
> then I faced this issue
>
> ![image](https://user-images.githubusercontent.com/79872781/114926850-21a54f00-9e31-11eb-892b-77fa6dcaac5a.png)
>
> could you please help me?
>
>
Have you ever tried to access the upstream endpoint directly? It seems like this 404 response is not generated by apisix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org