INN / deploy-tools

Deployment tools for INN's WordPress sites
15 stars 6 forks source link

Submodule deploy fails with code (3/-31) #64

Open benlk opened 6 years ago

benlk commented 6 years ago

https://linux.die.net/man/3/libcurl-errors says 3 is:

CURLE_URL_MALFORMAT (3) The URL was not properly formatted.

$ fab staging branch:master verbose deploy
[inndev.sftp.wpengine.com] Executing task 'branch'
On master
[inndev.sftp.wpengine.com] Executing task 'verbose'
[inndev.sftp.wpengine.com] Executing task 'deploy'
[inndev.sftp.wpengine.com] download: <file obj> <- /.git-ftp.log
Currently-deployed commit: a164362903cf191d647a0f86c7840e1d6bb1f896
Setting rollback point...
Checking out branch: master
Deploying...
Thu Aug 16 01:56:32 EDT 2018: git-ftp version 1.5.1 running on Darwin oyster.local 14.5.0 Darwin Kernel Version 14.5.0: Sun Jun  4 21:40:08 PDT 2017; root:xnu-2782.70.3~1/RELEASE_X86_64 x86_64
Thu Aug 16 01:56:32 EDT 2018: Host is 'inndev.sftp.wpengine.com:2222'.
Thu Aug 16 01:56:32 EDT 2018: User is 'inndev-staging'.
Thu Aug 16 01:56:32 EDT 2018: Password is set.
Thu Aug 16 01:56:33 EDT 2018: CACert is ''.
Thu Aug 16 01:56:33 EDT 2018: Insecure is '0'.
Thu Aug 16 01:56:33 EDT 2018: Proxy is ''.
Thu Aug 16 01:56:33 EDT 2018: Path is './'.
Thu Aug 16 01:56:33 EDT 2018: Syncroot is './'.
Thu Aug 16 01:56:33 EDT 2018: The remote sha1 is saved in file '.git-ftp.log'.
Thu Aug 16 01:56:33 EDT 2018: Check if curl is functional.
Thu Aug 16 01:56:33 EDT 2018: Retrieving last commit from sftp://inndev-staging:***@inndev.sftp.wpengine.com:2222/./.
################################################################################################## 100.0%
Thu Aug 16 01:56:33 EDT 2018: Last deployed SHA1 for inndev.sftp.wpengine.com:2222/./ is a164362903cf191d647a0f86c7840e1d6bb1f896.
Thu Aug 16 01:56:33 EDT 2018: Having files to sync.
Thu Aug 16 01:56:33 EDT 2018: 1 file to sync:
Thu Aug 16 01:56:33 EDT 2018: [1 of 1] Buffered for upload 'wp-content/themes/inn'.
Thu Aug 16 01:56:33 EDT 2018: Uploading ...
-#O#-  #   #                                                                                            
curl: (9) Upload failed: Permission denied (3/-31)
Thu Aug 16 01:56:34 EDT 2018: fatal: Could not upload files., exiting...
Try running fab wp.verify_prerequisites

Done.
Disconnecting from inndev.sftp.wpengine.com:2222... done.

Uploading the same files works with Cyberduck, just saying.

So we need to:

benlk commented 6 years ago
$ curl --version
curl 7.61.0 (x86_64-apple-darwin14.5.0) libcurl/7.61.0 OpenSSL/1.0.2o zlib/1.2.5 brotli/1.0.5 libidn2/2.0.5 libssh2/1.8.0
Release-Date: 2018-07-11
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile NTLM NTLM_WB SSL libz brotli TLS-SRP UnixSockets HTTPS-proxy 
benlk commented 6 years ago

Hm, I was able to deploy successfully to Flywheel with no problems. So: