Skip to content

Use Wallaby in production #805

Description

@lambdachad

Hey, I'm trying to use Wallaby in production since I'm using it for browser automation and scraping. I have chromedriver and chrome set up in a Dockerfile and fixed those errors. But now I'm stuck at this:

 2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] 21:16:36.240 [notice] Application wallaby exited: Wallaby.start(:normal, []) returned an error: shutdown: failed to start child: Wallaby.SessionStore

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] ** (EXIT) an exception was raised:

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] ** (UndefinedFunctionError) function ExUnit.after_suite/1 is undefined (module ExUnit is not available). Make sure the module name is correct and has been specified in full (or that an alias has been defined)

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] ExUnit.after_suite(#Function<0.26441557/1 in Wallaby.SessionStore.init/1>)

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] (wallaby 0.30.10) lib/wallaby/session_store.ex:41: Wallaby.SessionStore.init/1

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] (stdlib 6.2) gen_server.erl:2229: :gen_server.init_it/2

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] (stdlib 6.2) gen_server.erl:2184: :gen_server.init_it/6

2025-04-02T21:16:36.242 app[68306d3a13de28] arn [info] (stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

2025-04-02T21:16:37.772 app[68306d3a13de28] arn [info] Kernel pid terminated (application_controller) ("{application_start_failure,wallaby,{{shutdown,{failed_to_start_child,'Elixir.Wallaby.SessionStore',{undef,[{'Elixir.ExUnit',after_suite,[#Fun<Elixir.Wallaby.SessionStore.0.26441557>],[]},{'Elixir.Wallaby.SessionStore',init,1,[{file,\"lib/wallaby/session_store.ex\"},{line,41}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,2229}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,2184}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,329}]}]}}},{'Elixir.Wallaby',start,[normal,[]]}}}")

2025-04-02T21:16:37.980 app[68306d3a13de28] arn [info] Crash dump is being written to: erl_crash.dump...done

2025-04-02T21:16:38.679 app[68306d3a13de28] arn [info] INFO Main child exited normally with code: 1

Is there a way to use Wallaby in production? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions