Deployment failure due to something related to digitalocean

Issues information

  • OS:
  • databases: NA
  • Programming language and version: Node.js
  • Link to your project on Github/Gitlab: I cannot show source code.

Your issue
I get same error whenever I try to deploy.

Describe here your issue
I get this error whenever I deploy my project.

Warning Failed: Failed to pull image "registry.digitalocean.com/default-docr-registry-qovery-do-test/
Error response from daemon: Get https://registry.digitalocean.com/v2/default-docr-registry-qovery-do-test/xxxx
unauthorized: authentication required

Dockerfile content (if any) NA

Hi @abhijoshi2k, welcome to the Qovery community :slight_smile: @Pierre_Mavro can you take a look at this one?

Can you please try again? Was a DigitalOcean temporary issue, should be ok now

This is the error I get now.

Condition not met to start the container: Ready -> ContainersNotReady: containers with unready status: [app-w-bot]
Condition not met to start the container: ContainersReady -> ContainersNotReady: containers with unready status: [app-w-bot]
2021-06-10T09:42:48Z Warning Unhealthy: Readiness probe failed: dial tcp xx.xxx.xxx.xxx:xx: connect: connection refused
2021-06-10T09:45:55Z Warning Unhealthy: Liveness probe failed: dial tcp xx.xxx.xxx.xxx:xx: connect: connection refused

The app starts and runs for about a second and then the above error appears (I can say that because I log some lines whenever app starts and those statements can be seen before this error appears).

FYI,
I have deployed this app from my GitHub repository (not using command line). I’m new to Qovery and have very less knowledge about dockerfile (in case I have to add)

did you use a docker file to deploy the app??

No I did not use dockerfile. I just followed the process shown here:

Although I’m just using Nodejs (not any database as shown on that page)

try adding a docker file to the root folder and then deploy :slightly_smiling_face:

below is the Dockerfile contents

FROM node:14

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app

COPY package*.json ./

COPY . .

EXPOSE 3000

RUN npm install

CMD [ “node”, “index.js” ] // replace index.js with your main file name

From the Dockerfile I can see on your configuration, you’ve exposed port 3000. Based on that Qovery check this port is open, which is not the case.

This is why it fails. Can you please ensure in your configuration, the port is open on all interfaces 0.0.0.0 and not localhost, and also the open port is 3000.

Thanks

This is my qovery.yml file:

---

application:

  name: "w-bot"

  project: "Welcome-Bot"

  organization: "QoveryCommunity"

  port: 3000

routers:

- name: "main-w-bot"

  routes:

  - application_name: "w-bot"

    paths:

    - "/*"

And this is my Dockerfile:

FROM node:14

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app

COPY package*.json ./

COPY . .

EXPOSE 3000

RUN npm install

CMD [ “node”, app.js” ]

And error I’m getting is :

Error: Cannot find module '/usr/src/app/server.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

I’m fairly new to Qovery and Docker. So I apologise if my doubts are silly.

check you docker file last line

replace CMD [“node”, app.js"] to CMD [“node”, “app.js” ]

Now I get this error:
/bin/sh: 1: [“node”,: not found

come to discord server