Errro in deployment while working fine yesterday

Issues information

  • OS:
  • databases:
  • Programming language and version:
  • Link to your project on Github/Gitlab:

Your issue
I am getting this error while deploying
Environment deployment logs:

2021-07-18T05:11:06 ENVIRONMENT INFO
2021-07-18T05:11:06 APPLICATION INFO
2021-07-18T05:11:06 DATABASE INFO
2021-07-18T05:11:06 ROUTER INFO
2021-07-18T05:11:07 QUEUED INFO Task is going to be executed !
2021-07-18T05:11:08 ENVIRONMENT INFO
2021-07-18T05:11:09 APPLICATION INFO Sending build context to Docker daemon 2.918MB
2021-07-18T05:11:09 APPLICATION INFO Step 2/8 : RUN mkdir -p /src/user/app
2021-07-18T05:11:09 APPLICATION INFO —> 813e282b6d18
2021-07-18T05:11:09 APPLICATION INFO Step 1/8 : FROM node:14
2021-07-18T05:11:09 APPLICATION INFO —> Using cache
2021-07-18T05:11:09 APPLICATION INFO —> 2e7b161ba725
2021-07-18T05:11:09 APPLICATION INFO —> 882c1222e5dd
2021-07-18T05:11:09 APPLICATION INFO —> Using cache
2021-07-18T05:11:09 APPLICATION INFO —> Using cache
2021-07-18T05:11:09 APPLICATION INFO Step 5/8 : COPY . .
2021-07-18T05:11:09 APPLICATION INFO Step 3/8 : WORKDIR /src/user/app
2021-07-18T05:11:09 APPLICATION INFO Step 4/8 : COPY package.json ./
2021-07-18T05:11:09 APPLICATION INFO —> 5d03b78c6679
2021-07-18T05:11:10 APPLICATION INFO —> c5e7c01cb3f2
2021-07-18T05:11:10 APPLICATION INFO Step 6/8 : RUN npm install
2021-07-18T05:11:11 APPLICATION INFO —> Running in f6ebaf01c5a8
2021-07-18T05:11:33 APPLICATION INFO
2021-07-18T05:11:33 APPLICATION INFO
2021-07-18T05:11:33 APPLICATION INFO > node-pre-gyp install --fallback-to-build
2021-07-18T05:11:33 APPLICATION INFO > bcrypt@5.0.1 install /src/user/app/node_modules/bcrypt
2021-07-18T05:11:34 APPLICATION INFO Love nodemon? You can now support the project via the open collective:
2021-07-18T05:11:34 APPLICATION INFO
2021-07-18T05:11:34 APPLICATION INFO > nodemon@2.0.7 postinstall /src/user/app/node_modules/nodemon
2021-07-18T05:11:34 APPLICATION INFO
2021-07-18T05:11:34 APPLICATION INFO > Contribute to nodemon - Open Collective
2021-07-18T05:11:34 APPLICATION INFO > node bin/postinstall || exit 0
2021-07-18T05:11:34 APPLICATION INFO [bcrypt] Success: “/src/user/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node” is installed via remote
2021-07-18T05:11:34 APPLICATION INFO
2021-07-18T05:11:37 APPLICATION INFO npm WARN shopper-api@1.0.0 No repository field.
2021-07-18T05:11:37 APPLICATION INFO npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
2021-07-18T05:11:37 APPLICATION INFO npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
2021-07-18T05:11:37 APPLICATION INFO npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
2021-07-18T05:11:37 APPLICATION INFO npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
2021-07-18T05:11:37 APPLICATION INFO
2021-07-18T05:11:37 APPLICATION INFO added 854 packages from 621 contributors and audited 856 packages in 24.639s
2021-07-18T05:11:38 APPLICATION INFO 46 packages are looking for funding
2021-07-18T05:11:38 APPLICATION INFO
2021-07-18T05:11:38 APPLICATION INFO
2021-07-18T05:11:38 APPLICATION INFO run npm fund for details
2021-07-18T05:11:38 APPLICATION INFO found 0 vulnerabilities
2021-07-18T05:11:38 APPLICATION INFO
2021-07-18T05:11:46 APPLICATION INFO —> b1594762d46a
2021-07-18T05:11:46 APPLICATION INFO Removing intermediate container f6ebaf01c5a8
2021-07-18T05:11:46 APPLICATION INFO Step 7/8 : EXPOSE 3332
2021-07-18T05:11:47 APPLICATION INFO —> c6f148ad212d
2021-07-18T05:11:47 APPLICATION INFO Step 8/8 : CMD [“node”,“server.js”]
2021-07-18T05:11:47 APPLICATION INFO Removing intermediate container b60fce7cc826
2021-07-18T05:11:47 APPLICATION INFO —> Running in b60fce7cc826
2021-07-18T05:11:48 APPLICATION INFO Removing intermediate container 383d3363f37e
2021-07-18T05:11:48 APPLICATION INFO —> Running in 383d3363f37e
2021-07-18T05:11:48 APPLICATION INFO Successfully built 0ed0f3816735
2021-07-18T05:11:48 APPLICATION INFO —> 0ed0f3816735
2021-07-18T05:11:48 APPLICATION INFO Successfully tagged shopper-api-git-hub:14924153705535855226-bb66d7cc6a42146ec10aedd3e38e0a784939ca8c
2021-07-18T05:11:48 APPLICATION INFO [Warning] One or more build-args [QOVERY_BRANCH_NAME QOVERY_DATABASE_SHOPPER_CONNECTION_URI_WITHOUT_CREDENTIALS QOVERY_DATABASE_SHOPPER_DATABASE QOVERY_DATABASE_SHOPPER_FQDN QOVERY_DATABASE_SHOPPER_HOST QOVERY_DATABASE_SHOPPER_USERNAME QOVERY_DATABASE_SHOPPER_PASSWORD QOVERY_ROUTER_MAIN_SHOPPER_API_GIT_HUB_HOST QOVERY_APPLICATION_SHOPPER_API_GIT_HUB_HOSTNAME QOVERY_DATABASE_SHOPPER_CONNECTION_URI QOVERY_DATABASE_SHOPPER_NAME QOVERY_DATABASE_SHOPPER_PORT QOVERY_DATABASE_SHOPPER_VERSION QOVERY_IS_PRODUCTION QOVERY_APPLICATION_COMMIT_SHA QOVERY_APPLICATION_COMMIT_SHA_SHORT QOVERY_DATABASE_SHOPPER_TYPE QOVERY_ROUTER_MAIN_SHOPPER_API_GIT_HUB_URL] were not consumed
2021-07-18T05:11:49 APPLICATION INFO container qovery-local-docker (wgxfivfu9f8lomxy) is built :heavy_check_mark:
2021-07-18T05:11:51 APPLICATION INFO image Image { application_id: “e07txhbo6cq4yq2e”, name: “shopper-api-git-hub”, tag: “14924153705535855226-bb66d7cc6a42146ec10aedd3e38e0a784939ca8c”, commit_id: “bb66d7cc6a42146ec10aedd3e38e0a784939ca8c”, registry_name: None, registry_secret: None, registry_url: None } does not exist on DOCR default-docr-registry-qovery-do-test repository, starting image upload
2021-07-18T05:12:13 DATABASE INFO revert deployment mongodb database shopper
2021-07-18T05:12:13 DATABASE INFO revert deployment succeeded for mongodb database shopper
2021-07-18T05:12:13 APPLICATION INFO Application ‘shopper-api-git-hub (e07txhbo6cq4yq2e)’ deployment is in progress…
2021-07-18T05:12:13 ROUTER INFO revert deployment router main-shopper-api-git-hub
2021-07-18T05:12:13 ROUTER ERROR revert deployment error router main-shopper-api-git-hub : error => EngineError { cause: Internal, scope: Kubernetes(“adsayfusp6wdjjhw”, “qovery-community-nyc”), execution_id: “7053d0baf947f544df7eb8c7d247a825124feb2dc89ce92fd41b2a85abbc5f608a5cb53108735468a7028152a6c8bcb21aa83211ca59c187607f2bec53a9c5f5”, message: Some(“error while executing an internal command (exit code: 1)”) }
2021-07-18T05:12:13 APPLICATION INFO revert deployment succeeded for application shopper-api-git-hub
2021-07-18T05:12:13 APPLICATION INFO revert deployment application shopper-api-git-hub
2021-07-18T05:12:13 ROUTER INFO Router ‘main-shopper-api-git-hub (k2vermp6up0tkljs)’ deployment is in progress…
2021-07-18T05:12:14 ROUTER DEBUG Unable to retrieve logs for pod: app=nginx-ingress
2021-07-18T05:12:14 APPLICATION INFO
2021-07-18T05:12:14 DATABASE INFO
2021-07-18T05:12:14 ENVIRONMENT ERROR


~~ THIS IS AN INTERNAL ERROR, THE SUPPORT TEAM HAS BEEN ALERTED ~~

MESSAGE FOR QOVERY TEAM:
    * Execution ID     : 7053d0baf947f544df7eb8c7d247a825124feb2dc89ce92fd41b2a85abbc5f608a5cb53108735468a7028152a6c8bcb21aa83211ca59c187607f2bec53a9c5f5        
    * Scope            : Kubernetes 'qovery-community-nyc' with id 'adsayfusp6wdjjhw'
    * Rollback message : Rollback error: error while executing an internal command (exit code: 1) (scope: Kubernetes("adsayfusp6wdjjhw", "qovery-community-nyc") 

| cause: Internal)


❌ ❌ ❌ MESSAGE FOR THE USER ❌ ❌ ❌

    ✉️ Error message : error while executing an internal command (exit code: 1)
    💬 Need help    : If you need 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.

Describe here your issue

Dockerfile content (if any)
FROM node:14

RUN mkdir -p /src/user/app

WORKDIR /src/user/app

COPY package.json ./

COPY . .

RUN npm install

EXPOSE 3332

CMD [“node”,“server.js”]

specify here your dockerfile content
Content of .qovery.yml file

application:
name: “shopper-api-git-hub”
project: “shopper”
organization: “QoveryCommunity”

databases:

  • type: “MONGODB”
    name: “shopper”
    version: “4.4”

routers:

  • name: “main-shopper-api-git-hub”
    routes:
    • application_name: “shopper-api-git-hub”
      paths:
      • “/*”

Hello, does the issue still persist?

That issue has been resolved now.

Now I am facing another issue, My images that were stored removed while I deploy a new build.

Thanks,
Khaleek ahmad

Did you add storage to your application?

If you add storage, it should be persistent and not removed with new builds.

1 Like

I am using mongo db for storing data and relative path of image, no other storage I am using.

The data should not be erased then, let us take a look. Could you send me a URL to your project in DM?