certat / do-portal

This project is in maintenance mode and will only receive bug fixes, but no new features. A new version of this software is being developed.
5 stars 5 forks source link

Docker container gives error 503 #129

Closed ghost closed 4 years ago

ghost commented 4 years ago

Branch devel, commit a179eece08c9b2f25e164d4847083f39451e1a73 http://127.0.0.1:8081/ gives:

503 Service Temporarily Unavailable nginx/1.17.6

Complete output of docker-compose up.

MarkHofstetter commented 4 years ago

"have you tried turning it on and off?"

seriously please try composer down and composer up again. Did Docker work on this system before?

ghost commented 4 years ago

seriously please try composer down and composer up again.

Do you mean docker-compose instead of compose?

Output of docker-compose down Output of docker-compose up

Did Docker work on this system before?

How can I test that?

davewood commented 4 years ago

if this doesnt work then something is wrong and I will look into it.

ghost commented 4 years ago
* remove/move the doportal directory `mv do-portal do-portal.bak`

* checkout the repository again `git clone ...`

May I ask what for? Isn't git clean -fd; git restore . enough?

davewood commented 4 years ago

just to make sure we start with a clean slate. if everything works with your approach you can omit the commands.

ghost commented 4 years ago

Now I got this error on the console:

portal-backend          | FileNotFoundError: [Errno 2] No such file or directory: '/home/sebastianw/dev/do-portal/backend/logs/audit.log'

Complete log

Upon a second docker-compose up I again get a 503, like before.

Complete log

davewood commented 4 years ago

there has been a frontend issue that I just resolved. and there seems to be another backend issue that we will take care of. tbc

MarkHofstetter commented 4 years ago

tried hard to reproduce - couldnt. Probably have to resolve this together

davewood commented 4 years ago
cd do-portal
docker-compose down
cd ..
mv do-portal do-portal.bak
git clone https://github.com/certat/do-portal.git
cp do-portal.bak/frontend/secret.json do-portal/frontend/
cd do-portal
docker volume rm do-portal_portal_db_data
docker image rm do-portal_portal-backend:latest
docker image rm do-portal_portal-frontend:latest
git checkout devel
docker-compose up

the master@master.master user that is created in the docker environment is broken somehow, mark is looking into it.

MarkHofstetter commented 4 years ago

whoever wrote install/master_user.yaml (did this ever work?)

in the user part of the yaml file the abbreviation has to be used to specify the org