Importing DO server gives no access in Resource Manager

Followed this tutorial... but still unable to create remote Production target:
Managing Cloud servers with resource manager

Got this error:

Cannot get any remote connection cloud providers ssh or sockets...
Been trying for 2 weeks can't get any sustained or focused support...
App was originally working with NO problems,
6 months of coding without clients being able to use it...

Getting desperate for help

If you:

Is the SSH key also added to the SSH Agent in the Resource Manager? If not you can add it from the context menu.

And is the SSH Agent running? If not you can also start it from the context menu

Tried to import new server and created NEW ssh in dialogue but got
image
When trying to import

tried to import key via agent got
image

Yes it is

You can't import a server and create a new key ... you have to use the SSH key that was used to create the server otherwise you don't have access.

That shouln't have been an option shown when importing a server then.

One question I have spent so long on this trying everything I am beginning to think it would be best to create another DO account and start from scratch, what are your thoughts?

If you dont think this is advisable then I will try again and create another new server.

Well it depends on how you create the server initially. If you haven't deployed anything to it yet - then it might be easier to just delete it fully in the Do admin and create a new one in Wappler's Resource Manager.

The import is really meant if you already have an access to it, and you can add additional keys, but if you don't have any access or lost the creation SSH key - it won't work as you just don't have access to it any more.

Ok George,
I hope that after all the time spent so far and all the work on replicating the new DO account things work as they should.

I have read a lot articles on the forum with the same problem, I am sure new users will be put off very quickly if they experience the difficulty I and many other forum members have experienced trying to do what is one of the most fundamental requirements of creating a 'low code web app' and that's getting it online.

Are there plans to improve this?

Well if you do all the server creation in Wappler's Resource Manager, you shouldn't have any troubles.

When importing existing servers, indeed a caution should be taken to ensure that you have access first.

I will see if we can improve this, so actually checking for access before allowing any imports to be done.

Great, i so dread creating new web apps with server connections never goes smoothly as shown in the tutorials when using the resource manager.
thanks George

1 Like

George,
I have deleted all ssh keys which may have been causing issues.

I recreated a new droplet and created a new ssh key at that stage.

I have installed traffik and configured it to allow access from everwhere on port 8080

I have run system check on the server, which reports everything is running properly.

After trying to create a remote connection with this setup:

I get this error message:

'execAsyncTermShellCommand') at e (file:///C:/Users/jim/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2targets.js:1:86422) at file:///C:/Users/jim/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2targets.js:1:86895 at sentryWrapped (C:\Users\jim\AppData\Local\Wappler\resources\app\node_modules\@sentry\browser\cjs\helpers.js:92:17)
TypeError: Cannot read properties of undefined (reading 'execAsyncTermShellCommand') at e (file:///C:/Users/jim/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2targets.js:1:86422) at file:///C:/Users/jim/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2targets.js:1:86895 at sentryWrapped (C:\Users\jim\AppData\Local\Wappler\resources\app\node_modules\@sentry\browser\cjs\helpers.js:92:17)
TypeError: Cannot read properties of undefined (reading 'execAsyncTermShellCommand') at e (file:///C:/Users/jim/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2targets.js:1:86422) at file:///C:/Users/jim/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2targets.js:1:86895 at sentryWrapped (C:\Users\jim\AppData\Local\Wappler\resources\app\node_modules\@sentry\browser\cjs\helpers.js:92:17)

Claude ai suggests:
The error message you provided suggests that there is an issue with the JavaScript code in the "w2targets.js" file, which is part of the Wappler application.

The specific error is:

Copy code

TypeError: Cannot read properties of undefined (reading 'execAsyncTermShellCommand')

Can you:

  1. Confirm I have configured and setup the server and ssh keys correctly.
  2. Confirm there is a problem (or not) with w2Targets.js file and if it is the root cause of my problems it is being dealt with.
  3. Suggest what further action I need to take.

Thanks George

Try removing the port (443) within your above Production 'Web' settings and leave it blank. Wappler will forward to 443 auto-magically when Traefik is deployed . Also set the Node version to 20. See if this helps...

hi cheese...tried that doesn't work.... thanks tho :grinning:

Can you SSH in to the droplet outside of Wappler? Using a client such as Putty

Hi Cheese just installed putty...haven't got a clue as to how to run it. Is through terminal?

Putty is itself a terminal client. All you need to do is execute it as a normal program.

HIya just run it
image

got this:
image
would it be root? and where would I find my ssh password?

Yes will be root. Also you may wish to generate a new key pair, all covered in the video above. We just want to see if you can SSH in and then we'll go from there.