Loomio
Fri 1 Jun 2018 11:03PM

Login Issues: After asking Email and Name, app just hangs...

A Arit Public Seen by 389

I was sure to save the email and password presented at the end of installation. But when I type that email address in, and then my name at the next prompt, the app just hangs and goes nowhere: doesn't log me in, doesn't shut me out.
I had no issues during installation.
I'm running Loomio on OSX.

Thanks for your help :slight_smile:

JK

James Kiesel Fri 1 Jun 2018 11:54PM

There should be an error in your javascript console (available by selecting 'Console' from the dev tools in the browser); could you screenshot that here? It may also be useful to know what the response of the /api/v1/sessions call was in the 'Network' tab.

A

Arit Sat 2 Jun 2018 12:05PM

Thank you James :) Here is the screenshot of my console errors. I couldn't find the "api/v1/sessions" response.

SC

Steve Couch Sun 10 Jun 2018 3:14PM

I'm getting the same issue. In my docker logs, I'm seeing this:

nginx_1 | nginx.1 | dsa-la-lsc.org 173.244.48.9 - - [10/Jun/2018:15:12:44 +0000] "GET /cable HTTP/1.1" 101 4 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"

nginx_1 | nginx.1 | dsa-la-lsc.org 173.244.48.9 - - [10/Jun/2018:15:12:45 +0000] "POST /ahoy/events HTTP/2.0" 200 28 "https://dsa-la-lsc.org/dashboard" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"

nginx_1 | nginx.1 | 2018/06/10 15:12:46 [error] 47#47: *334 connect() failed (111: Connection refused) while connecting to upstream, client: 173.244.48.9, server: dsa-la-lsc.org, request: "GET /service-worker.js?1.8.564 HTTP/2.0", upstream: "http://172.17.0.5:3000/service-worker.js?1.8.564", host: "dsa-la-lsc.org"

nginx_1 | nginx.1 | 2018/06/10 15:12:46 [warn] 47#47: *334 upstream server temporarily disabled while connecting to upstream, client: 173.244.48.9, server: dsa-la-lsc.org, request: "GET /service-worker.js?1.8.564 HTTP/2.0", upstream: "http://172.17.0.5:3000/service-worker.js?1.8.564", host: "dsa-la-lsc.org"

nginx_1 | nginx.1 | dsa-la-lsc.org 173.244.48.9 - - [10/Jun/2018:15:12:46 +0000] "GET /service-worker.js?1.8.564 HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"

No errors in the console or any 400/500 statuses on the network tab.

RG

Robert Guthrie Sun 10 Jun 2018 4:03PM

Usually this is because the rails server can't send emails, but I can't see that error in your logs. Is that all the revevant logs? Maybe post the full thing via a text attachment or pastebin like service?

Can you check the configuration of your SMTP settings?

SC

Steve Couch Thu 14 Jun 2018 4:18AM

Hey Robert, thanks for the tips. I've been playing aroun for a couple hours now with no luck. Here are my raw logs (with one attempt at creating an account at the end) https://pastebin.com/usqqm1ba
And here is my env file with all the important stuff removed https://pastebin.com/ejSqFFcS
Hope this leads to a solution, I'm super excited to get loomio up and running!

RG

Robert Guthrie Thu 14 Jun 2018 11:17AM

Hrrm. I don't see any information about critical failures in those logs. I would have expected the loomio_1 container to have a connection refused error.

please try:

docker-compose run loomio rails c

to start a rails console

then run

u = User.create(email: "[email protected]")
UserMailer.login(user: u, token: u.login_tokens.create).deliver

and paste the result in here.

SC

Steve Couch Thu 14 Jun 2018 12:39PM

Here's the output: https://pastebin.com/wRGFmb7i
Didn't receive an email, so I imagine something's wrong with my smtp settings, but I don't know what

RG

Robert Guthrie Thu 14 Jun 2018 3:11PM

It does seem like it's a problem with your SMTP settings. Can you view logs on that service?

SC

Steve Couch Thu 14 Jun 2018 4:59PM

Yes I can, and there are a lot of juicy errors in there. https://pastebin.com/K6RCKKr4
They all seem to do with spamd?

RG

Robert Guthrie Thu 14 Jun 2018 6:04PM

I think that's the wrong pastebin link

Load More