EllusionLee 2019-12-09 11:00
浏览 468

yaws服务器windows下启动报错

Yaws服务器我2.0.4 2.0.3 1.99都有尝试过,全部启动不起来.
erlang版本是 OTP/21.
.

PS C:\Develop\yaws1.9> yaws -i
Eshell V10.0.1  (abort with ^G)
1> =INFO REPORT==== 9-Dec-2019::10:57:22.039000 ===
Yaws: Using config file C:\Develop\yaws1.9\yaws.conf

1> =ERROR REPORT==== 9-Dec-2019::10:57:22.070000 ===
Config Warning: Directory c:/Develop/yaws1.9/yaws/ebin for ebin_dir doesn't exist

1> =ERROR REPORT==== 9-Dec-2019::10:57:22.117000 ===
** Generic server yaws_log terminating
** Last message in was {setup,
                           {gconf,"c:/Develop/yaws1.9",false,100,
                               "c:/Develop/yaws1.9/logs",
                               ["c:/Develop/yaws1.9/examples/ebin",
                                "c:/Develop/yaws1.9/examples/ebin"],
                               [],[],30000,nolimit,400,1000000,8000,nolimit,
                               [],10240,[],1000000,30,
                               ["c:/Develop/yaws1.9/examples/include",
                                "c:/Develop/yaws1.9/examples/include"],
                               "/usr/bin/php-cgi","Yaws 1.99","default",false,
                               [],yaws_session_server,8,undefined,
                               [inet]},
                           [[{sconf,8080,7,[],undefined,undefined,
                                 "c:/Develop/yaws1.9/www",[],
                                 {0,0,0,0},
                                 "localhost:8080",[],undefined,undefined,
                                 undefined,
                                 [{"c:/Develop/yaws1.9/www",[]}],
                                 10240,
                                 [{"cgi-bin",yaws_appmod_cgi}],
                                 [],yaws_outmod,yaws_outmod,yaws_outmod,yaws,
                                 yaws_log,[],undefined,
                                 [yaws,php,cgi,fcgi],
                                 [],
                                 ["index.yaws","index.html","index.php"],
                                 [],
                                 [{listen_opts,[{backlog,1024}]}],
                                 [],undefined,undefined,
                                 {cgi,"/usr/bin/php-cgi"},
                                 undefined,undefined,undefined,undefined}]]}
** When Server state == {state,false,undefined,
                               ["[","09","/","Dec","/","2019",":","10",":",
                                "57",":","22"," ",
                                [43,"08","00"],
                                "]"],
                               1000000,undefined,false}
** Reason for termination ==
** {noproc,[{gen,do_for_proc,2,[{file,"gen.erl"},{line,228}]},
            {gen_event,rpc,2,[{file,"gen_event.erl"},{line,239}]},
            {yaws_log,terminate,2,
                      [{file,"../../src/yaws_log.erl"},{line,397}]},
            {gen_server,try_terminate,3,[{file,"gen_server.erl"},{line,673}]},
            {gen_server,terminate,10,[{file,"gen_server.erl"},{line,858}]},
            {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}
** Client yaws_server stacktrace
** [{gen,do_call,4,[{file,"gen.erl"},{line,169}]},
    {gen_server,call,3,[{file,"gen_server.erl"},{line,219}]},
    {yaws_server,init,1,[{file,"../../src/yaws_server.erl"},{line,170}]},
    {gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]},
    {gen_server,init_it,6,[{file,"gen_server.erl"},{line,342}]},
    {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

1> =CRASH REPORT==== 9-Dec-2019::10:57:22.133000 ===
  crasher:
    initial call: yaws_log:init/1
    pid: <0.77.0>
    registered_name: yaws_log
    exception exit: noproc
      in function  gen:do_for_proc/2 (gen.erl, line 228)
      in call from gen_event:rpc/2 (gen_event.erl, line 239)
      in call from yaws_log:terminate/2 (../../src/yaws_log.erl, line 397)
      in call from gen_server:try_terminate/3 (gen_server.erl, line 673)
      in call from gen_server:terminate/10 (gen_server.erl, line 858)
    ancestors: [yaws_sup,<0.75.0>]
    message_queue_len: 0
    messages: []
    links: [<0.76.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 4185
    stack_size: 27
    reductions: 119617
  neighbours:

1> =SUPERVISOR REPORT==== 9-Dec-2019::10:57:22.133000 ===
    supervisor: {local,yaws_sup}
    errorContext: start_error
    reason: {noproc,
                {gen_server,call,
                    [yaws_log,
                     {setup,
                         {gconf,"c:/Develop/yaws1.9",false,100,
                             "c:/Develop/yaws1.9/logs",
                             ["c:/Develop/yaws1.9/examples/ebin",
                              "c:/Develop/yaws1.9/examples/ebin"],
                             [],[],30000,nolimit,400,1000000,8000,nolimit,[],
                             10240,[],1000000,30,
                             ["c:/Develop/yaws1.9/examples/include",
                              "c:/Develop/yaws1.9/examples/include"],
                             "/usr/bin/php-cgi","Yaws 1.99","default",false,
                             [],yaws_session_server,8,undefined,
                             [inet]},
                         [[{sconf,8080,7,[],undefined,undefined,
                               "c:/Develop/yaws1.9/www",[],
                               {0,0,0,0},
                               "localhost:8080",[],undefined,undefined,
                               undefined,
                               [{"c:/Develop/yaws1.9/www",[]}],
                               10240,
                               [{"cgi-bin",yaws_appmod_cgi}],
                               [],yaws_outmod,yaws_outmod,yaws_outmod,yaws,
                               yaws_log,[],undefined,
                               [yaws,php,cgi,fcgi],
                               [],
                               ["index.yaws","index.html","index.php"],
                               [],
                               [{listen_opts,[{backlog,1024}]}],
                               [],undefined,undefined,
                               {cgi,"/usr/bin/php-cgi"},
                               undefined,undefined,undefined,undefined}]]},
                     infinity]}}
    offender: [{pid,undefined},
               {id,yaws_server},
               {mfargs,
                   {yaws_server,start_link,
                       [{env,false,false,false,
                            {file,"C:\\Develop\\yaws1.9\\yaws.conf"},
                            false,false,"default"}]}},
               {restart_type,permanent},
               {shutdown,120000},
               {child_type,worker}]
1> =SUPERVISOR REPORT==== 9-Dec-2019::10:57:22.133000 ===
    supervisor: {local,yaws_sup}
    errorContext: shutdown_error
    reason: noproc
    offender: [{pid,<0.77.0>},
               {id,yaws_log},
               {mfargs,{yaws_log,start_link,[]}},
               {restart_type,permanent},
               {shutdown,5000},
               {child_type,worker}]
1> =CRASH REPORT==== 9-Dec-2019::10:57:22.133000 ===
  crasher:
    initial call: yaws_server:init/1
    pid: <0.79.0>
    registered_name: []
    exception exit: {noproc,
                        {gen_server,call,
                            [yaws_log,
                             {setup,
                                 {gconf,"c:/Develop/yaws1.9",false,100,
                                     "c:/Develop/yaws1.9/logs",
                                     ["c:/Develop/yaws1.9/examples/ebin",
                                      "c:/Develop/yaws1.9/examples/ebin"],
                                     [],[],30000,nolimit,400,1000000,8000,
                                     nolimit,[],10240,[],1000000,30,
                                     ["c:/Develop/yaws1.9/examples/include",
                                      "c:/Develop/yaws1.9/examples/include"],
                                     "/usr/bin/php-cgi","Yaws 1.99","default",
                                     false,[],yaws_session_server,8,undefined,
                                     [inet]},
                                 [[{sconf,8080,7,[],undefined,undefined,
                                       "c:/Develop/yaws1.9/www",[],
                                       {0,0,0,0},
                                       "localhost:8080",[],undefined,
                                       undefined,undefined,
                                       [{"c:/Develop/yaws1.9/www",[]}],
                                       10240,
                                       [{"cgi-bin",yaws_appmod_cgi}],
                                       [],yaws_outmod,yaws_outmod,yaws_outmod,
                                       yaws,yaws_log,[],undefined,
                                       [yaws,php,cgi,fcgi],
                                       [],
                                       ["index.yaws","index.html","index.php"],
                                       [],
                                       [{listen_opts,[{backlog,1024}]}],
                                       [],undefined,undefined,
                                       {cgi,"/usr/bin/php-cgi"},
                                       undefined,undefined,undefined,
                                       undefined}]]},
                             infinity]}}
      in function  gen_server:call/3 (gen_server.erl, line 223)
      in call from yaws_server:init/1 (../../src/yaws_server.erl, line 170)
      in call from gen_server:init_it/2 (gen_server.erl, line 374)
      in call from gen_server:init_it/6 (gen_server.erl, line 342)
    ancestors: [yaws_sup,<0.75.0>]
    message_queue_len: 0
    messages: []
    links: [<0.76.0>]
    dictionary: [{start_time,{{2019,12,9},{10,57,22}}}]
    trap_exit: true
    status: running
    heap_size: 6772
    stack_size: 27
    reductions: 64032
  neighbours:

1> =CRASH REPORT==== 9-Dec-2019::10:57:22.133000 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.74.0>
    registered_name: []
    exception exit: {{shutdown,
                      {failed_to_start_child,yaws_server,
                       {noproc,
                        {gen_server,call,
                         [yaws_log,
                          {setup,
                           {gconf,"c:/Develop/yaws1.9",false,100,
                            "c:/Develop/yaws1.9/logs",
                            ["c:/Develop/yaws1.9/examples/ebin",
                             "c:/Develop/yaws1.9/examples/ebin"],
                            [],[],30000,nolimit,400,1000000,8000,nolimit,[],
                            10240,[],1000000,30,
                            ["c:/Develop/yaws1.9/examples/include",
                             "c:/Develop/yaws1.9/examples/include"],
                            "/usr/bin/php-cgi","Yaws 1.99","default",false,[],
                            yaws_session_server,8,undefined,
                            [inet]},
                           [[{sconf,8080,7,[],undefined,undefined,
                              "c:/Develop/yaws1.9/www",[],
                              {0,0,0,0},
                              "localhost:8080",[],undefined,undefined,
                              undefined,
                              [{"c:/Develop/yaws1.9/www",[]}],
                              10240,
                              [{"cgi-bin",yaws_appmod_cgi}],
                              [],yaws_outmod,yaws_outmod,yaws_outmod,yaws,
                              yaws_log,[],undefined,
                              [yaws,php,cgi,fcgi],
                              [],
                              ["index.yaws","index.html","index.php"],
                              [],
                              [{listen_opts,[{backlog,1024}]}],
                              [],undefined,undefined,
                              {cgi,"/usr/bin/php-cgi"},
                              undefined,undefined,undefined,undefined}]]},
                          infinity]}}}},
                     {yaws_app,start,[normal,[]]}}
      in function  application_master:init/4 (application_master.erl, line 138)
    ancestors: [<0.73.0>]
    message_queue_len: 0
    messages: [{'EXIT',<0.75.0>,normal}]
    links: [<0.73.0>,<0.42.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 263
  neighbours:

1> =INFO REPORT==== 9-Dec-2019::10:57:22.148000 ===
    application: yaws
    exited: {{shutdown,
              {failed_to_start_child,yaws_server,
               {noproc,
                {gen_server,call,
                 [yaws_log,
                  {setup,
                   {gconf,"c:/Develop/yaws1.9",false,100,
                    "c:/Develop/yaws1.9/logs",
                    ["c:/Develop/yaws1.9/examples/ebin",
                     "c:/Develop/yaws1.9/examples/ebin"],
                    [],[],30000,nolimit,400,1000000,8000,nolimit,[],10240,[],
                    1000000,30,
                    ["c:/Develop/yaws1.9/examples/include",
                     "c:/Develop/yaws1.9/examples/include"],
                    "/usr/bin/php-cgi","Yaws 1.99","default",false,[],
                    yaws_session_server,8,undefined,
                    [inet]},
                   [[{sconf,8080,7,[],undefined,undefined,
                      "c:/Develop/yaws1.9/www",[],
                      {0,0,0,0},
                      "localhost:8080",[],undefined,undefined,undefined,
                      [{"c:/Develop/yaws1.9/www",[]}],
                      10240,
                      [{"cgi-bin",yaws_appmod_cgi}],
                      [],yaws_outmod,yaws_outmod,yaws_outmod,yaws,yaws_log,[],
                      undefined,
                      [yaws,php,cgi,fcgi],
                      [],
                      ["index.yaws","index.html","index.php"],
                      [],
                      [{listen_opts,[{backlog,1024}]}],
                      [],undefined,undefined,
                      {cgi,"/usr/bin/php-cgi"},
                      undefined,undefined,undefined,undefined}]]},
                  infinity]}}}},
             {yaws_app,start,[normal,[]]}}
    type: permanent
1> {"Kernel pid terminated",application_controller,"{application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{noproc,{gen_server,call,[yaws_log,{setup,{gconf,\"c:/Develop/yaws1.9\",false,100,\"c:/Develop/yaws1.9/logs\",[\"c:/Develop/yaws1.9/examples/ebin\",\"c:/Develop/yaws1.9/examples/ebin\"],[],[],30000,nolimit,400,1000000,8000,nolimit,[],10240,[],1000000,30,[\"c:/Develop/yaws1.9/examples/include\",\"c:/Develop/yaws1.9/examples/include\"],\"/usr/bin/php-cgi\",\"Yaws 1.99\",\"default\",false,[],yaws_session_server,8,undefined,[inet]},[[{sconf,8080,7,[],undefined,undefined,\"c:/Develop/yaws1.9/www\",[],{0,0,0,0},\"localhost:8080\",[],undefined,undefined,undefined,[{\"c:/Develop/yaws1.9/www\",[]}],10240,[{\"cgi-bin\",yaws_appmod_cgi}],[],yaws_outmod,yaws_outmod,yaws_outmod,yaws,yaws_log,[],undefined,[yaws,php,cgi,fcgi],[],[\"index.yaws\",\"index.html\",\"index.php\"],[],[{listen_opts,[{backlog,1024}]}],[],undefined,undefined,{cgi,\"/usr/bin/php-cgi\"},undefined,undefined,undefined,undefined}]]},infinity]}}}},{yaws_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{noproc,{gen_server,call,[yaws_log,{setup,{gconf,"c:/Develop/yaws1.9",fals

Crash dump is being written to: erl_crash.dump...done

这是个windows下执行yaws -i命令后的信息.
最近刚开始学这个,网上找了很久没有找到有类似的错误与解决办法

  • 写回答

1条回答 默认 最新

  • book_ri11 2020-01-08 18:34
    关注

    otp版本的问题,我也遇到同样的问题,装otp 19.3解决了

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器