kubesphere3.1.0
k8s版本v1.20.4
控制台多点几下就 500 Internal Privoxy Error

ks-console pod下面的错误,超60s 就500
-x- GET /kapis/resources.kubesphere.io/v1alpha2/componenthealth 500 60s - 2021/07/19T15:12:49.611
<– GET /kapis/resources.kubesphere.io/v1alpha2/componenthealth 2021/07/19T15:13:19.939
Error: socket hang up
at connResetException (internal/errors.js:609:14)
at Socket.socketCloseListener (http_client.js:401:25)
at Socket.emit (events.js:326:22)
at TCP.<anonymous> (net.js:675:12) {
code: ‘ECONNRESET’
}
-x- GET /kapis/resources.kubesphere.io/v1alpha2/componenthealth 500 60s - 2021/07/19T15:13:34.294
<– GET /kapis/resources.kubesphere.io/v1alpha2/componenthealth 2021/07/19T15:13:37.570
<– GET /kapis/resources.kubesphere.io/v1alpha2/componenthealth 2021/07/19T15:14:20.909
Error: socket hang up
at connResetException (internal/errors.js:609:14)
at Socket.socketCloseListener (
http_client.js:401:25)
at Socket.emit (events.js:326:22)
at TCP.<anonymous> (net.js:675:12) {
code: ‘ECONNRESET’
}

    hongming 感谢回复,
    本地有代理,但不是全局,现在关了测试,没有500;
    新的报错:
    <– GET /kapis/monitoring.kubesphere.io/v1alpha3/components/scheduler?start=1626649871&end=1626679871&step=300s&times=100&metrics_filter=scheduler_schedule_attempts%7Cscheduler_schedule_attempt_rate%24 2021/07/19T15:31:11.005
    Error: Http response closed while proxying /kapis/resources.kubesphere.io/v1alpha3/nodes?sortBy=createTime&limit=10&labelSelector=%21node-role.kubernetes.io%2Fedge
    at ServerResponse.<anonymous> (/opt/kubesphere/console/server/server.js:45135:14)
    at ServerResponse.emit (events.js:314:20)
    at Socket.onServerResponseClose (http_server.js:209:44)
    at Socket.emit (events.js:326:22)
    at TCP.<anonymous> (net.js:675:12)
    <– GET /kapis/monitoring.kubesphere.io/v1alpha3/cluster?start=1626319872&end=1626679872&step=3600s&times=100&metrics_filter=cluster_namespace_count%24 2021/07/19T15:32:01.164
    <– GET /kapis/version 2021/07/19T15:32:21.169
    <– GET /kapis/resources.kubesphere.io/v1alpha3/storageclasses?sortBy=createTime&limit=10 2021/07/19T15:32:26.428
    <– GET /kapis/resources.kubesphere.io/v1alpha3/secrets?sortBy=createTime&limit=10 2021/07/19T15:32:31.116
    Error: Http response closed while proxying /kapis/resources.kubesphere.io/v1alpha3/namespaces/kubesphere-system/pods?limit=10&labelSelector=app%3Dredis-ha%2Crelease%3Dks-redis%2Cstatefulset.kubernetes.io%2Fpod-name%3Dredis-ha-server-2&sortBy=startTime
    at ServerResponse.<anonymous> (/opt/kubesphere/console/server/server.js:45135:14)
    at ServerResponse.emit (events.js:314:20)
    at Socket.onServerResponseClose (
    http_server.js:209:44)
    at Socket.emit (events.js:326:22)
    at TCP.<anonymous> (net.js:675:12)
    Error: Http response closed while proxying /kapis/resources.kubesphere.io/v1alpha3/jobs?sortBy=updateTime&limit=10
    at ServerResponse.<anonymous> (/opt/kubesphere/console/server/server.js:45135:14)
    at ServerResponse.emit (events.js:314:20)
    at Socket.onServerResponseClose (_http_server.js:209:44)
    at Socket.emit (events.js:326:22)
    at TCP.<anonymous> (net.js:675:12)

    升级到3.1.1 还是没有解决
    Error: socket hang up
    at connResetException (internal/errors.js:609:14)
    at Socket.socketCloseListener (http_client.js:401:25)
    at Socket.emit (events.js:326:22)
    at TCP.<anonymous> (net.js:675:12) {
    code: ‘ECONNRESET’
    }
    -x- GET /kapis/resources.kubesphere.io/v1alpha3/jobs?sortBy=updateTime&limit=10 500 60s - 2021/07/20T08:44:32.855
    Error: socket hang up
    at connResetException (internal/errors.js:609:14)
    at Socket.socketCloseListener (
    http_client.js:401:25)
    at Socket.emit (events.js:326:22)
    at TCP.<anonymous> (net.js:675:12) {
    code: ‘ECONNRESET’
    }
    -x- GET /kapis/resources.kubesphere.io/v1alpha3/secrets?sortBy=createTime&limit=10 500 60s - 2021/07/20T08:44:41.661
    Error: socket hang up
    at connResetException (internal/errors.js:609:14)
    at Socket.socketCloseListener (_http_client.js:401:25)
    at Socket.emit (events.js:326:22)
    at TCP.<anonymous> (net.js:675:12) {
    code: ‘ECONNRESET’
    }

    Internal Privoxy Error
    <html> <head> <title>500 Internal Privoxy Error</title> <link rel=“shortcut icon” href=“http://config.privoxy.org/error-favicon.ico” type=“image/x-icon”></head> <body> <h1>500 Internal Privoxy Error</h1> <p>Privoxy encountered an error while processing your request:</p> <p><b>Could not load template file <code>connection-timeout</code> or one of its included components.</b></p> <p>Please contact your proxy administrator.</p> <p>If you are the proxy administrator, please put the required file(s)in the <code><i>(confdir)</i>/templates</code> directory. The location of the <code><i>(confdir)</i></code> directory is specified in the main Privoxy <code>config</code> file. (It’s typically the Privoxy install directory).</p> </body> </html>

      9 个月 后

      hongming 也遇到类似问题,一直正常运行,今天突然sc list页面提示500错误

      <-- GET /kapis/resources.kubesphere.io/v1alpha3/storageclasses?sortBy=createTime&limit=10 2022/04/26T09:54:56.976
      { Error: socket hang up
        at createHangUpError (_http_client.js:342:15)
        at Socket.socketOnEnd (_http_client.js:437:23)
        at emitNone (events.js:111:20)
        at Socket.emit (events.js:208:7)
        at endReadableNT (_stream_readable.js:1064:12)
        at _combinedTickCallback (internal/process/next_tick.js:139:11)
        at process._tickCallback (internal/process/next_tick.js:181:9) code: 'ECONNRESET' }
      --> GET /kapis/resources.kubesphere.io/v1alpha3/storageclasses?sortBy=createTime&limit=10 500 13ms - 2022/04/26T09:54:56.989