GithubHelp home page GithubHelp logo

initialization not working about wp-deploy HOT 9 CLOSED

mixd avatar mixd commented on May 31, 2024
initialization not working

from wp-deploy.

Comments (9)

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

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.

nconstant avatar nconstant commented on May 31, 2024

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.

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

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.

nconstant avatar nconstant commented on May 31, 2024

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.

nconstant avatar nconstant commented on May 31, 2024

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.

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

@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.

nconstant avatar nconstant commented on May 31, 2024

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.

lukewhitehouse avatar lukewhitehouse commented on May 31, 2024

@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.

davidlonjon avatar davidlonjon commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.