Process Occupation Error Reported During Driver Uninstallation
Symptom
The "The davinci nodes are occupied by some processes, please stop processes and install or uninstall again, details in : /var/log/ascend_seclog/ascend_install.log" error is reported during the driver uninstallation. See Figure 8-9.
Possible Causes
The service processes are not stopped, which interrupt the uninstallation process.
Solution
If "The davinci nodes are occupied by some processes" is displayed during the uninstallation of the .rpm or .deb package, stop service processes and uninstall the driver again.
- Run the following command to view the /var/log/ascend_seclog/ascend_install.log file and determine the service processes that are not stopped and the nodes where the processes are located:
cat /var/log/ascend_seclog/ascend_install.log
The command output is as follows:
[Driver] [2022-03-25 01:10:49] [WARNING]The setting hot reset flag does not take effect. [Driver] [2022-03-25 01:10:49] [WARNING]/dev/davinci_manager has user process: 47355 root 47355 23097 0 01:10 pts/1 00:00:00 ./hlt_hdc_test 65 0 6 100 [Driver] [2022-03-25 01:10:51] [ERROR]The davinci nodes are occupied by some processes, please stop processes and install or uninstall again.
- Perform the following operations to resume the driver uninstallation:
- Stop the service processes and uninstall the driver again. For details, see Uninstalling the Driver.
- Use the --force parameter to forcibly uninstall the driver without stopping services as follows. This may affect running services, and the host must be restarted for the uninstallation to take effect.
- Use the software package to uninstall the driver.
./{product name}-npu-driver_x.x.x_linux-{arch}.run --uninstall --force
- Run the following command in any directory for uninstallation:
<install-path>/driver/script/uninstall.sh --force
<install-path> indicates the installation path of the software package. You can run the cat /etc/ascend_install.info command to query the installation path. Replace it with the actual path.
- Use the software package to uninstall the driver.