-
Notifications
You must be signed in to change notification settings - Fork 9
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
INIT: Auth App Deployment Init Page [MVP] #176
Comments
This is a fairly helpful error message. I'd hope the person setting up |
Scrolling up through the logs, we see that some genius has a bot hitting the server with requests trying to access the database: This is why we can't have nice things ... 🤦♂️
Tempted to extract all these links and investigate what the script is ... and block them on CloudFlare ... 💭 |
First thing I want to show is are the Environment Variables defined?: Looks amaze, right? 😜 Borrowing check & cross icons from: https://www.flaticon.com/free-icons/cross-check BRB ... ⏳ |
Deployed to Fly.io: https://authprod.fly.dev/status all environment variables are defined: |
Need to put this down for a bit as I have TON of "work work" to do and need to close all browser tabs & dev windows to focus. Continue: https://fly.io/apps/authprod + https://authprod.fly.dev/status
Asside: ?XDEBUG_SESSION_START=phpstorm ... 🙄 |
On [error] #PID<0.663.0> running AuthWeb.Endpoint (connection #PID<0.662.0>, stream id 1) terminated
Server: localhost:4000 (http)
Request: GET /init
** (exit) an exception was raised:
** (ArgumentError) cookie store expects conn.secret_key_base to be set
(plug 1.12.1) lib/plug/session/cookie.ex:203: Plug.Session.COOKIE.validate_secret_key_base/1
(plug 1.12.1) lib/plug/session/cookie.ex:198: Plug.Session.COOKIE.derive/3
(plug 1.12.1) lib/plug/session/cookie.ex:98: Plug.Session.COOKIE.get/3
(plug 1.12.1) lib/plug/session.ex:78: anonymous fn/5 in Plug.Session.fetch_session/1
(plug 1.12.1) lib/plug/debugger.ex:287: Plug.Debugger.maybe_fetch_session/1
(plug 1.12.1) lib/plug/debugger.ex:187: Plug.Debugger.render/6
(plug 1.12.1) lib/plug/debugger.ex:162: Plug.Debugger.__catch__/5
(auth 1.6.5) lib/auth_web/endpoint.ex:1: AuthWeb.Endpoint.call/2
(phoenix 1.6.5) lib/phoenix/endpoint/cowboy2_handler.ex:54: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy 2.9.0) /auth/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.9.0) /auth/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3
(cowboy 2.9.0) /auth/deps/cowboy/src/cowboy_stream_h.erl:295: :cowboy_stream_h.request_process/3
(stdlib 3.15.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3 This is a required environment variable for any Phoenix app, so this is expected. But once the This gives the person trying to deploy the Auth App a clear picture of what is still required to get it working. 🤞 |
Deployed to Fly.io: https://authprod.fly.dev/init For some reason |
mix ecto.gen.migration remove_constraints |
Included in PR #173 ✅ |
Very much just an MVP version. Happy for anyone to extend/improve this idea. |
At present the engineer deploying
auth
has no way of knowing thestatus
of their deployment ... 🙈We are trying to deploy to a new cloud provider Fly.io #172 / #173 and seeing the following in the browser:
https://authprod.fly.dev/
The logs are moderately useful:
Todo
init_controller.ex
,init_view.ex
,templates/init/index.html.eex
& tests!auth
appdefault
App & API Key have been successfully createdhttps://www.githubstatus.com/
https://status.fellow.app/
https://status.fellow.app/static/media/ok-status-icon.a40ffb2d.svg
Related to improving
seeds.exs
init process #174The text was updated successfully, but these errors were encountered: