johnkraczek / n8n-ansible-install

Complete ansible playbook to provision and deploy nodemation to a Digital Ocean droplet.
MIT License
10 stars 6 forks source link

failed - nvm/alias/default #4

Open apsolut opened 2 years ago

apsolut commented 2 years ago

Watched Youtube (Updated) video and wanted to try it out on DigitalOcean, created app, done local things, but this is where it always fail, lets say (https is working, ssls generated...)

Local: Windows 11 WSL Ubuntu 20.04 Ansible 2.9.10 (local) Python3

Did try 2 times to install new droplet on DO, always the same hangout, so I get pass everything thats in tasks (users, server, securityt, swapfile, certificate, server-post-cert..)

Did try: Different Ubuntu on DigitalOcean 20.04, 20.04LTS different node version 14, 15 (it gets installed but again fail at n8n with bunch of Deprecation errors)

TASK [get node version] **

`

ESTABLISH SSH CONNECTION FOR USER: root SSH: EXEC ssh -oForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -tt XXX.XXX.XXX '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1660248292.2723925-227340212734089/AnsiballZ_slurp.py && sleep 0'"'"'' (1, b'\r\n{"msg": "file not found: /home/root/.nvm/alias/default", "failed": true, "invocation": {"module_args": {"src": "/home/root/.nvm/alias/default"}}}\r\n', b'Connection to XXX.XXX.XXX closed.\r\n') ` `fatal: [XXX.XXX.XXX.IP]: FAILED! => { "changed": false, "invocation": { "module_args": { "src": "/home/root/.nvm/alias/default" } }, "msg": "file not found: /home/root/.nvm/alias/default" }`
johnkraczek commented 2 years ago

Can you give me a little more context? What OS are you using, you redacted the IP address in your comment, but you used one, right?

apsolut commented 2 years ago

Sorry, was planning to add more info will do right now - and will try again over a weekend, but yea used IP and all gets installed (ssl, provisions, node version and hangout at install n8n)

eldala07 commented 1 year ago

@apsolut I had the same issue! In my case, I was incorrectly using root as system_user in the defaults/vars.yml file instead of my real system_user, the one returned by the command whoami Hope it helps!