Wappler Version : 5.0
Operating System : MacOS 12.4 Macbook Pro M1
Server Model: Digital Ocean - node.js
Database Type: MariaDB
Hosting Type: Remote
Expected behavior
- Create a cloud provider with the resource manager.
- Create a new server.
- Add a new target (using the new server).
- Deploy node.js app to the new server.
- Enjoy
I am doing this with a copy of an existing project which is all up and running locally but wanted to now test on a staging server (so the client can see progress and have a play).
BTW the original version of the project worked fine with local development, staging and production servers etc.
Actual behavior
- Create a cloud provider in the new resource manager - all good.
- Create a new server - worked but didn’t initially get all the server info (such as IP) and the spinner didn’t stop and the icon on the right (a plus) didn’t change to a “tick”. But a refresh in Wappler got the correct details. However, if I try to expand the server (to get details I get the same infinite spinner).
I did wait for more than 5 minutes for the spinner to stop, and confirmed that the server had been created and started in DO before refreshing. - Adding a new target and Wappler cannot communicate with the server. When I click the test button I get the following response:
Testing Docker Connection ...
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.8.2)
compose: Docker Compose (Docker Inc., v2.6.1)
extension: Manages Docker extensions (Docker Inc., v0.2.7)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.17.0)
Server:
ERROR: Cannot connect to the Docker daemon at tcp://46.101.82.230:2375. Is the docker daemon running?
errors pretty printing info
Error Occurred Testing Docker Connection!
I have tried restarting Wappler and the DigitalOcean droplet but get the same response.
Also in the output section of Wappler most of the options are grey (except the “play” button):
And I get the following red text:
Error: Cannot parse privateKey: Encrypted private OpenSSH key detected, but no passphrase given at Client.connect (/Applications/Wappler.app/Contents/Resources/app/node_modules/docker-modem/node_modules/ssh2/lib/client.js:261:15) at Agent.createConnection (/Applications/Wappler.app/Contents/Resources/app/node_modules/docker-modem/lib/ssh.js:24:8) at Agent.createSocket (node:_http_agent:341:26) at Agent.addRequest (node:_http_agent:292:10) at new ClientRequest (node:_http_client:305:16) at Object.request (node:http:96:10) at h.request (/Applications/Wappler.app/Contents/Resources/app/node_modules/docker-modem/lib/http.js:51:52) at Modem.buildRequest (/Applications/Wappler.app/Contents/Resources/app/node_modules/docker-modem/lib/modem.js:238:68) at Modem.dial (/Applications/Wappler.app/Contents/Resources/app/node_modules/docker-modem/lib/modem.js:221:8) at Docker.listContainers (/Applications/Wappler.app/Contents/Resources/app/node_modules/dockerode/lib/docker.js:433:16) at w2editor_ftp_manager.getDockerStackStatus (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2editor_ftp_manager.js:8:60068) at w2editor_ftp_manager.dockerStart (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2editor_ftp_manager.js:8:70524) at w2editor_ftp_manager.<anonymous> (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2editor_ftp_manager.js:8:2972) at w2editor_ftp_manager.trigger (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2ui.min.js:7:36380) at w2editor_ftp_manager.click (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2ui.min.js:7:447882) at w2editor_ftp_manager.<anonymous> (file:///Applications/Wappler.app/Contents/Resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2ui.min.js:7:449533) at HTMLDivElement.dispatch (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:5430:27) at HTMLDivElement.elemData.handle (/Applications/Wappler.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:5234:28) at HTMLDivElement.sentryWrapped (/Applications/Wappler.app/Contents/Resources/app/node_modules/@sentry/browser/dist/helpers.js:75:23)
And yes, I have a passphrase (which I hardly ever have to enter) and SSH works as I can open a terminal (as I do in the video below).
- Can’t deploy docker on the new server
- Can’t enjoy my coffee
How to reproduce
Follow steps 1 to 3 above.
I tried again by deleting the server and cloud provider, confirming the server had been destroyed in the DigitalOcean console and restarting Wappler then doing it all again.
Below is a video of the process (from 1min to 4min is me waiting for anything to happen so can probably be skipped as I didn’t do anything)-
DO server creation failure 22-07-22