cb_admin icon indicating copy to clipboard operation
cb_admin copied to clipboard

Compiling error

Open asveloper opened this issue 11 years ago • 7 comments
trafficstars

I am unable to link it with my project , i did all the settings accordingly but it showing me the routing error.Any help will be appreciated.

where i tried to compile cb_admin with get-deps and i got following error

ERROR: Compiling template src/boss/boss_html_errors_template.dtl failed: {ok,boss_html_errors_template}

i tried it by cloning as well as by downloading zip file but nothing works for me

Any help?

Thanks

asveloper avatar Mar 06 '14 22:03 asveloper

Give this patch a try: https://github.com/ChicagoBoss/cb_admin/commit/6f2f7107b6b2bf5f66ef775ef25f13f103f3b0c5 (basically a rebar update and path fix).

choptastic avatar Mar 07 '14 03:03 choptastic

While compiling cb_admin from master againts latest CB from master, getting following error

$ ./rebar compile
WARN:  Expected /path/to/trunk/cb_admin/deps/boss to be an app dir (containing ebin/*.app), but no .app found.
==> cb_admin (pre_compile)
ERROR: pre_compile failed while processing /paht/to/trunk/cb_admin: {'EXIT',
    {undef,
        [{boss_rebar,init_conf,
             [[{boss,
                   [{vm_cookie,"abc123"},
                    {applications,[cb_admin]},
                    {db_host,"localhost"},
                    {db_port,1978},
                    {db_adapter,mock},
                    {log_dir,"log"},
                    {server,cowboy},
                    {port,8001},
                    {session_adapter,mock},
                    {session_key,"_boss_session"},
                    {session_exp_time,525600}]},
               {cb_admin,
                   [{path,"../cb_admin"},
                    {allow_ip_blocks,["127.0.0.1"]},
                    {base_url,"/admin"}]}]],
             []},
         {boss_plugin,init,3,[{file,"priv/rebar/boss_plugin.erl"},{line,92}]},
         {boss_plugin,pre_compile,2,
             [{file,"priv/rebar/boss_plugin.erl"},{line,108}]},
         {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,446}]},
         {rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,371}]},
         {rebar_core,process_dir1,6,[{file,"src/rebar_core.erl"},{line,231}]},
         {rebar_core,process_commands,2,
             [{file,"src/rebar_core.erl"},{line,90}]},
         {rebar,main,1,[{file,"src/rebar.erl"},{line,58}]}]}}

danikp avatar Mar 14 '14 23:03 danikp

ok, found reason for error above: line with path variable is commented in boss.config

danikp avatar Mar 14 '14 23:03 danikp

Is this something that needs to be fixed? Or was this a misconfiguration on your local system? I suppose even if it's a misconfiguration, this is probably something that should produce a less cryptic error message, no?

choptastic avatar Mar 15 '14 00:03 choptastic

actually it's commented in repo too, I just cloned latest trunk. And yes, I think it will be great to provide more understandable error message in case path to CB is missing or incorrect.

danikp avatar Mar 15 '14 01:03 danikp

I'm running into the same issue...trying to follow this (https://github.com/ChicagoBoss/ChicagoBoss/wiki/An-Evening-With-Chicago-Boss) with no luck.

Bryans-MacBook-Pro:cb_admin bryanstenson$ [master_] ./rebar compile WARN: Expected /Users/bryanstenson/git/cbplay/cb_admin/deps/boss to be an app dir (containing ebin/_.app), but no .app found. ==> cb_admin (pre_compile) ERROR: pre_compile failed while processing /Users/bryanstenson/git/cbplay/cb_admin: {'EXIT', {undef, [{boss_rebar,init_conf, [[{boss, [{path,"./deps/boss"}, {vm_cookie,"abc123"}, {applications,[cb_admin]}, {db_host,"localhost"}, {db_port,1978}, {db_adapter,mock}, {log_dir,"log"}, {server,cowboy}, {port,8001}, {session_adapter,mock}, {session_key,"_boss_session"}, {session_exp_time,525600}]}, {cb_admin, [{path,"../cb_admin"}, {allow_ip_blocks,["127.0.0.1"]}, {base_url,"/admin"}]}]], []}, {boss_plugin,init,3,[{file,"priv/rebar/boss_plugin.erl"},{line,92}]}, {boss_plugin,pre_compile,2, [{file,"priv/rebar/boss_plugin.erl"},{line,108}]}, {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,446}]}, {rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,371}]}, {rebar_core,process_dir1,6,[{file,"src/rebar_core.erl"},{line,231}]}, {rebar_core,process_commands,2, [{file,"src/rebar_core.erl"},{line,90}]}, {rebar,main,1,[{file,"src/rebar.erl"},{line,58}]}]}}

I've tried uncommenting the "path" config value in the boss.config for cb_admin, but still have the same issue...

Any suggestions?

stensonb avatar Nov 26 '14 19:11 stensonb

by god's grace after heavy struggle. I solved the problem in my system with successful configuration and activation of admin module. Steps i had done

  1. removed the existing cb_admin folder .
  2. new source is downloaded with command "git clone git://github.com/ChicagoBoss/cb_admin.git "
  3. next command "cd cb_admin"
  4. in my system existing ChicagoBoss-0.8.19 is configured.So, i modified the rebar.config boss tag to " {boss, ".", {git, "https://github.com/ChicagoBoss/ChicagoBoss.git", {tag, "v0.8.19"}}}" *** tag version is changed *****
  5. in terminal command is executed "./rebar get-deps"
  6. after completion i finished with command "./rebar compile"
  7. admin module is started with ./init-dev.sh command Note: i got problem in get-deps for few packages so i installed them individually and directly

uayyappa avatar Aug 05 '16 07:08 uayyappa