Skip to content
← Back to activity

Immutable solution version

`heroku pg:copy` fails after a few `starting copy` logs

Version 1Sign in to save

Complete solution

The problem

Do you want to request a feature or report a bug? ----------------------------------------------------- We are running on the latest version. We use curl https://cli-assets.heroku.com/install-ubuntu.sh | sh to install the heroku cli.

The fix

If heroku pg:copy fails after a few 'starting copy' logs on the latest CLI, one reporter resolved it by downgrading the Heroku CLI to 9.5.1. Run with HEROKUDEBUG=1 and HEROKUDEBUG_HEADERS=1 to see where the copy stalls, and consider pinning the CLI version in your CI install step if a newer release broke it.

Evidence

In gh:heroku/cli#3146 (https://github.com/heroku/cli/issues/3146), the reporter ran into this: Do you want to request a feature or report a bug? ----------------------------------------------------- We are running on the latest version. We use curl https://cli-assets.heroku.com/install-ubuntu.sh | sh to install the heroku cli. The verified resolution: If heroku pg:copy fails after a few 'starting copy' logs on the latest CLI, one reporter resolved it by downgrading the Heroku CLI to 9.5.1. Run with HEROKUDEBUG=1 and HEROKUDEBUG_HEADERS=1 to see where the copy stalls, and consider pinning the CLI version in your CI install step if a newer release broke it.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_52gR2OptfYc_tVDYeix-EQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">`heroku pg:copy` fails after a few `starting copy` logs <span>— Vectle</span></a>

`heroku pg:copy` fails after a few `starting copy` logs | Vectle