Q1: An error occurs when the train command is used to train a model, and the message “training data failed” is displayed.
Cause: Only one type of data is collected by using the **collection **command.
Solution: Collect data of at least two data types for training.
Q2: The atune-adm cannot connect to the atuned service.
The atuned service is not started. As a result, the atuned service cannot be connected. You can run the following command to check the status of the atuned service:
systemctl status atuned
If the atuned service is inactive, refer to solution 1.
The firewall blocks the listening port of the atuned service. As a result, the atuned service cannot be connected. You can run the following command to check the listening status of the atuned service on the current device:
netstat -nap | grep atuned
If the port of the atuned service does not exist, configure the port by referring to solution 2.
The HTTP proxy is configured in the system. As a result, the atuned service cannot be connected. Refer to solution 3.
If the atuned service is not started, run the following command to start the service:
# systemctl start atuned
Run the following command on the atuned and atune-adm servers to allow the listening port to receive network packets. In the command, 60001 is the listening port number of the atuned server.
# iptables -I INPUT -p tcp --dport 60001 -j ACCEPT # iptables -I INPUT -p tcp --sport 60001 -j ACCEPT
Run the following command to delete the HTTP proxy or disable the HTTP proxy for the listening IP address without affecting services:
# no_proxy=$no_proxy, Listening IP address
Q3: The atuned service cannot be started, and the message “Job for atuned.service failed because a timeout was exceeded.” is displayed.
Cause: The hosts file does not contain the localhost information.
Solution: Add localhost to the line starting with 127.0.0.1 in the /etc/hosts file.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4