Unable to push changes for the past 2 days

Issues information

  • OS: Manjaro
  • databases: MongoDB
  • Programming language and version: Python
  • Link to your project on Github/Gitlab: GitHub - nandhagk/porygon

Your issue
I am unable to push any new changes to qovery for the past 2 days
I keep getting this error whenever i try to push any changes

2021-05-15T08:11:16Z	DEPLOYMENT_IN_PROGRESS	APPLICATION	INFO	deployment application porygon

2021-05-15T08:11:16Z	DEPLOYMENT_ERROR	APPLICATION	ERROR	deployment error application porygon : error => EngineError { cause: User("Your application has failed to start. Ensure you can run it without issues with `qovery run` and check its logs from the web interface or the CLI with `qovery log`"), scope: Application("y72nd27x3c1gjpbk", "porygon"), execution_id: "33faf210761d684de82936f7e64c73048d51623b4466b7d19fb9e0e884eee13dcdfac23d18691d92d2fa2c4ced005c6a8b8340bf1275c28ce5aff876e04f8717", message: Some("Application porygon (y72nd27x3c1gjpbk) has failed to start ⤬") }

2021-05-15T08:11:16Z	DEPLOYMENT_IN_PROGRESS	DATABASE	INFO	revert deployment succeeded for mongodb database porygon

2021-05-15T08:11:16Z	DEPLOYMENT_IN_PROGRESS	DATABASE	INFO	revert deployment mongodb database porygon

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	APPLICATION	INFO	Application 'porygon (y72nd27x3c1gjpbk)' deployment is in progress...

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	APPLICATION	INFO	revert deployment application porygon

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	APPLICATION	INFO	revert deployment succeeded for application porygon

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	ROUTER	INFO	revert deployment succeeded for router main-porygon

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	ROUTER	INFO	Router 'main (eztnsgrhqazcqqun)' deployment is in progress...

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	ROUTER	INFO	Router 'main-porygon (vshydcu3b0ea5ztw)' deployment is in progress...

2021-05-15T08:11:17Z	DEPLOYMENT_IN_PROGRESS	ROUTER	INFO	revert deployment router main-porygon

2021-05-15T08:11:18Z	DEPLOYMENT_IN_PROGRESS	ROUTER	INFO	revert deployment router main

2021-05-15T08:11:18Z	DEPLOYMENT_IN_PROGRESS	ROUTER	INFO	revert deployment succeeded for router main

2021-05-15T08:11:18Z	DEPLOYMENT_ERROR	ENVIRONMENT	ERROR	

-------------------------------------------------------------------------------

    MESSAGE FOR QOVERY TEAM:
        * Execution ID     : 33faf210761d684de82936f7e64c73048d51623b4466b7d19fb9e0e884eee13dcdfac23d18691d92d2fa2c4ced005c6a8b8340bf1275c28ce5aff876e04f8717
        * Scope            : Application 'porygon' with id 'y72nd27x3c1gjpbk'
        * Rollback message : 

-------------------------------------------------------------------------------

    ❌ ❌ ❌ MESSAGE FOR THE USER ❌ ❌ ❌

        ✉️ Error message : Application porygon (y72nd27x3c1gjpbk) has failed to start ⤬
        ℹ️ Hint          : Your application has failed to start. Ensure you can run it without issues with `qovery run` and check its logs from the web interface or the CLI with `qovery log`
        💬 Need help    : Look at the hint message first. If you need more assistance, you can reach the support team on Discord (https://discord.qovery.com) or on the Qovery console (https://console.qovery.com) with the integrated chat.

Dockerfile

FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8

# Install Poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
  cd /usr/local/bin && \
  ln -s /opt/poetry/bin/poetry && \
  poetry config virtualenvs.create false

# Copy using poetry.lock* in case it doesn't exist yet
COPY ./pyproject.toml ./poetry.lock* /app/

RUN poetry install --no-root --no-dev

COPY ./app /app/app

Qovery Config

---
application:
  name: "porygon"
  project: "porygon"
  organization: "QoveryCommunity"
  cpu: "1"
  publicly_accessible: true
  port: 80
  ram: "1GB"
  storage:
  - name: "data"
    size: "10GB"
    type: "fast_ssd"
    mount_point: "/mnt/data"
databases:
- type: "mongodb"
  name: "porygon"
  version: "4.4"
routers:
- name: "main"
  routes:
  - application_name: "porygon"
    paths:
    - /

The previous version of my app however, appears to still be running and i can see the logs in the dashboard, even though it says failure

The app also runs fine with qovery run on my local machine

qovery run                                             
Run in progress...
Step 1/5 : FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
 ---> 5e4df9721ec6
Step 2/5 : RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python &&   cd /usr/local/bin &&   ln -s /opt/poetry/bin/poetry &&   poetry config virtualenvs.create false
 ---> Using cache
 ---> cbcb79aeeb0c
Step 3/5 : COPY ./pyproject.toml ./poetry.lock* /app/
 ---> Using cache
 ---> f803af28bb3a
Step 4/5 : RUN poetry install --no-root --no-dev
 ---> Using cache
 ---> e7a01fba5e2a
Step 5/5 : COPY ./app /app/app
 ---> Using cache
 ---> b748eea6f4f9
[Warning] One or more build-args [QOVERY_DATABASE_PORYGON_FQDN QOVERY_DATABASE_PORYGON_HOST QOVERY_DATABASE_PORYGON_PORT WEB_CONCURRENCY QOVERY_DATABASE_PORYGON_CONNECTION_URI QOVERY_DATABASE_PORYGON_CONNECTION_URI_WITHOUT_CREDENTIALS QOVERY_DATABASE_PORYGON_TYPE QOVERY_ROUTER_MAIN_PORYGON_HOST STRAW_POLL_API_KEY QOVERY_DATABASE_PORYGON_USERNAME BOT_TOKEN MONGO_URI NASA_API_KEY QOVERY_APPLICATION_COMMIT_SHA QOVERY_DATABASE_PORYGON_PASSWORD QOVERY_APPLICATION_COMMIT_SHA_SHORT QOVERY_DATABASE_PORYGON_VERSION QOVERY_IS_PRODUCTION QOVERY_ROUTER_MAIN_URL RAWG_API_KEY QOVERY_ROUTER_MAIN_HOST UNSPLASH_API_KEY OPEN_AI_API_KEY QOVERY_BRANCH_NAME QOVERY_APPLICATION_PORYGON_HOSTNAME QOVERY_ROUTER_MAIN_PORYGON_URL OMDB_API_KEY QOVERY_DATABASE_PORYGON_DATABASE QOVERY_DATABASE_PORYGON_NAME SPOTIFY_API_KEY WOLFRAM_ALPHA_API_KEY] were not consumed
Successfully built b748eea6f4f9
(Checking for script in /app/prestart.sh
 Running script /app/prestart.sh
NRunning inside /app/prestart.sh, you could add migrations to this file, e.g.:

#! /usr/bin/env bash

# Let the DB start

sleep 10;
# Run migrations
alembic upgrade head

@[2021-05-15 09:08:45 +0000] [1] [INFO] Starting gunicorn 20.0.4
K[2021-05-15 09:08:45 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
S[2021-05-15 09:08:45 +0000] [1] [INFO] Using worker: uvicorn.workers.UvicornWorker
B[2021-05-15 09:08:45 +0000] [8] [INFO] Booting worker with pid: 8
�{"loglevel": "info", "workers": 1, "bind": "0.0.0.0:80", "graceful_timeout": 120, "timeout": 120, "keepalive": 5, "errorlog": "-", "accesslog": "-", "workers_per_core": 1.0, "use_max_workers": null, "host": "0.0.0.0", "port": "80"}
^2021-05-15 09:08:47.776 | INFO     | discord.client:login:510 - logging in using static token
q2021-05-15 09:08:48.644 | INFO     | discord.gateway:identify:403 - Shard ID None has sent the IDENTIFY payload.
:2021-05-15 09:08:48.995 | INFO     | discord.gateway:received_message:494 - Shard ID None has connected to Gateway: ["gateway-prd-main-9884",{"micros":46524,"calls":["discord-sessions-green-prd-2-77",{"micros":43817,"calls":["start_session",{"micros":25678,"calls":["api-prd-main-6017",{"micros":23098,"calls":["get_user",{"micros":1939},"add_authorized_ip",{"micros":1190},"get_guilds",{"micros":3525},"coros_wait",{"micros":1}]}]},"guilds_connect",{"micros":4,"calls":[]},"presence_connect",{"micros":1,"calls":[]}]}]}] (Session ID: 0f249f99cc5c59045d42c464ad780ba0).
T2021-05-15 09:08:51.212 | INFO     | app.cogs.meta:on_ready:271 - 🚀 Bot is ready

Hello,
just took a look at your environment on Qovery, it’s running. Did I miss something or everything is fine ?

1 Like

Hi,
I actually deleted the project and created a new one, and it works perfectly now.
I still don’t know what was causing the issue though.
I informed this in the Discord server, but I forgot to update it on the forum, I’m sorry.
Thank you for your response.

1 Like