Using Trellis v1.14.0, I’m getting following error (suddenly, perhaps after adding some site, wpackagist plugins) on deploy to staging but not to production server.
Now trying to download from source", " Failed to download wpackagist-plugin/ultimate-addons-for-gutenberg from dist: \
curl error 28 while downloading https://downloads.wordpress.org/plugin/ultimate-addons-for-gutenberg.1.25.4.zip: \
Connection timed out after 10004 milliseconds", " \
Now trying to download from source", "", \
"In SvnDownloader.php line 39:", "", \
"svn was not found in your PATH, skipping source download ", "
I checked and svn isn’t available (to admin or web user) on production either, via command line.
Seems similar to this thread and I ran trellis provision --tags php staging again, but same result.
The exception comes from:
protected function doDownload(PackageInterface $package, $path, $url, PackageInterface $prevPackage = null)
{
SvnUtil::cleanEnv();
$util = new SvnUtil($url, $this->io, $this->config, $this->process);
if (null === $util->binaryVersion()) {
throw new \RuntimeException('svn was not found in your PATH, skipping source download');
}
return \React\Promise\resolve();
}
I’m pretty sure that apt install subversion isn’t the Trellis solution, even if it would work.
The SVN part isn’t the actual issue; it’s just a fallback method to download from source because the normal “dist” method timed out:
Failed to download wpackagist-plugin/ultimate-addons-for-gutenberg from dist: \
curl error 28 while downloading https://downloads.wordpress.org/plugin/ultimate-addons-for-gutenberg.1.25.4.zip: \
So there’s some connectivity/networking issue on your server where that URL times out. Hard to say what the problem could be, but I’d suggest debugging that using curl’s verbose mode to see what’s going on.
curl https://downloads.wordpress.org/plugin/ultimate-addons-for-gutenberg.1.25.4.zip -vvv
* Trying 198.143.164.250:443...
* TCP_NODELAY set
* connect to 198.143.164.250 port 443 failed: Connection timed out
* Failed to connect to downloads.wordpress.org port 443: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to downloads.wordpress.org port 443: Connection timed out
Same with --no-tcp-nodelay flag (minus that step).
Tried wget which also fails on wordpress.org but not on other sites (google,com).
I’m thinking maybe one of the steps from this SO post:
Verify name servers are correct within /etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
Matches production, so assuming correct.
If #1 resolv settings are are correct for primary and secondary nameservers, verify that 192.168.10.10 has the ability to resolve hosts. (simple nslookup to google.com is a good test for this, if timeout occurs then then this could be part of the issue)