nickjj / build-a-saas-app-with-flask

Learn how to build a production ready web app with Flask and Docker.
https://buildasaasappwithflask.com
MIT License
959 stars 189 forks source link

ERROR when building #40

Closed john012343210 closed 4 years ago

john012343210 commented 4 years ago
Step 12/12 : CMD ["gunicorn", "-c", "python:config.gunicorn", "snakeeyes.app:create_app()"]
 ---> Using cache
 ---> aa738214880c

Successfully built aa738214880c
Successfully tagged snakeeyes_worker:latest
Creating snakeeyes_redis_1 ... done                                                                                                                                     Creating snakeeyes_worker_1 ...
Creating snakeeyes_web_1    ... error                                                                                                                                   
Creating snakeeyes_worker_1 ... error                                                                                                                                   le. (Exception from HRESULT: 0x803E0105)"}

ERROR: for snakeeyes_worker_1  Cannot create container for service worker: status code not OK but 500: {"Message":"Unhandled exception: The notification platform is unavailable. (Exception from HRESULT: 0x803E0105)"}

ERROR: for web  Cannot create container for service web: status code not OK but 500: {"Message":"Unhandled exception: The notification platform is unavailable. (Exception from HRESULT: 0x803E0105)"}

ERROR: for worker  Cannot create container for service worker: status code not OK but 500: {"Message":"Unhandled exception: The notification platform is unavailable. (Exception from HRESULT: 0x803E0105)"}
ERROR: Encountered errors while bringing up the project.
nickjj commented 4 years ago

Hi,

What OS are you running and how did you install Docker?

john012343210 commented 4 years ago

My OS is window10, it is just docker desktop from https://docs.docker.com/docker-for-windows/install/

running docker version give this

Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:23:10 2020
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:29:16 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

This docker is fine when running a lot of other images, I believe it is the configuration problem for this project. The commit I check out is 8804f0d
All I have done is just rename the ".env.example" to ".env" And then run "docker-compose up --build"

nickjj commented 4 years ago

Are you using Docker Desktop 2.2.x or 2.1.x?

I know I had a lot of trouble with 2.2.x, so I highly recommend using 2.1.x if you're not already doing it. You can find that out by going to the About menu in Docker Desktop.

Also Google says this might be a local issue, so it wouldn't hurt to restart Docker Desktop and maybe even reboot Windows too.

nickjj commented 4 years ago

I'm going to close this since I also use Docker for Windows here and things build. Thousands of other folks are also using Windows in this course and I haven't gotten any reports of this error.

I would make sure you have Linux containers enabled. You might have switched to Windows containers in your Docker Desktop settings. Check it in the right click menu on the whale by your clock.