Backup error

オープン
#505 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

The traceback points to validate_b2_file_name in b2/utils.py, called from the upload path in b2/bucket.py and from the sync action in b2/sync/action.py. Start by reading how the sync code builds the remote file name and what happens when validation raises. The issue does not say whether the file should be skipped, renamed, or reported differently, so confirm the intended behaviour with a maintainer first. Done means a sync with an over-long path segment completes or reports a clear error, and a test covers it.

索引モデルが issue の本文から書いたものです。

説明

I get this error when I run a sync backup and I am not too sure of how to correct it

ERROR:b2.sync.action:an exception occurred in a sync actions 0 B 0 B/s
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/b2/sync/action.py", line 42, in run
self.do_action(bucket, reporter)
File "/usr/local/lib/python2.7/dist-packages/b2/sync/action.py", line 84, in do_action
progress_listener=SyncFileReporter(reporter)
File "/usr/local/lib/python2.7/dist-packages/logfury/v0_1/trace_call.py", line 84, in wrapper
return function(*wrapee_args, **wrapee_kwargs)
File "/usr/local/lib/python2.7/dist-packages/b2/bucket.py", line 373, in upload
validate_b2_file_name(file_name)
File "/usr/local/lib/python2.7/dist-packages/b2/utils.py", line 166, in validate_b2_file_name
raise ValueError("file names segments (between '/') can be at most 250 utf-8 bytes")
ValueError: file names segments (between '/') can be at most 250 utf-8 bytes
upload Personal/Emerald/MarkTMarinoMDChecklist.doc
ERROR:b2.console_tool:ConsoleTool command error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/b2/console_tool.py", line 1074, in run_command
return command.run(args)
File "/usr/local/lib/python2.7/dist-packages/b2/console_tool.py", line 857, in run
allow_empty_source=allow_empty_source
File "/usr/local/lib/python2.7/dist-packages/logfury/v0_1/trace_call.py", line 84, in wrapper
return function(*wrapee_args, **wrapee_kwargs)
File "/usr/local/lib/python2.7/dist-packages/b2/sync/sync.py", line 273, in sync_folders
raise CommandError('sync is incomplete')
CommandError: sync is incomplete
ERROR: sync is incomplete

主要言語
Python
スター
638
フォーク
138
平均マージ
8時間 27分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Backblaze/B2_Command_Line_Tool のほかの issue

Backblaze/B2_Command_Line_Tool の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。