Dashboard/Campaigns on Heroku

30 views
Skip to first unread message

Cody Wild

unread,
Mar 30, 2021, 8:20:04 PM3/30/21
to PsiTurk
Two related questions: 

- If we wanted to run a Campaign while using a task hosted on Heroku, but controlled via local `psiturk` (via an `ad_url_domain` in config.txt) should be trying to do that on the `/dashboard` path on the remote Heroku server, or can you do it locally if you have the `ad_url_domain` set? 

- And, relatedly, if the former, have people been able to access `/dashboard` when running Psiturk as a Heroku app? I and my collaborator keep getting TOO_MANY_REDIRECTS errors when trying to access it, even though `localhost:22362/dashboard` is working locally (My suspicion is that this is some SSL weirdness, because in the Heroku logs the `/dashboard` GET calls are being processed as http rather than https requests, but this is just a guess) 

Thanks! 
Cody

Dave Eargle

unread,
Mar 30, 2021, 9:17:57 PM3/30/21
to Cody Wild, PsiTurk
See the warning callout here: https://psiturk.readthedocs.io/en/latest/dashboard.html

You can schedule campaigns wherever you like --including localhost-- as long as you're pointing to a common database. Only the place that actually _runs_ the campaign needs to have the correct ad_url in its config.

And idk what's going on with your number 2, I use the dashboard on heroku all the time. Are you doing anything unusual such as not using the xyz.herokuapp.com domain, but rather, a different domain proxied through cloudflare? I ask because I remember you saying you were unsure about using heroku's free ssl.
--
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/4614f83f-71a0-4682-8017-496aaf980076n%40googlegroups.com.

Dave Eargle

unread,
Apr 6, 2021, 2:31:10 PM4/6/21
to Dave Eargle, Cody Wild, PsiTurk
I'm now getting the redirect on the dashboard on a new heroku app, but not on older apps. I'm debugging.

Cody Wild

unread,
Apr 6, 2021, 2:33:47 PM4/6/21
to PsiTurk
Oh, interesting, it's good to know it's not just something specific to our app. When you say older/newer, do you mean that the code is the same, but one was heroku-created more recently, or do you mean older/newer in terms of Psiturk version? 

Dave Eargle

unread,
Apr 6, 2021, 3:10:02 PM4/6/21
to Cody Wild, PsiTurk
The heroku app was newer. I'm puzzled. Old works, new doesnt.

* same versions of python
* same versions of psiturk
* same config

Ah! The old app had aws credentials set on heroku, but the new one didn't I set aws credentials in the heroku config for the new app, and it works now. That shouldn't be necessary. Or should it be necessary? I'm not sure. I'll figure out a fix. At any rate, I'll at least remove the infinite redirect!

Reply all
Reply to author
Forward
0 new messages