Permission Errors Freeze CLI

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
powershell, python
領域
cli, cloud

調査の方向性

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.

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

説明

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

主要言語
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 を短くまとめたダイジェスト。