`harbor publish` fails with 546 WORKER_RESOURCE_LIMIT for tasks over ~100 MB (0.27.0)

Open
#4,565 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
cli, cloud

Research direction

Start by reading the API managed transfer changes in pull request #4209 and trace the harbor publish upload flow. Reproduce with a downloaded task package larger than about 100 MB and inspect where the upload completes before the 546 WORKER_RESOURCE_LIMIT response. Done means large packages publish successfully, or the intended size limit is documented and checked before upload.

Written by the indexing model from the issue text.

Description

What happened

I'm moving tasks from one of our Hub organizations to another. I download them with harbor download and re-publish them with harbor publish. With harbor 0.27.0, publishing fails for tasks larger than about 100 MB. The upload seems to finish, and then the command fails with:
WORKER_RESOURCE_LIMIT response at the end of the upload.

Smaller tasks publish without problems.

Steps to reproduce
  1. harbor download "<org>/<task>" for a task whose package is larger than ~100 MB
  2. harbor publish "<path/to/task>"
Environment
  • harbor 0.27.0
What I noticed

546 WORKER_RESOURCE_LIMIT is the Supabase Edge Functions error for running out of CPU or memory. So this looks like the server running out of resources while it finishes the upload, not a configured size limit. 0.27.0 moved publishing to API-managed transfers (#4209).

Questions
  1. Is there an intended size limit for task packages? If so, could it be documented and checked before the upload starts?
  2. Will 0.26.0 keep working with the Hub, or should we expect older CLI versions to stop working after the API migration?
Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.