尝试在 locallhost 中启动 phoenix 服务器时出现 Tzdata 错误
Tzdata error on trying to start phoenix server in locallhost
我正尝试在本地主机上的 phoenix 中启动我的应用程序,但我收到来自 tzdata 的错误,该错误阻止应用程序启动。我对凤凰没有任何经验,所以欢迎任何帮助。这是我在尝试命令 mix phoenix.server
时遇到的错误
Generated contai_server app
[info] Application tzdata exited: exited in: Tzdata.App.start(:normal, [])
** (EXIT) an exception was raised:
** (MatchError) no match of right hand side value: {:error, {:shutdown, {:failed_to_start_child, Tzdata.EtsHolder, {{:badmatch, {:error, {:read_error, {:file_error, [47, 85, 115, 101, 114, 115, 47, 103, 97, 98, 114, 105, 101, 108, 118, 105, 97, 110, 110, 97, 47, 87, 111, 114, 107, 83, 112, 97, 99, 101, 47, 67, 111, 110, ...], :enoent}}}}, [{Tzdata.EtsHolder, :load_ets_table, 1, [file: 'lib/tzdata/ets_holder.ex', line: 59]}, {Tzdata.EtsHolder, :load_release, 0, [file: 'lib/tzdata/ets_holder.ex', line: 52]}, {Tzdata.EtsHolder, :init, 1, [file: 'lib/tzdata/ets_holder.ex', line: 14]}, {: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]}]}}}}
(tzdata) lib/tzdata/tzdata_app.ex:15: Tzdata.App.start/2
(kernel) application_master.erl:277: :application_master.start_it_old/4
** (Mix) Could not start application tzdata: exited in: Tzdata.App.start(:normal, [])
** (EXIT) an exception was raised:
** (MatchError) no match of right hand side value: {:error, {:shutdown, {:failed_to_start_child, Tzdata.EtsHolder, {{:badmatch, {:error, {:read_error, {:file_error, [47, 85, 115, 101, 114, 115, 47, 103, 97, 98, 114, 105, 101, 108, 118, 105, 97, 110, 110, 97, 47, 87, 111, 114, 107, 83, 112, 97, 99, 101, 47, 67, 111, 110, ...], :enoent}}}}, [{Tzdata.EtsHolder, :load_ets_table, 1, [file: 'lib/tzdata/ets_holder.ex', line: 59]}, {Tzdata.EtsHolder, :load_release, 0, [file: 'lib/tzdata/ets_holder.ex', line: 52]}, {Tzdata.EtsHolder, :init, 1, [file: 'lib/tzdata/ets_holder.ex', line: 14]}, {: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]}]}}}}
(tzdata) lib/tzdata/tzdata_app.ex:15: Tzdata.App.start/2
(kernel) application_master.erl:277: :application_master.start_it_old/4
我在 tzdata
的某些版本中遇到了同样的问题。我已将其缩小到 tzdata
不能很好地处理包含空格的目录和子目录。
我无法提供永久修复,但我可以提供一个解决方法:将您的项目移至没有任何空格的路径。
我正尝试在本地主机上的 phoenix 中启动我的应用程序,但我收到来自 tzdata 的错误,该错误阻止应用程序启动。我对凤凰没有任何经验,所以欢迎任何帮助。这是我在尝试命令 mix phoenix.server
Generated contai_server app
[info] Application tzdata exited: exited in: Tzdata.App.start(:normal, [])
** (EXIT) an exception was raised:
** (MatchError) no match of right hand side value: {:error, {:shutdown, {:failed_to_start_child, Tzdata.EtsHolder, {{:badmatch, {:error, {:read_error, {:file_error, [47, 85, 115, 101, 114, 115, 47, 103, 97, 98, 114, 105, 101, 108, 118, 105, 97, 110, 110, 97, 47, 87, 111, 114, 107, 83, 112, 97, 99, 101, 47, 67, 111, 110, ...], :enoent}}}}, [{Tzdata.EtsHolder, :load_ets_table, 1, [file: 'lib/tzdata/ets_holder.ex', line: 59]}, {Tzdata.EtsHolder, :load_release, 0, [file: 'lib/tzdata/ets_holder.ex', line: 52]}, {Tzdata.EtsHolder, :init, 1, [file: 'lib/tzdata/ets_holder.ex', line: 14]}, {: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]}]}}}}
(tzdata) lib/tzdata/tzdata_app.ex:15: Tzdata.App.start/2
(kernel) application_master.erl:277: :application_master.start_it_old/4
** (Mix) Could not start application tzdata: exited in: Tzdata.App.start(:normal, [])
** (EXIT) an exception was raised:
** (MatchError) no match of right hand side value: {:error, {:shutdown, {:failed_to_start_child, Tzdata.EtsHolder, {{:badmatch, {:error, {:read_error, {:file_error, [47, 85, 115, 101, 114, 115, 47, 103, 97, 98, 114, 105, 101, 108, 118, 105, 97, 110, 110, 97, 47, 87, 111, 114, 107, 83, 112, 97, 99, 101, 47, 67, 111, 110, ...], :enoent}}}}, [{Tzdata.EtsHolder, :load_ets_table, 1, [file: 'lib/tzdata/ets_holder.ex', line: 59]}, {Tzdata.EtsHolder, :load_release, 0, [file: 'lib/tzdata/ets_holder.ex', line: 52]}, {Tzdata.EtsHolder, :init, 1, [file: 'lib/tzdata/ets_holder.ex', line: 14]}, {: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]}]}}}}
(tzdata) lib/tzdata/tzdata_app.ex:15: Tzdata.App.start/2
(kernel) application_master.erl:277: :application_master.start_it_old/4
我在 tzdata
的某些版本中遇到了同样的问题。我已将其缩小到 tzdata
不能很好地处理包含空格的目录和子目录。
我无法提供永久修复,但我可以提供一个解决方法:将您的项目移至没有任何空格的路径。