cloud-gov / cg-migrate-db

Export database from cloud.gov app
Other
4 stars 6 forks source link

BUG: Python 3.5.4 causes CF BuildpackCompileFailed #27

Open csmcallister opened 5 years ago

csmcallister commented 5 years ago

Current Behavior

After finding a description of the plugin here and following this OSX installation instruction (cf install-plugin https://github.com/18F/cg-migrate-db/releases/download/v0.0.4/mac-cg-migrate-db), I created an S3 bucket using cf create-service s3 basic srt-pg-dev-backup.

Note I'm on OSX 10.14.5.

I then used cf export-data, interactively selecting my database service followed by the S3 service I created above. During the migration app's creation, I received a BuildpackCompileFailed error from cloudfoundry.

Steps to Reproduce

Here's everything from the shell session:

MCOH2J-X08CJHD3:~ charlessmcallister$ cf install-plugin https://github.com/18F/cg-migrate-db/releases/download/v0.0.4/mac-cg-migrate-db
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin https://github.com/18F/cg-migrate-db/releases/download/v0.0.4/mac-cg-migrate-db? [yN]: y
Starting download of plugin binary from URL...
 14.97 MiB / 14.97 MiB [============================================================================================================================] 100.00% 1s
Installing plugin cg-migrate-db...
OK

Plugin cg-migrate-db 0.0.4 successfully installed.
MCOH2J-X08CJHD3:~ charlessmcallister$ cf create-service s3 basic srt-pg-dev-backup
Creating service instance srt-pg-dev-backup in org gsa-ogp-srt / space dev as scott.mcallister@gsa.gov...
OK

MCOH2J-X08CJHD3:~ charlessmcallister$ cf export-data
#   | Name
0   | srt-postgres-backup-test
1   | srt-postgres-dev
2   | srt-postgres
Input the number for the database service you want to export
1
#   | Name
0   | srt-pg-dev-backup
1   | srt-postgres-backup
Input the number for the service you want to use to store the backup
0
Using manifest file /var/folders/2g/z92m_jjd7v9f6s0266mlj_mw0000gn/T/cg-migrate-db962219594/manifest.yml

Creating app export-db-BmWkdw67qvordEJ4 in org gsa-ogp-srt / space dev as scott.mcallister@gsa.gov...
OK

App export-db-BmWkdw67qvordEJ4 is a worker, skipping route creation
Uploading export-db-BmWkdw67qvordEJ4...
Uploading app files from: /private/var/folders/2g/z92m_jjd7v9f6s0266mlj_mw0000gn/T/cg-migrate-db962219594
Uploading 2.5K, 6 files
Done uploading               
OK
Binding service srt-postgres-dev to app export-db-BmWkdw67qvordEJ4 in org gsa-ogp-srt / space dev as scott.mcallister@gsa.gov...
OK
Binding service srt-pg-dev-backup to app export-db-BmWkdw67qvordEJ4 in org gsa-ogp-srt / space dev as scott.mcallister@gsa.gov...
OK

Starting app export-db-BmWkdw67qvordEJ4 in org gsa-ogp-srt / space dev as scott.mcallister@gsa.gov...
Downloading r_buildpack...
Downloading nodejs_buildpack...
Downloading java_buildpack...
Downloading php_buildpack...
Downloading go_buildpack...
Downloaded java_buildpack
Downloading python_buildpack...
Downloaded php_buildpack (300.7K)
Downloading ruby_buildpack...
Downloaded ruby_buildpack
Downloading binary_buildpack...
Downloaded r_buildpack (4.4M)
Downloading nginx_buildpack...
Downloaded nodejs_buildpack (4.6M)
Downloading staticfile_buildpack...
Downloaded python_buildpack (4.5M)
Downloading dotnet_core_buildpack...
Downloaded go_buildpack (4.5M)
Downloaded dotnet_core_buildpack (4.8M)
Downloaded binary_buildpack (8.2M)
Downloaded staticfile_buildpack (5M)
Downloaded nginx_buildpack (7.5M)
Cell 6d95d13f-dc29-4fcc-b9fd-58d935fcd8ab creating container for instance 114faf33-cc31-4e9e-b4dc-71e7ab4a0412
Cell 6d95d13f-dc29-4fcc-b9fd-58d935fcd8ab successfully created container for instance 114faf33-cc31-4e9e-b4dc-71e7ab4a0412
Downloading app package...
Downloaded app package (1M)
-----> Python Buildpack version 1.6.32
       **WARNING** [DEPRECATION WARNING]:
       **WARNING** Please use AppDynamics extension buildpack for Python Application instrumentation
       **WARNING** for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html
-----> Supplying Python
       **ERROR** Could not install python: no match found for 3.5.4 in [2.7.15 2.7.16 3.4.9 3.4.10 3.5.6 3.5.7 3.6.7 3.6.8 3.7.2 3.7.3]
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
Cell 6d95d13f-dc29-4fcc-b9fd-58d935fcd8ab stopping instance 114faf33-cc31-4e9e-b4dc-71e7ab4a0412
Cell 6d95d13f-dc29-4fcc-b9fd-58d935fcd8ab destroying container for instance 114faf33-cc31-4e9e-b4dc-71e7ab4a0412
Cell 6d95d13f-dc29-4fcc-b9fd-58d935fcd8ab successfully destroyed container for instance 114faf33-cc31-4e9e-b4dc-71e7ab4a0412

Error restarting application: BuildpackCompileFailed

TIP: use 'cf logs export-db-BmWkdw67qvordEJ4 --recent' for more information

There were no additional messages fromcf logs export-db-BmWkdw67qvordEJ4 --recent.

Possible Solution

Perhaps update the Python runtime here.

siennathesane commented 5 years ago

@csmcallister sorry, just saw this! I will make sure it gets looked at here soon.

chriseldredge-usds commented 4 years ago

This is still broken and seems trivial to fix. Unfortunately I'm not able to build this project (having trouble installing dependencies with Glide). Any chance this can get prioritized soon?

siennathesane commented 4 years ago

I will take a quick look at this right now.

siennathesane commented 4 years ago

@chriseldredge-usds check #31 for the update. That will at least help it start to be able to get fixed.