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

divio project pull db should resume downloads instead of failing. #231

Open
stuaxo opened this issue Aug 29, 2019 · 0 comments
Open

divio project pull db should resume downloads instead of failing. #231

stuaxo opened this issue Aug 29, 2019 · 0 comments

Comments

@stuaxo
Copy link

stuaxo commented Aug 29, 2019

When the network at work is flakey divio project pull db will download a partial file.

It then fails with input file is too short.

It would be better if it could retry retry and resume downloading instead of failing like this.

It's annoying as when the proxy at work decides it's going to do this, I can't really do anything all day, and being ${BIG_CORPORATION} pinning down the error at this end is unlikely.

Here is an example, it downloads about 109k of the 202k it should do and then fails.

$ divio project pull db
 ===> Pulling database from global-component-library test server
 ---> Preparing download [4s]
 ---> Downloading database [0s]
 ---> Starting local database server
      Found orphan containers (global-component-library_rabbitmq_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
global-component-library_db_1 is up-to-date
      [0s]
 ---> Waiting for local database server [5s]
 ---> Removing local database [0s]
 ---> Importing database
      Enabling extension: hstore
tar: can't open '/app/data.tar.gz': No such file or directory
pg_restore: [archiver] input file is too short (read 0, expected 5)

      [2s]
Done [20s]
@stuaxo stuaxo changed the title divio project pull db can't handle a flakey network divio project pull db should resume downloads instead of failing. Aug 29, 2019
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

1 participant