What to do if you cannot use Cloud Toolkit after installing the ECS Cloud Assistant client?

更新时间:
复制 MD 格式

If you installed the ECS Cloud Assistant client but still receive client-related errors when you deploy an application using Cloud Toolkit, the client is likely not running.

Follow these steps to start the Cloud Assistant client:

  1. Connect to the Linux instance remotely. For more information, see Connect to a Linux instance using a password.

  2. Run the following command to check the Cloud Assistant client version.

    aliyun-service -v
    Note For Cloud Assistant client versions later than 1.0.1.308, Agentwatch no longer manages the client service. Therefore, the command to stop or start the client depends on the returned version number.
  3. Choose an operation based on the returned client version number.
    • For Cloud Assistant client versions 1.0.1.308 and earlier, start the Cloud Assistant client service based on the init system of your instance.
      • For operating systems such as Debian, CentOS, and Red Hat:

        # Start the Cloud Assistant client
        systemctl start agentwatch
                                        
      • For operating systems that use other init systems:
        # Start the Cloud Assistant client
        chkconfig agentwatch on
                                        
    • For Cloud Assistant client versions later than 1.0.1.308, start the Cloud Assistant client service based on the init system of your instance.

      • Linux systems with newer kernels typically use the Systemd init process. Run the following commands:
        # Check if your instance uses the Systemd init process service. A returned message indicates that Systemd is used.
        strings /sbin/init | grep "/lib/system"
        # Start the Cloud Assistant client
        systemctl start aliyun.service
                                        
      • For Linux systems such as Ubuntu 14 and earlier, the Upstart init process is typically used. Run the following commands:
        # Check if your instance uses the Upstart init process service. A returned message indicates that Upstart is used.
        strings /sbin/init | grep "upstart"
        # Start the Cloud Assistant client
        /sbin/initctl start aliyun-service
      • Linux systems with older kernels typically use the SysVinit init process. Run the following commands:
        # Check if your instance uses the SysVinit init process service. A returned message indicates that SysVinit is used.
        strings /sbin/init | grep "sysvinit"
        # Start the Cloud Assistant client
        /etc/init.d/aliyun-service start