微信云托管官网
[图片]
部署在云托管上的服务端,无论返回什么错误,都被云托管统一封装成500的internal server error了,response里有两个值,一个是errCode永远是-1; 一个是errMsg,包含了服务端的返回的错误码,但是返回的错误信息被丢弃, 被替换成固定的错误信息,无法利用。 有什么方法可以正常获取服务端返回的错误信息呢?如果没有那云托管是不是应该优化一下这个问题? [图片] [图片]
[2024-05-06 17:09:19] Started by user coding [2024-05-06 17:09:19] Running in Durability level: MAX_SURVIVABILITY [2024-05-06 17:09:20] [Pipeline] Start of Pipeline [2024-05-06 17:09:20] [Pipeline] node [2024-05-06 17:09:20] Running on Jenkins in /root/workspace [2024-05-06 17:09:20] [Pipeline] { [2024-05-06 17:09:21] [Pipeline] stage [2024-05-06 17:09:21] [Pipeline] { (检出 ZIP 包) [2024-05-06 17:09:21] Stage "检出 ZIP 包" skipped due to when conditional [2024-05-06 17:09:21] [Pipeline] } [2024-05-06 17:09:21] [Pipeline] // stage [2024-05-06 17:09:21] [Pipeline] stage [2024-05-06 17:09:21] [Pipeline] { (检出代码仓库) [2024-05-06 17:09:21] [Pipeline] sh [2024-05-06 17:09:21] + git clone ****** . [2024-05-06 17:09:21] Cloning into '.'... [2024-05-06 17:09:28] [Pipeline] sh [2024-05-06 17:09:28] + git checkout master [2024-05-06 17:09:28] Already on 'master' [2024-05-06 17:09:28] Your branch is up-to-date with 'origin/master'. [2024-05-06 17:09:28] [Pipeline] } [2024-05-06 17:09:29] [Pipeline] // stage [2024-05-06 17:09:29] [Pipeline] stage [2024-05-06 17:09:29] [Pipeline] { (构建 Docker 镜像) [2024-05-06 17:09:29] [Pipeline] sh [2024-05-06 17:09:29] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-ckun/ca-yomkpfjm_dotnet-u7ti:dotnet-u7ti-002-20240506170913 [2024-05-06 17:09:29] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2024-05-06 17:09:29] WARNING! Your password will be stored unencrypted in /root/.docker/config.json. [2024-05-06 17:09:29] Configure a credential helper to remove this warning. See [2024-05-06 17:09:29] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2024-05-06 17:09:29] [2024-05-06 17:09:29] Login Succeeded [2024-05-06 17:09:29] [Pipeline] sh [2024-05-06 17:09:29] + docker build -f ././/Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-ckun/ca-yomkpfjm_dotnet-u7ti:dotnet-u7ti-002-20240506170913 ./ [2024-05-06 17:09:29] DEPRECATED: The legacy builder is deprecated and will be removed in a future release. [2024-05-06 17:09:29] Install the buildx component to build images with BuildKit: [2024-05-06 17:09:29] https://docs.docker.com/go/buildx/ [2024-05-06 17:09:29] [2024-05-06 17:09:30] Sending build context to Docker daemon 195.4MB [2024-05-06 17:09:30] Step 1/15 : FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build [2024-05-06 17:09:31] 6.0-alpine: Pulling from dotnet/sdk [2024-05-06 17:09:32] 619be1103602: Pulling fs layer [2024-05-06 17:09:32] 49c78dc87bac: Pulling fs layer [2024-05-06 17:09:32] b1217d23467d: Pulling fs layer [2024-05-06 17:09:32] b27277ae2b4a: Pulling fs layer [2024-05-06 17:09:32] a00481cbf2a0: Pulling fs layer [2024-05-06 17:09:32] 69eb4d60fc6d: Pulling fs layer [2024-05-06 17:09:32] e8900b8e284d: Pulling fs layer [2024-05-06 17:09:32] 49c78dc87bac: Verifying Checksum [2024-05-06 17:09:32] 49c78dc87bac: Download complete [2024-05-06 17:09:32] 619be1103602: Verifying Checksum [2024-05-06 17:09:32] 619be1103602: Download complete [2024-05-06 17:09:32] 619be1103602: Pull complete [2024-05-06 17:09:33] b27277ae2b4a: Verifying Checksum [2024-05-06 17:09:33] b27277ae2b4a: Download complete [2024-05-06 17:09:33] 49c78dc87bac: Pull complete [2024-05-06 17:09:33] e8900b8e284d: Verifying Checksum [2024-05-06 17:09:33] e8900b8e284d: Download complete [2024-05-06 17:09:35] a00481cbf2a0: Verifying Checksum [2024-05-06 17:09:35] a00481cbf2a0: Download complete [2024-05-06 17:09:37] b1217d23467d: Verifying Checksum [2024-05-06 17:09:37] b1217d23467d: Download complete [2024-05-06 17:09:38] b1217d23467d: Pull complete [2024-05-06 17:09:38] b27277ae2b4a: Pull complete [2024-05-06 17:09:38] a00481cbf2a0: Pull complete [2024-05-06 17:10:05] 69eb4d60fc6d: Verifying Checksum [2024-05-06 17:10:05] 69eb4d60fc6d: Download complete [2024-05-06 17:10:06] 69eb4d60fc6d: Pull complete [2024-05-06 17:10:06] e8900b8e284d: Pull complete [2024-05-06 17:10:06] Digest: sha256:f09dc36e5f4ed0c31690e98ee5226737544bba6690fe1040cfea52c4f9573dcd [2024-05-06 17:10:06] Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:6.0-alpine [2024-05-06 17:10:06] ---> f766f08db8b2 [2024-05-06 17:10:06] Step 2/15 : RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencent.com/g' /etc/apk/repositories [2024-05-06 17:10:06] ---> Running in 89d69def2bc7 [2024-05-06 17:10:07] Removing intermediate container 89d69def2bc7 [2024-05-06 17:10:07] ---> 0f7419da8e9c [2024-05-06 17:10:07] Step 3/15 : WORKDIR /source [2024-05-06 17:10:07] ---> Running in b78f857dcb28 [2024-05-06 17:10:07] Removing intermediate container b78f857dcb28 [2024-05-06 17:10:07] ---> 5abc4da20dd8 [2024-05-06 17:10:07] Step 4/15 : COPY *.sln . [2024-05-06 17:10:07] ---> 40e7eae35641 [2024-05-06 17:10:07] Step 5/15 : COPY aspnetapp/*.csproj ./aspnetapp/ [2024-05-06 17:10:07] ---> dcf39395f51a [2024-05-06 17:10:07] Step 6/15 : RUN dotnet restore -r linux-musl-x64 /p:PublishReadyToRun=true [2024-05-06 17:10:07] ---> Running in f2d4e31000b4 [2024-05-06 17:10:08] Determining projects to restore... [2024-05-06 17:10:26] Restored /source/aspnetapp/aspnetapp.csproj (in 16.8 sec). [2024-05-06 17:10:38] Removing intermediate container f2d4e31000b4 [2024-05-06 17:10:38] ---> 534703d740cb [2024-05-06 17:10:38] Step 7/15 : COPY aspnetapp/. ./aspnetapp/ [2024-05-06 17:10:38] ---> f2cad09d770d [2024-05-06 17:10:38] Step 8/15 : WORKDIR /source/aspnetapp [2024-05-06 17:10:38] ---> Running in 0bc547805c41 [2024-05-06 17:10:39] Removing intermediate container 0bc547805c41 [2024-05-06 17:10:39] ---> d05be36cf4d3 [2024-05-06 17:10:39] Step 9/15 : RUN dotnet publish -c release -o /app -r linux-musl-x64 --self-contained true --no-restore /p:PublishTrimmed=true /p:PublishReadyToRun=true /p:PublishSingleFile=true [2024-05-06 17:10:39] ---> Running in 0dc57ddd68c6 [2024-05-06 17:10:39] MSBuild version 17.3.2+561848881 for .NET [2024-05-06 17:10:40] /usr/share/dotnet/sdk/6.0.421/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1047: Assets file '/source/aspnetapp/obj/project.assets.json' doesn't have a target for 'net6.0/linux-musl-x64'. Ensure that restore has run and that you have included 'net6.0' in the TargetFrameworks for your project. You may also need to include 'linux-musl-x64' in your project's RuntimeIdentifiers. [/source/aspnetapp/aspnetapp.csproj] [2024-05-06 17:10:40] The command '/bin/sh -c dotnet publish -c release -o /app -r linux-musl-x64 --self-contained true --no-restore /p:PublishTrimmed=true /p:PublishReadyToRun=true /p:PublishSingleFile=true' returned a non-zero code: 1 [2024-05-06 17:10:40] [Pipeline] } [2024-05-06 17:10:40] [Pipeline] // stage [2024-05-06 17:10:40] [Pipeline] stage [2024-05-06 17:10:40] [Pipeline] { (推送 Docker 镜像到 TCR) [2024-05-06 17:10:40] Stage "推送 Docker 镜像到 TCR" skipped due to earlier failure(s) [2024-05-06 17:10:40] [Pipeline] } [2024-05-06 17:10:40] [Pipeline] // stage [2024-05-06 17:10:40] [Pipeline] } [2024-05-06 17:10:40] [Pipeline] // node [2024-05-06 17:10:40] [Pipeline] End of Pipeline [2024-05-06 17:10:40] ERROR: script returned exit code 1 [2024-05-06 17:10:40] Finished: FAILURE *** -----------构建dotnet-u7ti-002----------- 2024-05-06 17:09:18 create_build_image : succ,
请指引一下! express-nrmm建立服务后怎么开发服务端功能?小程序端如何调用这些功能? 例如小程序端获取OPENID,用户登陆注册后如何增减数据库?
如题,其他开发者想登陆后台,但我没找到可以分配权限的接口
这审核什么节奏??
如题 我们之前的同一个域名下放了好多个项目 有静态项目也有服务端
https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/guide/service/online.html 数据加载失败几秒前 加载 “tcbSubmitServerRelease” 失败:Error: InvalidParameter, 代码仓库中没有找到Dockerfile,请补充后重试. [Check Dockerfile error, please ensure you have Dockerfile in your project, other wise please contact us,err = describe git file failed with cRsp=&{ErrorCode:100003 ErrorMsg:{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#get-repository-content"} RequestId:ccb9baf9-a959-42f0-b65c-8d5ec0cac679} ] (c7ad530b-2b1e-4f91-9324-9f4c11e13723)
[2024-04-28 15:35:44] Step 9/11 : RUN npx prisma migrate deploy [2024-04-28 15:35:44] ---> Running in 49a6a9d2a38d [2024-04-28 15:35:45] Prisma schema loaded from prisma/schema.prisma [2024-04-28 15:35:45] Datasource "db": MySQL database "mydb" at "10.9.107.39:3306" [2024-04-28 15:35:51] [2024-04-28 15:35:51] Error: P1001: Can't reach database server at `10.9.107.39`:`3306` [2024-04-28 15:35:51] [2024-04-28 15:35:51] Please make sure your database server is running at `10.9.107.39`:`3306`. [2024-04-28 15:35:51] The command '/bin/sh -c npx prisma migrate deploy' returned a non-zero code: 1 [2024-04-28 15:35:51] [Pipeline] } ip和端口正确的: [图片]
请帮我查看一下此应用的数据库名称是什么,我部署的应用数据库连接这块都过不去,应用是以SpingBoot+mysql的方式进行部署的。
Step 5/9 : COPY package*.json /app/ [2024-04-26 10:29:56] COPY failed: no source files were specified 好奇怪,明明目录下有这个文件,但是就是识别不到(检查过.dockerignore也没有包含该文件
微信云托管里的mysql数据库如何重启?改了参数如何重启呀?
最小实例 1 最大实例3 , 还有如下提示 因低成本模式无访问或版本下线,实例停止并回收
1
静态页面部署在前端服务器上,后端使用的是微信云托管的服务,通过前端nginx反向代理调用,但返回404
想用云托管 支持流返回 目前 调用失败 状态码 code为-1
https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/scene/deploy/static_h5.html 您好,当前页面的操作步骤1,打开不是截图所示,现阶段想要静态网页托管该怎么做
appid:wxf780ab24b5ec14c1 [图片]
云托管服务注销之后,无法重新创建服务?注销之后如何重新创建服务?
部署后,测试接口。为什么小程序访问和公网访问还不一样“? 小程序可以访问到。公网访问提示我 "2024-04-20T10:10:28.397+00:00"status:415error:"Unsupported Media Type"path:"/api/user/login"} ??? [图片] [图片]
应该只是监控的计算问题。
日志上可以看看是否有实例在那个时间点有重新启动的迹象