【发布时间】:2021-07-27 22:38:41
【问题描述】:
我正在为CKAN 安装datapusher 服务。 CKAN 已配置为使用 NGINX 反向代理来路由客户端请求,遵循instructions here。 SSL 证书在 NGINX 中安装和配置。 尝试使用 datapusher 应用程序上传文件时,它失败并且 Apache 日志给出了以下错误:
Mon Apr 03 13:49:10.979179 2017] [:error] [pid 15468] 2017-04-03 13:49:10,979 CRITI [ckanext.datapusher.plugin] {'status_code': 403, 'message': 'An Error occurred while sending the job: 403 Client Error: Forbidden', 'details': u'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\\n<html><head>\\n<title>403 Forbidden</title>\\n</head><body>\\n<h1>Forbidden</h1>\\n<p>You don\\'t have permission to access /job\\non this server.</p>\\n<hr>\\n<address>Apache/2.4.7 (Ubuntu) Server at 127.0.0.1 Port 8800</address>\\n</body></html>\\n'}
当测试通过openssl访问datapusher的8800端口时,输出如下:
[Mon Apr 03 13:49:10.981049 2017] [:error] [pid 15468] [remote 127.0.0.1:6855] Error - <type 'exceptions.TypeError'>: notify() takes exactly 3 arguments (2 given)
open:/etc/ckan> openssl s_client -connect 127.0.0.1:8800
CONNECTED(00000003)
140385459791520:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 275 bytes
datapusher 文档提供了绕过 SSL here 的解决方法,使用 SSL_Verify 配置。我试过了,没有任何变化。
我认为我需要: 1.强制nginx反向代理允许通过8800端口(除了443)进行SSL连接。或者... 2.配置ckan/datapusher/apache/nginx绕过880端口的SSL/https。
有什么建议吗?
【问题讨论】: