Closed hu-qi closed 3 years ago
curl -fsSL https://x.deno.js.cn/install.sh这里在云端拉取有问题
后端在查了
curl -fsSL https://x.deno.js.cn/install.sh这里在云端拉取有问题
后端在查了
是的 之前提示 403
Step 4/14 : RUN curl -fsSL https://x.deno.js.cn/install.sh | sh
---> Running in df11b9868b9a
[91m#=#=#
curl: (22) The requested URL returned error: 403
[0mThe command '/bin/sh -c curl -fsSL https://x.deno.js.cn/install.sh | sh' returned a non-zero code: 22
![Uploading image.png…]()
这是因为 deno 镜像超过 20 M 的限制了吗?之前听说 jsdelivr 的限制是 20 M
应该是同一个问题
应该是同一个问题
目前本地安装 Deno 是正常的
gpdi@Mac-mini gpdi-admin % curl -fsSL https://x.deno.js.cn/install.sh | sh
######################################################################## 100.0%
Archive: /Users/gpdi/.deno/bin/deno.zip
inflating: /Users/gpdi/.deno/bin/deno
Deno 已经成功安装
可执行文件位置为 /Users/gpdi/.deno/bin/deno
运行 'deno --help' 查看 Deno 帮助信息
gpdi@Mac-mini gpdi-admin %
gpdi@Mac-mini gpdi-admin % deno -V
deno 1.7.0
gpdi@Mac-mini gpdi-admin %
在 deno 社区没有修复之前,可以在配置文件中指定 deno runtime 为 1.6.3
{
"version": "2.0",
"envId": "{{envId}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"framework": {
"name": "deno-app",
"plugins": {
"deno": {
"use": "@cloudbase/framework-plugin-deno",
"inputs": {
"dockerImage": "debian:latest",
"runtime": "1.6.3"
}
}
}
}
}
可以了,感谢!
好像又有了新的问题:
CloudBase Framework info Version v1.6.15
CloudBase Framework info Github: https://github.com/Tencent/cloudbase-framework
CloudBase Framework info EnvId deno-demo-3ghgaf7pa8d97b90
CloudBase Framework info Validate config file success.
CloudBase Framework info AppName deno-app
CloudBase Framework info 📦 install plugins
CloudBase Framework info callHooks 'preDeploy'
CloudBase Framework info 🔧 init: deno...
CloudBase Framework info 🔨 build: deno...
CloudBase Framework error Cannot read property 'reduce' of null
CloudBase Framework info 部署日志: '/Users/gpdi/cloudbase-framework/logs/2021-01-29_16-31-45.log'
@hu-qi 部署日志看看呢
@hu-qi 部署日志看看呢
Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 4.7 CloudBase Framework::info Version [32mv1.6.15[39m Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 4.7 CloudBase Framework::info Github: [1m[4m[36mhttps://github.com/Tencent/cloudbase-framework[39m[24m[22m
Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 4.7 CloudBase Framework::info EnvId [32mdeno-demo-3ghgaf7pa8d97b90[39m Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 4.7 CloudBase Framework::debug 本地构建,本地存在配置文件 { functionRoot: './functions', functions: [], envId: 'deno-demo-3ghgaf7pa8d97b90', version: '2.0', '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', region: 'ap-shanghai', framework: { name: 'versailles', plugins: { deno: { use: '@cloudbase/framework-plugin-deno', inputs: { dockerImage: 'debian:latest' } } } } } Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::debug 远程不存在同名项目,新建项目 Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::debug 项目配置信息 'rcConfig' { functionRoot: './functions', functions: [], envId: 'deno-demo-3ghgaf7pa8d97b90', version: '2.0', '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', region: 'ap-shanghai', framework: { name: 'versailles', plugins: { deno: { use: '@cloudbase/framework-plugin-deno', inputs: { dockerImage: 'debian:latest' } } } } } 'extraData' {} 'projectName' 'versailles' Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::debug RC 配置文件变更 false { functionRoot: './functions', functions: [], envId: 'deno-demo-3ghgaf7pa8d97b90', version: '2.0', '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', region: 'ap-shanghai', framework: { name: 'versailles', plugins: { deno: { use: '@cloudbase/framework-plugin-deno', inputs: { dockerImage: 'debian:latest' } } } } } Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::debug Framework 配置文件变更 false { name: 'versailles', plugins: { deno: { use: '@cloudbase/framework-plugin-deno', inputs: { dockerImage: 'debian:latest' } } } } Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::info Validate config file success. Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::info AppName [32mversailles[39m Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.0 CloudBase Framework::debug appConfig { name: 'versailles', plugins: { deno: { use: '@cloudbase/framework-plugin-deno', inputs: { dockerImage: 'debian:latest' } } } } Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.2 CloudBase Framework::info 📦 install plugins Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.2 CloudBase Framework::debug initHooks {} Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.2 CloudBase Framework::debug resolve plugin @cloudbase/framework-plugin-deno@1.6.15: use 0.00 s, mismatch:false, resolved version:1.6.15 Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.2 CloudBase Framework::debug deploy '' '' Fri Jan 29 2021 16:45:27 GMT+0800 (China Standard Time) 5.2 CloudBase Framework::info callHooks 'preDeploy' Fri Jan 29 2021 16:45:29 GMT+0800 (China Standard Time) 6.8 CloudBase Framework::info 🔧 init: deno... Fri Jan 29 2021 16:45:29 GMT+0800 (China Standard Time) 6.8 CloudBase Framework::debug DenoPlugin: init { dockerImage: 'debian:latest', runtime: 'latest', denonVersion: '', entry: '', autoBuild: true, serviceName: 'deno-app', servicePath: '/deno-app', projectPath: '.' } Fri Jan 29 2021 16:45:29 GMT+0800 (China Standard Time) 6.8 CloudBase Framework::info 🔨 build: deno... Fri Jan 29 2021 16:45:29 GMT+0800 (China Standard Time) 6.8 CloudBase Framework::debug DenoPlugin: build { dockerImage: 'debian:latest', runtime: 'latest', denonVersion: '', entry: '', autoBuild: true, serviceName: 'deno-app', servicePath: '/deno-app', projectPath: '.' } Fri Jan 29 2021 16:45:29 GMT+0800 (China Standard Time) 6.9 CloudBase Framework::debug ContainerPlugin: init { dockerImage: 'debian:latest', runtime: 'latest', denonVersion: '', entry: '', autoBuild: true, serviceName: 'deno-app', servicePath: '/deno-app', projectPath: '.', localAbsolutePath: '/Users/gpdi/cloudbase-framework/builds/cloudbase-deno-build-1611909929364/deno-app' } Fri Jan 29 2021 16:45:30 GMT+0800 (China Standard Time) 8.0 CloudBase Framework::debug Container Plugin Inputs 'cloud' { cpu: 1, mem: 1, maxNum: 10, minNum: 1 } 'mode' {} Fri Jan 29 2021 16:45:30 GMT+0800 (China Standard Time) 8.0 CloudBase Framework::debug ContainerPlugin: build { uploadType: 'package', description: '基于云开发 CloudBase Framework 部署的云托管', isPublic: true, flowRatio: 100, cpu: 1, mem: 1, minNum: 1, maxNum: 10, policyType: 'cpu', policyThreshold: 60, containerPort: 80, dockerfilePath: './Dockerfile', buildDir: './', version: '1.0.0', localPath: './', envVariables: {}, dockerImage: 'debian:latest', runtime: 'latest', denonVersion: '', entry: '', autoBuild: true, serviceName: 'deno-app', servicePath: '/deno-app', projectPath: '.', localAbsolutePath: '/Users/gpdi/cloudbase-framework/builds/cloudbase-deno-build-1611909929364/deno-app' } Fri Jan 29 2021 16:45:31 GMT+0800 (China Standard Time) 8.7 CloudBase Framework::debug describeCloudBaseBuildService { DownloadHeaders: null, DownloadUrl: '', PackageName: 'deno-app.zip', PackageVersion: '1611909931', RequestId: '25c9166d-9280-436d-bbbe-d6cac3a0f2ab', UploadHeaders: null, UploadUrl: 'https://cloudaccess-run-1258016615.cos.ap-shanghai.myqcloud.com/home%2F922d0822225540ed9db967c5ef2bb198%2Fdeno-demo-3ghgaf7pa8d97b90-deno-app_1611909931_mgtM4vmG.zip?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDYqreAvj0McQ8bplDBtRUJcfwwlL299NL%26q-sign-time%3D1611909931%3B1612514731%26q-key-time%3D1611909931%3B1612514731%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D60c6b9b535c70290fe089995fb16f887257f445f' } 'deno-app' '/Users/gpdi/cloudbase-framework/builds/cloudbase-container-build-1611909929473/deno-app.zip' Fri Jan 29 2021 16:45:31 GMT+0800 (China Standard Time) 8.7 CloudBase Framework::error Cannot read property 'reduce' of null Fri Jan 29 2021 16:45:31 GMT+0800 (China Standard Time) 8.7 CloudBase Framework::info 部署日志: '/Users/gpdi/cloudbase-framework/logs/2021-01-29_16-45-22.log'
昨天后端服务有发布导致,回滚了
Bug 描述 Describe the bug Deno 的案例部署失败。
请简单清晰地描述您遇到的bug。 A clear and concise description of what the bug is. 我通过
tcb new deno deno
通过模板新建一个 deno 项目, 然后执行tcb framework deploy
进行一键部署就失败!重现步骤 To Reproduce
重现 bug 的步骤:
预期的行为 Expected behavior 部署成功
截图 Screenshots
错误日志 Debug LOG
其他上下文信息 Additional context
之前咨询过技术工单,反馈是网络的问题,感觉不太像!