我正在尝试为 mongooseIM 服务器配置 mod_push。我取得了一些成功,但是当我运行 docker 时,它给出了错误。我正在关注此文档: https ://mongooseim.readthedocs.io/en/latest/user-guide/Push-notifications/
我的命令如下所示:
docker run -v /home/ubuntu/MongooseIM/priv:/opt/app/priv -e PUSH_FCM_APP_KEY="AAAA5y_R5rA:APA91bGUmR7xsghMfgpudP64lt1JdJ2XBqxYLijGerdIaLI7Z4ZXqYfVRYjqKIUm6opCvEvS5H8m_KEtr9J_VRJlX9Ge7U-U5S2dasjjx0LtxQfjCSddhwxYXgR4goX8fBStIdoYikYM" -e PUSH_HTTPS_CERTFILE="/opt/app/priv/ssl/server.pem" -e PUSH_HTTPS_KEYFILE="/opt/app/priv/ssl/server.key" -it --rm mongooseim/mongoose-push:latest
我得到错误:
{"内核 pid 终止",application_controller,"{application_start_failure,maru,{bad_return,{{'Elixir.Maru',start,[normal,[]]},{'EXIT',{#{' exception ' => true ,'结构' => 'Elixir.ArgumentError',message => <<\"无法启动 Cowboy 适配器,SSL 的 :keyfile 所需的文件 /opt/app/priv/ssl/server.key 要么不存在,要么应用程序存在没有权限访问它\">>},[{'Elixir.Plug.Adapters.Cowboy',fail,1,[{file,\"lib/plug/adapters/cowboy.ex\"},{line, 245}]},{'Elixir.Plug.Adapters.Cowboy',put_ssl_file,3,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,222}]},{'Elixir .Enum','-reduce/3-lists^foldl/2-0-',3,[{file,\"lib/enum.ex\"},{line,1755}]},{'Elixir.Plug .Adapters.Cowboy',normalize_cowboy_options,2,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,167}]},{'Elixir.Plug.Adapters.Cowboy',args, 4,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,49}]},{'Elixir.Plug.Adapters.Cowboy',child_spec,4,[{file,\"lib/plug/adapters/cowboy.ex\"},{line,137}]},{'Elixir.Maru','-start/2 -fun-0-',4,[{file,\"lib/maru.ex\"},{line,32}]},{'Elixir.Enum','-reduce/3-lists^foldl/2 -0-',3,[{file,\"lib/enum.ex\"},{line,1755}]}]}}}}}"} 内核 pid 终止(application_controller)({application_start_failure,maru,{ bad_return,{{'Elixir.Maru',start,[正常,[]]},{'EXIT',{#{'} 内核 pid 终止 (application_controller) ({application_start_failure,maru,{bad_return,{{'Elixir.Maru',start,[normal,[]]},{'EXIT',{#{'} 内核 pid 终止 (application_controller) ({application_start_failure,maru,{bad_return,{{'Elixir.Maru',start,[normal,[]]},{'EXIT',{#{'异常'=> true,'结构'=>'Elixir.ArgumentError'