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

Deploying app with heroku fails (Application error) #139

Open
luananama opened this issue Oct 19, 2022 · 22 comments
Open

Deploying app with heroku fails (Application error) #139

luananama opened this issue Oct 19, 2022 · 22 comments

Comments

@luananama
Copy link

After several attempts to deploy magpie backend with heroku, I am still getting an error. I followed the steps for manual deployment in the readme, and the furthest I got on an attempt was managing to create an experiment, but getting an errror when editing it ("Something went wrong")

On my last attempt I can't even access the app anymore. I'm posting the logs here, hopefully someone can figure out what's wrong :)

log
2022-10-19T16:21:18.095928+00:00 app[web.1]: 16:21:18.095 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:21:18.095929+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:21:18.095930+00:00 app[web.1]:
2022-10-19T16:21:18.103318+00:00 app[web.1]: 16:21:18.103 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:21:18.103319+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:21:18.103319+00:00 app[web.1]:
2022-10-19T16:21:18.119684+00:00 app[web.1]: 16:21:18.117 [notice] Application magpie exited: Magpie.Application.start(:normal, []) returned an error: shutdown: failed to start child: Magpie.Experiments.ExperimentStatusResetWorker
2022-10-19T16:21:18.119698+00:00 app[web.1]: ** (EXIT) an exception was raised:
2022-10-19T16:21:18.119698+00:00 app[web.1]: ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "experiment_statuses" does not exist
2022-10-19T16:21:18.119699+00:00 app[web.1]:
2022-10-19T16:21:18.119702+00:00 app[web.1]: query: UPDATE "experiment_statuses" AS e0 SET "status" = $1 WHERE (e0."status" = 1) AND ((e0."last_heartbeat" IS NULL) OR (e0."last_heartbeat" < $2))
2022-10-19T16:21:18.119702+00:00 app[web.1]: (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-10-19T16:21:18.119703+00:00 app[web.1]: (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:693: Ecto.Adapters.SQL.execute/5
2022-10-19T16:21:18.119707+00:00 app[web.1]: (magpie 2.3.4) lib/magpie/experiments/experiment_status_reset_worker.ex:20: Magpie.Experiments.ExperimentStatusResetWorker.init/1
2022-10-19T16:21:18.119707+00:00 app[web.1]: (stdlib 3.17.1) gen_server.erl:423: :gen_server.init_it/2
2022-10-19T16:21:18.119708+00:00 app[web.1]: (stdlib 3.17.1) gen_server.erl:390: :gen_server.init_it/6
2022-10-19T16:21:18.119708+00:00 app[web.1]: (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
2022-10-19T16:21:19.660992+00:00 app[web.1]: {"Kernel pid terminated",application_controller,"{application_start_failure,magpie,{{shutdown,{failed_to_start_child,'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',{#{'__exception__' => true,'__struct__' => 'Elixir.Postgrex.Error',connection_id => 2343542,message => nil,postgres => #{code => undefined_table,file => <<\"parse_relation.c\">>,line => <<\"1381\">>,message => <<\"relation \\"experiment_statuses\\" does not exist\">>,pg_code => <<\"42P01\">>,position => <<\"8\">>,routine => <<\"parserOpenTable\">>,severity => <<\"ERROR\">>,unknown => <<\"ERROR\">>},query => <<\"UPDATE \\"experiment_statuses\\" AS e0 SET \\"status\\" = $1 WHERE (e0.\\"status\\" = 1) AND ((e0.\\"last_heartbeat\\" IS NULL) OR (e0.\\"last_heartbeat\\" < $2))\">>},[{'Elixir.Ecto.Adapters.SQL',raise_sql_call_error,1,[{file,\"lib/ecto/adapters/sql.ex\"},{line,760},{error_info,#{module => 'Elixir.Exception'}}]},{'Elixir.Ecto.Adapters.SQL',execute,5,[{file,\"lib/ecto/adapters/sql.ex\"},{line,693}]},{'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',init,1,[{file,\"lib/magpie/experiments/experiment_status_reset_worker.ex\"},{line,20}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,423}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]}}},{'Elixir.Magpie.Application',start,[normal,[]]}}}"}
2022-10-19T16:21:19.666467+00:00 app[web.1]: Kernel pid terminated (application_controller) ({application_start_failure,magpie,{{shutdown,{failed_to_start_child,'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',{#{'__exception__' => true,'__struct__' => 'Elixir.Postgrex.Error',connection_id => 2343542,message => nil,postgres => #{code => undefined_table,file => <<"parse_relation.c">>,line => <<"1381">>,message => <<"relation \"experiment_statuses\" does not exist">>,pg_code => <<"42P01">>,position => <<"8">>,routine => <<"parserOpenTable">>,severity => <<"ERROR">>,unknown => <<"ERROR">>},query => <<"UPDATE \"experiment_statuses\" AS e0 SET \"status\" = $1 WHERE (e0.\"status\" = 1) AND ((e0.\"last_heartbeat\" IS NULL) OR (e0.\"last_heartbeat\" < $2))">>},[{'Elixir.Ecto.Adapters.SQL',raise_sql_call_error,1,[{file,"lib/ecto/adapters/sql.ex"},{line,760},{error_info,#{module => 'Elixir.Exception'}}]},{'Elixir.Ecto.Adapters.SQL',execute,5,[{file,"lib/ecto/adapters/sql.ex"},{line,693}]},{'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',init,1,[{f
2022-10-19T16:21:19.666600+00:00 app[web.1]:
2022-10-19T16:21:19.827109+00:00 app[web.1]: Crash dump is being written to: erl_crash.dump...done
2022-10-19T16:21:19.989731+00:00 heroku[web.1]: Process exited with status 1
2022-10-19T16:21:20.096866+00:00 heroku[web.1]: State changed from starting to crashed
2022-10-19T16:53:21.926149+00:00 heroku[web.1]: State changed from crashed to starting
2022-10-19T16:53:29.127642+00:00 heroku[web.1]: Starting process with command `_build/prod/rel/magpie/bin/magpie start`
2022-10-19T16:53:51.756944+00:00 app[web.1]: 16:53:51.756 [info] Running Magpie.Endpoint with cowboy 2.9.0 at 0.0.0.0:32327 (http)
2022-10-19T16:53:51.757905+00:00 app[web.1]: 16:53:51.757 [info] Access Magpie.Endpoint at https://moderator-backend.herokuapp.com:32327
2022-10-19T16:53:51.785730+00:00 app[web.1]: 16:53:51.781 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785731+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785731+00:00 app[web.1]:
2022-10-19T16:53:51.785732+00:00 app[web.1]: 16:53:51.780 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785732+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785732+00:00 app[web.1]:
2022-10-19T16:53:51.785732+00:00 app[web.1]: 16:53:51.781 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785733+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785733+00:00 app[web.1]:
2022-10-19T16:53:51.785734+00:00 app[web.1]: 16:53:51.781 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785734+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785734+00:00 app[web.1]:
2022-10-19T16:53:51.785734+00:00 app[web.1]: 16:53:51.782 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785735+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785735+00:00 app[web.1]:
2022-10-19T16:53:51.785735+00:00 app[web.1]: 16:53:51.782 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785735+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785735+00:00 app[web.1]:
2022-10-19T16:53:51.785736+00:00 app[web.1]: 16:53:51.782 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785736+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785736+00:00 app[web.1]:
2022-10-19T16:53:51.785736+00:00 app[web.1]: 16:53:51.783 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785736+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785736+00:00 app[web.1]:
2022-10-19T16:53:51.785737+00:00 app[web.1]: 16:53:51.783 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785737+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785737+00:00 app[web.1]:
2022-10-19T16:53:51.785737+00:00 app[web.1]: 16:53:51.784 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785737+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785738+00:00 app[web.1]:
2022-10-19T16:53:51.785738+00:00 app[web.1]: 16:53:51.784 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.785738+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.785738+00:00 app[web.1]:
2022-10-19T16:53:51.813604+00:00 app[web.1]: 16:53:51.784 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.813606+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.813606+00:00 app[web.1]:
2022-10-19T16:53:51.834139+00:00 app[web.1]: 16:53:51.780 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.834141+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.834141+00:00 app[web.1]:
2022-10-19T16:53:51.834142+00:00 app[web.1]: 16:53:51.787 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.834142+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.834142+00:00 app[web.1]:
2022-10-19T16:53:51.834142+00:00 app[web.1]: 16:53:51.787 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.834143+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.834143+00:00 app[web.1]:
2022-10-19T16:53:51.847159+00:00 app[web.1]: 16:53:51.813 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.847160+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.847161+00:00 app[web.1]:
2022-10-19T16:53:51.847161+00:00 app[web.1]: 16:53:51.816 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.847162+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.847162+00:00 app[web.1]:
2022-10-19T16:53:51.859377+00:00 app[web.1]: 16:53:51.844 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-19T16:53:51.859378+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-19T16:53:51.859379+00:00 app[web.1]:
2022-10-19T16:53:51.941318+00:00 app[web.1]: 16:53:51.940 [notice] Application magpie exited: Magpie.Application.start(:normal, []) returned an error: shutdown: failed to start child: Magpie.Experiments.ExperimentStatusResetWorker
2022-10-19T16:53:51.941319+00:00 app[web.1]: ** (EXIT) an exception was raised:
2022-10-19T16:53:51.941327+00:00 app[web.1]: ** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "experiment_statuses" does not exist
2022-10-19T16:53:51.941327+00:00 app[web.1]:
2022-10-19T16:53:51.941327+00:00 app[web.1]: query: UPDATE "experiment_statuses" AS e0 SET "status" = $1 WHERE (e0."status" = 1) AND ((e0."last_heartbeat" IS NULL) OR (e0."last_heartbeat" < $2))
2022-10-19T16:53:51.941328+00:00 app[web.1]: (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
2022-10-19T16:53:51.941328+00:00 app[web.1]: (ecto_sql 3.7.2) lib/ecto/adapters/sql.ex:693: Ecto.Adapters.SQL.execute/5
2022-10-19T16:53:51.941329+00:00 app[web.1]: (magpie 2.3.4) lib/magpie/experiments/experiment_status_reset_worker.ex:20: Magpie.Experiments.ExperimentStatusResetWorker.init/1
2022-10-19T16:53:51.941329+00:00 app[web.1]: (stdlib 3.17.1) gen_server.erl:423: :gen_server.init_it/2
2022-10-19T16:53:51.941329+00:00 app[web.1]: (stdlib 3.17.1) gen_server.erl:390: :gen_server.init_it/6
2022-10-19T16:53:51.941330+00:00 app[web.1]: (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
2022-10-19T16:53:53.599271+00:00 app[web.1]: {"Kernel pid terminated",application_controller,"{application_start_failure,magpie,{{shutdown,{failed_to_start_child,'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',{#{'__exception__' => true,'__struct__' => 'Elixir.Postgrex.Error',connection_id => 2357846,message => nil,postgres => #{code => undefined_table,file => <<\"parse_relation.c\">>,line => <<\"1381\">>,message => <<\"relation \\"experiment_statuses\\" does not exist\">>,pg_code => <<\"42P01\">>,position => <<\"8\">>,routine => <<\"parserOpenTable\">>,severity => <<\"ERROR\">>,unknown => <<\"ERROR\">>},query => <<\"UPDATE \\"experiment_statuses\\" AS e0 SET \\"status\\" = $1 WHERE (e0.\\"status\\" = 1) AND ((e0.\\"last_heartbeat\\" IS NULL) OR (e0.\\"last_heartbeat\\" < $2))\">>},[{'Elixir.Ecto.Adapters.SQL',raise_sql_call_error,1,[{file,\"lib/ecto/adapters/sql.ex\"},{line,760},{error_info,#{module => 'Elixir.Exception'}}]},{'Elixir.Ecto.Adapters.SQL',execute,5,[{file,\"lib/ecto/adapters/sql.ex\"},{line,693}]},{'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',init,1,[{file,\"lib/magpie/experiments/experiment_status_reset_worker.ex\"},{line,20}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,423}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]}}},{'Elixir.Magpie.Application',start,[normal,[]]}}}"}
2022-10-19T16:53:53.630209+00:00 app[web.1]: Kernel pid terminated (application_controller) ({application_start_failure,magpie,{{shutdown,{failed_to_start_child,'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',{#{'__exception__' => true,'__struct__' => 'Elixir.Postgrex.Error',connection_id => 2357846,message => nil,postgres => #{code => undefined_table,file => <<"parse_relation.c">>,line => <<"1381">>,message => <<"relation \"experiment_statuses\" does not exist">>,pg_code => <<"42P01">>,position => <<"8">>,routine => <<"parserOpenTable">>,severity => <<"ERROR">>,unknown => <<"ERROR">>},query => <<"UPDATE \"experiment_statuses\" AS e0 SET \"status\" = $1 WHERE (e0.\"status\" = 1) AND ((e0.\"last_heartbeat\" IS NULL) OR (e0.\"last_heartbeat\" < $2))">>},[{'Elixir.Ecto.Adapters.SQL',raise_sql_call_error,1,[{file,"lib/ecto/adapters/sql.ex"},{line,760},{error_info,#{module => 'Elixir.Exception'}}]},{'Elixir.Ecto.Adapters.SQL',execute,5,[{file,"lib/ecto/adapters/sql.ex"},{line,693}]},{'Elixir.Magpie.Experiments.ExperimentStatusResetWorker',init,1,[{f
2022-10-19T16:53:53.630569+00:00 app[web.1]:
2022-10-19T16:53:53.820013+00:00 app[web.1]: Crash dump is being written to: erl_crash.dump...done
2022-10-19T16:53:54.019167+00:00 heroku[web.1]: Process exited with status 1
2022-10-19T16:53:54.146807+00:00 heroku[web.1]: State changed from starting to crashed
2022-10-19T17:07:25.876880+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=moderator-backend.herokuapp.com request_id=f43b2522-6e56-444f-9080-86202b11824e fwd="89.166.175.98" dyno= connect= service= status=503 bytes= protocol=https
2022-10-19T17:07:37.474367+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=moderator-backend.herokuapp.com request_id=b3e74cad-9628-40ed-b22c-cf15f275fcfc fwd="89.166.175.98" dyno= connect= service= status=503 bytes= protocol=https
2022-10-19T17:08:38.060204+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=moderator-backend.herokuapp.com request_id=e431d400-2ab4-468c-9c7d-eaed9e8e80ee fwd="89.166.175.98" dyno= connect= service= status=503 bytes= protocol=https
2022-10-19T17:13:17.553217+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=moderator-backend.herokuapp.com request_id=a7be2494-aa36-4fd0-a732-93ad024a0687 fwd="89.166.175.98" dyno= connect= service= status=503 bytes= protocol=https
@x-ji
Copy link
Member

x-ji commented Oct 19, 2022

Hey 👋 . It seems that the databases have not been created successfully.

Have you been able to run step 9 in the instructions

heroku addons:create heroku-postgresql:hobby-dev
heroku config:set POOL_SIZE=18

And if so, what was the result?

Thanks!

@luananama
Copy link
Author

that seems to work

Creating heroku-postgresql:hobby-dev on ⬢ moderator-backend... free
Database has been created and is available
 ! This database is empty. If upgrading, you can transfer
 ! data from another database with pg:copy
DEPRECATION NOTICE:
 Starting November 28th, 2022, ‘hobby-dev’ databases will no longer be available. To retain your data after this date, upgrade to ‘mini’ or another paid plan.
 Learn more in our blog (https://blog.heroku.com/new-low-cost-plans)
Created postgresql-sinuous-96552 as HEROKU_POSTGRESQL_GOLD_URL
Use heroku addons:docs heroku-postgresql to view documentation

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

Great. I should have also refered to step 13 yesterday (sorry, I was away from my computer when I replied):

Run heroku run "_build/prod/rel/magpie/bin/magpie eval 'Magpie.ReleaseTasks.db_migrate()'" (Note the ' in the command.)

Does this work?

And I guess you followed the instructions from this Github repo instead of on the documentation site (which might have been outdated), right?

@luananama
Copy link
Author

Exactly, that also works

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

Hmm, what's the result then if you now try to access the app?

@luananama
Copy link
Author

So now the UI shows up, I can manage my experiments, but when I create a new experiment, I get the message "Something went wrong" (experiments/1/edit endpoint)

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

And when you say

the furthest I got on an attempt was managing to create an experiment, but getting an errror when editing it ("Something went wrong")

What is the log?

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

but when I create a new experiment, I get the message "Something went wrong" (experiments/1/edit endpoint)

What are the parameters you input for creating this experiment?

@luananama
Copy link
Author

The active experiment box is checked, and then just the experiment name and author. I should add that if I go back to the experiments page, I can see that the experiment is created, but I can't edit it

@luananama
Copy link
Author

these are the logs
2022-10-20T07:24:24.531364+00:00 app[web.1]: 07:24:24.531 [info] Access Magpie.Endpoint at https://moderator-backend.herokuapp.com:36970
2022-10-20T07:24:24.546038+00:00 app[web.1]: 07:24:24.536 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546062+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546063+00:00 app[web.1]:
2022-10-20T07:24:24.546064+00:00 app[web.1]: 07:24:24.538 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546064+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546064+00:00 app[web.1]:
2022-10-20T07:24:24.546065+00:00 app[web.1]: 07:24:24.540 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546065+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546065+00:00 app[web.1]:
2022-10-20T07:24:24.546065+00:00 app[web.1]: 07:24:24.541 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546065+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546066+00:00 app[web.1]:
2022-10-20T07:24:24.546066+00:00 app[web.1]: 07:24:24.542 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546066+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546066+00:00 app[web.1]:
2022-10-20T07:24:24.546067+00:00 app[web.1]: 07:24:24.542 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546067+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546067+00:00 app[web.1]:
2022-10-20T07:24:24.546892+00:00 app[web.1]: 07:24:24.546 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.546893+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.546893+00:00 app[web.1]:
2022-10-20T07:24:24.550423+00:00 app[web.1]: 07:24:24.549 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.550424+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.550425+00:00 app[web.1]:
2022-10-20T07:24:24.552741+00:00 app[web.1]: 07:24:24.552 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.552742+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.552742+00:00 app[web.1]:
2022-10-20T07:24:24.570487+00:00 app[web.1]: 07:24:24.570 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.570489+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.570489+00:00 app[web.1]:
2022-10-20T07:24:24.582367+00:00 app[web.1]: 07:24:24.582 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.582368+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.582369+00:00 app[web.1]:
2022-10-20T07:24:24.582569+00:00 app[web.1]: 07:24:24.582 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.582569+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.582570+00:00 app[web.1]:
2022-10-20T07:24:24.583576+00:00 app[web.1]: 07:24:24.582 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.583578+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.583578+00:00 app[web.1]:
2022-10-20T07:24:24.583815+00:00 heroku[web.1]: State changed from starting to up
2022-10-20T07:24:24.585144+00:00 app[web.1]: 07:24:24.585 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.585145+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.585146+00:00 app[web.1]:
2022-10-20T07:24:24.585568+00:00 app[web.1]: 07:24:24.585 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.585569+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.585569+00:00 app[web.1]:
2022-10-20T07:24:24.590009+00:00 app[web.1]: 07:24:24.589 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.590010+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.590011+00:00 app[web.1]:
2022-10-20T07:24:24.597576+00:00 app[web.1]: 07:24:24.596 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.597577+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.597578+00:00 app[web.1]:
2022-10-20T07:24:24.600867+00:00 app[web.1]: 07:24:24.600 [warning] Description: 'Authenticity is not established by certificate path validation'
2022-10-20T07:24:24.600868+00:00 app[web.1]: Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
2022-10-20T07:24:24.600868+00:00 app[web.1]:
2022-10-20T07:24:27.548294+00:00 app[web.1]: 07:24:27.548 [info] tzdata release in place is from a file last modified Tue, 22 Dec 2020 23:35:21 GMT. Release file on server was last modified Tue, 11 Oct 2022 20:15:42 GMT.
2022-10-20T07:24:28.243069+00:00 app[web.1]: 07:24:28.241 [info] Tzdata has updated the release from 2020e to 2022e
2022-10-20T07:45:50.979528+00:00 app[web.1]: 07:45:50.979 request_id=1e3b4f5c-babb-48bb-89e4-368d46ce2405 [info] GET /
2022-10-20T07:45:50.993970+00:00 heroku[router]: at=info method=GET path="/" host=moderator-backend.herokuapp.com request_id=1e3b4f5c-babb-48bb-89e4-368d46ce2405 fwd="89.166.222.216" dyno=web.1 connect=0ms service=17ms status=200 bytes=1551 protocol=https
2022-10-20T07:45:50.994446+00:00 app[web.1]: 07:45:50.994 request_id=1e3b4f5c-babb-48bb-89e4-368d46ce2405 [info] Sent 200 in 14ms
2022-10-20T07:45:51.142438+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=3a2703b5-03ad-4712-9193-795727a055f3 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=10949 protocol=https
2022-10-20T07:45:51.289228+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=cc4a4eb1-0c5f-4e99-bc24-98f73a7f22ca fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=2726 protocol=https
2022-10-20T07:45:51.519780+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=moderator-backend.herokuapp.com request_id=d21f0545-81aa-4e63-8cee-fbf59d1bc7e2 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=404 bytes=347 protocol=https
2022-10-20T07:45:51.520263+00:00 app[web.1]: 07:45:51.520 request_id=d21f0545-81aa-4e63-8cee-fbf59d1bc7e2 [info] GET /favicon.ico
2022-10-20T07:45:51.520324+00:00 app[web.1]: 07:45:51.520 request_id=d21f0545-81aa-4e63-8cee-fbf59d1bc7e2 [info] Sent 404 in 76µs
2022-10-20T07:46:01.588458+00:00 app[web.1]: 07:46:01.588 request_id=155452e5-ce2a-448b-ace7-01248136c83b [info] GET /
2022-10-20T07:46:01.588696+00:00 heroku[router]: at=info method=GET path="/" host=moderator-backend.herokuapp.com request_id=155452e5-ce2a-448b-ace7-01248136c83b fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=200 bytes=1551 protocol=https
2022-10-20T07:46:01.588983+00:00 app[web.1]: 07:46:01.588 request_id=155452e5-ce2a-448b-ace7-01248136c83b [info] Sent 200 in 494µs
2022-10-20T07:46:01.727615+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=05caab70-fd0e-4038-8989-2f8161964c1e fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:46:01.730621+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=38029ff0-a541-42dd-8763-3914139e31bf fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:46:04.647976+00:00 app[web.1]: 07:46:04.647 request_id=bbe7e68f-1108-43f4-aee0-84a7dea8aa0c [info] GET /experiments
2022-10-20T07:46:04.651435+00:00 app[web.1]: 07:46:04.651 request_id=bbe7e68f-1108-43f4-aee0-84a7dea8aa0c [info] Sent 200 in 3ms
2022-10-20T07:46:04.653023+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=bbe7e68f-1108-43f4-aee0-84a7dea8aa0c fwd="89.166.222.216" dyno=web.1 connect=0ms service=4ms status=200 bytes=1764 protocol=https
2022-10-20T07:46:04.806781+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=f78165cd-c901-4009-a8fb-7ebaa97b7ad6 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:46:04.809009+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=c0506592-834e-464a-8ddf-eddc6f9765f3 fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=304 bytes=246 protocol=https
2022-10-20T07:46:06.836368+00:00 app[web.1]: 07:46:06.836 request_id=7dcf7af0-96b0-4ba7-a08b-c5b7bd320912 [info] GET /experiments/new
2022-10-20T07:46:06.837163+00:00 app[web.1]: 07:46:06.837 request_id=7dcf7af0-96b0-4ba7-a08b-c5b7bd320912 [info] Sent 200 in 769µs
2022-10-20T07:46:06.839822+00:00 heroku[router]: at=info method=GET path="/experiments/new" host=moderator-backend.herokuapp.com request_id=7dcf7af0-96b0-4ba7-a08b-c5b7bd320912 fwd="89.166.222.216" dyno=web.1 connect=0ms service=3ms status=200 bytes=8180 protocol=https
2022-10-20T07:46:06.990966+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=23b92082-4181-4e45-8580-473e21571dd4 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:46:06.992586+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=351b576c-74f3-4954-b697-b50d9cff4418 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:46:12.566171+00:00 app[web.1]: 07:46:12.566 request_id=29bb0f5e-dcc0-4dc2-8986-32b042f3896c [info] POST /experiments
2022-10-20T07:46:12.574541+00:00 heroku[router]: at=info method=POST path="/experiments" host=moderator-backend.herokuapp.com request_id=29bb0f5e-dcc0-4dc2-8986-32b042f3896c fwd="89.166.222.216" dyno=web.1 connect=0ms service=10ms status=302 bytes=908 protocol=https
2022-10-20T07:46:12.574972+00:00 app[web.1]: 07:46:12.574 request_id=29bb0f5e-dcc0-4dc2-8986-32b042f3896c [info] Sent 302 in 8ms
2022-10-20T07:46:12.717449+00:00 app[web.1]: 07:46:12.717 request_id=69b8131e-033e-4915-9de2-404a269ba340 [info] GET /experiments/1/edit
2022-10-20T07:46:12.720244+00:00 heroku[router]: at=info method=GET path="/experiments/1/edit" host=moderator-backend.herokuapp.com request_id=69b8131e-033e-4915-9de2-404a269ba340 fwd="89.166.222.216" dyno=web.1 connect=0ms service=4ms status=500 bytes=721 protocol=https
2022-10-20T07:46:12.720592+00:00 app[web.1]: 07:46:12.720 request_id=69b8131e-033e-4915-9de2-404a269ba340 [info] Sent 500 in 3ms
2022-10-20T07:46:12.721462+00:00 app[web.1]: 07:46:12.720 [error] #PID<0.3474.0> running Magpie.Endpoint (connection #PID<0.3473.0>, stream id 1) terminated
2022-10-20T07:46:12.721463+00:00 app[web.1]: Server: moderator-backend.herokuapp.com:80 (http)
2022-10-20T07:46:12.721463+00:00 app[web.1]: Request: GET /experiments/1/edit
2022-10-20T07:46:12.721464+00:00 app[web.1]: ** (exit) an exception was raised:
2022-10-20T07:46:12.721464+00:00 app[web.1]: ** (ArgumentError) argument error
2022-10-20T07:46:12.721464+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/views/experiment_view.ex:130: Magpie.ExperimentView.get_home_url/0
2022-10-20T07:46:12.721465+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/templates/experiment/edit.html.eex:10: Magpie.ExperimentView."edit.html"/1
2022-10-20T07:46:12.721466+00:00 app[web.1]: (phoenix_view 1.1.2) lib/phoenix/view.ex:298: Phoenix.View.render_within/3
2022-10-20T07:46:12.721466+00:00 app[web.1]: (phoenix_view 1.1.2) lib/phoenix/view.ex:475: Phoenix.View.render_to_iodata/3
2022-10-20T07:46:12.721466+00:00 app[web.1]: (phoenix 1.6.7) lib/phoenix/controller.ex:772: Phoenix.Controller.render_and_send/4
2022-10-20T07:46:12.721467+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/controllers/experiment_controller.ex:1: Magpie.ExperimentController.action/2
2022-10-20T07:46:12.721470+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/controllers/experiment_controller.ex:1: Magpie.ExperimentController.phoenix_controller_pipeline/2
2022-10-20T07:46:12.721471+00:00 app[web.1]: (phoenix 1.6.7) lib/phoenix/router.ex:355: Phoenix.Router.__call__/2
2022-10-20T07:48:37.569230+00:00 heroku[router]: at=info method=GET path="/experiments/1//" host=moderator-backend.herokuapp.com request_id=ad18f426-9940-489d-8ad5-11b21574e476 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=404 bytes=347 protocol=https
2022-10-20T07:48:37.569273+00:00 app[web.1]: 07:48:37.569 request_id=ad18f426-9940-489d-8ad5-11b21574e476 [info] GET /experiments/1//
2022-10-20T07:48:37.569399+00:00 app[web.1]: 07:48:37.569 request_id=ad18f426-9940-489d-8ad5-11b21574e476 [info] Sent 404 in 53µs
2022-10-20T07:48:42.581897+00:00 heroku[router]: at=info method=GET path="/" host=moderator-backend.herokuapp.com request_id=18797242-1c2f-42e5-b97c-2b61a62d4a44 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=1551 protocol=https
2022-10-20T07:48:42.738694+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=97f19e22-26be-40f9-a1f8-7f4e6e965ee8 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:48:42.861522+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=02c34e7f-9a8c-438e-9283-33b5d6810a95 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:48:42.581763+00:00 app[web.1]: 07:48:42.581 request_id=18797242-1c2f-42e5-b97c-2b61a62d4a44 [info] GET /
2022-10-20T07:48:42.582065+00:00 app[web.1]: 07:48:42.581 request_id=18797242-1c2f-42e5-b97c-2b61a62d4a44 [info] Sent 200 in 340µs
2022-10-20T07:48:44.152782+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=a74e3fbe-94df-4529-8a79-32bdb74f0daa fwd="89.166.222.216" dyno=web.1 connect=0ms service=39ms status=200 bytes=2749 protocol=https
2022-10-20T07:48:44.114186+00:00 app[web.1]: 07:48:44.114 request_id=a74e3fbe-94df-4529-8a79-32bdb74f0daa [info] GET /experiments
2022-10-20T07:48:44.152897+00:00 app[web.1]: 07:48:44.152 request_id=a74e3fbe-94df-4529-8a79-32bdb74f0daa [info] Sent 200 in 38ms
2022-10-20T07:48:44.310138+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=ab5a2418-a816-44f7-9716-3dfb47f1cc37 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:48:44.304312+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=3bb46995-86fb-4c29-99ab-eec8bedfc020 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:48:55.909531+00:00 heroku[router]: at=info method=GET path="/experiments/new" host=moderator-backend.herokuapp.com request_id=7d5a7dce-f81c-46a9-a399-c66f71861f0c fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=200 bytes=8180 protocol=https
2022-10-20T07:48:56.082547+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=d00f2d84-b2b9-46e2-bb07-ac366d2d8282 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:48:55.908901+00:00 app[web.1]: 07:48:55.908 request_id=7d5a7dce-f81c-46a9-a399-c66f71861f0c [info] GET /experiments/new
2022-10-20T07:48:55.909459+00:00 app[web.1]: 07:48:55.909 request_id=7d5a7dce-f81c-46a9-a399-c66f71861f0c [info] Sent 200 in 602µs
2022-10-20T07:48:56.073129+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=70b72cfa-6b49-44dd-9420-fa88f2c2be5d fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T07:50:31.473032+00:00 heroku[router]: at=info method=GET path="/experiments/1/edit" host=moderator-backend.herokuapp.com request_id=d5a13eb3-5030-42eb-8810-66c45f472eca fwd="89.166.222.216" dyno=web.1 connect=0ms service=5ms status=500 bytes=557 protocol=https
2022-10-20T07:50:31.471852+00:00 app[web.1]: 07:50:31.471 request_id=d5a13eb3-5030-42eb-8810-66c45f472eca [info] GET /experiments/1/edit
2022-10-20T07:50:31.475283+00:00 app[web.1]: 07:50:31.475 request_id=d5a13eb3-5030-42eb-8810-66c45f472eca [info] Sent 500 in 3ms
2022-10-20T07:50:31.476044+00:00 app[web.1]: 07:50:31.475 [error] #PID<0.3501.0> running Magpie.Endpoint (connection #PID<0.3500.0>, stream id 1) terminated
2022-10-20T07:50:31.476047+00:00 app[web.1]: Server: moderator-backend.herokuapp.com:80 (http)
2022-10-20T07:50:31.476048+00:00 app[web.1]: Request: GET /experiments/1/edit
2022-10-20T07:50:31.476048+00:00 app[web.1]: ** (exit) an exception was raised:
2022-10-20T07:50:31.476049+00:00 app[web.1]: ** (ArgumentError) argument error
2022-10-20T07:50:31.476049+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/views/experiment_view.ex:130: Magpie.ExperimentView.get_home_url/0
2022-10-20T07:50:31.476051+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/templates/experiment/edit.html.eex:10: Magpie.ExperimentView."edit.html"/1
2022-10-20T07:50:31.476051+00:00 app[web.1]: (phoenix_view 1.1.2) lib/phoenix/view.ex:298: Phoenix.View.render_within/3
2022-10-20T07:50:31.476052+00:00 app[web.1]: (phoenix_view 1.1.2) lib/phoenix/view.ex:475: Phoenix.View.render_to_iodata/3
2022-10-20T07:50:31.476052+00:00 app[web.1]: (phoenix 1.6.7) lib/phoenix/controller.ex:772: Phoenix.Controller.render_and_send/4
2022-10-20T07:50:31.476053+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/controllers/experiment_controller.ex:1: Magpie.ExperimentController.action/2
2022-10-20T07:50:31.476054+00:00 app[web.1]: (magpie 2.3.4) lib/magpie_web/controllers/experiment_controller.ex:1: Magpie.ExperimentController.phoenix_controller_pipeline/2
2022-10-20T07:50:31.476055+00:00 app[web.1]: (phoenix 1.6.7) lib/phoenix/router.ex:355: Phoenix.Router.__call__/2

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

I see there's an error at lib/magpie_web/views/experiment_view.ex:130: Magpie.ExperimentView.get_home_url/0. So the app doesn't know the URL at which it's deployed. Have you run step 8:

Run heroku config:set HOST="[app_name].herokuapp.com" PORT=443 CANONNICAL_URL="https://[app_name].herokuapp.com" where [app_name] is the app name (shown when you first ran heroku create, e.g. mysterious-meadow-6277, or the app name that you set at the previous step, e.g. newname).

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

The app_name should be moderator-backend here.

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

I see there's probably a typo in the instruction... Should be CANONICAL_URL instead of CANONNICAL_URL (double N). Could you try again with the single N?

@luananama
Copy link
Author

oh wow haha that must have been the issue! It's typed correctly in the script, it was just a bit annoying to run it on windows, but next time I'll know!
Thanks a lot :)

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

No worries! I just fixed the README. Sorry for the confusion! 🙏

@x-ji x-ji closed this as completed Oct 20, 2022
@luananama
Copy link
Author

Hey sorry to reopen this, but it seems there is still some issue with the deployed app, as I can't retrieve any results (getting an application error again).

logs
2022-10-20T08:03:23.802628+00:00 app[web.1]: 08:03:23.802 request_id=59067ad9-18f1-4046-8c88-f31cce721411 [info] Sent 200 in 3ms
2022-10-20T08:03:23.946830+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=325bd381-07c0-4b43-8c66-8f57280b1bc7 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:03:23.949478+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=47efcdc6-856f-4ba0-907e-3eb31b8db63b fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:04:58.624692+00:00 app[web.1]: 08:04:58.624 request_id=dd2f30b9-1e1c-4be4-a1bc-0853466bf23c [info] POST /experiments/1
2022-10-20T08:04:58.635066+00:00 app[web.1]: 08:04:58.634 request_id=dd2f30b9-1e1c-4be4-a1bc-0853466bf23c [info] Sent 302 in 10ms
2022-10-20T08:04:58.635871+00:00 heroku[router]: at=info method=POST path="/experiments/1" host=moderator-backend.herokuapp.com request_id=dd2f30b9-1e1c-4be4-a1bc-0853466bf23c fwd="89.166.222.216" dyno=web.1 connect=0ms service=11ms status=302 bytes=927 protocol=https
2022-10-20T08:04:58.773209+00:00 app[web.1]: 08:04:58.773 request_id=d589beae-4b9a-41ea-b06c-1edf7ecf90b8 [info] GET /experiments
2022-10-20T08:04:58.783277+00:00 app[web.1]: 08:04:58.783 request_id=d589beae-4b9a-41ea-b06c-1edf7ecf90b8 [info] Sent 200 in 10ms
2022-10-20T08:04:58.784114+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=d589beae-4b9a-41ea-b06c-1edf7ecf90b8 fwd="89.166.222.216" dyno=web.1 connect=0ms service=11ms status=200 bytes=2953 protocol=https
2022-10-20T08:04:58.930944+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=947c96d9-c5cd-4641-84d4-f0da0de9863c fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:04:59.051374+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=b51894d4-69ff-4b1f-9be7-4f59ece9ab0e fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:05:01.594378+00:00 app[web.1]: 08:05:01.594 request_id=b7e75d2d-73c2-46cb-87bd-c9da92ef7a53 [info] GET /experiments/1/retrieve
2022-10-20T08:05:01.600412+00:00 app[web.1]: 08:05:01.600 request_id=b7e75d2d-73c2-46cb-87bd-c9da92ef7a53 [info] Sent 302 in 6ms
2022-10-20T08:05:01.601237+00:00 heroku[router]: at=info method=GET path="/experiments/1/retrieve" host=moderator-backend.herokuapp.com request_id=b7e75d2d-73c2-46cb-87bd-c9da92ef7a53 fwd="89.166.222.216" dyno=web.1 connect=0ms service=7ms status=302 bytes=930 protocol=https
2022-10-20T08:05:01.730554+00:00 app[web.1]: 08:05:01.730 request_id=01349763-7984-4890-9428-661a22022e2c [info] GET /experiments
2022-10-20T08:05:01.736699+00:00 app[web.1]: 08:05:01.736 request_id=01349763-7984-4890-9428-661a22022e2c [info] Sent 200 in 6ms
2022-10-20T08:05:01.737551+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=01349763-7984-4890-9428-661a22022e2c fwd="89.166.222.216" dyno=web.1 connect=0ms service=7ms status=200 bytes=2954 protocol=https
2022-10-20T08:05:01.885772+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=3fa012e8-fc41-4346-9ed3-f0bfb858a158 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:05:01.888056+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=b87f996a-d16e-4a13-b41d-34063bc120d4 fwd="89.166.222.216" dyno=web.1 connect=0ms service=0ms status=304 bytes=246 protocol=https
2022-10-20T08:11:52.998015+00:00 app[web.1]: 08:11:52.997 request_id=37ad8ef5-71a1-4018-a86d-0b4f65f11ba7 [info] GET /experiments/1/edit
2022-10-20T08:11:53.001001+00:00 app[web.1]: 08:11:53.000 request_id=37ad8ef5-71a1-4018-a86d-0b4f65f11ba7 [info] Sent 200 in 3ms
2022-10-20T08:11:53.002137+00:00 heroku[router]: at=info method=GET path="/experiments/1/edit" host=moderator-backend.herokuapp.com request_id=37ad8ef5-71a1-4018-a86d-0b4f65f11ba7 fwd="89.166.222.216" dyno=web.1 connect=0ms service=4ms status=200 bytes=4683 protocol=https
2022-10-20T08:11:53.172166+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=f7b4c223-1b86-493f-a938-12e9ce7709e0 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:11:53.292895+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=2df63c78-fbea-45e2-9378-d3695cd50d44 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:14:02.124983+00:00 app[web.1]: 08:14:02.124 request_id=41392092-40bf-4c0d-9367-cdfa082e2cda [info] GET /experiments
2022-10-20T08:14:02.133078+00:00 app[web.1]: 08:14:02.132 request_id=41392092-40bf-4c0d-9367-cdfa082e2cda [info] Sent 200 in 8ms
2022-10-20T08:14:02.135882+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=41392092-40bf-4c0d-9367-cdfa082e2cda fwd="89.166.222.216" dyno=web.1 connect=0ms service=9ms status=200 bytes=2751 protocol=https
2022-10-20T08:14:02.297900+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=a094f495-94e1-4b17-8f44-2922dc12e014 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:14:02.421382+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=02177fb2-6220-42d0-a046-a63b61b983af fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:15:24.999521+00:00 app[web.1]: 08:15:24.999 request_id=f80236ed-d3f0-47f0-898e-630764ebe701 [info] GET /
2022-10-20T08:15:24.999851+00:00 app[web.1]: 08:15:24.999 request_id=f80236ed-d3f0-47f0-898e-630764ebe701 [info] Sent 200 in 324µs
2022-10-20T08:15:25.002109+00:00 heroku[router]: at=info method=GET path="/" host=moderator-backend.herokuapp.com request_id=f80236ed-d3f0-47f0-898e-630764ebe701 fwd="89.166.222.216" dyno=web.1 connect=0ms service=3ms status=200 bytes=1551 protocol=https
2022-10-20T08:15:25.172633+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=3c8407f8-adf7-4ec2-b5bf-c839f2c0868d fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:15:25.302555+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=36fab4bf-9a0f-4750-bb62-29ec5f792d91 fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=304 bytes=246 protocol=https
2022-10-20T08:24:36.407420+00:00 heroku[router]: at=info method=OPTIONS path="/api/submit_experiment/1" host=moderator-backend.herokuapp.com request_id=36932dba-c1df-49f6-b552-f295d18c1435 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=204 bytes=528 protocol=https
2022-10-20T08:24:36.542795+00:00 app[web.1]: 08:24:36.542 request_id=44c0fa5e-2af9-4f3f-a5ca-00c28c449764 [info] POST /api/submit_experiment/1
2022-10-20T08:24:36.822039+00:00 app[web.1]: 08:24:36.821 request_id=44c0fa5e-2af9-4f3f-a5ca-00c28c449764 [info] Sent 201 in 279ms
2022-10-20T08:24:36.826084+00:00 heroku[router]: at=info method=POST path="/api/submit_experiment/1" host=moderator-backend.herokuapp.com request_id=44c0fa5e-2af9-4f3f-a5ca-00c28c449764 fwd="89.166.222.216" dyno=web.1 connect=0ms service=280ms status=201 bytes=324 protocol=https
2022-10-20T08:24:44.251039+00:00 app[web.1]: 08:24:44.250 request_id=5b5fcb66-21cb-4332-9360-6c2833cef291 [info] GET /experiments
2022-10-20T08:24:44.258247+00:00 app[web.1]: 08:24:44.258 request_id=5b5fcb66-21cb-4332-9360-6c2833cef291 [info] Sent 200 in 7ms
2022-10-20T08:24:44.259074+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=5b5fcb66-21cb-4332-9360-6c2833cef291 fwd="89.166.222.216" dyno=web.1 connect=0ms service=8ms status=200 bytes=2751 protocol=https
2022-10-20T08:24:44.421496+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=90809209-0170-4d77-9dd9-dacda29df2ad fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:24:44.546718+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=2aebb59d-be94-4d8c-9ede-0aa3fa25ee90 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:24:47.984226+00:00 app[web.1]: 08:24:47.983 request_id=690a0518-41ab-4e18-b5a2-121f8ffef7ee [info] GET /experiments/1/retrieve
2022-10-20T08:24:47.998070+00:00 app[web.1]: 08:24:47.997 request_id=690a0518-41ab-4e18-b5a2-121f8ffef7ee [info] Sent 200 in 14ms
2022-10-20T08:24:47.998843+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/experiments/1/retrieve" host=moderator-backend.herokuapp.com request_id=690a0518-41ab-4e18-b5a2-121f8ffef7ee fwd="89.166.222.216" dyno=web.1 connect=0ms service=15ms status=503 bytes= protocol=https
2022-10-20T08:26:39.099774+00:00 app[web.1]: 08:26:39.099 request_id=f8da4565-f60b-48f3-9ac2-e2950bbfbeda [info] GET /experiments/1/retrieve
2022-10-20T08:26:39.119087+00:00 app[web.1]: 08:26:39.118 request_id=f8da4565-f60b-48f3-9ac2-e2950bbfbeda [info] Sent 200 in 19ms
2022-10-20T08:26:39.120023+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/experiments/1/retrieve" host=moderator-backend.herokuapp.com request_id=f8da4565-f60b-48f3-9ac2-e2950bbfbeda fwd="89.166.222.216" dyno=web.1 connect=0ms service=20ms status=503 bytes= protocol=https
2022-10-20T08:26:45.285688+00:00 app[web.1]: 08:26:45.285 request_id=3b679e4d-5e14-4c7d-9415-667524ea301e [info] GET /experiments/1/edit
2022-10-20T08:26:45.288509+00:00 app[web.1]: 08:26:45.288 request_id=3b679e4d-5e14-4c7d-9415-667524ea301e [info] Sent 200 in 2ms
2022-10-20T08:26:45.288630+00:00 heroku[router]: at=info method=GET path="/experiments/1/edit" host=moderator-backend.herokuapp.com request_id=3b679e4d-5e14-4c7d-9415-667524ea301e fwd="89.166.222.216" dyno=web.1 connect=0ms service=4ms status=200 bytes=4683 protocol=https
2022-10-20T08:26:45.437508+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=26036ba8-713b-44ea-ad74-7e3559cee77e fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=304 bytes=246 protocol=https
2022-10-20T08:26:45.561815+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=9f98d7e2-3df2-4f80-830c-20f44068e7e4 fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=304 bytes=246 protocol=https
2022-10-20T08:26:50.466853+00:00 app[web.1]: 08:26:50.466 request_id=e9735dd9-3424-4354-bb77-b0ca77b3c279 [info] GET /experiments
2022-10-20T08:26:50.485829+00:00 app[web.1]: 08:26:50.485 request_id=e9735dd9-3424-4354-bb77-b0ca77b3c279 [info] Sent 200 in 18ms
2022-10-20T08:26:50.486066+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=e9735dd9-3424-4354-bb77-b0ca77b3c279 fwd="89.166.222.216" dyno=web.1 connect=0ms service=20ms status=200 bytes=2751 protocol=https
2022-10-20T08:26:50.644722+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=32ccc949-fa45-491a-806c-72a3cb49eee4 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:26:50.646256+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=95db1e9f-f253-4f00-96b2-c31017e4a715 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:26:52.381337+00:00 app[web.1]: 08:26:52.381 request_id=368ce670-2c3b-487d-8aea-35dc12393a8f [info] GET /experiments/1/retrieve
2022-10-20T08:26:52.393987+00:00 app[web.1]: 08:26:52.393 request_id=368ce670-2c3b-487d-8aea-35dc12393a8f [info] Sent 200 in 12ms
2022-10-20T08:26:52.402233+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/experiments/1/retrieve" host=moderator-backend.herokuapp.com request_id=368ce670-2c3b-487d-8aea-35dc12393a8f fwd="89.166.222.216" dyno=web.1 connect=1ms service=21ms status=503 bytes= protocol=https
2022-10-20T08:28:01.338686+00:00 app[web.1]: 08:28:01.338 request_id=814c29c0-7b61-4c17-a31e-07234b0abcbb [info] GET /experiments/1/edit
2022-10-20T08:28:01.340396+00:00 app[web.1]: 08:28:01.340 request_id=814c29c0-7b61-4c17-a31e-07234b0abcbb [info] Sent 200 in 1ms
2022-10-20T08:28:01.344522+00:00 heroku[router]: at=info method=GET path="/experiments/1/edit" host=moderator-backend.herokuapp.com request_id=814c29c0-7b61-4c17-a31e-07234b0abcbb fwd="89.166.222.216" dyno=web.1 connect=0ms service=3ms status=200 bytes=4683 protocol=https
2022-10-20T08:28:01.492693+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=43f6b158-5054-45ba-9042-6ccd9e85492b fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:28:01.617226+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=858f0c17-9a70-4570-b74e-f3bac4297051 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:28:17.501463+00:00 app[web.1]: 08:28:17.501 request_id=dbddc2df-6898-4795-a19f-41ed10203379 [info] GET /custom_records
2022-10-20T08:28:17.504663+00:00 app[web.1]: 08:28:17.504 request_id=dbddc2df-6898-4795-a19f-41ed10203379 [info] Sent 200 in 3ms
2022-10-20T08:28:17.506624+00:00 heroku[router]: at=info method=GET path="/custom_records" host=moderator-backend.herokuapp.com request_id=dbddc2df-6898-4795-a19f-41ed10203379 fwd="89.166.222.216" dyno=web.1 connect=0ms service=4ms status=200 bytes=1606 protocol=https
2022-10-20T08:28:17.665176+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=6c30c6cd-7043-4402-b7c3-944709c44e3d fwd="89.166.222.216" dyno=web.1 connect=0ms service=2ms status=304 bytes=246 protocol=https
2022-10-20T08:28:17.789312+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=ff4dc277-f16a-4d5c-8e21-5e97bccc8378 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:28:19.586154+00:00 app[web.1]: 08:28:19.586 request_id=3630c6ad-172d-490c-af6c-85cb650503f9 [info] GET /custom_records/new
2022-10-20T08:28:19.586539+00:00 app[web.1]: 08:28:19.586 request_id=3630c6ad-172d-490c-af6c-85cb650503f9 [info] Sent 200 in 413µs
2022-10-20T08:28:19.588546+00:00 heroku[router]: at=info method=GET path="/custom_records/new" host=moderator-backend.herokuapp.com request_id=3630c6ad-172d-490c-af6c-85cb650503f9 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=2313 protocol=https
2022-10-20T08:28:19.733845+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=6075e18a-ae08-4218-815f-04a957ff59a4 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:28:19.741550+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=d4509229-4d53-4255-a3b6-eaf15e4c3187 fwd="89.166.222.216" dyno=web.1 connect=0ms service=0ms status=304 bytes=246 protocol=https
2022-10-20T08:28:25.358055+00:00 app[web.1]: 08:28:25.357 request_id=17fe9df2-9897-44d6-bd52-1daf79dc0ce7 [info] GET /custom_records
2022-10-20T08:28:25.360416+00:00 app[web.1]: 08:28:25.360 request_id=17fe9df2-9897-44d6-bd52-1daf79dc0ce7 [info] Sent 200 in 2ms
2022-10-20T08:28:25.361401+00:00 heroku[router]: at=info method=GET path="/custom_records" host=moderator-backend.herokuapp.com request_id=17fe9df2-9897-44d6-bd52-1daf79dc0ce7 fwd="89.166.222.216" dyno=web.1 connect=0ms service=3ms status=200 bytes=1606 protocol=https
2022-10-20T08:28:25.510493+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=ef3ec7ef-f05e-40c5-ae26-314a632c2a30 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:28:25.637710+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=724b755a-d1b5-4a3d-8920-0b4da5ca4bf7 fwd="89.166.222.216" dyno=web.1 connect=0ms service=3ms status=304 bytes=246 protocol=https
2022-10-20T08:28:28.800393+00:00 app[web.1]: 08:28:28.800 request_id=ae905ea0-cf49-49ba-8e7b-1cda7b803adc [info] GET /experiments
2022-10-20T08:28:28.806970+00:00 app[web.1]: 08:28:28.806 request_id=ae905ea0-cf49-49ba-8e7b-1cda7b803adc [info] Sent 200 in 6ms
2022-10-20T08:28:28.808209+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=ae905ea0-cf49-49ba-8e7b-1cda7b803adc fwd="89.166.222.216" dyno=web.1 connect=0ms service=8ms status=200 bytes=2751 protocol=https
2022-10-20T08:28:28.961445+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=a76d9dca-bd64-407d-88dd-c211da44eea3 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:28:28.977538+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=288d7678-9b00-4231-92bf-ca0ace36652d fwd="89.166.222.216" dyno=web.1 connect=5ms service=2ms status=304 bytes=246 protocol=https
2022-10-20T08:29:40.109254+00:00 heroku[router]: at=info method=GET path="/" host=moderator-backend.herokuapp.com request_id=14d59078-8c79-4891-a42d-f83daf0438aa fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=200 bytes=1551 protocol=https
2022-10-20T08:29:40.110191+00:00 app[web.1]: 08:29:40.110 request_id=14d59078-8c79-4891-a42d-f83daf0438aa [info] GET /
2022-10-20T08:29:40.110470+00:00 app[web.1]: 08:29:40.110 request_id=14d59078-8c79-4891-a42d-f83daf0438aa [info] Sent 200 in 290µs
2022-10-20T08:29:40.269910+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=8e39b704-be6a-4000-a77e-01e22bea1943 fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:29:40.385396+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=d197089a-4720-47c6-8ca9-c4d12dcd95af fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:29:42.642664+00:00 app[web.1]: 08:29:42.642 request_id=966e4fc9-4428-4e63-acaf-4d7b70bbc657 [info] GET /experiments
2022-10-20T08:29:42.650753+00:00 heroku[router]: at=info method=GET path="/experiments" host=moderator-backend.herokuapp.com request_id=966e4fc9-4428-4e63-acaf-4d7b70bbc657 fwd="89.166.222.216" dyno=web.1 connect=0ms service=11ms status=200 bytes=2751 protocol=https
2022-10-20T08:29:42.651861+00:00 app[web.1]: 08:29:42.651 request_id=966e4fc9-4428-4e63-acaf-4d7b70bbc657 [info] Sent 200 in 9ms
2022-10-20T08:29:42.802278+00:00 heroku[router]: at=info method=GET path="/assets/app.css" host=moderator-backend.herokuapp.com request_id=c99ff4f3-52b4-4c80-9d5c-6975c02dddec fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:29:42.817082+00:00 heroku[router]: at=info method=GET path="/assets/app.js" host=moderator-backend.herokuapp.com request_id=67878093-afb9-46f9-85f9-70e14e2b46aa fwd="89.166.222.216" dyno=web.1 connect=0ms service=1ms status=304 bytes=246 protocol=https
2022-10-20T08:29:44.532417+00:00 app[web.1]: 08:29:44.532 request_id=079fbbb7-b3aa-472b-b3d8-576308e61fc6 [info] GET /experiments/1/retrieve
2022-10-20T08:29:44.546653+00:00 app[web.1]: 08:29:44.546 request_id=079fbbb7-b3aa-472b-b3d8-576308e61fc6 [info] Sent 200 in 14ms
2022-10-20T08:29:44.550662+00:00 heroku[router]: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/experiments/1/retrieve" host=moderator-backend.herokuapp.com request_id=079fbbb7-b3aa-472b-b3d8-576308e61fc6 fwd="89.166.222.216" dyno=web.1 connect=0ms service=15ms status=503 bytes= protocol=https

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

I see. Unfortunately the logs don't seem to contain any information. Could you point me to the frontend you're running? I will test it against an instance I spin up.

@x-ji x-ji reopened this Oct 20, 2022
@luananama
Copy link
Author

Do you mean the repo or the netlify link?

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

The repo, so that I can edit the URL and point it to the instance I set up and try it out.

@luananama
Copy link
Author

Sure

@x-ji
Copy link
Member

x-ji commented Oct 20, 2022

I was able to spin up a new app using the script at http://magpie-magpie-magpie.herokuapp.com/experiments (username and password: test), submit the results and retrieve them correctly. Could you try with a simple experiment on both websites? If it still doesn't work, maybe something was disturbed during the retries to deploy the server. Could you try deleting the app and redeploying it again? Thanks!

@luananama
Copy link
Author

Hello again,
after several attempts to redeploy, in the end I managed to do it. Unfortunately I can't say what went wrong, but I suspect it had something to do with the cli I used (I tried both windows command prompt and git bash).
The connection is somewhat unstable, for example I could submit the results if I ran my experiment locally, but not from the deployed version, until I restarted the dynos, and now I still sometimes get an Application error when I try to retrieve the results (even on the app you provided), but refreshing the page a couple of times seems to work.

Thanks a lot for your help!

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

2 participants