Need help with the following error…!
Tags: selfhost, forem, help, admin
Published: 2023-02-01 19:29:26

Hi team!

I was not able to find any answers to this so I thought I might try my luck here.

I created Forem using selfhost guide which is now done. 
However, when I try to create the admin user for the first time, it just redirects me to the same page. 

I got a log file of what happen when I try to sign up but wasn’t too sure how to resolve this. 

Would anyone be able to help me out please?

```

Feb 01 13:19:11 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:11.080472 #9]  INFO -- : [50f8cb54-66c9-4bd5-a004-45f044280343] [dd.env=production dd.service=rails-production dd.trace_id=1638366970051613229 dd.span_id=0] Started POST "/users" for 203.91.233.86 at 2023-02-01 13:19:11 +0000
Feb 01 13:19:11 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:11.103651 #9]  INFO -- : [50f8cb54-66c9-4bd5-a004-45f044280343] [dd.env=production dd.service=rails-production dd.trace_id=1638366970051613229 dd.span_id=0] Processing by RegistrationsController#create as HTML
Feb 01 13:19:11 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:11.104127 #9]  INFO -- : [50f8cb54-66c9-4bd5-a004-45f044280343] [dd.env=production dd.service=rails-production dd.trace_id=1638366970051613229 dd.span_id=0]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "user"=>{"name"=>"admin", "username"=>"admin", "email"=>"[FILTERED]", "password"=>"[FILTERED]"}, "commit"=>"Create my account"}
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.015060 #9]  INFO -- : [50f8cb54-66c9-4bd5-a004-45f044280343] [dd.env=production dd.service=rails-production dd.trace_id=1638366970051613229 dd.span_id=0]   Rendered devise/registrations/by_email.html.erb within layouts/application (Duration: 52.5ms | Allocations: 7660)
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.042337 #9]  INFO -- : [50f8cb54-66c9-4bd5-a004-45f044280343] [dd.env=production dd.service=rails-production dd.trace_id=1638366970051613229 dd.span_id=0]   Rendered layout layouts/application.html.erb (Duration: 79.9ms | Allocations: 13469)
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.051026 #9]  INFO -- : [50f8cb54-66c9-4bd5-a004-45f044280343] [dd.env=production dd.service=rails-production dd.trace_id=1638366970051613229 dd.span_id=0] Completed 200 OK in 946ms (Views: 88.7ms | ActiveRecord: 8.4ms | Allocations: 19832)
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.323033 #9]  INFO -- : [3eb5102d-a7a2-4686-b65c-b5835e554e74] [dd.env=production dd.service=rails-production dd.trace_id=2682673655117032949 dd.span_id=0] Started GET "/async_info/base_data" for 203.91.233.86 at 2023-02-01 13:19:12 +0000
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.343844 #9]  INFO -- : [3eb5102d-a7a2-4686-b65c-b5835e554e74] [dd.env=production dd.service=rails-production dd.trace_id=2682673655117032949 dd.span_id=0] Processing by AsyncInfoController#base_data as JSON
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.344210 #9]  INFO -- : [3eb5102d-a7a2-4686-b65c-b5835e554e74] [dd.env=production dd.service=rails-production dd.trace_id=2682673655117032949 dd.span_id=0]   Parameters: {"locale"=>nil}
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: I, [2023-02-01T13:19:12.366237 #9]  INFO -- : [3eb5102d-a7a2-4686-b65c-b5835e554e74] [dd.env=production dd.service=rails-production dd.trace_id=2682673655117032949 dd.span_id=0] Completed 200 OK in 21ms (Views: 0.6ms | ActiveRecord: 2.3ms | Allocations: 1315)
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: F, [2023-02-01T13:19:12.397721 #7] FATAL -- : [562eb491-42fa-46fa-8be2-f0fab24e2216] [dd.env=production dd.service=rails-production dd.trace_id=2309254324490364783 dd.span_id=0]   
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: [562eb491-42fa-46fa-8be2-f0fab24e2216] [dd.env=production dd.service=rails-production dd.trace_id=2309254324490364783 dd.span_id=0] ActionController::RoutingError (No route matches [POST] "/ahoy/visits"):
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: [562eb491-42fa-46fa-8be2-f0fab24e2216] [dd.env=production dd.service=rails-production dd.trace_id=2309254324490364783 dd.span_id=0]   
Feb 01 13:19:12 www.waitwhatfirst.com forem-rails[6972]: E, [2023-02-01T13:19:12.403797 #7] ERROR -- honeybadger: ** [Honeybadger] Unable to send error report: API key is missing. id=0d98fbe7-a24a-49c0-ae1f-69110f6abbf2 level=3 pid=7

```