Я пытаюсь развернуть свое приложение в гибкой среде. Образ Docker строится нормально, но процесс завершается сбоем, когда я думаю, что он пытается запустить службу. Мой тайм-аут сборки установлен на 1200, чего бы это ни стоило.
Как мне дальше исследовать эту ошибку? Я изо всех сил пытаюсь найти, где в журналах / системе GCP я мог бы узнать, какой именно процесс зависает. Это кажется совершенно непрозрачной ошибкой без указания того, что именно происходит не так. Это какая-то ошибка в приложении (которое работает нормально локально)? Если это так, я ожидаю, что он все еще будет развертываться, но просто будет показывать ошибку при доступе к веб-сайту.
Любая помощь очень ценится.
Ошибка:
OperationError: Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error, try adjusting the 'app_start_timeout_sec' setting in the 'readiness_check' section.
ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error, try adjusting the 'app_start_timeout_sec' setting in the 'readiness_check' section.
Это мой Dockerfile:
FROM gcr.io/google-appengine/python
RUN apt-get update && apt-get install software-properties-common -y
RUN add-apt-repository ppa:ubuntugis/ppa
RUN apt-get install -y gdal-bin
# Create a virtualenv for dependencies. This isolates these packages from
# system-level packages.
# Use -p python3 or -p python3.7 to select python version. Default is version 2.
RUN virtualenv /env -p python3.7
# Setting these environment variables are the same as running
# source /env/bin/activate.
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH
# Copy the application's requirements.txt and run pip to install all
# dependencies into the virtualenv
COPY requirements.txt /tmp
WORKDIR /tmp
RUN pip install -r requirements.txt
# Add the application source code.
ADD . /
EXPOSE 8080
# Run a WSGI server to serve the application. gunicorn must be declared as
# a dependency in requirements.txt.
#CMD gunicorn -b :$PORT main:app
А это мой app.yaml:
runtime: custom
env: flex
runtime_config:
# You can also specify 2 for Python 2.7
python_version: 3.7
entrypoint
иCMD
? - person Ferregina Masalo   schedule 21.06.2020