B2 CLI Hanging and Not Completing
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
- #548 de @ppolewicz — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
Línea de trabajo
The hang is in the b2 sync upload path, where b2sdk's retry logic in b2http.py keeps backing off on 503 vault cannot start new uploads responses and the upload URL pool in upload_url_pool is involved. Start by reproducing with a forced 503 on b2_upload_file and checking whether the retry loop has a cap or timeout. Done would mean sync fails or completes after a bounded number of retries. The only linked pull request was closed without merging, and the maintainers have not settled the expected behaviour, so confirm scope with them before writing code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
We have a report from a customer that the b2 sync command is hanging and not completing. This is causing lots of issues with the user's ability to keep their project websites updated.
This is the current error they are seeing:
This is the current error I am seeing, literally occurred just now (5ish minutes ago). A couple of files uploaded, and then this error. As mentioned above, the “pause” keeps incrementing, but it just increments and increments and never resolves — seemingly hung forever.
b2sdk._internal.exception.ServiceError: 503 service_unavailable vault cannot start new uploads
INFO:b2sdk._internal.b2http:Pausing thread for 17 seconds because that is what the default exponential backoff is
DEBUG:urllib3.connectionpool:Resetting dropped connection: [pod-000-1133-02.backblaze.com](http://pod-000-1133-02.backblaze.com/)
They were able to get debug logs:
DEBUG:b2sdk._internal.exception:calling interpret_b2_error(status=503, code='service_unavailable', message='vault cannot start new uploads', response_headers={'Server': 'nginx', 'Date': 'Tue, 07 Oct 2025 18:06:11 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Content-Length': '99', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Strict-Transport-Security': 'max-age=63072000'}, post_params=None)
DEBUG:b2sdk._internal.b2http:503 service_unavailable vault cannot start new uploads
Traceback (most recent call last):
File "/opt/homebrew/Cellar/b2-tools/4.4.2/libexec/lib/python3.13/site-packages/b2sdk/_internal/b2http.py", line 597, in _translate_and_retry
return cls._translate_errors(fcn, post_params)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/b2-tools/4.4.2/libexec/lib/python3.13/site-packages/b2sdk/_internal/b2http.py", line 525, in _translate_errors
raise interpret_b2_error(
...<5 lines>...
)
b2sdk._internal.exception.ServiceError: 503 service_unavailable vault cannot start new uploads
INFO:b2sdk._internal.b2http:Pausing thread for 3 seconds because that is what the default exponential backoff is
DEBUG:urllib3.connectionpool:Resetting dropped connection: [pod-000-1121-05.backblaze.com](http://pod-000-1121-05.backblaze.com/)
DEBUG:urllib3.connectionpool:[https://pod-000-1162-08.backblaze.com:443](https://pod-000-1162-08.backblaze.com/) "POST /b2api/v4/b2_upload_file/21e799824398e2af83430a16/c002_v0001162_t0059 HTTP/1.1" 200 780
DEBUG:b2sdk._internal.account_info.upload_url_pool:calling UrlPoolAccountInfo.put_bucket_upload_url(self=<b2sdk._internal.account_info.sqlite_account_info.SqliteAccountInfo object at 0x103d1c980>, bucket_id='21e799824398e2af83430a16') (hidden args: upload_url, upload_auth_token)
upload
DEBUG:urllib3.connectionpool:[https://pod-000-1121-05.backblaze.com:443](https://pod-000-1121-05.backblaze.com/) "POST /b2api/v4/b2_upload_file/" 503 106
DEBUG:b2sdk._internal.exception:calling interpret_b2_error(status=503, code='service_unavailable', message='connection interrupted, retry request', response_headers={'Server': 'nginx', 'Date': 'Tue, 07 Oct 2025 18:06:12 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Content-Length': '106', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Strict-Transport-Security': 'max-age=63072000'}, post_params=None)
DEBUG:b2sdk._internal.b2http:503 service_unavailable connection interrupted, retry request
Traceback (most recent call last):
File "/opt/homebrew/Cellar/b2-tools/4.4.2/libexec/lib/python3.13/site-packages/b2sdk/_internal/b2http.py", line 597, in _translate_and_retry
return cls._translate_errors(fcn, post_params)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/b2-tools/4.4.2/libexec/lib/python3.13/site-packages/b2sdk/_internal/b2http.py", line 525, in _translate_errors
raise interpret_b2_error(
...<5 lines>...
)
b2sdk._internal.exception.ServiceError: 503 service_unavailable vault cannot start new uploads
INFO:b2sdk._internal.b2http:Pausing thread for 64 seconds because that is what the default exponential backoff is
- Lenguaje dominante
- Python
- Estrellas
- 638
- Forks
- 138
- Merge medio
- 8 h 27 min
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Backblaze/B2_Command_Line_Tool
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Backblaze/B2_Command_Line_Tool#553 · 2 comentarios · 3 reacciones ·
Los mantenedores suelen responder en 1 día
-
Adopt the AI-native SDLC playbook and repository policiesPosiblemente ocupada @goanpeca la tomó hace 18 días. Abiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Backblaze/B2_Command_Line_Tool#1192 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Backblaze/B2_Command_Line_Tool#1168 ·
Los mantenedores suelen responder en 1 día
-
Add to MacPortsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
Backblaze/B2_Command_Line_Tool#1161 ·
Los mantenedores suelen responder en 1 día
-
b2 ls timestamps human readableAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 56/100
Backblaze/B2_Command_Line_Tool#1155 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Backblaze/B2_Command_Line_Tool
Issues similares
-
ライブラリを追加Abiertopriority middle
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
KATO-Hiro/AtCoderClans#13015 ·
Los mantenedores suelen responder en 1 día
-
StringLiteral to IntegerType/LongType silently truncates fractional strings, changing predicate meaningPosiblemente ocupada @Shahzeb-DataEngineer la tomó hoy. Abiertokind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apache/iceberg-python#4382 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
request-theme
Dificultad 2/5 Menos de una hora Aptitud para principiantes 62/100
LizardByte/ThemerrDB#10024 · 2 comentarios ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
btclib-org/btclib-node#2505 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
open-webui/open-webui#34462 · 1 comentario ·
Los mantenedores suelen responder en 1 día