Howdy, Stranger!

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

Supported by

Cannot open jatos via ECS server

Hi all,

I have followed the tutorial (http://www.jatos.org/JATOS-in-Amazons-Cloud-without-Docker.html) to install JATOS in Alibaba ECS (I believe in most of the senses an Alibaba ECS instance is very similar to an AWS EC2 instance). I have installed JATOS in the server, configued the private IP and port. But after I started JATOS, I could not open the login page via my public IP (see the screen shot below). I was wondering where it might go wrong. I assume one possible reason is that I also installed Apache2 in my server. I might have incorrectly configured Apache2 (although I have followed the tutorial http://www.jatos.org/JATOS-with-Apache.html). Would you please also help me with this issue? Thank you so much!


Best regards,

Chi

Comments

  • Hi Chi,

    If you use Apache in front of JATOS you don't have to specify IP and port in JATOS' config. You can leave the default values which are 127.0.0.1 and 9000. Setting up your public IP and port happens in Apache's config. Then Apache will forward all requests to JATOS. There are two lines in your Apache config that do this:

      ProxyPass / http://localhost:9000/
      ProxyPassReverse / http://localhost:9000/
    

    Another thought: you seem to have a public IP and a 'private' IP from Alibaba. I'm not sure which one goes in your Apache conf. Maybe try with both.

    Best,

    Kristian

    Buy Me A Coffee

  • Hi Kristian,

    Thanks for the reply!

    The only place I could find ProxyPass and ProxyPassReverse is in the example.com.conf that I created and added to Apache following the tutorial. I tried to change the IP (both public and private) and the port but I still could not open the login page. And when I started loader.sh, the system still told me to use 127.0.0.1:9000. Maybe there are some mistakes that I am not aware of. I attached the screenshot of example.com.conf (in this version I used the pulic IP 39.102.52.116) and the information after I started loader.sh.

    Thank you!


  • It's correct that JATOS tells you after you started it with loader.sh that it's IP and port are 127.0.0.1:9000. JATOS is not aware of Apache and the proxying of the network traffic.

    Looking at your Apache configuration the problem is in ProxyPass and ProxyPass. Both have to stay unchanged and point to localhost:9000

      ProxyPass / http://localhost:9000/
      ProxyPassReverse / http://localhost:9000/
    

    Best,

    Kristian

    Buy Me A Coffee

  • Hi Kristian,

    Thank you so much for the reply! I changed the ProxyPass to localhost:9000 and tried to open jatos with both the private IP and pulic IP, but I still could not open the page. It is very strange.

    Best regards,

    Chi

  • Hi Chi,

    Indeed this is strange. Can you do me the favor and run wget in your server's terminal on JATOS

    wget http://localhost:9000/jatos
    

    and on Apache

    wget http://39.102.52.116:80/jatos
    

    ?

    This way we can find out which part does not work. In the response should be HTTP request sent, awaiting response... 200 OK if everything worked fine or something with a 404 Not Found if not.

    I suspect that there is still something wrong in your Apache config.

    Best,

    Kristian

    Buy Me A Coffee

  • Hi Kristian,

    Thank you for your patience! I tried to run the wget codes. Here are what we got:

    wget on JATOS

    wget on Apache

    Indeed both were failed. So something might go wrong with my Apache settings. Is there some way that I can diagnose where the problem is? Thanks!

    Best,

    Chi

  • Actually both failed and if JATOS doesn't work properly Apache cannot proxy the requests to JATOS. So first you have to fix JATOS.

    • Could you please post/attach your JATOS log files here? They are in your JATOS folder in a folder named logs. There are two: application.log and loader.log.
    • Can you please post/attach your JATOS configuration in conf/production.conf here.

    Buy Me A Coffee

  • edited July 31

    Hi Kristian,

    Please find the attached files application.log, loader.log, and production.conf (I cannt upload a .conf file so I changed the format to .txt)

    Thanks again for the help!

    Chi


  • Hi Krisitan,

    I still have not solved the problem with Apache. But the server worked when I disabled Apache. So I assume the problem lied on my configuration of the Apache. Thank you again for the help!

    Best regards,

    Chi

  • krikri
    edited August 3

    Hi Chi,

    Your production.conf looks okay.

    In the loader.log I can see this error:

    Oops, cannot start the server.
    akka.stream.impl.io.ConnectionSourceStage$$anon$2$$anon$1: Bind failed because of java.net.BindException: Address already in use
    Caused by: java.net.BindException: Address already in use
    

    This error means, that some other program is using the same address (IP + port) as you are trying to start JATOS on. Is it possible that you did start JATOS twice? Can you try to stop all JATOS instances and restart only the one with address 127.0.0.1:9000?

    Best,

    Kristian

    Buy Me A Coffee

  • edited August 3

    Hi Kristian,

    Thank you for the response! I checked my Apache. It turned out that it might not be properly installed. I could not start the Apache service properly. When I tried to start the service it gave me:

     Job for apache2.service failed because the control process exited with error code.
    

    And by running code

    systemctl status apache2.service
    
    

    it gave me log like this:

    ● apache2.service - The Apache HTTP Server
       Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
      Drop-In: /lib/systemd/system/apache2.service.d
               └─apache2-systemd.conf
       Active: failed (Result: exit-code) since Tue 2020-08-04 04:19:25 CST; 1min 43
      Process: 9574 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE
      Process: 19884 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAIL
     Main PID: 4076 (code=exited, status=0/SUCCESS)
    
    
    Aug 04 04:19:25 chizhang systemd[1]: Starting The Apache HTTP Server...
    Aug 04 04:19:25 chizhang apachectl[19884]: AH00526: Syntax error on line 5 of /e
    Aug 04 04:19:25 chizhang apachectl[19884]: Redirect to non-URL
    Aug 04 04:19:25 chizhang apachectl[19884]: Action 'start' failed.
    Aug 04 04:19:25 chizhang apachectl[19884]: The Apache error log may have more in
    Aug 04 04:19:25 chizhang systemd[1]: apache2.service: Control process exited, co
    Aug 04 04:19:25 chizhang systemd[1]: apache2.service: Failed with result 'exit-c
    Aug 04 04:19:25 chizhang systemd[1]: Failed to start The Apache HTTP Server.
    
    
    

    I don't know where the service went wrong. I could not start the instance with address 127.0.0.1:9000 via JATOS proxy. For now I took the simple solution by just stopping all the service of Apache. After all the Apache service stopped. I could use production.conf to start JATOS via my private IP and it worked.

    Best regards,

    Chi

  • Hi Chi,

    The Apache setup is out of scope for this forum, but I can give you some short hints anyway:

    Best,

    Kristian

    Buy Me A Coffee

  • Dear Krisitan,

    Thanks a lot for the suggestion! I will try to use Nginx instrad of Apache if necessary.

    Best regards,

    Chi

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