FYI, I've replaced the Signature
and AWSAccessKeyID
parts of the URL with FOO
just to prevent it from being a valid URL that could be downloaded by someone else.
I'm running an import:database command using a database backup URL I grabbed from the Live tab of one of our other sites:
terminus import:database -vvv --yes ucws.jpatching "https://pantheon-backups.s3.amazonaws.com/1fb30e38-f900-4372-93a7-6b93cbd2c911/live/1541459818_backup/uc-news_live_2018-11-05T23-16-58_UTC_database.sql.gz?Signature=FOO&Expires=1541466502&AWSAccessKeyId=FOO"
Expected behavior
The import succeeds.
Actual behavior
Short version: 400 Bad Request response: "Bad params"
Verbose version:
[debug] Plugin Autoload: %dir is a Terminus source file.
[debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.9.0 (php_version=7.2.11&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/site-names/ucws
Method: GET
Body: null
[debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Tue, 06 Nov 2018 00:08:44 GMT"],"Content-Type":["application\/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["1fa74e30-e158-11e8-bf4e-173e561cb64e"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: {"id":"ba5ef322-5b49-43e9-876c-ff640080ffc1","name":"ucws"}
Status Code: 200
[debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.9.0 (php_version=7.2.11&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/ba5ef322-5b49-43e9-876c-ff640080ffc1?site_state=true
Method: GET
Body: null
[debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Tue, 06 Nov 2018 00:08:44 GMT"],"Content-Type":["application\/json"],"Content-Length":["16434"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["1fe54190-e158-11e8-8cdc-35f792086f85"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: {"created":1528318690,"created_by_user_id":"e4c78d83-b045-40c1-ac8a-d5b7ea339c76","drush_version":8,"framework":"drupal8","holder_id":"dd539496-9e3a-4b32-bb7c-34a3f40b7d39","holder_type":"organization","instrument":"b04d0816-a3c4-416c-8ddd-725e2f2d5d4d","last_code_push":{"timestamp":"2018-11-05T20:45:12","user_uuid":"3dc742cb-a35c-465b-9254-69f4f44abfef"},"name":"ucws","organization":"dd539496-9e3a-4b32-bb7c-34a3f40b7d39","owner":"e4c78d83-b045-40c1-ac8a-d5b7ea339c76","php_version":"55","plan_name":"Sandbox","preferred_availability_zone":"us-central1-c","preferred_zone":"us-central1","service_level":"free","upstream":{"repository_branch":"master","machine_name":"drupal8","product_id":"8a129104-9d37-4082-aaf8-e6f31154644e","url":"git:\/\/github.com\/pantheon-systems\/drops-8.git","label":"Drupal 8","organization_id":"","framework":"drupal8","branch":"master","repository_url":"git:\/\/github.com\/pantheon-systems\/drops-8.git","type":"core","id":"8a129104-9d37-4082-aaf8-e6f31154644e"},"label":"UCWS","id":"ba5ef322-5b49-43e9-876c-ff640080ffc1","holder":{"billing_url":"","change_service_url":"","instrument":"b04d0816-a3c4-416c-8ddd-725e2f2d5d4d","maxdevsites":"2","name":"University of Calgary","org_logo":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAABVCAYAAAA49ahaAAASEklEQVR4Xu2cB3RV1baG\/7NPTSOkEGqC9EgPikhHmhoIHUE60qvgpYWOgrQLhCJdVFDpSJDeEjoKSglF6Qk1YCBAyun7jn+9tzGGkuSOnJe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4x8H6UAS4sjVA5Ht6faU8Z4D0YBOk3BFwMRj8jljUjq5YpqIwQth08puNEKfiK8Xjv7NmzIsWpRdzDM325K1KMk2CXwEJCoBw0qz9Pgnh6lN6YDZw0t6EskEpvSEkhcAUqwfFMgr5YvdMad2Gs5tzBKVAJlLpL4xaYp22s6AyEtMas4nz5OiUvq5YpqHTKokNRZ9SwA+DEOXDuw5mKBMWt3uLFi8Xr6VOGQs\/+lm0M+1uCoF6x9UprTENqIt9jsRo4cCB69OghvmeWKN0AI5VHiSwkXChW\/7TGAsnzAxYcdiIvKlTse6nhnFvaVun\/DCoHzKaa\/SMPTFgsCJiHLATJ6OXgWaQYzel3PoRJ7ePvs2i97FFHni\/wvID34OEG9Zy+GO3UOO7x2bBzu8ts8Pb2FtKQvn9k30xo9MfNB\/WXkrRr198PA\/NYkv0zx8WipZxB8HyBGUdtXbduXVYDNWt7f3pn6nHA3MdT0wiH\/4kBtfDy5ctCn7h\/Tm\/UQ2odo5TRqBSt9NdRFxXpYNVnFLLosNIzJbmIyjjog1CV19L7YpRSOhjF\/J5FSylIyrUcE8fOo0alfVPmwoV7me9Xkc50+md5uV7jX1ChumDxVagqVBcQcIFLNVJVqC4g4AKXaqSqUF1AwAUu1UhVobqAgAtcqpGqQnUBARe4VCNVheoCAi5wqUaqCtUFBFzgUo1UF0D9DzudCpgCZzD2AAAAAElFTkSuQmCC","org_logo_height":85,"org_logo_width":85,"terms_of_service":"","id":"dd539496-9e3a-4b32-bb7c-34a3f40b7d39","key":"dd539496-9e3a-4b32-bb7c-34a3f40b7d39","service_level":"enterprise","machine_name":"university-of-calgary","has_multidev":false,"support_plan":"regular_support","show_org_name_header":"yes","base_domain":null,"requires_onboarding":false,"has_change_management":false,"profile":{"machine_name":"university-of-calgary","change_service_url":"","name":"University of Calgary","email_domain":null,"org_logo_width":85,"org_logo_height":85,"base_domain":null,"billing_url":"","terms_of_service":"","org_logo":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAA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AMFL5Hg9jaFwMZTNAieI9lde5IaFMsJhRv19UGF\/FIFNQqZkUfhYDpvarjDrI7SAjSRF1pjFhMWoZAa9Kf06WkcP7KRHChWGKEgpTmJC5o2K\/St3mwQmrMnc8NJ4x8H6UAS4sjVA5Ht6faU8Z4D0YBOk3BFwMRj8jljUjq5YpqIwQth08puNEKfiK8Xjv7NmzIsWpRdzDM325K1KMk2CXwEJCoBw0qz9Pgnh6lN6YDZw0t6EskEpvSEkhcAUqwfFMgr5YvdMad2Gs5tzBKVAJlLpL4xaYp22s6AyEtMas4nz5OiUvq5YpqHTKokNRZ9SwA+DEOXDuw5mKBMWt3uLFi8Xr6VOGQs\/+lm0M+1uCoF6x9UprTENqIt9jsRo4cCB69OghvmeWKN0AI5VHiSwkXChW\/7TGAsnzAxYcdiIvKlTse6nhnFvaVun\/DCoHzKaa\/SMPTFgsCJiHLATJ6OXgWaQYzel3PoRJ7ePvs2i97FFHni\/wvID34OEG9Zy+GO3UOO7x2bBzu8ts8Pb2FtKQvn9k30xo9MfNB\/WXkrRr198PA\/NYkv0zx8WipZxB8HyBGUdtXbduXVYDNWt7f3pn6nHA3MdT0wiH\/4kBtfDy5ctCn7h\/Tm\/UQ2odo5TRqBSt9NdRFxXpYNVnFLLosNIzJbmIyjjog1CV19L7YpRSOhjF\/J5FSylIyrUcE8fOo0alfVPmwoV7me9Xkc50+md5uV7jX1ChumDxVagqVBcQcIFLNVJVqC4g4AKXaqSqUF1AwAUu1UhVobqAgAtcqpGqQnUBARe4VCNVheoCAi5wqUaqCtUFBFzgUo1UF0D9DzudCpgCZzD2AAAAAElFTkSuQmCC"},"settings":{"show_org_name_header":"yes","service_level":"enterprise","base_domain":null,"email_domain":null}},"settings":{"allow_domains":false,"preferred_availability_zone":"us-central1-c","site_id":"ba5ef322-5b49-43e9-876c-ff640080ffc1","stunnel":false,"min_backups":0,"owner":"e4c78d83-b045-40c1-ac8a-d5b7ea339c76","secure_runtime_access":false,"pingdom":0,"allow_indexserver":false,"created_by_user_id":"e4c78d83-b045-40c1-ac8a-d5b7ea339c76","failover_appserver":0,"migration_started_at":null,"cacheserver":1,"support_plan":"regular_support","instrument":"b04d0816-a3c4-416c-8ddd-725e2f2d5d4d","on_server_development":false,"drush_version":8,"migration_method":null,"current_num_domains":0,"appserver":1,"allow_read_slaves":false,"preferred_zone":"us-central1","php_version":"55","php_channel":"stable","allow_cacheserver":false,"upstream":{"url":"git:\/\/github.com\/pantheon-systems\/drops-8.git","product_id":"8a129104-9d37-4082-aaf8-e6f31154644e","branch":"master"},"ssl_enabled":null,"plan_name":"Sandbox","service_level":"free","dedicated_ip":null,"dbserver":1,"migration_origin_url":null,"framework":"drupal8","max_total_domains":0,"key":"ba5ef322-5b49-43e9-876c-ff640080ffc1","max_num_cdes":10,"migration_completed_at":null,"guilty_of_abuse":null,"indexserver":1,"pingdom_chance":0,"holder_id":"dd539496-9e3a-4b32-bb7c-34a3f40b7d39","name":"ucws","created":1528318690,"max_backups":0,"holder_type":"organization","replica_verification_strategy":"pt-heartbeat","id":"ba5ef322-5b49-43e9-876c-ff640080ffc1","organization":"dd539496-9e3a-4b32-bb7c-34a3f40b7d39","pingdom_manually_enabled":false,"last_code_push":{"timestamp":"2018-11-05T20:45:12","user_uuid":"3dc742cb-a35c-465b-9254-69f4f44abfef"}},"base_domain":null,"attributes":{"label":"UCWS","m3_ui":true},"add_ons":[{"id":"NewRelic","label":"New Relic"}]}
Status Code: 200
[debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.9.0 (php_version=7.2.11&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/ba5ef322-5b49-43e9-876c-ff640080ffc1/environments
Method: GET
Body: null
[debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Tue, 06 Nov 2018 00:08:45 GMT"],"Content-Type":["application\/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["2059ae40-e158-11e8-8cdc-35f792086f85"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: {"schulich":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1529687411,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"maintenance":{"enabled":false},"php_version":"72","randseed":"TST3ILF1ROQDHQN34E83KA1PMN8XQ1OG","styx_cluster":"styx-fe2.pantheon.io","target_commit":"68299d85cc24320842cfe3c311cbed590f1c5db9","target_ref":"refs\/heads\/schulich","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!schulich","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"staging":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1528826766,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"maintenance":{"enabled":false},"php_version":"72","randseed":"IFELFN68SHQF6BPYYNJF07D4Y71XA7FY","styx_cluster":"styx-fe2.pantheon.io","target_commit":"3f5a3400e212934c4022bce7312de9374e746f0a","target_ref":"refs\/heads\/staging","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!staging","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"dan":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1531514718,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"php_version":"72","randseed":"HBMM91ZWCO4BXQJQ4HEI3E7LKZOQOKC7","styx_cluster":"styx-fe2.pantheon.io","target_commit":"d260d08fc71f68d074a66ec600793bffb4cf956d","target_ref":"refs\/heads\/dan","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!dan","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"dev":{"diffstat":{},"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1528318691,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"on_server_development":false,"php_version":"72","quicksilver_configuration":{},"randseed":"THE4BCLV29C70QUH7CPI65JN8OEECBB3","styx_cluster":"styx-fe2.pantheon.io","target_commit":"0469838289a1df4eba8e14a473eb22bb8f9c1aaa","target_ref":"refs\/heads\/master","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!dev","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":"dev","password":"dev","locked":true}},"csm":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1529687434,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"maintenance":{"enabled":false},"php_version":"72","randseed":"CAEVQX5P7O5OBPLMFTM4PDC6F6HXRIX6","styx_cluster":"styx-fe2.pantheon.io","target_commit":"8ba53a423676c32b05254b125bcf1910bbd5eb05","target_ref":"refs\/heads\/csm","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!csm","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"livewhale":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1529596863,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"php_version":"72","randseed":"VVN8TAHO5EW2NMSD16UJMT43J49AMPF8","styx_cluster":"styx-fe2.pantheon.io","target_commit":"99e835dfcf225f66b44db54a93bde1614687fb9e","target_ref":"refs\/heads\/livewhale","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!livewhale","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"test":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1528318693,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"php_version":"72","randseed":"NF2UR1S1KGS8ZEA3MWK4GV09XVNSTGYA","styx_cluster":"styx-fe3.pantheon.io","target_commit":"0469838289a1df4eba8e14a473eb22bb8f9c1aaa","target_ref":"refs\/tags\/pantheon_test_18","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!test","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":"test","password":"test","locked":true}},"jpatching":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1529447277,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"maintenance":{"enabled":false},"php_version":"72","randseed":"LQ2O9TIPPX04K7CGRWFB6IEZWC6W6YUN","styx_cluster":"styx-fe2.pantheon.io","target_commit":"11879ee9ebf376236b2b61403f310ee552797b0f","target_ref":"refs\/heads\/jpatching","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!jpatching","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"training":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1536161122,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"php_version":"72","randseed":"MAVOSP1RRUVQ10TSDXYXTBS81ECO1QCZ","styx_cluster":"styx-fe2.pantheon.io","target_commit":"306eebb24eb0ba88f7c0264359a067af7d5f7a28","target_ref":"refs\/heads\/training","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!training","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"live":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1528318694,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"maintenance":{"enabled":false},"php_version":"72","randseed":"ESNYZZZTFOH3OTDT22M1V0EYLAQW65ZY","styx_cluster":"styx-fe3.pantheon.io","target_commit":"0469838289a1df4eba8e14a473eb22bb8f9c1aaa","target_ref":"refs\/tags\/pantheon_live_18","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!live","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}},"arts":{"dns_zone":"pantheonsite.io","drush_version":8,"environment_created":1529687425,"environment_variables":{"DOCROOT":"web","drush_version":8,"php_version":7.2},"maintenance":{"enabled":false},"php_version":"72","randseed":"3C7CN0NEENCFK0TFE4XD7K194WGGWWD4","styx_cluster":"styx-fe2.pantheon.io","target_commit":"377001e7f9982f9f1557eab17c04007e40749f39","target_ref":"refs\/heads\/arts","key":"ba5ef322-5b49-43e9-876c-ff640080ffc1!arts","is_initialized":true,"styx_clusters_for_cache_clear":["edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-fe2.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"lock":{"username":null,"password":null,"locked":false}}}
Status Code: 200
[debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.9.0 (php_version=7.2.11&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/ba5ef322-5b49-43e9-876c-ff640080ffc1/environments/jpatching/workflows
Method: POST
Body: {"type":"import_database","params":{"url":"https:\/\/pantheon-backups.s3.amazonaws.com\/1fb30e38-f900-4372-93a7-6b93cbd2c911\/live\/1541459818_backup\/uc-news_live_2018-11-05T23-16-58_UTC_database.sql.gz?Signature=FOO&Expires=1541466502&AWSAccessKeyId=FOO"}}
[error] Client error: `POST https://terminus.pantheon.io/api/sites/ba5ef322-5b49-43e9-876c-ff640080ffc1/environments/jpatching/workflows` resulted in a `400 Bad Request` response:
"Bad params\n"
Steps to reproduce the behavior
Run the import:database
command above with a valid URL for a database backup from the Pantheon Dashboard.
terminus self:info output:
------------------------- --------------------------------------------------
PHP binary /usr/local/bin/php
PHP version 7.2.5
php.ini used /usr/local/etc/php/php.ini
Terminus project config
Terminus root dir /root/.composer/vendor/pantheon-systems/terminus
Terminus version 1.9.0
Operating system #1 SMP Wed Jun 6 16:55:56 UTC 2018
------------------------- --------------------------------------------------
Notes
Importing this same URL using the Pantheon Dashboard works as expected:
- Database/Files => Import
- Paste URL into "MySQL database" text box
- Click Import
Issue: Bug