MongoosePush / mod_push MongooseIM泊坞窗运行不起作用

时间:2017-07-15 18:33:09

标签: erlang xmpp ejabberd mongoose-im

我正在尝试为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' {#{'的例外' =>真,'的结构' => ' Elixir.ArgumentError',message => << \"无法启动Cowboy适配器,SSL所需的文件/opt/app/priv/ssl/server.key:keyfile要么不存在,要么应用程序没有权限访问它\">>},[{' Elixir.Plug.Adapters.Cowboy',失败,1,[{file,\" lib / plug / adapters / cowboy.ex \"},{线,245}]},{' Elixir.Plug.Adapters.Cowboy',put_ssl_file,3,[{文件,\" LIB /插头/adapters/cowboy.ex\"},{line,222}]},{'Elixir.Enum','-reduce/3-lists^foldl/2-0- ',3,[{文件,\" LIB / enum.ex \"},{线,1755}]},{' Elixir.Plug.Adapters.Cowboy&#39 ;,normalize_cowboy_options,2,[{文件,\" LIB /插头/适配器/ cowboy.ex \"},{线,167}]},{' Elixir.Plug.Adapters。牛仔',指定参数时,如图4所示,[{文件,\" LIB /插头/适配器/ cowboy.ex \"},{线,49}]},{' Elixir.Plug .Adapters.Cowboy',child_spec,4,[{文件,\" LIB /插头/适配器/ cowboy.ex \"},{线,137}]},{' Elixir.Maru'' - 启动/ 2-乐趣0 - ',4,[{文件,\" LIB / maru.ex \"},{线,32}]},{'&Elixir.Enum #39;,' - 减少/ 3列出^与foldl / 2-0 - ',3,[{文件,\" LIB / enum.ex \"},{线,1755}]}]}}}}}"} 内核pid终止(application_controller)({application_start_failure,maru,{bad_return,{{' Elixir.Maru',start,[normal,[]]},{' EXIT',{# {' 例外' => true,' 结构' =>' Elixir.ArgumentError&#39 ;

1 个答案:

答案 0 :(得分:0)

我能够解决这个问题,请看这个链接:

https://github.com/esl/MongoosePush/issues/26