dyc87112 / OpenAIProxy

阿里云函数计算一件部署OpenAI的代理
30 stars 33 forks source link

部署失败:getaddrinfo ENOTFOUND 1226433344098179.us-west-1.fc.aliyuncs.com POST http://1226433344098179.us-west-1.fc.aliyuncs.com/2016-08-15/services failed. #2

Closed CrazyBunQnQ closed 1 year ago

CrazyBunQnQ commented 1 year ago

环境

Windows 11 系统 AMD 架构 npm 18.15.0 LTS

执行命令

C:\Users\baoba\openai-proxy>s deploy
√ devsapp_fc.zip file decompression completed
√ core@0.1.56.zip file decompression completed
√ devsapp_fc-core.zip file decompression completed
√ devsapp_fc-deploy.zip file decompression completed
√ devsapp_fc-plan.zip file decompression completed
√ devsapp_domain.zip file decompression completed
√ devsapp_fc-default.zip file decompression completed
✖ Generated custom domain (33.3s)
✖ Generated domain (178.95s)
✖ Project function-test failed to execute:

ERROR:

getaddrinfo ENOTFOUND 1226433344098179.us-west-1.fc.aliyuncs.comPOST http://1226433344098179.us-west-1.fc.aliyuncs.com/2016-08-15/services failed.

TraceId:     00ff9972ef991680193309371
Environment: @serverless-devs/s: 2.1.12, core: 0.1.56, s-home: C:\Users\baoba\.s, win32-x64, node-v18.15.0
Documents:   https://www.serverless-devs.com
Discussions: https://github.com/Serverless-Devs/Serverless-Devs/discussions
Issues:      https://github.com/Serverless-Devs/Serverless-Devs/issues
Regsitry:    https://registry.serverless-devs.com

Please copy traceId: 00ff9972ef991680193309371 and join Dingding group: 33947367 for consultation.
A complete log of this run can be found in: C:\Users\baoba\.s\logs\00ff9972ef991680193309371.log

You can run 's clean --all' to clean Serverless devs.

日志 00ff9972ef991680193309371.log


[2023-03-31 00:21:49] [DEBUG] [S-CORE] - access information: {
  "Alias": "aliyun-fc",
  "AccessKeyID": "LTA******************8U7",
  "AccessKeySecret": "CWK************************LAA",
  "AccountID": "122**********179"
}
[2023-03-31 00:21:49] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/fc/releases/latest
[2023-03-31 00:21:49] [DEBUG] [S-CORE] - access information: {
  "Alias": "aliyun-fc",
  "AccessKeyID": "LTA******************8U7",
  "AccessKeySecret": "CWK************************LAA",
  "AccountID": "122**********179"
}
[2023-03-31 00:22:57] [DEBUG] [FC] - Props is: {"region":"us-west-1","service":{"name":"openai-proxy","description":"欢迎使用openai-proxy"},"function":{"name":"openai-proxy","description":"openai-proxy","codeUri":"./code","cpu":0.05,"memorySize":128,"diskSize":512,"runtime":"custom","caPort":9000,"timeout":30,"customRuntimeConfig":{"command":["node","app.js"]},"handler":"index.handler","instanceConcurrency":1,"instanceType":"e1"},"triggers":[{"name":"httpTrigger","type":"http","config":{"authType":"anonymous","disableURLInternet":false,"methods":["GET","POST","PUT","DELETE"]}}],"customDomains":[{"domainName":"auto","protocol":"HTTP","routeConfigs":[{"path":"/*","methods":["GET","POST","PUT","DELETE"]}]}]}
[2023-03-31 00:22:57] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/fc-core/releases/latest
[2023-03-31 00:23:42] [DEBUG] [FC] - deploy subCommand: all
[2023-03-31 00:23:42] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/fc-deploy/releases/latest
[2023-03-31 00:23:42] [DEBUG] [S-CORE] - URL: https://registry.devsapp.cn/simple/devsapp/core/releases/latest
[2023-03-31 00:24:28] [DEBUG] [FC] - Inputs of component: devsapp/fc-deploy is: {
  "props": {
    "region": "us-west-1",
    "service": {
      "name": "openai-proxy",
      "description": "欢迎使用openai-proxy"
    },
    "function": {
      "name": "openai-proxy",
      "description": "openai-proxy",
      "codeUri": "./code",
      "cpu": 0.05,
      "memorySize": 128,
      "diskSize": 512,
      "runtime": "custom",
      "caPort": 9000,
      "timeout": 30,
      "customRuntimeConfig": {
        "command": [
          "node",
          "app.js"
        ]
      },
      "handler": "index.handler",
      "instanceConcurrency": 1,
      "instanceType": "e1"
    },
    "triggers": [
      {
        "name": "httpTrigger",
        "type": "http",
        "config": {
          "authType": "anonymous",
          "disableURLInternet": false,
          "methods": [
            "GET",
            "POST",
            "PUT",
            "DELETE"
          ]
        }
      }
    ],
    "customDomains": [
      {
        "domainName": "auto",
        "protocol": "HTTP",
        "routeConfigs": [
          {
            "path": "/*",
            "methods": [
              "GET",
              "POST",
              "PUT",
              "DELETE"
            ]
          }
        ]
      }
    ]
  },
  "args": ""
}
[2023-03-31 00:24:28] [DEBUG] [FC-DEPLOY] - instantiate serviceConfig with : 
{
  "name": "openai-proxy",
  "description": "欢迎使用openai-proxy"
}
[2023-03-31 00:24:28] [DEBUG] [FC-DEPLOY] - functionConfig not empty: 
{
  "name": "openai-proxy",
  "description": "openai-proxy",
  "codeUri": "./code",
  "cpu": 0.05,
  "memorySize": 128,
  "diskSize": 512,
  "runtime": "custom",
  "caPort": 9000,
  "timeout": 30,
  "customRuntimeConfig": {
    "command": [
      "node",
      "app.js"
    ]
  },
  "handler": "index.handler",
  "instanceConcurrency": 1,
  "instanceType": "e1"
}, instantiate it.
[2023-03-31 00:24:28] [DEBUG] [FC-DEPLOY] - triggersConfig not empty: 
[
  {
    "name": "httpTrigger",
    "type": "http",
    "config": {
      "authType": "anonymous",
      "disableURLInternet": false,
      "methods": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ]
    }
  }
], instantiate them.
[2023-03-31 00:24:28] [DEBUG] [FC-DEPLOY] - customDomains not empty: 
[
  {
    "domainName": "auto",
    "protocol": "HTTP",
    "routeConfigs": [
      {
        "path": "/*",
        "methods": [
          "GET",
          "POST",
          "PUT",
          "DELETE"
        ]
      }
    ]
  }
], instantiate them.
[2023-03-31 00:24:28] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/fc-plan/releases/latest
[2023-03-31 00:24:28] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/fc-core/releases/latest
[2023-03-31 00:25:13] [DEBUG] [fc-plan] - region: us-west-1
[2023-03-31 00:25:13] [DEBUG] [fc-plan] - access: aliyun-fc
[2023-03-31 00:25:13] [DEBUG] [fc-plan] - planType: deploy
[2023-03-31 00:25:13] [DEBUG] [fc-plan] - subCommand: domain
[2023-03-31 00:25:13] [DEBUG] [FC-CORE] - input: {"access":"aliyun-fc","credentials":{"Alias":"aliyun-fc","AccessKeyID":"LTAI******************U7","AccessKeySecret":"CWKg************************AA","AccountID":"1226**********79"},"region":"us-west-1","timeout":60}
[2023-03-31 00:25:13] [DEBUG] [FC-CORE] - make fc client 60000ms
[2023-03-31 00:25:24] [DEBUG] [fc-plan] - info error:: getaddrinfo ENOTFOUND 1226433344098179.us-west-1.fc.aliyuncs.comGET http://1226433344098179.us-west-1.fc.aliyuncs.com/2016-08-15/custom-domains/openai-proxy.openai-proxy.1226433344098179.us-west-1.fc.devsapp.net failed.
[2023-03-31 00:25:24] [DEBUG] [fc-plan] - domain openai-proxy.openai-proxy.1226433344098179.us-west-1.fc.devsapp.net local config: {"domainName":"auto","protocol":"HTTP","routeConfigs":[{"path":"/*","methods":["GET","POST","PUT","DELETE"]}]}
[2023-03-31 00:25:24] [DEBUG] [fc-plan] - domain openai-proxy.openai-proxy.1226433344098179.us-west-1.fc.devsapp.net state config: null
[2023-03-31 00:25:24] [DEBUG] [fc-plan] - domain openai-proxy.openai-proxy.1226433344098179.us-west-1.fc.devsapp.net remote config: null
[2023-03-31 00:25:24] [DEBUG] [FC-DEPLOY] - function plan local::
{
  "domainName": "auto",
  "protocol": "HTTP",
  "routeConfigs": [
    {
      "path": "/*",
      "methods": [
        "GET",
        "POST",
        "PUT",
        "DELETE"
      ]
    }
  ]
}needInteract:: false
diff::
remoteNull
[2023-03-31 00:25:24] [DEBUG] [FC-DEPLOY] - state of key: openai-proxy.openai-proxy.1226433344098179.us-west-1.fc.devsapp.net
[2023-03-31 00:25:24] [DEBUG] [FC-DEPLOY] - Using customDomain: auto: fc will try to generate related custom domain resources automatically
[2023-03-31 00:25:24] [DEBUG] [FC-DEPLOY] - inputs of component: domain generated: 
{
  "project": {
    "access": "aliyun-fc",
    "projectName": "function-test-devsapp/fc-deploy-project-domain-project",
    "component": "domain"
  },
  "appName": "openai-proxy",
  "credentials": {
    "Alias": "aliyun-fc",
    "AccessKeyID": "LTA******************8U7",
    "AccessKeySecret": "CWK************************LAA",
    "AccountID": "122**********179"
  },
  "props": {
    "type": "fc",
    "user": "1226433344098179",
    "region": "us-west-1",
    "service": "openai-proxy",
    "function": "openai-proxy"
  },
  "path": {
    "configPath": "C:\\Users\\baoba\\openai-proxy\\s.yaml"
  },
  "args": ""
}
[2023-03-31 00:25:24] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/domain/releases/latest
[2023-03-31 00:26:08] [DEBUG] [DOMAIN] - inputs params, get: {"type":"fc","user":"1226433344098179","region":"us-west-1","service":"openai-proxy","function":"openai-proxy"}
[2023-03-31 00:26:08] [DEBUG] [DOMAIN] - Command data is: {}
[2023-03-31 00:26:08] [DEBUG] [S-CORE] - URL: http://registry.devsapp.cn/simple/devsapp/fc-default/releases/latest
[2023-03-31 00:26:53] [DEBUG] [DOMAIN] - The request **/token parameter is: {"type":"fc","user":"1226433344098179","region":"us-west-1","service":"openai-proxy","function":"openai-proxy"}
[2023-03-31 00:26:53] [DEBUG] [S-CORE] - URL: http://domain.devsapp.net/token
[2023-03-31 00:27:05] [DEBUG] [DOMAIN] - Get token response is: {"Status":"Success","Body":{"Token":"7e32423c3da47372e6979b2880b7d3f2","Domain":"openai-proxy.openai-proxy.1226433344098179.us-west-1.fc.devsapp.net"}}
[2023-03-31 00:27:05] [DEBUG] [DOMAIN] - Create service...
[2023-03-31 00:27:16] [DEBUG] [DOMAIN] - getService error message: Error: getaddrinfo ENOTFOUND 1226433344098179.us-west-1.fc.aliyuncs.comGET http://1226433344098179.us-west-1.fc.aliyuncs.com/2016-08-15/services/serverless-devs-check failed.
[2023-03-31 00:27:27] [DEBUG] [DOMAIN] - ex code: ENOTFOUND, ex: getaddrinfo ENOTFOUND 1226433344098179.us-west-1.fc.aliyuncs.comPOST http://1226433344098179.us-west-1.fc.aliyuncs.com/2016-08-15/services failed.
✖ Generated custom domain (33.3s)
✖ Generated domain (178.95s)
[2023-03-31 00:27:27] [DEBUG] [S-CORE] - access information: {
  "Alias": "aliyun-fc",
  "AccessKeyID": "LTA******************8U7",
  "AccessKeySecret": "CWK************************LAA",
  "AccountID": "122**********179"
}
✖ Project function-test failed to execute:

ERROR:

getaddrinfo ENOTFOUND 1226433344098179.us-west-1.fc.aliyuncs.comPOST http://1226433344098179.us-west-1.fc.aliyuncs.com/2016-08-15/services failed.

TraceId:     00ff9972ef991680193309371
Environment: @serverless-devs/s: 2.1.12, core: 0.1.56, s-home: C:\Users\baoba\.s, win32-x64, node-v18.15.0
Documents:   https://www.serverless-devs.com
Discussions: https://github.com/Serverless-Devs/Serverless-Devs/discussions
Issues:      https://github.com/Serverless-Devs/Serverless-Devs/issues
Regsitry:    https://registry.serverless-devs.com

Please copy traceId: 00ff9972ef991680193309371 and join Dingding group: 33947367 for consultation.
A complete log of this run can be found in: C:\Users\baoba\.s\logs\00ff9972ef991680193309371.log

You can run 's clean --all' to clean Serverless devs.
[2023-03-31 00:27:27] [DEBUG] [S-CLI] - process exitCode: 101
CrazyBunQnQ commented 1 year ago

另外想问下域名可以用自己的吗?