Permission Errors Freeze CLI

未关闭
#395 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Backblaze/B2_Command_Line_Tool 的其他 Issue

查看 Backblaze/B2_Command_Line_Tool 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。