cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
414 stars 150 forks source link

file is in use by another program and cannot be accessed by the process #73

Open blackbeautybake opened 3 years ago

blackbeautybake commented 3 years ago

When I apply citrix,an error will occur when restart computer, cloudbase-init localscripts execute failed

ERROR cloudbaseinit.metadata.factory [-] Cannot open file: '另一个程序正在使用此文件,进程无法访问。' ERROR cloudbaseinit.metadata.factory cloudbaseinit.exception.WindowsCloudbaseInitException: Cannot open file: '另一个程序正在使用此文件,进程无法访问。'

cloudbase-init.log as follow: https://win-1252076932.cos.ap-shanghai.myqcloud.com/ins-01226xns_cloudbase-init.log https://win-1252076932.cos.ap-shanghai.myqcloud.com/ins-q02dze3s_cloudbase-init.log

When the file to be called is occupied by other programs, cloudbase-init should wait for the file to be released. For example, if the file is occupied for 3 minutes or much longer time, at that time the failed result is more acceptable.