Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

start.sh errors out #155

Closed
stones opened this Issue · 4 comments

3 participants

@stones

When trying to run start.sh, i receive an error

Process:

  • clone from github
  • run mix deps.get && mix compile
  • run mix weber.new shortner
  • cd shortner
  • run mix deps.get && mix compile --all --force && ./start.sh

Error

All dependencies up to date
Compiled lib/config.ex
Compiled lib/controllers/main.ex
Compiled lib/route.ex
Compiled lib/app.ex
Generated shortner.app
All dependencies up to date
Erlang R16B02 (erts-5.10.3) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

lib/app.ex:9: variable assigns is unused
lib/app.ex:9: unused import Weber.Helper.Html
lib/app.ex:9: unused import Weber.Helper.IncludeView
lib/app.ex:9: unused import Weber.Helper.ResourceHelper
lib/app.ex:9: unused import Weber.I18n
** (Mix) Could not start application shortner: {:bad_return, {{Shortner, :start, [:normal, []]}, {:EXIT, {:undef, [{Cowboy, :start, 2, []}, {Weber, :start, 2, [file: '/Users/Stones/Projects/weber/shortner/deps/weber/lib/weber.ex', line: 49]}, {:application_master, :start_it_old, 4, [file: 'application_master.erl', line: 269]}]}}}}

Mac OSX, elixir updated via brew to latest before beginning.

@stones

I also get an error when i run

 make && make test

Error:

** (MatchError) no match of right hand side value: {:error, {{:shutdown, {:failed_to_start_child, :ranch_acceptors_sup, {{:badmatch, {:error, :eaddrinuse}}, [{:ranch_acceptors_sup, :init, 1, [file: 'src/ranch_acceptors_sup.erl', line: 38]}, {:supervisor, :init, 1, [file: 'supervisor.erl', line: 239]}, {:gen_server, :init_it, 6, [file: 'gen_server.erl', line: 304]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 239]}]}}}, {:child, :undefined, {:ranch_listener_sup, :http}, {:ranch_listener_sup, :start_link, [:http, 100, :ranch_tcp, [port: 8080], :cowboy_protocol, [env: [dispatch: [{:_, [], [{["_ws"], [], Handler.WeberWebSocketHandler, :Handler}, {[:"..."], [], Handler.WeberReqHandler, {[webserver: [http_host: "localhost", http_port: 8080, acceptors: 100, ssl: false, cacertfile_path: "", certfile_path: "", keyfile_path: ""], ws: [ws_port: 8080, ws_mod: :Handler], use_internationalization: false, localization: [default_locale: :en_US, use_locales: [:en_US]], use_sessions: false, session: [max_age: 1440], log: false, reload: false], Handler.WeberReqHandler.Result}}]}]], compress: false]]}, :permanent, 5000, :supervisor, [:ranch_listener_sup]}}}
    lib/weber/cowboy.ex:36: Cowboy.start/2
    lib/weber.ex:49: Weber.start/2
    src/elixir_lexical.erl:17: :elixir_lexical.run/2

I am INCREDIBLY new to weber, so i could just be making a really simple mistake.

@kotedo

You're missing an important step:

  • clone from github
  • cd cloned_dir
  • git checkout tags/v0.0.5

then proceed as described.

@0xAX
Owner

There is :eaddrinuse error, it means that you already have somthing on this port.

@stones

I had a chat with @0xAX on IRC and he pointed out that i had to change the port number in :
test/support/config.exs

For the tests to work.

Thanks

@stones stones closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.