[英]rebar release erlexec error
My program is written in mac os 10.6.8(erlang 15B01)
and release with rebar. 我的程序是用mac os 10.6.8(erlang 15B01)
编写的,并带有钢筋。
In my development pc, when calling rel/app_a/bin/app_a
console, it runs ok. 在我的开发PC中,调用rel/app_a/bin/app_a
控制台时,它运行正常。
Exec: /Users/***/Documents/Project/***/rel/app_a/erts-5.9.1/bin/erlexec
-boot /Users/***/Documents/Project/***/rel/app_a/releases/1/capulet
-mode embedded -config /Users/***/Documents/Project/app_a/rel/app_a/releases/1/sys.config
-args_file /Users/***/Documents/Project/app_a/rel/app_a/releases/1/vm.args -- console
Root: /Users/***/Documents/Project/app_a/rel/capulet
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0]
[hipe] [kernel-poll:false]
I have tar the "rel/app_a"
directory, then move the tar into the target host which run debian (erlang version is R1501). 我在tar的"rel/app_a"
目录中有一个tar,然后将tar移到运行debian(erlang版本为R1501)的目标主机中。
When calling the rel/app_a/bin/app_a console
, it show the error message as following: 调用rel/app_a/bin/app_a console
,它将显示错误消息,如下所示:
Exec: /home/***/app_a/erts-5.9.1/bin/erlexec -boot /home/***/app_a/releases/1/app_a
-mode embedded -config /home/***/app_a/releases/1/sys.config
-args_file /home/***/app_a/releases/1/vm.args -- console
Root: /home/***/app_a
/home/***/app_a/erts-5.9.1/bin/erlexec: 4: Syntax error: ")" unexpected
What's the meaning erlexec:4
here? erlexec:4
在这里是什么意思? how to solve the problem? 如何解决问题?
current sys.config 当前的sys.config
[
%% SASL config
{sasl, [
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]}
].
vm.args vm.args
## Name of the node
-name capulet@127.0.0.1
## Cookie for distributed erlang
-setcookie RIOEAGZQBQKWHSMMXOPW
## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
## (Disabled by default..use with caution!)
##-heart
## Enable kernel poll and a few async threads
##+K true
##+A 5
## Increase number of concurrent ports/sockets
##-env ERL_MAX_PORTS 4096
## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 10
I try to create syntax error in sys.config file for experiment. 我尝试在sys.config文件中创建语法错误以进行实验。 So I think it is not caused by sys.config syntax error. 所以我认为这不是sys.config语法错误引起的。
Crash dump was written to: erl_crash.dump
could not start kernel pid (application_controller)
(error in config file "/Users/***/Documents/Project/app_a/rel/app_a/releases/1/sys.config"
(10): syntax error before: ']')
检查sys.config和vm.args是否存在语法错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.