AdPsiturkOrgError

60 просмотров
Перейти к первому непрочитанному сообщению

Ari Beller

не прочитано,
27 апр. 2021 г., 19:53:2227.04.2021
– PsiTurk
Hi all,

This is perhaps related to Nicholas' issue from a couple weeks ago. I also have an experiment that relies on the add server. When I try to post a hit, I get an AdPsiturkOrgError: Error creating the ad (screenshot attached). I'm running Psiturk 2.3.12. I get the same error when I try to run in either live mode or sandbox. I tried to figure out what was going on in the server.log file, but I wasn't really able to interpret it.

Any help would be be appreciated. Can provide server.log or config.txt if that would be helpful.

Thanks!
Ari
Screen Shot 2021-04-27 at 4.30.07 PM.png

Ari Beller

не прочитано,
27 апр. 2021 г., 20:15:4027.04.2021
– Dave Eargle, PsiTurk
Yes. There were none.

On Tue, Apr 27, 2021 at 5:10 PM Dave Eargle <da...@daveeargle.com> wrote:
Did you remove all html comments from your ad.html?

--
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/4bbe376a-b54a-4b2d-b820-455f8c98738an%40googlegroups.com.

Todd Gureckis

не прочитано,
27 апр. 2021 г., 21:45:0827.04.2021
– PsiTurk, Ari Beller
If you still need the psiTurk ad server, use psiTurk v2.3.12, and remove all HTML comments from your ad.html file. Versions less than v2.3.12 will not be able to post HITs due to a change implemented by the psiturk ad server’s hosting provider. You can upgrade to psiturk v2.3.12 by running pip install --upgrade psiturk=2.3.12.
On Apr 27, 2021, 7:53 PM -0400, Ari Beller <arib...@gmail.com>, wrote:

Any

Ari Beller

не прочитано,
27 апр. 2021 г., 22:21:4727.04.2021
– PsiTurk
Thanks Todd.
I am running v2.3.12 and I don't have any comments in ad.html. Still getting the bug.
Any other suggestions would be welcome!
Ari

Todd Gureckis

не прочитано,
28 апр. 2021 г., 02:02:1828.04.2021
– Ari Beller, PsiTurk
Server log around the time of the error might be helpful


--
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.

tob...@gmail.com

не прочитано,
28 апр. 2021 г., 12:27:2928.04.2021
– PsiTurk
here is the error message: 

Response(Operation: create_hit | Status: error | Exception: AdPsiturkOrgError: Error creating the ad.)

and below is the server.log 

~~~
[2021-04-28 16:25:24 +0000] [20778] [DEBUG] Current configuration:
  proxy_protocol: False
  worker_connections: 1000
  disable_redirect_access_to_syslog: False
  statsd_host: None
  max_requests_jitter: 0
  post_fork: <function post_fork at 0x7f339fe7f750>
  errorlog: server.log
  enable_stdio_inheritance: False
  worker_class: sync
  ssl_version: 2
  suppress_ragged_eofs: True
  syslog_facility: user
  when_ready: <function when_ready at 0x7f339fe7f550>
  pre_fork: <function pre_fork at 0x7f339fe7f650>
  cert_reqs: 0
  preload_app: False
  keepalive: 2
  sendfile: None
  reuse_port: False
  worker_tmp_dir: None
  group: 500
  umask: 0
  secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
  workers: 3
  graceful_timeout: 30
  do_handshake_on_connect: False
  spew: False
  proc_name: psiturk_experiment_server_e1b3345a5014
  pre_exec: <function pre_exec at 0x7f339fe7fb50>
  limit_request_fields: 100
  pythonpath: None
  on_exit: <function on_exit at 0x7f339e8ed5d0>
  logconfig: None
  logconfig_dict: {}
  config: None
  pidfile: None
  check_config: False
  statsd_prefix:
  on_reload: <function on_reload at 0x7f339fe7f450>
  reload_extra_files: []
  accesslog: None
  reload_engine: auto
  proxy_allow_ips: ['127.0.0.1']
  pre_request: <function pre_request at 0x7f339fe7fc50>
  post_request: <function post_request at 0x7f339fe7fcd0>
  user: 500
  forwarded_allow_ips: ['127.0.0.1']
  worker_int: <function worker_int at 0x7f339fe7f950>
  paste: None
  raw_paste_global_conf: []
  threads: 1
  max_requests: 0
  limit_request_line: 0
  access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
  certfile: None
  on_starting: <function on_starting at 0x7f339fe7f350>
  post_worker_init: <function post_worker_init at 0x7f339fe7f850>
  worker_abort: <function worker_abort at 0x7f339fe7fa50>
  child_exit: <function child_exit at 0x7f339fe7fdd0>
  worker_exit: <function worker_exit at 0x7f339fe7fed0>
  default_proc_name: gunicorn
  loglevel: debug
  syslog: False
  syslog_prefix: None
  chdir: /home/ec2-user/experiments/ari/experiment_words_to_clips_2
  daemon: False
  syslog_addr: udp://localhost:514
  ciphers: TLSv1
  raw_env: []
  initgroups: False
  capture_output: False
  reload: False
  limit_request_field_size: 8190
  nworkers_changed: <function nworkers_changed at 0x7f339fe90050>
  timeout: 30
  keyfile: None
  ca_certs: None
  tmp_upload_dir: None
  backlog: 2048
  logger_class: gunicorn.glogging.Logger
[2021-04-28 16:25:24 +0000] [20778] [INFO] Starting gunicorn 19.9.0
[2021-04-28 16:25:24 +0000] [20778] [DEBUG] Arbiter booted
[2021-04-28 16:25:24 +0000] [20778] [INFO] Listening at: http://172.31.40.42:22362 (20778)
[2021-04-28 16:25:24 +0000] [20778] [INFO] Using worker: sync
[2021-04-28 16:25:24 +0000] [20782] [INFO] Booting worker with pid: 20782
[2021-04-28 16:25:24 +0000] [20783] [INFO] Booting worker with pid: 20783
[2021-04-28 16:25:24 +0000] [20784] [INFO] Booting worker with pid: 20784
[2021-04-28 16:25:24 +0000] [20778] [DEBUG] 3 workers
2021-04-28 16:25:26,792 Secret key: 'this is my secret key which is hard to guess, i should change this'
2021-04-28 16:25:26,819 /home/ec2-user/psiturk_2/local/lib64/python2.7/site-packages/psiturk/psiturk_js/psiturk.js
2021-04-28 16:25:26,848 Secret key: 'this is my secret key which is hard to guess, i should change this'
2021-04-28 16:25:26,851 Secret key: 'this is my secret key which is hard to guess, i should change this'
[2021-04-28 16:25:26 +0000] [20782] [DEBUG] Closing connection.
2021-04-28 16:25:26,871 /home/ec2-user/psiturk_2/local/lib64/python2.7/site-packages/psiturk/psiturk_js/psiturk.js
2021-04-28 16:25:26,875 /home/ec2-user/psiturk_2/local/lib64/python2.7/site-packages/psiturk/psiturk_js/psiturk.js
[2021-04-28 16:25:28 +0000] [20784] [DEBUG] Closing connection.
[2021-04-28 16:25:29 +0000] [20784] [DEBUG] Closing connection.
[2021-04-28 16:25:32 +0000] [20784] [DEBUG] Closing connection.
[2021-04-28 16:25:33 +0000] [20784] [DEBUG] Closing connection.
[2021-04-28 16:25:33 +0000] [20782] [DEBUG] Closing connection.
[2021-04-28 16:25:33 +0000] [20782] [DEBUG] GET /ppid
[2021-04-28 16:25:33 +0000] [20782] [DEBUG] Closing connection.
[2021-04-28 16:25:33 +0000] [20782] [INFO] Parent changed, shutting down: <Worker 20782>
[2021-04-28 16:25:33 +0000] [20782] [INFO] Worker exiting (pid: 20782)
[2021-04-28 16:25:34 +0000] [20784] [DEBUG] Closing connection.
[2021-04-28 16:25:34 +0000] [20784] [INFO] Parent changed, shutting down: <Worker 20784>
[2021-04-28 16:25:34 +0000] [20784] [INFO] Worker exiting (pid: 20784)
[2021-04-28 16:25:34 +0000] [20783] [DEBUG] Closing connection.
[2021-04-28 16:25:34 +0000] [20783] [INFO] Parent changed, shutting down: <Worker 20783>
[2021-04-28 16:25:34 +0000] [20783] [INFO] Worker exiting (pid: 20783)
[2021-04-28 16:25:35 +0000] [20841] [DEBUG] Current configuration:
  proxy_protocol: False
  worker_connections: 1000
  disable_redirect_access_to_syslog: False
  statsd_host: None
  max_requests_jitter: 0
  post_fork: <function post_fork at 0x7ff88861a750>
  errorlog: server.log
  enable_stdio_inheritance: False
  worker_class: sync
  ssl_version: 2
  suppress_ragged_eofs: True
  syslog_facility: user
  when_ready: <function when_ready at 0x7ff88861a550>
  pre_fork: <function pre_fork at 0x7ff88861a650>
  cert_reqs: 0
  preload_app: False
  keepalive: 2
  sendfile: None
  reuse_port: False
  worker_tmp_dir: None
  group: 500
  umask: 0
  secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
  workers: 3
  graceful_timeout: 30
  do_handshake_on_connect: False
  spew: False
  proc_name: psiturk_experiment_server_e1b3345a5014
  pre_exec: <function pre_exec at 0x7ff88861ab50>
  limit_request_fields: 100
  pythonpath: None
  on_exit: <function on_exit at 0x7ff8870885d0>
  logconfig: None
  logconfig_dict: {}
  config: None
  pidfile: None
  check_config: False
  statsd_prefix:
  on_reload: <function on_reload at 0x7ff88861a450>
  reload_extra_files: []
  accesslog: None
  reload_engine: auto
  proxy_allow_ips: ['127.0.0.1']
  pre_request: <function pre_request at 0x7ff88861ac50>
  post_request: <function post_request at 0x7ff88861acd0>
  user: 500
  forwarded_allow_ips: ['127.0.0.1']
  worker_int: <function worker_int at 0x7ff88861a950>
  paste: None
  raw_paste_global_conf: []
  threads: 1
  max_requests: 0
  limit_request_line: 0
  access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
  certfile: None
  on_starting: <function on_starting at 0x7ff88861a350>
  post_worker_init: <function post_worker_init at 0x7ff88861a850>
  worker_abort: <function worker_abort at 0x7ff88861aa50>
  child_exit: <function child_exit at 0x7ff88861add0>
  worker_exit: <function worker_exit at 0x7ff88861aed0>
  default_proc_name: gunicorn
  loglevel: debug
  syslog: False
  syslog_prefix: None
  chdir: /home/ec2-user/experiments/ari/experiment_words_to_clips_2
  daemon: False
  syslog_addr: udp://localhost:514
  ciphers: TLSv1
  raw_env: []
  initgroups: False
  capture_output: False
  reload: False
  limit_request_field_size: 8190
  nworkers_changed: <function nworkers_changed at 0x7ff88862b050>
  timeout: 30
  keyfile: None
  ca_certs: None
  tmp_upload_dir: None
  backlog: 2048
  logger_class: gunicorn.glogging.Logger
[2021-04-28 16:25:35 +0000] [20841] [INFO] Starting gunicorn 19.9.0
[2021-04-28 16:25:35 +0000] [20841] [DEBUG] Arbiter booted
[2021-04-28 16:25:35 +0000] [20841] [INFO] Listening at: http://172.31.40.42:22362 (20841)
[2021-04-28 16:25:35 +0000] [20841] [INFO] Using worker: sync
[2021-04-28 16:25:35 +0000] [20845] [INFO] Booting worker with pid: 20845
[2021-04-28 16:25:35 +0000] [20846] [INFO] Booting worker with pid: 20846
[2021-04-28 16:25:35 +0000] [20847] [INFO] Booting worker with pid: 20847
[2021-04-28 16:25:35 +0000] [20841] [DEBUG] 3 workers
2021-04-28 16:25:37,585 Secret key: 'this is my secret key which is hard to guess, i should change this'
2021-04-28 16:25:37,609 /home/ec2-user/psiturk_2/local/lib64/python2.7/site-packages/psiturk/psiturk_js/psiturk.js
[2021-04-28 16:25:37 +0000] [20845] [DEBUG] Closing connection.
2021-04-28 16:25:37,655 Secret key: 'this is my secret key which is hard to guess, i should change this'
2021-04-28 16:25:37,671 /home/ec2-user/psiturk_2/local/lib64/python2.7/site-packages/psiturk/psiturk_js/psiturk.js
2021-04-28 16:25:37,673 Secret key: 'this is my secret key which is hard to guess, i should change this'
2021-04-28 16:25:37,685 /home/ec2-user/psiturk_2/local/lib64/python2.7/site-packages/psiturk/psiturk_js/psiturk.js
[2021-04-28 16:25:58 +0000] [20847] [DEBUG] Closing connection.
[2021-04-28 16:26:03 +0000] [20847] [DEBUG] Closing connection.
[2021-04-28 16:26:04 +0000] [20847] [DEBUG] Closing connection.
[2021-04-28 16:26:04 +0000] [20845] [DEBUG] Closing connection.
[2021-04-28 16:26:04 +0000] [20845] [DEBUG] GET /ppid
[2021-04-28 16:26:04 +0000] [20845] [DEBUG] Closing connection.
[2021-04-28 16:26:04 +0000] [20845] [INFO] Parent changed, shutting down: <Worker 20845>
[2021-04-28 16:26:04 +0000] [20845] [INFO] Worker exiting (pid: 20845)
[2021-04-28 16:26:05 +0000] [20847] [DEBUG] Closing connection.
[2021-04-28 16:26:05 +0000] [20847] [INFO] Parent changed, shutting down: <Worker 20847>
[2021-04-28 16:26:05 +0000] [20847] [INFO] Worker exiting (pid: 20847)
[2021-04-28 16:26:06 +0000] [20846] [DEBUG] Closing connection.
[2021-04-28 16:26:06 +0000] [20846] [INFO] Parent changed, shutting down: <Worker 20846>
[2021-04-28 16:26:06 +0000] [20846] [INFO] Worker exiting (pid: 20846)
~~~

Ari Beller

не прочитано,
28 апр. 2021 г., 20:59:0828.04.2021
– PsiTurk
Hi all.

An update. I haven't exactly isolated the bug, but I did find a working solution. Our templates seem to be out of date with the most recent defaults. We've been carrying them over from old projects for a while. Following your advice to look at the ad.html file, I went ahead and replaced ad.html in my project with the one from the demo project. The hits now post and I've been able to collect some initial data.

If anyone would like to track this bug down further I've attached the old ad.html file that we are no longer using.

Thanks for all your suggestions. Very much appreciated!
Ari

old_ad.html

Ari Beller

не прочитано,
29 апр. 2021 г., 12:51:0929.04.2021
– Dave Eargle, PsiTurk
Yes that's right. I set up the demo project with psiturk 2.3.12. Then I copied ad.html from that project over to our project.

Thanks again Dave for your assistance.
Ari

On Wed, Apr 28, 2021 at 8:04 PM Dave Eargle <da...@daveeargle.com> wrote:
Thanks for reporting back! It's frustrating how little visibility we have into what's breaking it, into what is matching their regex, which could change again at any time. 

I assume you mean that you copied an ad.html from the most recent psiturk 2.x, because the 3.x one looks a lot different since it doesn't ever get uploaded to an ad server database. Just want to call that out for anyone looking at this thread.

Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений