During a migration from FortiClient EMS 7.4.9 (windows) to FortiCLient EMS 7.4.3 (Linux) the migration.exe program signaled a failed migration, with the last lines log the log stating:
2025-04-11 13:27:38,091 Exception type : Traceback (most recent call last):
File "main.py", line 66, in main
File "lib\ems_client_lib.py", line 101, in copy_cert_files
File "lib\ems_client_lib.py", line 62, in copy_files
File "lib\helper\scphelper.py", line 50, in copy
File "lib\helper\scphelper.py", line 33, in ExecCmd
Exception: ExecCmd: echo 'xxxx-omitted-xxx' | sudo -S chown -R forticlientems.forticlientems "/opt/forticlientems/data/certs", Error: [sudo] password for test: chown: warning: '.' should be ':': ‘forticlientems.forticlientems’
2025-04-11 13:27:38,094 [chan 1] EOF sent (1)
2025-04-11 13:27:38,095 EOF in transport thread
2025-04-11 13:27:38,097 EOF in transport thread
2025-04-11 13:27:38,097 EOF in transport thread
2025-04-11 13:27:38,098 EOF in transport thread
It appears that the executable contains a syntax error in the chown command.
I've manually changed the ownership of the certificate that was copied from the Windows machine to Linux. The FortiClient EMS platform on the new machine appears healthy, but I don't know if the migration procedure has been completed or if the error has aborted some other part of the migration.
Thanks
Hello PaoloZangheri,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks,
Hello,
We are still looking for an answer to your question.
We will come back to you ASAP.
Thanks,
Thanks
Hello again Paolo,
I found this solution, can you tell me if it helped you, please?
The error message indicates a syntax issue with the 'chown' command during the migration process. The warning suggests using a colon ':' instead of a period '.' in the command for specifying the user and group. Since you've manually corrected the ownership of the certificate files, the immediate issue seems resolved. However, to ensure the migration process is fully completed, follow these steps:
If the EMS platform appears healthy and all functionalities are working as expected, the migration might have completed successfully despite the error. However, thorough verification is recommended to ensure no critical components were missed.
User | Count |
---|---|
2534 | |
1351 | |
795 | |
641 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.