ubc / iPeer

Peer Evaluation System
http://ipeer.ctlt.ubc.ca
Other
17 stars 18 forks source link

Installing iPeer on Ubuntu Server #639

Open belvin92 opened 4 years ago

belvin92 commented 4 years ago

Hi Folks,

Please assist me on setuping iPeer on Ubuntu Server so i can try it out and implement for my school.

All i have done so far is installing docker as provided by the instructions in the readme file and install apache.

I am fairly new to unix system to make it work. I will truly appreciate this time and effort to send me a detailed instruction for this.

Please let me know if you need more information

xcompass commented 4 years ago

If you have installed docker, you should be able to run iPeer with the following command:

docker-compose up -d
belvin92 commented 4 years ago

Thank xcompass for getting back to me on this. Appreciate that.

I installed docker and it is seems to not work or there is no indication that is working at all. It is not on my localhost to see a GUI at least, so I am at lost here.

xcompass commented 4 years ago

Did you follow the instruction here (https://docs.docker.com/engine/install/ubuntu/) to install docker? I don't believe there is a docker GUI on Linux. You have to use command line. When you run docker run type in docker command, do you see anything? If yes, then try the command I mentioned before inside ipeer directory. You should be able to see ipeer containers running in the background. And you can access ipeer at http://localhost:8080.

belvin92 commented 4 years ago

Hi xcompass, sorry for replying late. I want to get this done and i feel i am very disorganized with this.

I got docker installed and like you mention i ran the command ' docker-compose up -d' and created ipeer done. See attached screenshot 1.png

1

I try going on to localhost:8080 like you mentioned as well and i have plenty of errors. See attached screenshot 2.png

2

Please guide me what to do next, or how to rectify this matter

shoaibsheikh1111 commented 4 years ago

Having some what same issue on Ubuntu 20 lts x64 server edition ???

so, I installed / ran following commands :

  1. "Docker engine" and "docker-compose"
  2. docker pull ubcctlt/ipeer-app
  3. docker pull ubcctlt/ipeer-web
  4. Copied the "docker-compose.yml" in to my local ubuntu (its ubuntu 20 x64 server edition)
  5. Now, when I try to launch it the following error comes in: ipeer_worker | /usr/local/bin/docker-php-entrypoint: 9: exec: cake/console/cake: not found ipeer_worker exited with code 127

error image proof: https://imgur.com/9D2sZw9

and I am not able to access it port 8080, if I try i to access it, i get error: *ipeer_app | 172.18.0.3 - 15/May/2020:16:03:14 +0000 "GET /index.php" 404 ipeer_web | 2020/05/15 16:03:14 [error] 7#7: 2 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.10.7, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "192.168.10.10:8080" ipeer_web | 192.168.10.7 - - [15/May/2020:16:03:14 +0000] "GET / HTTP/1.1" 404 27 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"**

Plus, when I try to access the page @ localhost:8080, the error message appears "File not found"

my host system = chrome + windows 10 (ip = 192.168.10.7) ipper docker = ubuntu20.04 lts x64 = ip = 192.168.10.10

update 01: tried to ran following command docker pull occitech/cakephp

but it failed with following error: Error response from daemon: manifest for occitech/cakephp:latest not found: manifest unknown: manifest unknown

update 02: same error on ubuntu 18 too. just tested.

xcompass commented 4 years ago

@belvin92 could you post the logs when you run the following command:

cd ipeer.com
rm -rf .data
docker-compose up

I assume you are on a Mac.

xcompass commented 4 years ago

@shoaibsheikh1111 could you try to delete/comment the line 23 and line 24 in docker-compose.yaml file?

   volumes:
      - .:/var/www/html

and line 56 and 57

    volumes:
      - ./app/webroot:/var/www/html
shoaibsheikh1111 commented 4 years ago

thanks sir