erica error after fresh install

159 views
Skip to first unread message

Andreas Wenk

unread,
Mar 12, 2014, 6:06:33 PM3/12/14
to couc...@googlegroups.com
Hi,

I just installed erica the first time on my machine. The installation was successfull. Now when either running these commands

erica create-app
erica create-webapp
erica command

I get the following error:

Uncaught error in erica: {'EXIT',
                             {{case_clause,
                                  {error,
                                      {"no such file or directory",
                                       "idna.app"}}},
                              [{lists,all,2,[{file,"lists.erl"},{line,1198}]},
                               {hackney_app,ensure_deps_started,0,
                                   [{file,"src/hackney_app.erl"},{line,33}]},
                               {hackney,start,0,
                                   [{file,"src/hackney.erl"},{line,57}]},
                               {erica_core,run,1,
                                   [{file,"src/erica_core.erl"},{line,40}]},
                               {erica,main,1,
                                   [{file,"src/erica.erl"},{line,12}]},
                               {escript,run,2,
                                   [{file,"escript.erl"},{line,747}]},
                               {escript,start,1,
                                   [{file,"escript.erl"},{line,277}]},
                               {init,start_it,1,[]}]}}

Any idea what went wrong? 

Mac OS X 10.9, Erlang R16B03-1 (erts-5.10.4)

Thanks

Andy

Benoit Chesneau

unread,
Mar 12, 2014, 6:50:06 PM3/12/14
to couc...@googlegroups.com
fixed. Thanks for your mail :)

- benoit

Andreas Wenk

unread,
Mar 12, 2014, 6:50:43 PM3/12/14
to couc...@googlegroups.com
you're welcome - as always :)

Cheers

Andy

Andreas Wenk

unread,
Mar 12, 2014, 7:05:12 PM3/12/14
to couc...@googlegroups.com
seems that www.unicode.org is down. I willl try again tomorrow.

==> idna (compile)
==> Fetch unicode data

curl: (6) Could not resolve host: www.unicode.org
ERROR: Command [compile] failed!
make: *** [compile] Error 1

On Wednesday, March 12, 2014 11:50:06 PM UTC+1, Benoit Chesneau wrote:

Andreas Wenk

unread,
Mar 13, 2014, 6:08:05 AM3/13/14
to couc...@googlegroups.com
I ran
git pull --rebase (-> now fa9a18f15955e84040)
make upgrade
make install
erica create-webapp

and get

Uncaught error in erica: {'EXIT',
                             {{case_clause,
                                  {error,
                                      {"no such file or directory",
                                       "ets_lru.app"}}},
                              [{lists,all,2,[{file,"lists.erl"},{line,1198}]},
                               {hackney_app,ensure_deps_started,0,
                                   [{file,"src/hackney_app.erl"},{line,33}]},
                               {hackney,start,0,
                                   [{file,"src/hackney.erl"},{line,57}]},
                               {erica_core,run,1,
                                   [{file,"src/erica_core.erl"},{line,40}]},
                               {erica,main,1,
                                   [{file,"src/erica.erl"},{line,12}]},
                               {escript,run,2,
                                   [{file,"escript.erl"},{line,747}]},
                               {escript,start,1,
                                   [{file,"escript.erl"},{line,277}]},
                               {init,start_it,1,[]}]}}

So looking at your last commit I thought there is another dependency missing. I added 

    true = code:add_path("deps/ets_lru/ebin"),

and 

           ++ load_files("*", "deps/ets_lru/ebin")

in bootstrap. Then agina

make
make install
erica create-webapp

and I get many times 

=ERROR REPORT==== 13-Mar-2014::11:04:14 ===
** Generic server idna_unicode_data terminating
** Last message in was load
** When Server state == undefined
** Reason for termination ==
** {{badmatch,{error,enoent}},
    [{idna_unicode_data,unicode_data,0,
                        [{file,"src/idna_unicode_data.erl"},{line,123}]},
     {idna_unicode_data,handle_info,2,
                        [{file,"src/idna_unicode_data.erl"},{line,105}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,604}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}

I looked into src/idna_unicode_data.erl but could not find an error (maybe still out of lack of Erlang knowledge :) ).

What is the problem here? Would love to fix it with your assistance Benoit (forked it already).

Cheers

Andy

P.S.: Don't delete my nice comments :) (just kidding ...)

On Wednesday, March 12, 2014 11:06:33 PM UTC+1, Andreas Wenk wrote:

Andreas Wenk

unread,
Mar 13, 2014, 6:12:33 AM3/13/14
to couc...@googlegroups.com
I rebuilt erica and received anopther dependency error regarding ets_lru. So I addded 

    true = code:add_path("deps/hackney_lib/ebin"),
    true = code:add_path("deps/hackney/ebin"),
    true = code:add_path("deps/ets_lru/ebin"), <===== added
    true = code:add_path("deps/oauth/ebin"),

and

            ++ load_files("*", "deps/hackney/ebin")
            ++ load_files("*", "deps/ets_lru/ebin")  <===== added
            ++ load_files("*", "deps/oauth/ebin")
            ++ load_files("*", "deps/couchbeam/ebin")

After make && make install and runnig erica create-webapp I get 

=ERROR REPORT==== 13-Mar-2014::11:04:14 ===
** Generic server idna_unicode_data terminating
** Last message in was load
** When Server state == undefined
** Reason for termination ==
** {{badmatch,{error,enoent}},
    [{idna_unicode_data,unicode_data,0,
                        [{file,"src/idna_unicode_data.erl"},{line,123}]},
     {idna_unicode_data,handle_info,2,
                        [{file,"src/idna_unicode_data.erl"},{line,105}]},
     {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,604}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}

I looked into src/idna_unicode_data.erl"},{line,123} but did not find an error. I forked the 
repo and would love to fix the bug with your assistance.

Cheers

Andy

P.S.: Don't delet my nice comments :) (just kidding :) )

On Wednesday, March 12, 2014 11:06:33 PM UTC+1, Andreas Wenk wrote:

Benoit Chesneau

unread,
Mar 14, 2014, 9:31:19 AM3/14/14
to couc...@googlegroups.com
On Thu, Mar 13, 2014 at 12:05 AM, Andreas Wenk <ipad...@gmail.com> wrote:
> seems that www.unicode.org is down. I willl try again tomorrow.
>
> ==> idna (compile)
> ==> Fetch unicode data
>
> curl: (6) Could not resolve host: www.unicode.org
> ERROR: Command [compile] failed!
> make: *** [compile] Error 1
>
I wil put a default file for now that I will refresh from time to
time. So the issue won't happen any more. Thanks for teh feedback!
> --
> You received this message because you are subscribed to the Google Groups
> "CouchApp" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to couchapp+u...@googlegroups.com.
> To post to this group, send email to couc...@googlegroups.com.
> Visit this group at http://groups.google.com/group/couchapp.
> For more options, visit https://groups.google.com/d/optout.

Benoit Chesneau

unread,
Mar 14, 2014, 9:40:46 AM3/14/14
to couc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages