Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error #30

Open
asveloper opened this issue Mar 6, 2014 · 7 comments
Open

Compiling error #30

asveloper opened this issue Mar 6, 2014 · 7 comments
Assignees

Comments

@asveloper
Copy link

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

choptastic added a commit to choptastic/cb_admin that referenced this issue Mar 7, 2014
@choptastic
Copy link
Contributor

Give this patch a try: 6f2f710 (basically a rebar update and path fix).

@danikp
Copy link
Contributor

danikp commented Mar 14, 2014

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
Copy link
Contributor

danikp commented Mar 14, 2014

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

@choptastic
Copy link
Contributor

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?

@danikp
Copy link
Contributor

danikp commented Mar 15, 2014

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.

@stensonb
Copy link

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?

@uayyappa
Copy link

uayyappa commented Aug 5, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants