Backup error

Aperta
#505 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
638
Fork
138
Merge medio
8h 27m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Backblaze/B2_Command_Line_Tool

Tutte le issue di Backblaze/B2_Command_Line_Tool

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.