Prashant, When the airavata server starts it creates two log files, output.log and airavata.log. output.log has stdout/stderr and airavata.log has the main application logs of airavata. You might check both places. I'm guessing that the api server is encountering an error and then exiting immediately.
> On Oct 18, 2018, at 7:10 PM, Modak, Prashant Kumar <[email protected]> wrote: > > Hi Pankaj, > Do you mean airavata-server.bat file. I couldn't find any airavata-server.sh > file in the airavata repository. > > Thanks. > ________________________________________ > From: Pankaj Saha [[email protected]] > Sent: Thursday, October 18, 2018 3:48 PM > To: dev > Subject: Re: facing issue when trying to create docker image of Airavata > > ./airavata-server.sh did you start this script before checking the ps -ef | > grep airvata? > > On Thu, Oct 18, 2018 at 4:36 PM Modak, Prashant Kumar > <[email protected]<mailto:[email protected]>> wrote: > Hi Pankaj, > While I am trying to expose the port 8008, so as to run the airavata server, > but the command "EXPOSE 8008", is exposing the port to the ip 0.0.0.0 > instead of the real ip address(127.0.92.3) of the docker image. > > The port exposing is not the major issue I am facing, the major issue is the > services that are needed to run while running the airavata server. > The services that are needed to run should be shown with the ps -ef | grep > airvata command irrespective of the port they are running on. > > It will be really helpful, if you can provide any insight on running the > related services. > > Thanks, > Pankaj. > ________________________________________ > From: Pankaj Saha [[email protected]<mailto:[email protected]>] > Sent: Thursday, October 18, 2018 3:18 PM > To: dev > Subject: Re: facing issue when trying to create docker image of Airavata > > Docker file looks good to me. > Check if the service is running on the port you have mentioned in the > Dockerfile. Are you mapping container port to host port so that the service > can be reached to that port on the host machine (Like: docker run ....... -p > <host port>:<container port>) > > > > On Wed, Oct 17, 2018 at 1:41 PM Modak, Prashant Kumar > <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> > wrote: > Hi Pankaj, > Thanks for your quick response. > > Here is my Dockerfile content: > I am running airavata in ubuntu image in Oracle virtual box. > > ************Dockerfile start******************* > FROM ubuntu > #RUN apt-get update -y && apt-get install -y maven > #RUN apt-get update -y && apt-get install -y git > # jdk installation is required for maven build > #RUN apt-get update -y && apt-get install -y openjdk-8-jdk > #RUN git clone https://github.com/pkmsoftpro/airavata.git > #RUN cd airavata && mvn clean install -Dmaven.test.skip=true > #CMD > ["/airavata/modules/distribution/src/main/resources/bin/airavata-server-start.sh", > "-d", "api-orch"] > > > > COPY target/apache-airavata-server-0.17-SNAPSHOT-bin.tar.gz > /apache-airavata-server.tar.gz > RUN mkdir airavata > RUN apt-get update && apt-get install -y xz-utils > RUN tar -xf apache-airavata-server.tar.gz -C airavata > > #RUN 'cd airavata/apache-airavata-server-0.17-SNAPSHOT/bin ; pwd' > #RUN pwd > EXPOSE 8008 > CMD > ["/airavata/apache-airavata-server-0.17-SNAPSHOT/bin/airavata-server-start.sh", > "-d", "api-orch"] > > **********************Dockerfile end************************************* > > In my oracle virutal box there is a CentOs image in which I run airavata. > When I run ps -ef | grep airavata.. I can see lot of processes running > (attaching the output, too big to paste here). > > So to run the airavata server successfully, I need to run all the airavata > processes that are running in the CentOS machine. > Please let me know if I am doing anything wrong or I need to set up some more > stuff in my Dockerfile. > > Thanks. > Prashant > > ________________________________________ > From: Pankaj Saha > [[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>] > Sent: Wednesday, October 17, 2018 11:05 AM > To: dev > Subject: Re: facing issue when trying to create docker image of Airavata > > Hello Prashant, > > I will be happy to help you. > Can you please elaborate the issue a little bit? I a not sure if you are > running the Docker image on the local machine or running the Airavata inside > a virtual machine. If you are running the docker image then the command to > start Airavata server should be the command (CMD) for the container. CMD can > be set while building the image or can be used in an entry point (ENTRYPOINT) > script. > > Can you please share your Dockerfile and explain the issue again. > > Thanks > Pankaj > > > On Wed, Oct 17, 2018 at 11:48 AM Modak, Prashant Kumar > <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>> > wrote: > Hi Pankaj, > I am facing an issue. I cloned the airavata > repository(https://github.com/apache/airavata.git) and after building(mvn > clean install) it, > I ran it using command: sh airavata-server-start.sh -d api-orch. > It ran properly and I can see the airvata image also but its not showing any > process running. > > prashant@prashant-VirtualBox:~/Desktop/airavata/modules/distribution/src/main/resources/bin$ > ps -ef | grep airavata > prashant 3536 3379 0 11:38 pts/0 00:00:00 grep --color=auto airavata > > So the same this is happening with my Dockerfile script also. Please provide > any insight upon this. > > Will be very thankful. > > Thanks and Regards, > Prashant > ________________________________________ > From: Pankaj Saha > [[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>] > Sent: Sunday, October 7, 2018 2:01 PM > To: dev > Subject: Re: facing issue when trying to create docker image of Airavata > > Glad it worked. > > Thanks > Pankaj > > On Sun, Oct 7, 2018 at 2:55 PM Modak, Prashant Kumar > <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>>> > wrote: > Hi Pankaj, > It worked thanks. > > Regards, > Prashant > ________________________________________ > From: Pankaj Saha > [[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>>] > Sent: Saturday, October 6, 2018 4:11 PM > To: dev > Subject: Re: facing issue when trying to create docker image of Airavata > > while running the docker build, it can not see any file/directory outside of > the current context. > so if your Dokerfile located in a directory, it will load that directory and > any subdirectories of it as the current context. Placing the Dockerfile in > /home is not a good idea as this will take a long time to load entire /home > and all its content. > > So as a solution, place Dockerfile where the SNAPSHOT is getting generated > after compilation. it should work. > > > On Sat, Oct 6, 2018 at 5:00 PM Modak, Prashant Kumar > <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>><mailto:[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>>>> > wrote: > Hi Dev, > I am facing issue while trying to create docker image of Airavata project. > I have create a Dockerfile, in which i have added a COPY command, > while trying to run COPY > /home/prashant/Desktop/airavata/modules/distribution/target/apache-airavata-server-0.17-SNAPSHOT-bin.tar.gz > apache-airavata-server.tar.gz > it's giving me exception: > COPY failed: stat > /var/lib/docker/tmp/docker-builder209765050/home/prashant/Desktop/airavata/modules/distribution/target/apache-airavata-server-0.17-SNAPSHOT-bin.tar.gz: > no such file or directory > > I check for this issue online and tried multiple ways to resolve it, but the > issue still exists. > > Please advice, if anyone faced the same issue. > > Thanks and Regards. > Prashant
