Heroku Internal Server Error for stroop-js psych (experiment complete)

86 views
Skip to first unread message

gal...@gmail.com

unread,
Jan 22, 2020, 12:55:59 AM1/22/20
to PsiTurk
I was successful in hosting the psiturk example via heroku, however it's not clear to me which files I need to transfer to get stroop-js psych to run on heroku. 
I transferred herokuapp.py, Procfile and set-heroku-setting.py. I adjusted the custom.py app. Everything works fine in setting up heroku (initialize git, created an app, get links for database & ad, etc.). 

The server turns on, and the ad and consent form show up in debug mode. However, once I try to continue to the experiment I get an Internal Server Error:

Screen Shot 2020-01-22 at 12.50.33 AM.png


Any ideas on what might have happened? I assume it's a problem with the application, but how can I find out where the error occurred?

When I inspect the console of the pop up window I get: Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR), which is not very informative.

Many thanks,
Gal

Dave Eargle

unread,
Jan 22, 2020, 12:57:13 AM1/22/20
to gal...@gmail.com, PsiTurk

--
You received this message because you are subscribed to the Google Groups "PsiTurk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psiturk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psiturk/6e93ea8d-7f84-48c4-9167-d594dd32abb6%40googlegroups.com.

gal...@gmail.com

unread,
Jan 22, 2020, 1:14:46 AM1/22/20
to PsiTurk

Screen Shot 2020-01-22 at 1.09.51 AM.png

Thank you, screenshot is above.

"STOPPING ALL PROCESSES WITH SIGTERM." seems to be the point where there is a problem. Any way I can see how this is triggered?

Could this be a limitation of free dynos in heroku?


Am Mittwoch, 22. Januar 2020 00:57:13 UTC-5 schrieb Dave Eargle:
On Tue, Jan 21, 2020 at 10:56 PM <gal...@gmail.com> wrote:
I was successful in hosting the psiturk example via heroku, however it's not clear to me which files I need to transfer to get stroop-js psych to run on heroku. 
I transferred herokuapp.py, Procfile and set-heroku-setting.py. I adjusted the custom.py app. Everything works fine in setting up heroku (initialize git, created an app, get links for database & ad, etc.). 

The server turns on, and the ad and consent form show up in debug mode. However, once I try to continue to the experiment I get an Internal Server Error:

Screen Shot 2020-01-22 at 12.50.33 AM.png


Any ideas on what might have happened? I assume it's a problem with the application, but how can I find out where the error occurred?

When I inspect the console of the pop up window I get: Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR), which is not very informative.

Many thanks,
Gal

--
You received this message because you are subscribed to the Google Groups "PsiTurk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psi...@googlegroups.com.

Dave Eargle

unread,
Jan 22, 2020, 1:28:32 AM1/22/20
to gal...@gmail.com, PsiTurk
That log message shows that your app is running. You made a new release at 7:18, which involved the old process being killed. It booted it at 7:22, build succeeded. That log does not show any 500 SERVER ERROR logs. Those would be in your server.log, which should be being printed out to stderr if you set ON_HEROKU env var via the set-heroku-whatever.py script. Check with `heroku config`



To unsubscribe from this group and stop receiving emails from it, send an email to psiturk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psiturk/b929a863-5e8c-4581-b2ff-481a6f3671c6%40googlegroups.com.

gal...@gmail.com

unread,
Jan 22, 2020, 1:38:13 AM1/22/20
to PsiTurk
Thanks!


ON_HEROKU is true when I check heroku config.

server.log shows:

Screen Shot 2020-01-22 at 1.33.10 AM.png




gal...@gmail.com

unread,
Jan 22, 2020, 1:47:45 AM1/22/20
to PsiTurk
Got it. Was a mistake in my config file. Sorry for the hassle. But it's educational :)

Dave Eargle

unread,
Jan 22, 2020, 1:56:27 AM1/22/20
to gal...@gmail.com, PsiTurk
That's your local server.log, which means that the task wasn't working even before you attempted to get it running on heroku ;-)

To unsubscribe from this group and stop receiving emails from it, send an email to psiturk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psiturk/b0faf3f6-8713-4214-ac90-beead49c3546%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages