我可以看到使用
在端口5984
和6984
上运行沙发数据库
sudo lsof -i :5984
和
sudo lsof -i :6984
但是,当我通过浏览器访问它时,我会在帖子底部分享错误。我需要通过从SSL
上运行的应用程序运行的pouch db来访问它。
在local.ini中,我有这个:
[ssl]
cert_file = /home/ec2-user/api_aonesalons_com.crt
key_file = /home/ec2-user/myserver.key
在https上访问时出现错误。
[error] [<0.392.0>] {error_report,<0.62.0>,
{<0.392.0>,std_error,
[83,83,76,58,32,"1112",58,32,"error",58,
"[]",32,"/home/ec2-user/myserver.key",
"\n",32,32,
[91,
[[123,
["ssl_connection",44,
"init_private_key",44,"5"],
125],
44,10," ",
[123,
["ssl_connection",44,"ssl_init",44,"2"],
125],
44,10," ",
[123,
["ssl_connection",44,"init",44,"1"],
125],
44,10," ",
[123,
["gen_fsm",44,"init_it",44,"6"],
125],
44,10," ",
[123,
["proc_lib",44,"init_p_do_apply",44,
"3"],
125]],
93],
"\n"]}}
=ERROR REPORT==== 8-Feb-2018::15:40:11 ===
SSL: 1112: error:[] /home/ec2-user/myserver.key
[{ssl_connection,init_private_key,5},
{ssl_connection,ssl_init,2},
{ssl_connection,init,1},
{gen_fsm,init_it,6},
{proc_lib,init_p_do_apply,3}]
[error] [<0.392.0>] {error_report,<0.62.0>,
{<0.392.0>,crash_report,
[[{initial_call,
{ssl_connection,init,['Argument__1']}},
{pid,<0.392.0>},
{registered_name,[]},
{error_info,
{exit,ekeyfile,
[{gen_fsm,init_it,6},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,[ssl_connection_sup,ssl_sup,<0.63.0>]},
{messages,[]},
{links,[<0.67.0>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,1597},
{stack_size,24},
{reductions,1169}],
[]]}}
=CRASH REPORT==== 8-Feb-2018::15:40:11 ===
crasher:
initial call: ssl_connection:init/1
pid: <0.392.0>
registered_name: []
exception exit: ekeyfile
in function gen_fsm:init_it/6
ancestors: [ssl_connection_sup,ssl_sup,<0.63.0>]
messages: []
links: [<0.67.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 1597
stack_size: 24
reductions: 1169
neighbours:
[error] [<0.67.0>] {error_report,<0.62.0>,
{<0.67.0>,supervisor_report,
[{supervisor,{local,ssl_connection_sup}},
{errorContext,child_terminated},
{reason,ekeyfile},
{offender,
[{pid,<0.392.0>},
{name,undefined},
{mfargs,{ssl_connection,start_link,undefined}},
{restart_type,temporary},
{shutdown,4000},
{child_type,worker}]}]}}
=SUPERVISOR REPORT==== 8-Feb-2018::15:40:11 ===
Supervisor: {local,ssl_connection_sup}
Context: child_terminated
Reason: ekeyfile
Offender: [{pid,<0.392.0>},
{name,undefined},
{mfargs,{ssl_connection,start_link,undefined}},
{restart_type,temporary},
{shutdown,4000},
{child_type,worker}]
[error] [<0.180.0>] {error_report,<0.31.0>,
{<0.180.0>,std_error,
[{application,mochiweb},
"Accept failed error",
"{error,ekeyfile}"]}}
=ERROR REPORT==== 8-Feb-2018::15:40:11 ===
application: mochiweb
"Accept failed error"
"{error,ekeyfile}"
[error] [<0.180.0>] {error_report,<0.31.0>,
{<0.180.0>,crash_report,
[[{initial_call,
{mochiweb_acceptor,init,
['Argument__1','Argument__2',
'Argument__3']}},
{pid,<0.180.0>},
{registered_name,[]},
{error_info,
{exit,
{error,accept_failed},
[{mochiweb_acceptor,init,3},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,
[https,couch_secondary_services,
couch_server_sup,<0.32.0>]},
{messages,[]},
{links,[<0.146.0>,#Port<0.3466>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,987},
{stack_size,24},
{reductions,18123}],
[]]}}
=CRASH REPORT==== 8-Feb-2018::15:40:11 ===
crasher:
initial call: mochiweb_acceptor:init/3
pid: <0.180.0>
registered_name: []
exception exit: {error,accept_failed}
in function mochiweb_acceptor:init/3
ancestors: [https,couch_secondary_services,couch_server_sup,<0.32.0>]
messages: []
links: [<0.146.0>,#Port<0.3466>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 24
reductions: 18123
neighbours:
[error] [<0.146.0>] {error_report,<0.31.0>,
{<0.146.0>,std_error,
{mochiweb_socket_server,297,
{acceptor_error,{error,accept_failed}}}}}
=ERROR REPORT==== 8-Feb-2018::15:40:11 ===
{mochiweb_socket_server,297,{acceptor_error,{error,accept_failed}}}
这里使用的SSL证书与apache一起工作正常,所以不应该是一个问题。 我面临的问题与此处描述的相同 https://groups.google.com/forum/#!topic/couchdb-user-archive/Jlqfj-8a_sM