Open rajacsp opened 4 years ago
Successfully built MarkupSafe Installing collected packages: Werkzeug, MarkupSafe, Jinja2, itsdangerous, click, flask, six, aniso8601, pytz, flask-restful, more-itertools, py, zipp, importlib-metadata, pluggy, atomicwrites, attrs, wcwidth, pyparsing, packaging, pytest, gunicorn Successfully installed Jinja2-2.10.3 MarkupSafe-1.1.1 Werkzeug-0.16.0 aniso8601-8.0.0 atomicwrites-1.3.0 attrs-19.3.0 click-7.0 flask-1.1.1 flask-restful-0.3.7 gunicorn-20.0.0 importlib-metadata-0.23 itsdangerous-1.1.0 more-itertools-7.2.0 packaging-19.2 pluggy-0.13.0 py-1.8.0 pyparsing-2.4.5 pytest-5.2.2 pytz-2019.3 six-1.13.0 wcwidth-0.1.7 zipp-0.6.0 Removing intermediate container b60c98056c06 ---> 7d72a0c72f83 Step 5/5 : CMD ["python", "app.py"] ---> Running in c870f03fa5a7 Removing intermediate container c870f03fa5a7 ---> 49bc71e4bcdd Successfully built 49bc71e4bcdd Successfully tagged flask-docker-sample_api:latest Recreating flask-docker-sample_api_1 ... done Attaching to flask-docker-sample_api_1 api_1 | test api_1 | Traceback (most recent call last): api_1 | File "app.py", line 38, in <module> api_1 | handler = RotatingFileHandler(config.get('GENERIC','LOGFILE'), maxBytes=1e+7, backupCount=20) api_1 | File "/usr/local/lib/python3.6/logging/handlers.py", line 150, in __init__ api_1 | BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) api_1 | File "/usr/local/lib/python3.6/logging/handlers.py", line 57, in __init__ api_1 | logging.FileHandler.__init__(self, filename, mode, encoding, delay) api_1 | File "/usr/local/lib/python3.6/logging/__init__.py", line 1032, in __init__ api_1 | StreamHandler.__init__(self, self._open()) api_1 | File "/usr/local/lib/python3.6/logging/__init__.py", line 1061, in _open api_1 | return open(self.baseFilename, self.mode, encoding=self.encoding) api_1 | FileNotFoundError: [Errno 2] No such file or directory: '/code/log/brandapi.log' flask-docker-sample_api_1 exited with code 1