Howdy, Stranger!

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

Supported by

Issues with bringing JATOS online

Hi!

I have a problem with bringing JATOS online. I did everything like it was explained on the tutorial site for AWS:

https://www.jatos.org/JATOS-in-Amazons-Cloud-without-Docker.html

I signed up and chose EC2. Then I chose Ubuntu 16.04 as suggested. I also created a key pair and saved it.

Then I did login via SSH like this:

I downloaded the latest version of JATOS with Java, extracted it and changed the IP address in production.conf with nano(I just changed the IP but left 80 as it was there already):


The address with 172.xx.xx.xx is my private IPs and the one with 18.xx.xx.xx is my IPv4 Public IP address.

Then I changed Security Group in AWS like it was explained in the URL you suggested:

https://aws.amazon.com/premiumsupport/knowledge-center/connect-http-https-ec2/

I skipped the optional step auto-start JATOS. Then I wanted to start JATOS:

And I got this message:


I don't have any proxy.

I have also read this thread (https://forum.cogsci.nl/index.php?p=/discussion/6061/jatos-server-doesnt-open-in-browser#latest), but I couldn't figure out what to do. I have to admit I'm not experienced in coding nor IT.

Any help would be appreciated.

Cheers!

Lukas

Comments

  • Hi Lukas!

    Try with your public IP (this 18.xx.xx.xx) in your browser. The 0.0.0.0 is just a default configuration in JATOS to bind on any local IP that is there. Usually it works with 0.0.0.0 if your JATOS is locally installed but actually even there 127.0.0.1 (localhost IP) is more correct.

    Best,

    Kristian

    Buy Me A Coffee

  • edited May 31

    Hi Kristian!

    I've tried it with the publich IP address but the result is the same. The site can't be reached.

    I've tried it out in Chrome and Firefox but in neither of them the site won't load.

    Cheers!

    Lukas

  • Hi Lukus,

    I see in your screenshot from your production.conf that you did not remove the # in front of the lines of address and port. Please remove it from both lines. The # just means that it is commented out.

    Best,

    Kristian

    Buy Me A Coffee

  • Hi Kristian!

    Thanks for your reply.

    I did this as well. I commented it out. I've got this:

    I copied this into my browser and got this:

    I've tried it also with the public IP but it didn't work as well.

    I don't know what else can I do.

    Cheers!

    Lukas

  • Hi Lukas,

    This looks already better. JATOS starts with the correct IP and port. The unintuitive thing with AWS is that you have to use your internal IP to set up your server but access it with your public IP. Therefore in the browser you have to use your public IP. But you already tried this too and it didn't work.

    Have you tested your JATOS locally? You can use curl to check if your JATOS answers at all. This should give you the login page:

    curl  http://172.x.x.x/jatos/login
    

    Another idea: Did you open your instance 'outbound rules'. By default they are all open. Did you change them?

    Best,

    Kristian

    Buy Me A Coffee

  • Hi Kristian!

    Thanks for the message.

    I have tried what you suggested.

    I didn't changed the "outbound rules". They are still as it was at the beginning:

    The unintuitive thing with AWS is that you have to use your internal IP to set up your server but access it with your public IP. Therefore in the browser you have to use your public IP. But you already tried this too and it didn't work.

    When I write the IPv4 Public IP address (18.220.46.59) then the site can't be reached. If I edit the port (18.220.46.59:80) Chrome redirects me to me private address (172.31.42.104).

    Cheers!

    Lukas

  • So it's 'connection refused'. What user did you use to start JATOS on port 80? You need some kind of root to bind to port 80. A normal user won't do.

    And can you please post the content of logs/loader.log and logs/application.log?

    Kristian

    Buy Me A Coffee

  • Hi Kristian!

    Thanks for your reply.

    What user did you use to start JATOS on port 80? You need some kind of root to bind to port 80. A normal user won't do.

    I switched to root with sudo -s but it didn't connect again.

    I have tried the curl command in another terminal window while Jatos was trying to load in Chrome and got the following message:

    The contest of logs/loader.log and logs/application.log is as follows:

    Cheers!

    Lukas

  • Hi Lukas,

    So your curl output is correct (JATOS login page). That's a start.

    And I can see in your logs that first you could not bind your IP and port:

    2020-05-31 11:37:04,474 [ERROR] - a.i.TcpListener - Bind failed for TCP channel on endpoint [/172.31.42.104:80]

    ... and in the end you could (probably with a root user):

    2020-05-31 15:59:02,993 [INFO] - p.c.s.AkkaHttpServer - Listening for HTTP on /172.31.42.104:80

    So JATOS is running as it should. What does your public IP in the browser give you?

    Best,

    Kristian

    Buy Me A Coffee

  • edited June 1

    Hi Kristian!

    It works.

    I tried it out with my public IP now. I signed in as root and copied the public IP from AWS in my browser and it worked. I hope it will keep that way.

    Thank you very much for your help!

    Have a nice week!

    Cheers!

    Lukas

  • Nice! You too!

    Kristian

    Buy Me A Coffee

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