Comments (13)
return error as follow:
<html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>openresty</center>
<p><em>Powered by <a href="https://apisix.apache.org/">APISIX</a>.</em></p></body>
</html>
from apisix.
please share your configurations
from apisix.
please share your configurations
I'm using https://github.com/apache/apisix/blob/master/conf/config-default.yaml and changed the etcd and consul configuration.
from apisix.
btw, I run Apisix with docker image apache/apisix:3.9.0-debian
from apisix.
The information you provided is insufficient to attempt reproduction of this bug
from apisix.
The information you provided is insufficient to attempt reproduction of this bug
here is a simple version of config:
apisix:
node_listen: 9080
enable_ipv6: false
enable_control: true
control:
ip: "0.0.0.0"
port: 9092
deployment:
admin:
allow_admin:
- 0.0.0.0/0
admin_key:
- name: "admin"
key: edd1c9f034335f136f87ad84b625c8f1
role: admin
- name: "viewer"
key: 4054f7cf07e344346cd3f287985e76a2
role: viewer
etcd:
host:
- "http://etcd1.internal:2379"
prefix: "/apisix"
timeout: 30
discovery:
consul:
servers:
- "http://consul.internal:8500"
plugin_attr:
prometheus:
export_addr:
ip: "0.0.0.0"
port: 9091
I got the error after started apisix:
2024/04/15 03:29:29 [error] 49#49: *40 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/discovery/consul/init.lua:525: attempt to concatenate local 'svc_port' (a nil value)
I suspect something is wrong here and causes service discovery by consul failed.
stack traceback:
coroutine 0:
/usr/local/apisix/apisix/discovery/consul/init.lua: in function </usr/local/apisix/apisix/discovery/consul/init.lua:362>, context: ngx.timer
2024/04/15 03:42:22 [error] 49#49: *7191 [lua] init.lua:91: nodes(): fetch nodes failed by ws-http-echo, return default service, client: 10.0.2.59, server: _, request: "GET / HTTP/1.1", host: "echo.external.apisix"
2024/04/15 03:42:22 [error] 49#49: *7191 [lua] init.lua:548: handle_upstream(): failed to set upstream: no valid upstream node: nil, client: 10.0.2.59, server: _, request: "GET / HTTP/1.1", host: "echo.external.apisix"
from apisix.
root@ip-10-0-2-59:/home/ubuntu# curl -fsL http://127.0.0.1:9092/v1/discovery/consul/dump | jq
{
"services": {},
"config": {
"token": "",
"keepalive": true,
"weight": 1,
"fetch_interval": 3,
"timeout": {
"connect": 2000,
"read": 2000,
"wait": 60
},
"servers": [
"http://consul.internal:8500"
],
"sort_type": "origin"
}
}
from apisix.
while another node with v3.8:
root@ip-10-0-2-59:/home/ubuntu# curl -fsL http://10.0.2.60:9092/v1/discovery/consul/dump | jq
{
"config": {
"keepalive": true,
"weight": 1,
"timeout": {
"connect": 2000,
"read": 2000,
"wait": 60
},
"fetch_interval": 3,
"token": "",
"servers": [
"http://consul.internal:8500"
]
},
"services": {
"alertmanager": [
{
"port": 20928,
"host": "10.0.2.69",
"weight": 1
}
],
...
from apisix.
consul version 1.18
from apisix.
The information you provided is insufficient to attempt reproduction of this bug
hello, any other info needed?
from apisix.
@jzhao20230918 I haven't gotten the time to check this bug but the yaml configuration you shared isn't indented at all. Please fix it.
from apisix.
apisix:
node_listen: 9080
enable_ipv6: false
enable_control: true
control:
ip: "0.0.0.0"
port: 9092
discovery:
consul:
servers:
- "http://10.0.2.69:8500"
sort_type: host_sort
dump:
path: "consul.dump"
load_on_init: false
deployment:
admin:
allow_admin:
- 0.0.0.0/0
admin_key:
- name: "admin"
key: edd1c9f034335f136f87ad84b625c8f1
role: admin
- name: "viewer"
key: 4054f7cf07e344346cd3f287985e76a2
role: viewer
etcd:
host:
- "http://etcd.internal:2379"
prefix: "/apisix"
timeout: 30
plugin_attr:
prometheus:
export_addr:
ip: "0.0.0.0"
port: 9091
from apisix.
might be related to #10941
from apisix.
Related Issues (20)
- help request: oidc plugin and opa with apisix ingress HOT 3
- bug: the plugin metadata obtained from etcd has not been validated by schema
- docs: broken links in manage api consumers page HOT 3
- feat: support DPoP in OpenID Connect/OAuth2 plugin HOT 1
- bug: not getting the authorization token in header using openid-connect plugin HOT 4
- bug: 413 Request Entity Too Large
- bug: node-status plugin doesn't work with https HOT 2
- feat: As a user, I want to make `regex-uri` able to use nginx context variables for Plugin [proxy-rewrite] HOT 1
- Support latest `gateway.networking.k8s.io/v1`
- vulnerabilities: images apisix-3.9.1-debian and apisix-dashboard:3.0.1-alpine
- help request: openid-connect different clients unexpectedly shared the same auth session HOT 6
- help request: How to export and import configuration files when switching environments HOT 1
- help request: When I was testing with forward-auth.lua, I found that enabling keepalive would cause the authentication server to fail when parsing the HTTP protocol
- help request: 如何实现跳过当前高优先级路由,继续匹配低优先级路由
- bug: apisix’s upstream code and prometheus‘s code Inconsistency
- bug: apisix prometheus metrics port not running. HOT 8
- help request: How to use Ingress CRD with host and port HOT 3
- feat: Add the possibility to manipulate query parameters / search string using proxy-rewrite plugin
- bug: Configuration errors due to environment variables sharing prefixes HOT 1
- help request: Need to download the offline version of Apisix 3.2.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisix.