检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
通用设置 > 服务权限管理”,进入项目权限管理界面,根据提示为用户添加项目级权限。 表1 项目级权限 角色/动作 查看 新建 修改 删除 部署 复制 禁用 新建环境 权限管理 分组管理 新建资源 项目经理 √ √ √ √ √ √ √ √ √ √ √ 项目管理员 √ √ √ √ √ √ √
js”的启动命令失败,提示信息“start service failed”。 原因分析 服务启动的路径下没找到该文件。 处理办法 输入正确的服务路径即可。 问题现象二 日志信息“Node service not installed, service start failed!”。 原因分析 该机器未安装Node
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
URL格式不合法 问题现象 日志信息提示“"msg": "Status code was -1 and not [200]: Request failed: urlopen error no host given"”。 原因分析 URL中可能存在反斜杠“\”字符。 处理方法 填写正确的URL,将“\”改为“/”。
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
rm命令部署失败 问题现象 部署“执行Docker命令”步骤中的rm命令时,提示“You cannot remove a running container”。 原因分析 需要删除的容器正在运行中。 处理方法 先使用停止命令,停止容器后再删除。 添加-f 参数,通过SIGKILL信号强制删除运行中的容器。
not [200]: Request failed: urlopen error [Errno -2] 未知的名称或服务 问题现象 日志信息提示“"msg": "Status code was -1 and not [200]: Request failed: urlopen error
端口配置 容器端口:80 服务端口:5000 更新成功,返回列表中,当列表中显示时,鼠标悬停在该负载均衡器名称处,在弹窗中复制公网地址。 图2 复制访问地址 打开新的浏览器页面,在地址栏中输入“http://IP:5000”(其中,IP为4.d记录的公网地址),页面中显示商城主页。
URL接口不存在 问题现象 日志信息提示"msg":"Failed to access,please make sure that the service is properly started."。 原因分析 URL的path路径配置存在错误。 处理方法 本地使用Xshell工具登录本次实施部署的机器。
Kubernetes应用部署失败 问题现象 日志显示 “Failed to download k8s files from CodeArts Repo, please check your file path!” 原因分析 选择的代码仓文件过大(超过200M),或者代码仓中的文件数量过大(超过1024)。
弹性云服务器购买配置 配置分类 配置项 配置建议 基础配置 计费模式 选择“按需计费”。 实例 CPU架构 选择“x86计算”。 规格 选择2vCPUs 8GiB或以上规格。 操作系统 镜像 选择“公共镜像 > Ubuntu > Ubuntu 16.04 Server 64bit”。 公网访问
、id_rsa.pub文件的权限。 在使用密钥进行连通性验证时,用户名必须为操作authorized_keys文件的用户名。 手动复制私钥时不要复制多余的空格,否则可能连通性验证不成功。 父主题: 向主机集群中添加主机
制品仓库的Manifest文件地址写错 问题现象 报错日志示例如下所示:“Failed to download k8s files from ReleaseService, please check your file path!” 原因分析 应用中所选择的Manifest文件在制品仓库中不存在。
制品仓库的Manifest文件地址写错 问题现象 报错日志示例如下所示:“Failed to download k8s files from ReleaseService, please check your file path!” 原因分析 应用中所选择的Manifest文件在制品仓库中不存在。
说明 连接名称 服务扩展点的名称。 Kubernetes URL 填写为自定义集群中的公网apiserver地址。 Kubeconfig 直接复制kubeconfig.json文件中的全部内容即可。 按页面提示,补全所需参数,即可完成Kubernetes公网部署。 表2 参数说明 参数项
eters 在右侧窗口中,找到名为TcpTimedWaitDelay的DWORD值。如果该值不存在,则需要手动创建。 修改TcpTimedWaitDelay参数数值为需要设置的值(以毫秒为单位),例如,将TcpTimedWaitDelay设置为1分钟(60000毫秒)。 重启计算机使配置生效。
参数类型 描述 status String 请求成功失败状态 result EnvironmentDetail object 环境详情 表4 EnvironmentDetail 参数 参数类型 描述 id String 环境id name String 环境名称 description
v2.model.*; public class ShowDeploymentGroupDetailSolution { public static void main(String[] args) { // The AK and SK used for