Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide debugging output for upstream:updates:apply using -vvv verbose output option #2373

Open
damienmckenna opened this issue Jul 12, 2022 · 1 comment

Comments

@damienmckenna
Copy link
Contributor

Platform

(X) MacOS
( ) Linux
( ) Winderz

Installed Via

( ) Homebrew
( ) Apt Package
(X) Manually

PHP Version

( ) 7.4x
(X) 8.0
( ) 8.1

Command Executed

  • terminus upstream:updates:apply [SITENAME] -vvv --accept-upstream

Expected behavior

I expect details what Terminus is actually doing, which is particularly important when trying to debug a problem.

Actual behavior

 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/site-names/SITENAME
Method: GET
Body: null
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID?site_state=true
Method: GET
Body: null
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/site-names/SITENAME
Method: GET
Body: null
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID/environments
Method: GET
Body: null
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID/code-upstream-updates?base_branch=refs/heads/master
Method: GET
Body: null
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID/environments/dev/variables
Method: GET
Body: null
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID/environments/dev/build/updates
Method: GET
Body: null
 [notice] Applying 1 upstream update(s) to the dev environment of SITENAME...
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**","Content-Type":"application/json","Content-Length":76}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID/environments/dev/workflows
Method: POST
Body: {"type":"apply_upstream_updates","params":{"updatedb":false,"xoption":true}}
 0/7 [>---------------------------] Applying upstream updates to "dev"
 [info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.5-dev (php_version=8.0.17&script=bin/terminus)","Accept":"application/json","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/SITEUUID/workflows/d774e1dc-01cd-11ed-a2a8-42010a800117
Method: GET
Body: null
[that is repeated 273 times]
 [error]  The operation failed to complete. 

While it does indicate "Applying upstream updates to "dev", it doesn't provide any further details and then ultimately crashes, making it impossible to debug the problem.

@diegom-ciandt
Copy link

Also facing this situation.
It would be great if the reason why the updates are failing is shown here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants