Troubleshooting Tip: EMS migration failure due to 'Permission Denied' when copying certificate files
| Description | This article describes an issue encountered while migrating FortiClient EMS from Windows to Linux, where the migration process fails with a 'Permission denied' message when copying certificate key files due to a write permission issue on the destination Linux directory. |
| Scope | FortiClient EMS. |
| Solution | Description:
During migration of FortiClient EMS from a Windows server to a Linux server, the migration process fails during the copying of certificates with the following error:
scp.SCPException: scp: /opt/forticlientems/data/certs/FCTEMSXXXXXXX.1.key: Permission denied
Sample log excerpt:
Root Cause:
The migration utility tries to move the certificate key file to /opt/forticlientems/data/certs/.
In the observed case:
drwxr-x--- 2 forticlientems forticlientems 4096 Apr 10 07:29 certs
If the migration SSH user belongs to the group forticlientems (but not the owner), the write operation fails.
Solution:
sudo chmod 770 /opt/forticlientems/data/certs
drwxrwx--- forticlientems forticlientems
Verification:
After permission change:
ls -ld /opt/forticlientems/data/certs
drwxrwx--- forticlientems forticlientems ...
Additional Notes:
sudo chown -R your_migration_user:your_migration_group /opt/forticlientems/data/certs |

