Comments (9)
Hey there,
Seems it's failing on your chmod command which Id guess at being a problem with permissions on your user account.
Can you change your log level to 'debug'. This can be located in the deploy.rb. After that run the command again and let me know what comes out of it.
from wp-deploy.
you are right. seems to be permissions. how can I update?
DEBUG [c6bc2e7f] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/np-wp/git-ssh.sh /usr/bin/env git ls-remote [email protected]:nconstant/np-wp.git )
DEBUG [c6bc2e7f] fatal: cannot exec '/tmp/np-wp/git-ssh.sh': Permission denied
DEBUG [c6bc2e7f] fatal: unable to fork
DEBUG [c6bc2e7f] Finished in 0.206 seconds with exit status 128 (failed).
from wp-deploy.
Looks like you don't have access to do anything with SSH. This will most likely be due to your ssh key not being in bitbucket. Can you check this is the case? This should help
from wp-deploy.
I'm still getting the same error. I'm hosting this on dreamhost. I've generated an rsa key both on my local machine (osx) and the dreamhost server and copied both ssh keys to my bitbucket account. Here's the error I'm still getting with the full debug trace. (i masked my domain)
nathans-air:wp-np2 nathanconstant$ bundle exec cap production wp:setup:remote
INFO [32cab7f5] Running /usr/bin/env mkdir -p /tmp/np-wp/ on [xxx].[xxx].com
DEBUG [32cab7f5] Command: /usr/bin/env mkdir -p /tmp/np-wp/
INFO [32cab7f5] Finished in 1.568 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/np-wp/git-ssh.sh 0.0%
INFO Uploading /tmp/np-wp/git-ssh.sh 100.0%
INFO [c546123a] Running /usr/bin/env chmod +x /tmp/np-wp/git-ssh.sh on [xxx].[xxx].com
DEBUG [c546123a] Command: /usr/bin/env chmod +x /tmp/np-wp/git-ssh.sh
INFO [c546123a] Finished in 0.204 seconds with exit status 0 (successful).
INFO [8bf4dffd] Running /usr/bin/env mkdir -p /tmp/np-wp/ on [xxx].[xxx].com
DEBUG [8bf4dffd] Command: /usr/bin/env mkdir -p /tmp/np-wp/
INFO [8bf4dffd] Finished in 0.204 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/np-wp/git-ssh.sh 0.0%
INFO Uploading /tmp/np-wp/git-ssh.sh 100.0%
INFO [41a932d6] Running /usr/bin/env chmod +x /tmp/np-wp/git-ssh.sh on [xxx].[xxx].com
DEBUG [41a932d6] Command: /usr/bin/env chmod +x /tmp/np-wp/git-ssh.sh
INFO [41a932d6] Finished in 0.203 seconds with exit status 0 (successful).
DEBUG [ebc42c71] Running /usr/bin/env git ls-remote [email protected]:nconstant/np-wp.git on np.logicaloutput.com
DEBUG [ebc42c71] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/np-wp/git-ssh.sh /usr/bin/env git ls-remote [email protected]:nconstant/np-wp.git )
DEBUG [ebc42c71] fatal: cannot exec '/tmp/np-wp/git-ssh.sh': Permission denied
DEBUG [ebc42c71] fatal: unable to fork
DEBUG [ebc42c71] Finished in 0.207 seconds with exit status 128 (failed).
nathans-air:wp-np2 nathanconstant$
from wp-deploy.
If I run the commands directly from the dreamhost server, they work. They just don't work when I run them from my local machine through the bundle exec cap script.
(fireplug is the dreamhost server)
[fireplug]$ /usr/bin/env mkdir -p /tmp/np-wp/
[fireplug]$ /usr/bin/env chmod +x /tmp/np-wp/git-ssh.sh
[fireplug]$ /usr/bin/env mkdir -p /tmp/np-wp/
[fireplug]$ /usr/bin/env chmod +x /tmp/np-wp/git-ssh.sh
[fireplug]$ /usr/bin/env git ls-remote [email protected]:nconstant/np-wp.git
cbefdf5e8e420d5987dbd7c74a1ccc5f9cedf0c8 HEAD
cbefdf5e8e420d5987dbd7c74a1ccc5f9cedf0c8 refs/heads/master
[fireplug]$
from wp-deploy.
@nconstant Does your hosting allow you to SSH from any machine? You may need to add your IP address to the list of known hosts on the server.
from wp-deploy.
Yes, it does allow me to SSH from any machine. It should be using the same user to run the git sh script as the user that I configured in the production.rb file, right? Not sure why it would be still getting a permission error.
from wp-deploy.
@nconstant If you have access to SSH from your computer to the server then the issue will most likely lie with the access to BitBucket. Can you check that you have SSH access to your BitButcket repo?
from wp-deploy.
Not sure if it can help but this: http://www.42.mach7x.com/2014/01/09/fatal-cannot-exec-tmp-git-ssh-sh-permission-denied-capistrano-dreamhost-permission-denied-for-git-ssh-sh/ solved my problem with a similar error on another hosting
from wp-deploy.
Related Issues (20)
- I created a project wp-deploy-easy HOT 1
- Relink submodule HOT 1
- .wpignore What does it do? HOT 2
- Unable to specify port HOT 4
- uploads:push timeout HOT 3
- Installation issue HOT 4
- wp:plugins:pull HOT 4
- SSHKit::Runner::ExecuteError: Exception while executing as user@domain: git exit status: 1 HOT 5
- ERROR: The themes directory is either empty or doesnโt exist HOT 1
- no alternative certificate subject name matches target host name 'core.git.wordpress.org' HOT 1
- A simple 'ENTER' without typing confirms the overwriting of the db HOT 2
- com
- Add a possibility to use docker in order to develop the site locally. HOT 4
- Wordfence issues with .gitignore HOT 2
- db:push breaks emojis HOT 3
- mysql dump on the ha branch needs password escaping HOT 1
- VisualComposer CSS files reference uploads
- ignore robots.txt? HOT 1
- Is the project still active? HOT 2
- Wp cli not loading plugins commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-deploy.