iwestlin / gd-utils Goto Github PK
View Code? Open in Web Editor NEWGoogle Drive 百宝箱
Google Drive 百宝箱
没有vps,我看autorclone和gclone都是colab上的,colab网速快,谷歌服务器,能不能做个colab可用的
报错如下:
复制文件夹出错 ErrorWithCode: private_key and client_email are required.
at GoogleToken.getCredentials (/home/Jobin/gd-utils/node_modules/gtoken/build/src/index.js:94:27)
at async GoogleToken.getTokenAsync (/home/Jobin/gd-utils/node_modules/gtoken/build/src/index.js:128:27) {
code: 'MISSING_CREDENTIALS'
}
任务一直卡在0 很久很久
完成时间:未完成
目录进度:0/未知数量
文件进度:0/未知数量
总大小:未知大小
报错:
0|server | }
0|server | TypeError: process.stdout.cursorTo is not a function
0|server | at print_progress (/root/gd-utils/src/gd.js:705:18)
0|server | at Timeout._onTimeout (/root/gd-utils/src/gd.js:158:5)
0|server | at listOnTimeout (internal/timers.js:531:17)
0|server | at processTimers (internal/timers.js:475:7)
大佬,执行node check.js后报错如下,这是啥原因啊。。。
Error: connect EINVAL 0.0.30.210:80 - Local (0.0.0.0:0)
at internalConnect (net.js:923:16)
at defaultTriggerAsyncIdScope (internal/async_hooks.js:313:12)
at GetAddrInfoReqWrap.emitLookup [as callback] (net.js:1063:9)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:68:8) {
errno: 'EINVAL',
code: 'EINVAL',
syscall: 'connect',
address: '0.0.30.210',
port: 80,
config: {
url: 'https://www.googleapis.com/oauth2/v4/token',
method: 'post',
data: 'client_id=省略&client_secret=省略&refresh_token=省略&grant_type=refresh_token',
headers: {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'axios/1.0.0',
'Content-Length': 268
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
测试了一下我1G1H小鸡,数据库文件到40M,就很卡了,和刚开始对比速度下降很多
copy 不会覆盖原来已经存在的同名文件夹吗?必须全量copy吗?
下面的错误是什么原因,目的盘超限了?
源和目的的SA权限都检查通过了
复制文件失败,文件id: 1Q5X6LhLQV8MSaQZJWv-Jd-uq3-Ddzn-f
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
复制文件失败,文件id: 1b5bvb0lt4E33pZFAoZZ7YxQFjU8Irt1-
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has been exceeded."}],"code":403,"message":"The file limit for this shared drive has been exceeded."}}
{"error":{"errors":[{"domain":"global","reason":"teamDriveFileLimitExceeded","message":"The file limit for this shared drive has
使用 ./copy 团队盘ID 团队盘ID -S
整体复制团队盘出现任务卡死,打开pm2 log查看日志 日志不断重复显示相同的任务执行状态,但是文件夹,文件数值没有发生任何变化 ,打开团队盘,发现只有文件夹被创建,但是文件没有被复制,同样的操作使用gclone可以正常执行复制操作。
源文件夹 1gHLzyYOXo0NRDLqAK75Z_vdslSuL6Bzz 统计文件夹241
拷贝完之后使用count统计文件夹242
有的时候一个任务卡了几小时也不动,有没有取消任务的命令
在服务器上能用命令行操作,但是tg机器人发 /help无反应
api token和username检查过没有错误
是可能在哪一步出错
运行npm i
npm WARN [email protected] No repository field.
added 185 packages from 96 contributors and audited 188 packages in 4.789s
5 packages are looking for funding
run
npm fund for details
found 0 vulnerabilities
运行node check.js -S
Error: Request failed with status code 401
at createError (/content/gd-utils/node_modules/@viegg/axios/lib/core/createError.js:16:15)
at settle (/content/gd-utils/node_modules/@viegg/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/content/gd-utils/node_modules/@viegg/axios/lib/adapters/http.js:183:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1221:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
拷贝文件夹的时候 不拷贝文件夹内的目录
如题 测试的时候 返回Unexpected end of JSON input。 检查N遍config.js 和 server.js 没改动啥地方 就添加了说明里那些 和换了server 端口去80.
请问这个是什么错误
哪里可以看日志吗
ient network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | Client network socket disconnected before secure TLS connection was established
0|server | 12:25:51 | 已复制文件数 610 | 网络请求 进行中100/排队103359
想问下是否支持从团队盘到另一个团队盘
ps. 两个团队盘里都有相同的sa
是否可以配置成自动重试,直到所有文件复制成功。
增加一个 -M 选项,增加一个文件夹ma, 如果选择这个选项,则使用ma目录下主用帐户授权json文件自动切换进行复制。
增加shell 接口
api授权密码,是不是所有人都可以API直接调用?
一直在用rclone的mount功能,但效率较低。gd-utils将文件列入数据库中,多sa并发,能否提高挂载效率
大佬你好,请问这个程序只能在服务器环境下运行吗? 我在windows 10 PowerShell下输入copy -h 命令,显示
Copy-Item : A parameter cannot be found that matches parameter name 'h'.
At line:1 char:6
~~
执行 倒数第二步 curl 'YOUR_WEBSITE_URL/api/gdurl/count?fid=124pjM5LggSuwI1n40bcD5tQ13wS0M6wg' 后,出现以下提示,并没有对文件进行统计,请问什么原因?
<!doctype html><title></title><script src="https://www.google.com/adsense/domains/caf.js" type="text/javascript"></script><style>#content-main{display:none}</style>
help成功了,然后copy返回401可能是什么原因呢。
可以建一个tg群交流吗
如题
源文件夹为 1gHLzyYOXo0NRDLqAK75Z_vdslSuL6Bzz
config.js中的默认盘
Drive
云端硬盘
的文件夹,但同样有问题1,文件全部在根文件内。Drive
文件夹。有相同源ID和目的ID的任务已复制完成,如需重新复制请更换目的地
rclone的删除命令无法删除文件夹。
如果我开始一个任务,发现目录数和文件数不全,怎么重新开始任务
gd-utils/copy
的 -n
, 可以类比于 AutoRclone 的 -dp
, 都是设置目标文件夹名称。
但不同的是, 当 gd-utils/copy
未指定 -n
时, 默认用源文件夹本名, 而当 AutoRclone 未指定 -dp
时, 默认不套那一层母文件夹
缺失 "目的地少套一层母文件夹" 功能会造成一些困难, 比如,
从 "团队盘 A" 同步到 " 团队盘 B",
期望的结果是 "团队盘 A/文件夹 A" ==> "团队盘 B/文件夹 A",
但实际效果为 "团队盘 A/文件夹 A" ==> "团队盘 B/Drive/文件夹 A"
按照现有的拷贝逻辑, 结果应该是 "团队盘 B/团队盘 A/文件夹 A" , 但实际上, "Drive" 确实是程序取得的 "团队盘 A" 根目录名字, 这到是另外一个问题了。
希望 gd-utils/copy
可以实现 "团队盘 A/文件夹 A" ==> "团队盘 B/文件夹 A" 这样的效果
(我是命令行用户, 暂未尝试 bot)
执行node check.js的时候返回
[]
执行node check.js -S也一样返回
[]
config.js内的const DEFAULT_TARGET,client_id,client_secret,refresh_token都正确填写的
执行 node check.js 出现很长一段代码,最后一段如下,求问哪里出了问题?
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: { error: 'invalid_grant', error_description: 'Bad Request' }
},
isAxiosError: true,
toJSON: [Function]
您好,我的vps上已经部署了Trojan,做了伪装站点,如果我想安装百宝箱,我看您的介绍说百宝箱也需要起一个web服务,会和Trojan的伪装站点冲突吗?如果可能会的话我需要怎么办,麻烦具体介绍一下
大大您好
请教专家设置中的const ROUTER_PASSKEY = 'your-custom-passkey',
要如何查询并获取passkey呢?
非常感谢
输入curl '我的ip/api/gdurl/count?fid=124pjM5LggSuwI1n40bcD5tQ13wS0M6wg' 返回了下面的内容
<title>502 Bad Gateway</title>
这里说可以用sa传到个人盘,但是我执行
./copy 1gHLzyYOXo0NRDLqAK75Z_vdslSuL6Bzz -S
到个人盘时会提示错误,
{"error":{"errors":[{"domain":"global","reason":"notFound","message":"File not found: 1zinYLW3anjVUe25aPtyrYL1SnYcwXUCQ.","locationType":"parameter","location":"fileId"}],"code":404,"message":"File not found: 1zinYLW3anjVUe25aPtyrYL1SnYcwXUCQ."}} 创建目录重试中: 物语系列 重试次数: 7 复制文件夹出错 Error: 创建目录失败,请检查您的帐号是否有相应的权限
如何操作可用sa传递到个人盘
检查了有效的sa,但是出现以下错误
0|server | {"error":{"errors":[{"domain":"global","reason":"storageQuotaExceeded","message":"The user's Drive storage quota has been exceeded."}],"code":403,"message":"The user's Drive storage quota has been exceeded."}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.