apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: missing ssl cert for ssl

Open backnero opened this issue 6 years ago • 15 comments

Issue description

/usr/local/openresty/luajit/bin/luajit: /usr/bin/apisix:256: missing ssl cert for ssl
stack traceback:
[C]: in function 'error'
/usr/bin/apisix:256: in function </usr/bin/apisix:150>
/usr/bin/apisix:419: in main chunk
[C]: at 0x00404d60

No configuration has been modified. After re-pulling the 2.0 image deployment from 5 pm on December 1st, this error occurred and it failed to start

Environment

  • apisix version (cmd: apisix version):2.0
  • OS: dockerhub centos v2.0 apisix rancher + K8s image : apache/apisix:2.0-centos

Minimal test code / Steps to reproduce the issue

1. 2. 3.

What's the actual result? (including assertion message & call stack if applicable)

What's the expected result?

backnero avatar Dec 02 '20 04:12 backnero

image Browser access tips

backnero avatar Dec 02 '20 04:12 backnero

i tried change ssl enable to "false" in config.yaml ,and apisix is no longer supported https access .

look config-default.yaml ,add ssl config below # ssl_cert: /path/to/ssl_cert # ssl_cert_key: /path/to/ssl_cert_key

souzens avatar Dec 02 '20 04:12 souzens

@gxthrj look at this issue if you have time

idbeta avatar Dec 02 '20 07:12 idbeta

i tried change ssl enable to "false" in config.yaml ,and apisix is no longer supported https access .

look config-default.yaml ,add ssl config below

ssl_cert: /path/to/ssl_cert

ssl_cert_key: /path/to/ssl_cert_key

If it is set to false, does not support https refer to adminapi or all https requests? Because I set up multiple domain names and certificates through sni. If ssl is set in config, should there be multiple certificates or one certificate?

backnero avatar Dec 02 '20 07:12 backnero

The same configuration, image. I have used it for nearly half a month. During the period, the application will be restarted regularly, and this error did not appear. This error began to appear after the afternoon of December 1st. I don't know why.

backnero avatar Dec 02 '20 07:12 backnero

2020/12/02 07:20:29 [warn] 14#14: *10 [lua] init.lua:262: sync_local_conf_to_etcd(): sync local conf to etcd, context: ngx.timer
2020/12/02 07:20:29 [error] 14#14: *10 [lua] init.lua:283: sync_local_conf_to_etcd(): failed to set plugins: connection refused, context: ngx.timer
2020/12/02 07:20:32 [error] 14#14: *234 [lua] client.lua:92: reportServiceInstance(): Instance report fails, connection refused, context: ngx.timer
2020/12/02 07:20:33 [error] 15#15: *363 [lua] exporter.lua:284: handler(): prometheus: plugin is not initialized, please make sure  'prometheus_metrics' shared dict is present in nginx template, client: 127.0.0.1, server: , request: "GET /apisix/prometheus/metrics HTTP/1.1", host: "gateway.default.svc.cluster.local:9080"
2020/12/02 07:20:35 [error] 14#14: *495 [lua] client.lua:92: reportServiceInstance(): Instance report fails, connection refused, context: ngx.timer
2020/12/02 07:20:38 [error] 14#14: *742 [lua] client.lua:92: reportServiceInstance(): Instance report fails, connection refused, context: ngx.timer
2020/12/02 07:20:41 [error] 14#14: *991 [lua] client.lua:92: reportServiceInstance(): Instance report fails, connection refused, context: ngx.timer
2020/12/02 07:20:44 [error] 14#14: *1239 [lua] client.lua:92: reportServiceInstance(): Instance report fails, connection refused, context: ngx.timer
2020/12/02 07:20:47 [error] 14#14: *1486 [lua] client.lua:92: reportServiceInstance(): Instance report fails, connection refused, context: ngx.timer

Error in error.log

I use yaml as the configuration center

backnero avatar Dec 02 '20 07:12 backnero

image V2.0 image is updated

backnero avatar Dec 02 '20 07:12 backnero

@gxthrj do you have time to look at this issue?

membphis avatar Dec 02 '20 08:12 membphis

I try to reproduce in 2.0-centos.

gxthrj avatar Dec 02 '20 10:12 gxthrj

Oops, in k8s or in docker can not reproduce. image

gxthrj avatar Dec 02 '20 11:12 gxthrj

Can you roll back the last submitted docker image in v2.0

backnero avatar Dec 03 '20 01:12 backnero

Does the 2.1 update affect the docker image in the hub? I see that the 2.1 version of the docker image is the same size as the 2.0 version of the docker image

image

backnero avatar Dec 03 '20 01:12 backnero

I may have found the reason. I specified the SSL certificate. Before that, I don’t need to specify it at startup.

Hcreak avatar Dec 03 '20 01:12 Hcreak

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 [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Nov 18 '21 10:11 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Dec 07 '21 10:12 github-actions[bot]