Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Docker image hanging #215

Closed
acjcool opened this issue Sep 9, 2016 · 4 comments
Closed

Docker image hanging #215

acjcool opened this issue Sep 9, 2016 · 4 comments

Comments

@acjcool
Copy link

acjcool commented Sep 9, 2016

Hi,

I'm running Ubuntu 16.04.1 LTS and I'm trying to get the dev version running. There is no log files in /var/log/upstart/ or /var/log/docker/ so please let me know where I can find the error.log file or what else you need. I'm running docker version 1.12.1 build 23cf638

Steps:
I downloaded the zip file from GitHub and extracted it in my Home folder. I then ran the following commands (I'm not running sudo as I've added my user to the docker group):

Install command:
docker build --build-arg MODE=dev -t="fbctf_in_dev" .
Run command:
docker run -p 80:80 -p 443:443 -it fbctf_in_dev

Each time it gets stuck on 'Checking for tables which need an upgrade...'

I've attached what I could but open to add anything else but just let me know where to find it. I've previously run the docker image from qazbnm456/dockerized_fbctf successfully on this VM but things have changed now and docker fbctf version has been closed down. So, I have to work off this new one now

bad gateway
Install.txt
Run.txt

@javuto
Copy link
Contributor

javuto commented Sep 9, 2016

We are investigating this issue, because it does affect not just the Docker image.

@matthewpurcell
Copy link

matthewpurcell commented Sep 12, 2016

For the benefit of anyone else experiencing a 502 Bad Gateway error when deploying FBCTF, this appears to be due to a problem with the latest release of HHVM (3.15). I notice that @javuto has opened an issue (#7333) on the HHVM project.

I spent a day or so trying to figure out why FBCTF deployed fine earlier last week, but then had this problem from late last week. For the moment, the problem can be resolved by downgrading HHVM to 3.14.5 (the previous stable release, before 3.15).

For those not totally familiar with how to go about this process, this is what I did (which has worked).

Run these comments to remove HHVM, download the 3.14.5 release (for Ubuntu 14.04), and then install the package:

cd ~ &&
apt-get autoremove hhvm &&
wget http://dl.hhvm.com/ubuntu/pool/main/h/hhvm/hhvm_3.14.5~trusty_amd64.deb &&
sudo dpkg -i hhvm_3.14.5~trusty_amd64.deb

(credit to this comment which provided the basis for these commands)

You might get a warning about missing dependencies for HHVM. If that happens, they can be resolved by running:

sudo apt-get -f install

Once that completes, you should receive a message that HHVM has been installed.

Try visiting FBCTF, and hopefully it works (I didn't even have to restart nginx).

@javuto
Copy link
Contributor

javuto commented Sep 12, 2016

This should do it for now until the package is fixed: #216
Thanks for looking into this and your insights @matthewpurcell

@javuto
Copy link
Contributor

javuto commented Sep 14, 2016

Given that this is mitigated for now (and awaiting a fix from HHVM and its latest package), we should be good to close.

@javuto javuto closed this as completed Sep 14, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants