This topic lists common issues and solutions for host deployment by Alibaba Cloud Devops.
Troubleshoot Flow Runner
Check the Runner status first when host deployment fails, or self-hosted instance fails to apply for environment.
Use the tool to get prompts for troubleshooting.
Download the troubleshooting tool (supports Linux only).
wget "https://rdc-public-software.oss-cn-hangzhou.aliyuncs.com/runner/runnerStatusCheck" -O runnerStatusCheckConfigure permissions.
chmod u+x runnerStatusCheckRun the tool.
./runnerStatusCheckFollow the prompts provided by the tool for further processing, as illustrated below.

Troubleshooting without tool.
Check the Linux system version.
Use the command
lsb_release -ato get the version.
Runner currently supports the following Linux distribution versions:CentOS 6 and later
Ubuntu 16.04 and later
Alibaba Cloud Linux 2 and 3
Check the Runner service status and logs.
Use the command
ls -al /etc/systemd/system | grep runnerto identify the Runner service name, which is typically formatted as runner-{version}-{tenant}.service, as shown below.
Check the Runner service status with the command
systemctl status runner-{version}-{tenant}.service. If the status is active (running), the service is functioning properly, as shown below.
You can view the Runner execution logs with the command
journalctl -u runner-{version}-{tenant}.service -a --no-pager --since '5 minutes ago' -f.
Common issues with offline host groups
During building or deploying, logs are not reported or the host goes offline
Use the command
df -hlto get the status of the disk. Clean it up if it is out of space.Restart the Runner service if it is not active (running).
Get the service name, usually named after
runner-{version}-{tenant}.servicesystemctl | grep "runner-v" | awk '{print $1}'Restart the Runner service with the name obtained from the last step.
systemctl restart $SERVICE_NAME
Ensure the network connectivity.
Query the Runner service status with
systemctl status runner-{version}-{tenant}.serviceand note the service process parameter --configPath=***, as illustrated below.
Check the URL in the configPath using
cat {***}/config.yml | grep url.
Check if the URL is accessible using the following command.
# replace the url in the command below curl '{url}/api/v2/runner/storage/latest?os=linux&arch=amd64'