【问题标题】:"init terminating in do_boot" error message, when starting Yaws on Windows在 Windows 上启动 Yaws 时出现“init terminating in do_boot”错误消息
【发布时间】:2012-02-02 23:26:47
【问题描述】:

我想用 Erlang 开发一个 Web 应用程序,所以我在 Windows 7 上安装了 Yaws 1.92。

但是当我尝试使用 yawsyaws -i 启动 Yaws 时,我收到以下错误消息:

C:\Users\Jonas>yaws
{"init terminating in do_boot",{undef,[{yaws,start,[]},{init,start_it,1},{init,s
tart_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

C:\Users\Jonas>

我有什么遗漏吗?我该如何解决这个问题?


在史蒂夫建议的帮助下,我意识到我的 Erlang 运行时太旧了。我从 R14B 升级到 R15B。现在 Yaws 启动了,但它仍然在启动时打印一些错误:

C:\Users\Jonas>yaws
Eshell V5.9  (abort with ^G)
1>
=INFO REPORT==== 2-Feb-2012::16:22:13 ===
Yaws: Using config file C:\Program Files (x86)\Yaws-1.92\yaws.conf
1>
=ERROR REPORT==== 2-Feb-2012::16:22:13 ===
'auth_log' global variable is deprecated and ignored. it is now a per-server var
iable1>
=INFO REPORT==== 2-Feb-2012::16:22:13 ===
Reading .yaws_auth c:/Program Files (x86)/Yaws-1.92/www/authtest/auth_in_dot_yaw
s_auth/abc/.yaws_auth
1>
=ERROR REPORT==== 2-Feb-2012::16:22:13 ===
Cannot open "c:/Program Files (x86)/Yaws-1.92/logs/localhost.8080.auth"1>
=ERROR REPORT==== 2-Feb-2012::16:22:13 ===
Cannot open "c:/Program Files (x86)/Yaws-1.92/logs/localhost.8080.access"1>
=INFO REPORT==== 2-Feb-2012::16:22:14 ===
Ctlfile : c:/Users/Jonas/AppData/Local/Temp/yaws/default/CTL
1>
=INFO REPORT==== 2-Feb-2012::16:22:14 ===
Yaws: Listening to 0.0.0.0:8080 for <1> virtual servers:
 - http://localhost:8080 under c:/Program Files (x86)/Yaws-1.92/www
1>

关于为什么我得到这么多错误有什么建议吗?以及如何解决?

【问题讨论】:

  • 如果您编辑 yaws.conf 文件,您可以将 auth_log 变量从全局空间移动到您的服务器设置中。这将解决第一个错误。至于另外两个报错,请确保文件夹 C:\Program Files (x86)\Yaws-1.92\logs 存在。

标签: windows yaws


【解决方案1】:

那里的undef 表示找不到函数yaws:start/0。好像是加载路径有问题。

尝试像这样开始偏航:

yaws -i -erlarg "-boot start_sasl"

希望这将为您提供更详细的输出,以帮助您找出问题。

【讨论】:

  • 我得到:beam/beam_load.c(1351): Error loading module yaws: use of opcode 153; this emulator supports only up to 152 这是否意味着我必须升级我的 Erlang 运行时?大概吧。谢谢。
  • 谢谢,从 Erlang R14B 升级到 R15B 后,Yaws 可以工作,但我在启动时遇到很多错误,请参阅我的更新。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-01-28
  • 2015-07-17
  • 2011-06-12
  • 2020-12-25
  • 2012-10-30
  • 2014-05-17
  • 1970-01-01
相关资源
最近更新 更多