Digital Ocean deployment issue

Hello everyone,

I’m having trouble deploying my project to DigitalOcean using Wappler. Although I receive a success message in Wappler, the project isn't actually being deployed. My connection to DigitalOcean is functioning correctly, as I can view my server and projects within Wappler.

Interestingly, my coworker, who has the same version of Wappler, can push the same project without any issues. Could anyone provide suggestions on what might be causing this problem and any potential solutions?

FYI I am not using any registry and pushing directly from Wappler.

Thank you!

Hi @Roch98,
Would help to have a little more information. Bit difficult with no error or debug information available. Could you enable the debug option by clicking on the little ladybird icon and then deploy as normal to your Target... Then provide the output which would assist in diagnosing the issue.

image

Hi @Cheese,

Thank you for the response. Here is the screenshot of the error that I got after I turned on the debug mode.

Can you connect to the Droplet using the Resource Manager?

yes I am able to connect and see my projects in the server.

Sorry for the questions @Roch98... Have you got a firewall enabled? I'm shooting in the dark here. Looking at the error it has something to do with SSH but am not quite sure what it is as you can connect to the Droplet via the Resource Manager...

This is what i am able to see in the resource manager.

Within the Project you should have an SSH key defined, as such:

I can't remember how to define this... Can't remember how to import the key... @George could you please offer some advice on that?

I believe this is the issue.

What does your Remote Target configuration look like? Mine appears like this:

Yes I have the same things as well. I have the ssh key in the resource manager and in the target I do have set it to Cloud Provider - SSH and digital ocean along with my docker name and host.

Am sure it is the SSH key for the Project but will have to await the response from George on that side Roch. Hopefully when he has a moment spare he can fill in the gaps and explain the process to import it...

To check if you have access to your cloud server with the ssh keys, just right click on the server and choose open SSH terminal.

If a terminal is opened successfully in the editor then you have access.

Also make sure the SSH keys is added under the SSH Agent and it is running

1 Like

Hi @George , thank you for the response. Yes I am able to access the editor successfully. This is what I get when i try to deploy. No is no errors showing but the project did not actually get deployed.

How do you know it hasn’t been deployed? It seems deployed to me. What changes have you make to check if those are applied? Have you saved them?

We were able to tell that it was not deploying any changes as we were making some minor changes to the website and those changes were not being reflected.

Also on the server we ran the command docker ps to find current acive images on the server. everytime, the deployment was/is done through a teammate's wappler, the up time of. the container and status gets updated.

[root@GoSabbaTOR1 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3fcae7da9f07 sabbashp_db__gosabbator1-web "docker-entrypoint.s…" About an hour ago Up About an hour 0.0.0.0:80->3000/tcp, [::]:80->3000/tcp sabbashp_db__gosabbator1-web-1
e0e433ca66f2 sabbashopapischeduler__gosabbator1_api-web "docker-entrypoint.s…" 4 hours ago Up 4 hours 3000/tcp, 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp sabbashopapischeduler__gosabbator1_api-web-1
d38a409c1e32 moby/buildkit:buildx-stable-1 "buildkitd" 2 weeks ago Up 13 days buildx_buildkit_default
[root@GoSabbaTOR1 ~]#

but when i am trying it doesn't seem to be doing that, Also on the teammates wappler account when we try to deploy. this is the output he recieves

ringing all services up ...
[+] Building sabbashopapischeduler__gosabbator1_api-web-1                                                                              docker:default
=> [web internal] load build definition from Dockerfile                                                                                         0.8s
[+] Building 17.1s (10/12)                                                                                                             docker:default
=> [web internal] load build definition from Dockerfile                                                                                         0.8s
[+] Building 18.6s (13/14)                                                                                                             docker:default
=> [web internal] load build definition from Dockerfile                                                                                         0.8s
=> => transferring dockerfile: 490B                                                                                                             0.2s
[+] Building 18.8s (13/14)                                                                                                             docker:default
=> [web internal] load build definition from Dockerfile                                                                                         0.8s
=> => transferring dockerfile: 490B                                                                                                             0.2s
[+] Building 18.8s (14/14)                                                                                                             docker:default
=> [web internal] load build definition from Dockerfile                                                                                         0.8s
=> => transferring dockerfile: 490B                                                                                                             0.2s
[+] Building 18.8s (14/14) FINISHED                                                                                                    docker:default
=> [web internal] load build definition from Dockerfile                                                                                         0.8s
=> => transferring dockerfile: 490B                                                                                                             0.2s
=> [web internal] load metadata for docker.io/library/node:16-bullseye-slim                                                                     0.7s 
=> [web auth] library/node:pull token for registry-1.docker.io                                                                                  0.0s 
=> [web internal] load .dockerignore                                                                                                            0.9s 
=> => transferring context: 115B                                                                                                                0.9s 
=> CACHED [web 1/7] FROM docker.io/library/node:16-bullseye-slim@sha256:503446c15c6236291222f8192513c2eb56a02a8949cbadf4fe78cce19815c734        0.0s 
=> [web internal] load build context                                                                                                            4.8s 
=> => transferring context: 3.42MB                                                                                                              4.8s
=> [web 2/7] RUN mkdir /opt/node_app                                                                                                            0.1s
=> [web 3/7] WORKDIR /opt/node_app                                                                                                              0.0s
=> [web 4/7] COPY package.json ./                                                                                                               0.0s
=> [web 5/7] RUN npm install --no-package-lock                                                                                                  9.6s
=> [web 6/7] COPY . .                                                                                                                           0.0s
=> [web 7/7] RUN ln -snf /usr/share/zoneinfo/America/Toronto /etc/localtime && echo America/Toronto > /etc/timezone                             0.1s
=> [web] exporting to image                                                                                                                     1.0s
=> => exporting layers                                                                                                                          1.0s
=> => writing image sha256:67befddc95e3f6f245d3920e37e175d4f87cc4477c86a1f770a75f43bccb43c4                                                     0.0s
=> => naming to docker.io/library/sabbashopapischeduler__gosabbator1_api-web                                                                    0.0s
=> [web] resolving provenance for metadata file                                                                                                 0.3s
[+] Running 0/1
⠧ Container sabbashopapischeduler__gosabbator1_api-web-1  Recreate                                                                              6.8s