Hi, I am using the latest Bedrock, php 7.1 .24 locally (which Bedrock requires). I am using Bedrock-Capistrano to deploy to a Media Temple DV box running php 7.1.26. I am using Sage 8.5.4 (though this shouldn’t matter). I have no problem deploying to Media Temple Grid/Shared, but no matter how much I properly customize the DV box, I can’t get past this error:
DEBUG [777a47fb] Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
** DEBUG [777a47fb] Your requirements could not be resolved to an installable set of packages.**
Here is all my relevant info. I’ve been trying to deploy this site for DAYS. Anyone?
My /deploy/production.rb for when I do “cap production deploy”
set :stage, :production
# Simple Role Syntax
# ==================
role :app, %w{xx.xx.xx.xxx}
role :web, %w{xx.xx.xx.xxx}
role :db, %w{xx.xx.xx.xxx}
# Extended Server Syntax
# ======================
server 'xx.xx.xx.xxx', user: ‘userxxx’, roles: %w{web}
set :ssh_options, {
keys: %w(/Users/mikey/.ssh/id_rsa),
forward_agent: true,
auth_methods: %w(publickey)
}
fetch(:default_env).merge!(wp_env: :production)
SSHKit.config.command_map[:composer] = "/usr/local/bin/composer"
My output looks like this:
00:33 deploy:symlink:linked_dirs
01 mkdir -p /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app
✔ 01 myuser@mysite.xxx 0.798s
02 ln -s /var/www/vhosts/MYSITE.XXX/site_files/shared/web/app/uploads /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads
✔ 02 myuser@mysite.xxx 0.821s
00:37 composer:run
01 /usr/local/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader
01 Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
01 Your requirements could not be resolved to an installable set of packages.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as myuser@mysite.xxx: composer exit status: 2
composer stdout: Nothing written
composer stderr: Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Caused by:
SSHKit::Command::Failed: composer exit status: 2
composer stdout: Nothing written
composer stderr: Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Tasks: TOP => composer:run
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as myuser@mysite.xxx: composer exit status: 2
composer stdout: Nothing written
composer stderr: Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
INFO [2202bcfe] Finished in 0.842 seconds with exit status 0 (successful).
INFO [9ffdd9c6] Running /usr/bin/env mkdir -p /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app as myuser@mysite.xxx
DEBUG [9ffdd9c6] Command: ( export WP_ENV="production" ; /usr/bin/env mkdir -p /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app )
INFO [7c6e1384] Finished in 0.798 seconds with exit status 0 (successful).
DEBUG [b463660b] Running [ -L /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads ] as myuser@mysite.xxx
DEBUG [b463660b] Command: [ -L /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads ]
DEBUG [344025fc] Finished in 0.800 seconds with exit status 1 (failed).
DEBUG [834f6b38] Running [ -d /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads ] as myuser@mysite.xxx
DEBUG [834f6b38] Command: [ -d /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads ]
DEBUG [2acf63c3] Finished in 0.799 seconds with exit status 1 (failed).
INFO [784d959d] Running /usr/bin/env ln -s /var/www/vhosts/MYSITE.XXX/site_files/shared/web/app/uploads /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads as myuser@mysite.xxx
DEBUG [784d959d] Command: ( export WP_ENV="production" ; /usr/bin/env ln -s /var/www/vhosts/MYSITE.XXX/site_files/shared/web/app/uploads /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219/web/app/uploads )
INFO [bb0cb3f4] Finished in 0.821 seconds with exit status 0 (successful).
DEBUG [5ef9a522] Running if test ! -d /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219; then echo "Directory does not exist '/var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219'" 1>&2; false; fi as myuser@mysite.xxx
DEBUG [5ef9a522] Command: if test ! -d /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219; then echo "Directory does not exist '/var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219'" 1>&2; false; fi
DEBUG [58c14be7] Finished in 0.921 seconds with exit status 0 (successful).
INFO [a30eb778] Running /usr/local/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader as myuser@mysite.xxx
DEBUG [a30eb778] Command: cd /var/www/vhosts/MYSITE.XXX/site_files/releases/20190312073219 && ( export WP_ENV="production" ; /usr/local/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader )
DEBUG [777a47fb] Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
DEBUG [777a47fb] Your requirements could not be resolved to an installable set of packages.
This is my Composer.json file
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "Ben Word",
"email": "ben@benword.com",
"homepage": "https://github.com/retlehs"
}
],
"keywords": [
"bedrock", "composer", "roots", "wordpress", "wp", "wp-config"
],
"support": {
"issues": "https://github.com/roots/bedrock/issues",
"forum": "https://discourse.roots.io/category/bedrock"
},
"config": {
"preferred-install": "dist"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"php": ">=7.1",
"composer/installers": "^1.4",
"vlucas/phpdotenv": "^3.0.0",
"oscarotero/env": "^1.1.0",
"roots/wordpress": "5.1",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.0.0",
"wpackagist-plugin/responsive-lightbox":"2.1.0",
"wpackagist-plugin/wordpress-seo":"9.7",
"wpackagist-plugin/featured-video-plus":"2.3.3",
"wpackagist-plugin/merge-minify-refresh":"1.8.12",
"wpackagist-plugin/http-https-remover":"2.0",
"wpackagist-plugin/custom-post-type-ui":"1.6.1",
"wpackagist-plugin/gigpress":"2.3.23",
"wpackagist-plugin/instagram-feed":"1.11.3",
"wpackagist-plugin/comments-from-facebook":"1.9.1",
"wpackagist-plugin/ninja-forms":"3.4.4",
"wpackagist-plugin/constant-contact-forms":"1.4.5",
"wpackagist-plugin/classic-editor":"1.4",
"wpackagist-plugin/heartbeat-control":"1.2.5",
"wpackagist-plugin/wp-fastest-cache":"0.8.9.1",
"wpackagist-plugin/autoptimize":"2.4.4"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.0.2",
"roave/security-advisories": "dev-master"
},
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "web/wp"
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"test": [
"phpcs"
]
}
}