[adesk] Xinchuang/linux client – error Copy data from VM to the local machine: Failed to get data Clipboard data
Problem Description
Xinchuang/linux client-Copy data from the VM to the local machine error: Failed to get data Clipboard data
Warning Information

Effective troubleshooting steps
-
OK Other Xinchuang/Linux clients Connected, and this client is also Error Log In Other VM
-
OK and the client and VM are in the compatible list Version aDesk vdi version. For reference, please refer to the link: Compatibility Query
-
OK all security software in the client has Log Out, but the problem still exists
-
OK Yes VDC Policy groupBidirectional Shared clipboard
-
Create Mon new test.txt File and copy it, and File will also report an error
-
Analyze the client log and find the key log:
2022-06-22 09:14:48 WARN [24850:24884] [../ClipdrCommon/ClipStreamRequest.cpp:115:CreateDir] mkdir /home/.tmp/SFRSESSION0 err: File already exists
2022-06-22 09:14:48 INFO [24850:24884] [../ClipdrCommon/ClipStreamRequest.cpp:149:createTmpDir] mTmpDir =
a. The log indicates that a temporary directory is to Create, but the directory already exists.
b. Check the code and find that it will try to create the directory only when it cannot Create. In addition, the directory does not exist, which means that there is no Role. -
Check the client and find that the directory already exists, but the Role is only 700, while the Connected client environment is 775
So after raising the directory permissions to 775, everything is Connected.
Root cause
1. VM copies data to the client, and needs the /home/.tmp directory as a temporary directory to store data
2. The client's /home/.tmp directory has a Role issue, which causes the vdi_session Process to be inaccessible and the copy Failed
solution
Open client terminal command and elevate the permissions of the /home/.tmp directory to 775
- sudo -i chmod 775 /home/.tmp;
- sudo -i chmod 775 /home/.tmp/*;
Operation Impact Scope
None
Original Link
https://support.sangfor.com.cn/cases/list?product_id=26&type=1&category_id=12745&isOpen=true