|
From: | Peter Bee |
Subject: | [Fab-user] First Fabric connected but got 'Permission denied' error |
Date: | Sat, 14 Aug 2010 01:04:31 -0700 (PDT) |
Hi,
I eventually setup Fabric on my Windows box. When I try with my first fabric deployment (code pasted below - just want to push a test file to the remote Linux box), then I got the error at the end. Code has been slightly modified such as usr/paswd, host id. mytest.py file is in the same folder as fabfile.
I hope this is a basic and common question so a solution exists.
Thanks, Peter
fabfile.py code
--------------------
from fabric.api import *
REMOTE_HG_PATH = '/home'
def test(): """Set the target to test.""" env.hosts = ['10.000.000.00'] env.user = 'usr_name' env.password = 'password' env.remote_app_dir = '/apps' env.local_settings_file = 'mytest.py' env.remote_push_dest = '/home' env.tag = 'test' env.venv_name = 'SAMPLE_test' def deploy():
require('hosts', provided_by=[test]) require('remote_app_dir', provided_by=[test]) require('local_settings_file', provided_by=[test]) require('remote_push_dest', provided_by=[test]) require('tag', provided_by=[test]) require('venv_name', provided_by=[test]) put("%s" % env.local_settings_file, "%s/" % env.remote_app_dir) Here is the output on Windows side:
E:fabric\test>fab test deploy
[10.000.000.00] put: mytest.py -> /apps/mytest.py Fatal error: put() encountered an exception while uploading 'mytest.py'
Underlying exception message:
Permission denied Aborting.
Disconnecting from 10.122.212.80... done. |
[Prev in Thread] | Current Thread | [Next in Thread] |