Remote external header file permission denied error
已回答
Hi,
I'm running into an issue with permissions denied when trying to access header files that are not in the project root directory on a remote machine.
Host: Windows 10; CLion (latest build); local downloaded Makefile project
Remote: Red Hat Enterprise 5 (I know its old, but I can't change it)
I can build remotely and my Makefile is loaded without errors.
Problem:


I've set my SSH login user as owner of the above root directory and all files/folders as well as doing chmod 777 (this is a clone VM) for all files/folders. If I change the include to: #include <ace/OS1.h>, it just gives me a "file not found error" only and not both errors above.
What permissions must be set for CLion to access these remote directory files?
Thanks
请先登录再写评论。
It looks like the issue is the link created on the Windows side in the C:\...........\ace\OS.h to the RHEL5 VM is getting denied. I verified it by deleting the OS.h on the RHEL5 image and the permissions denied error still showed up. When I renamed the OS.h file to OS1.h on the Windows link, the permissions denied error no longer appeared and only the "file not found" error showed up. I then changed the include to: #include <ace/OS1.h> and both the permissions denied error and file not found errors showed up again even though OS1.h does not exist in RHEL5.
I also tried running as root in the SSH config into the RHEL5 image and it didn't change the errors.
Any ideas as what I have to open up / allow in the RHEL5 image?
Thanks
Could you please download the latest EAP, open your project and tries to call `Tools-> Resync with remote Hosts`?
Does it help?
Hi Vasily,
Thanks for the reply. Could you provide a bit more context/instructions for the EAP please? I will do my best to figure it out but I've never had to do anything with EAP so it might not be correct.
Thanks
You just need to install the CLion 2021.2 EAP build from https://www.jetbrains.com/clion/nextversion/, open your project in it and try calling `Tools-> Resync with remote Hosts`.
Hi Anna,
Thanks for the clarification, I will go ahead and try that.
Thanks
Hi Anna and Vasily,
I did a clean uninstall (removed all caches etc..) via the installer and setup the project again. I still get the same errors and have attached the exceptions manually as my machine is offline. Please let me know what you think.
CIDR:
Grazie1:
Grazie2:
Thanks
The first exception is connected with decompression problem, could you please go to Help -> Find Action -> type "Registry" and disable `clion.remote.compress.tar`. Then run `Tools-> Resync with remote Hosts`.
Hi Vasily,
That looks to have solved the problem. I did get a lot of "Warning: while copying file ...... got more content than file size", is that something to be concerned about or just ignore?
I'm going to reload my VM from the clone state as I made lots of changes to it during this process and will report back today.
Thanks
Can confirm that this is the solution, thanks for the help.