Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

openBatchChannel failing

I've got some code I've been using for ages that's been working until my upgrade to 3.8.4 (had been several years since I'd updated). Now, any attempt to work with batch session data is failing. My console looks like this:

jatos.js:580  WebSocket connection to 'wss://starklab.bio.uci.edu/publix/d64e7485-543a-4bd6-b513-384780e2d38a/batch/open' failed: 
openBatchChannel @ jatos.js:580
jatos.js:593  Batch channel error
batchChannel.onerror @ jatos.js:593
start:70 In consent, sid= 99999
start:75 2023-9-6-12-26
start:78 no record yet, adding one at /99999
jatos.js:2870  Can't send batch session patch. No open batch channel
(anonymous) @ jatos.js:2870
start:81 1 Batch Session synchronization failed
jatos.js:580  WebSocket connection to 'wss://starklab.bio.uci.edu/publix/d64e7485-543a-4bd6-b513-384780e2d38a/batch/open' failed: 
openBatchChannel @ jatos.js:580
jatos.js:593  Batch channel error
batchChannel.onerror @ jatos.js:593
jatos.js:580  WebSocket connection to 'wss://starklab.bio.uci.edu/publix/d64e7485-543a-4bd6-b513-384780e2d38a/batch/open' failed: 
openBatchChannel @ jatos.js:580
openBatchChannelWithRetry @ jatos.js:541
(anonymous) @ jatos.js:544
jatos.js:593  Batch channel error
batchChannel.onerror @ jatos.js:593
error (async)
openBatchChannel @ jatos.js:592
openBatchChannelWithRetry @ jatos.js:541
(anonymous) @ jatos.js:544
jatos.js:580  WebSocket connection to 'wss://starklab.bio.uci.edu/publix/d64e7485-543a-4bd6-b513-384780e2d38a/batch/open' failed: 
openBatchChannel @ jatos.js:580
openBatchChannelWithRetry @ jatos.js:541
(anonymous) @ jatos.js:544
jatos.js:593  Batch channel error

The task in question is a super-simple one -- just an HTML consent form (attached).

This seems to happen immediately. The console.log('In consent...') bit comes up after the first errors get logged and at that point, I've not even called anything with batchSession.


Any thoughts as to what may be going on here?


Craig

Comments

  • Hi Craig,

    Do you have access to JATOS' administration page (only JATOS admins have)? It's under http://my-IP-or-domain/jatos/admin. Can you click the Tests button and check that all tests show an 'OK'. Especially the WebSocket one is important for the batch channel.

    Best,

    Kristian

  • All come up green / OK


    Correct URL host: OK

    Connect to database: OK

    Access to study assets root folder: OK

    Access to result uploads folder: OK

    Access to logs folder: OK

    Access to study logs folder: OK

    Access to tmp folder: OK

    Read jatos.js (via study path): OK

    Read jatos.js (via assets path): OK

    Open WebSocket: OK

  • That looks good.

    In your log messages this one means that the browser cannot establish a WebSocket connection to your server during a study run:

    WebSocket connection to 'wss://***' failed
    

    What makes it a bit weird is that the WebSocket test shows an 'OK'.

    But maybe you have an reverse proxy like Nginx or Apache in front of JATOS and the somehow the WebSocket rewrites/locations are faulty. Can you check? The JATOS docs have some example configs for Nginx and Apache.

    And another question: from which version did you update your JATOS?

    Best,

    K

  • I upgraded from 3.6.1 and yes, I'm using nginx and have checked those links a bit in setting things up. I admit, however, that I'm either a total idiot or an absent-minded professor who studies memory, aging, and the decline of memory for details and events with aging. I'm putting this reply in for both public shaming and to help anyone else who might hit the issue. Here's a bit from my /etc/nginx/nginx.conf file:

    # websocket location (JATOS' group and batch channel and the test page)
    # For update in 2023: "/(jatos/testWebSocket|publix/[a-z0-9-]+/(group/join|batch/open))"
    location ~ "/(jatos/testWebSocket|publix/[\d]+/(group/join|batch/open))" {
    

    See that nice difference between what I'd made a note for myself a few months back to handle when I did the upgrade to do (based on your nice docs) and what was still in there after the upgrade? See how it's specifically directed at the web sockets? Sigh... So, yeah, putting that bit in and restarting the servers has the issue go away. PEBKAC

    Craig

  • Hi Craig!

    Nice you found the error and thanks for posting your results!

    Best

    Kristian

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games