Install JATOS on server
in JATOS
Dear All! I need help in understanding the installation of JATOS on the server. I actually have already installed JATOS on my server and I started it with "sudo ./loader.sh start". And it started, that is, I got the message "Starting JATOS... started" and "To use JATOS type 127.0.0.9000 in your browser's address bar". But if I try to load it via the web via the address my_domain/jatos then "The requested URL was not found on this server." I don't understand why I don't get the JATOS interface in the browser. Thanks in advance for your help, Marko
Comments
Hi Marko,
First, you don't need 'sudo' to start JATOS. It will just lead to weird file ownership problems.
Then about JATOS not showing anything in the browser: What does the application.log in the logs folder say? Any errors or exceptions?
Best,
Kristian
Hi Kristian,
Hmm, without sudo, just with "./loader.sh start" I get this error:
Starting JATOS... chmod: changing permissions of '/usr/local/jatos/bin/jatos': Operation not permitted
./loader.sh: line 47: /usr/local/jatos/logs/loader.log: Permission denied
Tnx,
Marko
Addition:
I didn't actually install JATOS on some physical server. I installed JATOS on the so-called VDC (Virtual Data Center) provided by the Croatian Academic Network for us. I have 2 GB of space where I have my Debian and I can access it with my username for which I should have admin rights.
Marko
Hi Marko,
Hmm, without sudo, just with "./loader.sh start" I get this error ...
It's because you started JATOS once as root. JATOS created some files that now belongs to the root user. Either you 'chown' them back to your normal user or you just install JATOS anew and run loader.sh again.
I installed JATOS on the so-called VDC (Virtual Data Center) provided by the Croatian Academic Network for us. I have 2 GB of space where I have my Debian and I can access it with my username for which I should have admin rights.
Not sure about this. I guess it's some kind of VM? But if you have Debian it should be okay. And 2GB memory should be enough for a small JATOS installation.
Best,
Kristian
Hi Kristian,
Unfortunately, it still doesn't work. I'm doing something wrong. Here is my process slowly:
I downloaded jatos.zip (with "sudo" because otherwise I can't download it):
I unzipped jatos.zip (also with sudo because I can't unzip it otherwise):
I changed the owner and group recursively throughout the jatos folder:
I start it with ./loader.sh start:
And I can't get the interface in the browser:
Please, what am I doing wrong?
Thank you,
Marko
Hi Marko,
Everything you did looks fine to me. Are you sure about the URL? And are there any errors on jatos/logs/application.log?
Best,
Kristian
Ah wait, the error page comes from Apache. How did you configure Apache to forward all traffic to JATOS?
Hi Kristian,
I'm sure about the URL. Here is web page of ii.uniri.hr:
But, ii.uniri.hr/jatos don't work.
Also, is it normal that after ./loader.sh start I cannot use terminal anymore? Like on the picture:
I can't continue doing anything through the terminal until I stop jatos. Shouldn't jatos give me back control of the cursor?
In jatos/logs/ I have application.log and loader.log. I don't know if there are any error messages there. Can I send you those files privately so you can look at them?
As for Apache, I haven't configured anything special. I installed Apache before Jatos without any special features.
Thank you very much for your help,
Marko
Hi Marko,
I'm a bit hesitant to give you more help here because it seems you are not familiar with a Linux terminal. You have to figure out how to bind a server running on localhost, port 9000, to an IP address or domain. JATOS can not do this for you.
As for the logs, you can search them for terms like "error" or "exception".
And about JATOS giving you back control. No. There are methods to start a program in the background, but to explain them is not the purpose of this forum.
Best,
Kristian
Dear Kristian,
Yes, I'm a bit rusty in Linux - I used to work with Linux but that was 20 years ago :-). I hope to get back in shape through things like this. Anyway, you helped me a lot! You have given me guidance and I am sure I will solve the problem.
Thanks again,
Marko
Hi Kristian,
The problem was that port 9000 was disabled at my institution :-) Everything is fine now.
Thanks for your help, Marko
Hi Marko,
That can explain the behavior. But do you want to run your JATOS on port 9000? Usually port 80 is the port for web applications. And since you have an Apache running anyway you could map port 9000 to 80 there. Just an idea. Glad he found a solution.
Best,
Kristian