Permission Errors Freeze CLI

Abierto
#395 6 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
powershell, python
Área
cli, cloud

Línea de trabajo

Reproduce by running b2 sync from PowerShell on a local folder that contains a subfolder the user cannot read, such as AppData. The payload names only the command and a screenshot of the error, not the source files, so start by finding where the sync walks local directories and handles permission errors. Done means the sync reports the unreadable path and either skips it or exits, instead of freezing until the terminal is closed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hello,

I was directed here by BackBlaze Support to try to get some help with an issue we're having. We are trying to run a simple sync between the local PC and B2 Cloud using Windows command line or Powershell (issue occurring in both). Any time the our sync hits a file/folder that it does not have proper permission to, the CLI will freeze and not allow us to cancel the active command unless we close/reopen the CLI.

Here's what we have:
-Windows 10 64bit
-Python 3.6.3
-BackBlaze B2 Cloud

Here are the commands we're trying to run:

b2 authorize-account <account number> <key>
This works successfully.
b2 sync --keepDays 60 --replaceNewer "C:\Users\ncarlson\" "b2://BUCKET/ncarlson/"
As soon as the the sync hits a folder that it doesn't have perission to (usually the AppData folder since that's the first folder it attempts), it will give me a permission error and not continue.

We have tried some other more specific folders which have worked just fine but a lot of folders contain 1 or more files which the Sync tool doesn't like.

I've attached a screenshot of the errors we receive. Please let me know if you need any additional information.

powershell_ise_2017-12-07_08-37-49

Lenguaje dominante
Python
Estrellas
638
Forks
138
Merge medio
8 h 27 min
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Backblaze/B2_Command_Line_Tool

Todos los issues de Backblaze/B2_Command_Line_Tool

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.