I run into some issues trying to deploy to a DigitalOcean Droplet from two different machines.
So the setup is like so: I have W10 machine that I use mostly for Wappler dev work. This pushes a Wappler test project to my DO droplet just fine. However, I’d like to be able to deploy from my Macbook Pro, as well. To do some dev work on the road.
I did notice that in the target folder on the mac, the db_init folder was missing. I added that manually.
Now when I try to deploy to the local docker from the mac, it works fine. However, trying to deploy to the droplet I get an error:
Building web
Sending build context to Docker daemon 7.014MB
Step 1/4 : FROM wapplerio/node-12
---> 7f4100422308
Step 2/4 : COPY ./ /opt/node_app/
---> Using cache
---> e7db6f2a6ba8
Step 3/4 : WORKDIR /opt/node_app
---> Using cache
---> 5973c27ad359
Step 4/4 : RUN npm install --no-optional --production
---> Using cache
---> a208818dfbae
Successfully built a208818dfbae
Successfully tagged do_test_102__staging_web:latest
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Recreating 0834eaa828d9_do_test_102__staging_db_1 ...
Recreating 0834eaa828d9_do_test_102__staging_db_1 ... error
ERROR: for 0834eaa828d9_do_test_102__staging_db_1 Cannot start service db: driver failed programming external connectivity on endpoint do_test_102__staging_db_1 (0d1d8eaf5691b877f3e65ac8100f6bec65757a5683b76b9aa228bae86444b6cd): Bind for 0.0.0.0:9906 failed: port is already allocated
ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint do_test_102__staging_db_1 (0d1d8eaf5691b877f3e65ac8100f6bec65757a5683b76b9aa228bae86444b6cd): Bind for 0.0.0.0:9906 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
Error Launching Services!
Does anyone have any advice on how to access a DO droplet for deployment from two different machines?
This a common issue on windows when the port stays open for longer than it should. You can just try to redeploy or if the problem persist - restart your pc.
I will move this to a new topic as it is not really related to the current one.
Thanks for splitting up the topic, even during the summer break!
I see your point about this issue being common on windows machines. However, this is on trying to deploy to a DO droplet from a mac running latest mac os.
So first I had an issue with the certificates folder not existing. I fixed this thanks to your post with the machine export import tool.
The project is nothing fancy, either. Just a test project with some default pages, some added fields to the user table and a security provider for login etc.
Well I haven’t really tried to share the exact same project between windows and Mac. There might be some naming convention issues resulting in different container names.
That is why I asked if you can list the running containers.
You can do that by making sure you have selected the DO target, then choose to open an SSH terminal from the terminals menu below, and then run:
System information as of Mon Jul 26 19:44:18 UTC 2021
System load: 0.0
Usage of /: 12.7% of 24.06GB
Memory usage: 64%
Swap usage: 0%
Processes: 96
Users logged in: 0
IP address for eth0: 188.166.40.91
IP address for eth1: 10.110.0.3
IP address for docker0: 172.17.0.1
IP address for br-4b479cb4c8a1: 172.18.0.1
IP address for br-77bcf18e2be2: 172.19.0.1
15 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
*** System restart required ***
root@drop2:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
18244cf2f6e9 do_test__staging_web "docker-entrypoint.s…" 6 hours ago Up 6 hours 9229-9230/tcp, 0.0.0.0:80->3000/tcp do_test__staging_web_1
01de7f387f9a do_test__staging_db "docker-entrypoint.s…" 6 hours ago Up 6 hours 33060/tcp, 0.0.0.0:9906->3306/tcp do_test__staging_db_1
This is the output from the Mac, btw. Or did you mean the W10 output, as well?
Hi George, I am stuck with this problem too. I have redeployed, restarted the pc multiple times, wait one day. And the problem persists. I keep on having the same error: