valentinocossar / trellis-database-uploads-migration

Ansible playbook for Trellis that manages database and uploads migration.
MIT License
94 stars 13 forks source link

"Permission denied (publickey)" when pulling uploads #11

Closed kszmigiel closed 6 years ago

kszmigiel commented 6 years ago

Hey, as in title, I'm getting some error caused by rsync. That's the command I type:

./bin/uploads.sh production com.example pull

And that's the error:

TASK [Pull uploads] *************************************************************************************
System info:
  Ansible 2.4.3.0; Linux
  Trellis at "Enable Virtualbox ioapic option"
---------------------------------------------------
fatal: [user@example.com]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --compress --delete-after --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --exclude=.DS_Store --stats --out-format=<<CHANGED>>%i %n%L web@user@example.com:/srv/www/com.example/current/web/app/uploads/ /home/kacper/com.example-trellis/site/com.example/web/app/uploads/", "msg": "Warning: Permanently added 'example.com,11.111.111.11' (ED25519) to the list of known hosts.\r\nPermission denied (publickey).\r\nrsync: connection unexpectedly closed (0 bytes received so far) [Receiver]\nrsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]\n", "rc": 255}

I've replaced my company's internal info with example ;) What's interesting, I'm able to login into my local development virtual machine by vagrant ssh, and then proceed to login into my remote production machine. I'm quite newbie into Trellis as well as Ansible, so please be understanding ;)

valentinocossar commented 6 years ago

Hi, is com.example a typo? Because should be example.com.

Then, if you've followed all the README you shouldn't get errors using this utility, but I need more info to try to help you.

Why haven't you used the issue template while opening this issue?