Docker error message? Triggered on deployment

SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context wil
l have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
Error response from daemon: network wappler-compose_proxy not found
Error Launching Services!

started new project:
No containers running


but getting this
image

Well it seems like local services are running. How you installed Traefik maybe somewhere in a Resource Manager as local service?

update George local all working ok with db, but still cant connect to remote cloud db


Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 0/0
 - Container web_app__production-web-1  Recreate                                                                                                 0.1s 
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 0.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 1.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 2.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 3.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 4.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 5.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 6.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 7.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 8.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.2s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.3s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.4s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.5s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.6s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.7s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.8s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                 9.9s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                10.0s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                10.1s
[+] Running 0/1
 - Container web_app__production-web-1  Recreate                                                                                                10.2s
[+] Running 0/1
Sending build context to Docker daemon  13.98MB
Step 1/17 : FROM node:16-bullseye-slim
 ---> f80a45ab5572
Step 2/17 : RUN apt-get update; apt-get -y install fontconfig
 ---> Using cache
 ---> 494ac9518d59
Step 3/17 : COPY ./fonts /usr/shared/fonts
 ---> Using cache
 ---> 6a969e06b96d
Step 4/17 : COPY ./fonts /usr/share/fonts/truetype
 ---> Using cache
 ---> 6cb4cb11b8ec
Step 5/17 : RUN fc-cache -f -v
 ---> Using cache
 ---> 098b6bccad95
Step 6/17 : ARG NODE_ENV=production
 ---> Using cache
 ---> f8abf6f548c8
Step 7/17 : ENV NODE_ENV $NODE_ENV
 ---> Using cache
 ---> 872230676b4c
Step 8/17 : ARG PORT=3000
 ---> Using cache
 ---> 88b227c50231
Step 9/17 : ENV PORT $PORT
 ---> Using cache
 ---> 1f010b4fcf3c
Step 10/17 : EXPOSE $PORT
 ---> Using cache
 ---> 992bb9f80239
Step 11/17 : RUN mkdir /opt/node_app
 ---> Using cache
 ---> f07c2d8c112c
Step 12/17 : ENV PATH /opt/node_app/node_modules/.bin:$PATH
 ---> Using cache
 ---> 607c453ed9c7
Step 13/17 : WORKDIR /opt/node_app
 ---> Using cache
 ---> e3ef2a474cac
Step 14/17 : COPY package.json ./
 ---> Using cache
 ---> 1484fa486d0f
Step 15/17 : RUN npm install --no-package-lock
 ---> Using cache
 ---> 7240354ad28a
Step 16/17 : COPY . .
 ---> Using cache
 ---> 2f12ab4ec74c
Step 17/17 : CMD [ "node", "./index.js" ]
 ---> Using cache
 ---> bc15ce3af6d4
Successfully built bc15ce3af6d4
Successfully tagged web_app__production_web:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context wil
l have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.

[+] Running 1/1
 - Container web_app__production-web-1  Started                                                                                                 11.5s
All Services Launched!production-web-1  Recreate                        

The deploy seem all fine.

Check the web server live log from the bottom bar terminal dropdown for errors when the remote target is selected.

Also make sure your server connect database connection has the right credentials for this target.

This?


Sending build context to Docker daemon  13.98MB
Step 1/17 : FROM node:16-bullseye-slim
 ---> f80a45ab5572
Step 2/17 : RUN apt-get update; apt-get -y install fontconfig
 ---> Using cache
 ---> 494ac9518d59
Step 3/17 : COPY ./fonts /usr/shared/fonts
 ---> Using cache
 ---> 6a969e06b96d
Step 4/17 : COPY ./fonts /usr/share/fonts/truetype
 ---> Using cache
 ---> 6cb4cb11b8ec
Step 5/17 : RUN fc-cache -f -v
 ---> Using cache
 ---> 098b6bccad95
Step 6/17 : ARG NODE_ENV=production
 ---> Using cache
 ---> f8abf6f548c8
Step 7/17 : ENV NODE_ENV $NODE_ENV
 ---> Using cache
 ---> 872230676b4c
Step 8/17 : ARG PORT=3000
 ---> Using cache
 ---> 88b227c50231
Step 9/17 : ENV PORT $PORT
 ---> Using cache
 ---> 1f010b4fcf3c
Step 10/17 : EXPOSE $PORT
 ---> Using cache
 ---> 992bb9f80239
Step 11/17 : RUN mkdir /opt/node_app
 ---> Using cache
 ---> f07c2d8c112c
Step 12/17 : ENV PATH /opt/node_app/node_modules/.bin:$PATH
 ---> Using cache
 ---> 607c453ed9c7
Step 13/17 : WORKDIR /opt/node_app
 ---> Using cache
 ---> e3ef2a474cac
Step 14/17 : COPY package.json ./
 ---> Using cache
 ---> 1484fa486d0f
Step 15/17 : RUN npm install --no-package-lock
 ---> Using cache
 ---> 7240354ad28a
Step 16/17 : COPY . .
 ---> Using cache
 ---> 2f12ab4ec74c
Step 17/17 : CMD [ "node", "./index.js" ]
 ---> Using cache
 ---> bc15ce3af6d4
Successfully built bc15ce3af6d4
Successfully tagged web_app__production_web:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context wil
l have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
 ---> 872230676b4c
Step 8/17 : ARG PORT=3000
 ---> Using cache
 ---> 88b227c50231
Step 9/17 : ENV PORT $PORT
 ---> Using cache
 ---> 1f010b4fcf3c
Step 10/17 : EXPOSE $PORT
 ---> Using cache
 ---> 992bb9f80239
Step 11/17 : RUN mkdir /opt/node_app
 ---> Using cache
 ---> f07c2d8c112c
Step 12/17 : ENV PATH /opt/node_app/node_modules/.bin:$PATH
 ---> Using cache
 ---> 607c453ed9c7
Step 13/17 : WORKDIR /opt/node_app
 ---> Using cache
 ---> e3ef2a474cac
Step 14/17 : COPY package.json ./
 ---> Using cache
 ---> 1484fa486d0f
Step 15/17 : RUN npm install --no-package-lock
 ---> Using cache
 ---> 7240354ad28a
Step 16/17 : COPY . .
 ---> Using cache
 ---> 2f12ab4ec74c
Step 17/17 : CMD [ "node", "./index.js" ]
 ---> Using cache
 ---> bc15ce3af6d4
Successfully built bc15ce3af6d4
Successfully tagged web_app__production_web:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset perm
issions for sensitive files and directories.

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 1/1
 - Container web_app__production-web-1  Started                                                                                                                                                                                  11.5s 
All Services Launched!

This is the normal deploy log and it looks all fine.

What troubles do you have?

I mean to check the web server live log which is under the “terminal” dropdown icon in the bottom toolbar

[+] Running 0/1
time="2024-06-03T18:59:40+01:00" level=error msg="Can't add file \\\\?\\C:\\Users\\jim\\OneDrive\\Documents\\imported_kasa_app\\web_app\\public\\assets\\images\\kisspng-paper-stock-photography-illustration-book-chapter-5aa7dfb76b45
d2.0193592515209512234394.png to tar: io: read/write on closed pipe"
time="2024-06-03T18:59:40+01:00" level=error msg="Can't close tar writer: io: read/write on closed pipe"
1 error occurred:
        * error during connect: Post "http://docker.example.com/v1.42/build?buildargs=%7B%7D&cachefrom=null&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=.wappler%2Ftargets%2Fproduction%2Fweb%2
FDockerfile&labels=null&memory=0&memswap=0&networkmode=&rm=1&shmsize=0&t=web_app__production_web&target=&ulimits=null&version=1": write |1: The pipe is being closed.


Error Launching Services!

Web server log now ok

BUT database server says:
Docker Service "db" not found!


Should I connect via DOCKER database instead????

Is this your development target? There you should select to use a local docker database and not the cloud database.

You should use the cloud database for your live remote target only.

Morning George...
Made some progress...
Yes I am using docker for my development local db and cloud database for my live remote target.

Activating redis is the only way I can effectively deploy the remote webserver with docker.

My local server connects and displays perfectly with the local db,

However I still cannot get a connection with the cloud db on my remote production.
this is the error
image

Well check the in server connect the global database connection - when the remote target is active, that you have the same cloud database.

Normally it should be set when you save the project options. But check to be sure.

Now works fine for remote production but not local?

well what are your target settings for local development and for remote?

local:

remote:

well it seems all good to me. When saved all options should be generated fine.

When you select the local development target as active target - you should be able to deploy and run development.

and when you select the remote target then you will deploy to the cloud

Well at last!!
Seems that the password field doesn't remove whitespace.

I have been using wappler for years now and have learnt to work around many of the issues that exist, I have created several projects, with ease, before the resource manager was implemented.
Using the resource manager proved to be a minefield.

I really hope that future releases improve the reliability of those procedures because I cannot afford to spend weeks chasing errors and reacting to sporadic support on the forum.

thanks George