- Products
- Learn
- Local User Groups
- Partners
- More
Firewall Uptime, Reimagined
How AIOps Simplifies Operations and Prevents Outages
Introduction to Lakera:
Securing the AI Frontier!
Check Point Named Leader
2025 Gartner® Magic Quadrant™ for Hybrid Mesh Firewall
HTTPS Inspection
Help us to understand your needs better
CheckMates Go:
SharePoint CVEs and More!
Hey, i keep getting an error when i try to backup with migrate import.
Both Systems are having the same R80.40 with same Hotfixes and DA.
Does anyone has an idea?
Here is the logfile:
[Expert@gw1:0]# vi /opt/CPshrd-R80.40/log/migrate-2021.03.09_13.50.17.log
[9 Mar 13:50:17] --> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] <-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] --> AddExpansionMacro
[9 Mar 13:50:17] <-- AddExpansionMacro
[9 Mar 13:50:17] --> SetupMacroExpansions
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'JAVA_HOME' to '/opt/CPshrd-R80.40/jre_32'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'MDS_FWDIR' to '/opt/CPsuite-R80.40/fw1'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'PGDIR' to '/opt/CPshrd-R80.40/database/postgresql'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> GetAceDir
[9 Mar 13:50:17] [GetAceDir] Checking ACEDATA environment variable
[9 Mar 13:50:17] [GetAceDir] ACEDATA is not defined
[9 Mar 13:50:17] .<-- GetAceDir
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'ACEDIR' to '/var/ace/'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] [SetupMacroExpansions] $UAGDIR is not defined
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'SECUREXLDIR' to '/opt/CPppak-R80.40'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> GetRtdirBasePath
[9 Mar 13:50:17] [GetRtdirBasePath] $RTDIR_BASE is not defined in the environment, trying to resolve it
[9 Mar 13:50:17] [GetRtdirBasePath] Current environment doesn't need this env. variable, nothing to do
[9 Mar 13:50:17] .<-- GetRtdirBasePath
[9 Mar 13:50:17] [SetupMacroExpansions] $RTDIR_BASE is not defined
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'RTDIR' to '/opt/CPrt-R80.40'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'SMARTLOGDIR' to '/opt/CPSmartLog-R80.40'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'EXPORTERDIR' to '/opt/CPrt-R80.40/log_exporter'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'INDEXERDIR' to '/opt/CPrt-R80.40/log_indexer'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] <-- SetupMacroExpansions
[9 Mar 13:50:17] --> SetupMacroExpansions
[9 Mar 13:50:17] .--> UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .<-- UpgradeMacroReplacer::Instance
[9 Mar 13:50:17] .--> AddExpansionMacro
[9 Mar 13:50:17] [AddExpansionMacro] Setting macro 'UEPMDIR' to '/opt/CPuepm-R80.40'
[9 Mar 13:50:17] .<-- AddExpansionMacro
[9 Mar 13:50:17] <-- SetupMacroExpansions
[9 Mar 13:50:17] --> SetupPatternMatching
[9 Mar 13:50:17] [SetupPatternMatching] Initialized PM subsystem
Looks like your export file is damaged:
[9 Mar 13:50:19] [GetMigrateUtilPath] Looking for migrate helper utility in path '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/migrate_utils/gzip'...<-- UpgradeMacroReplacer::Instance[GetMigrateUtilPath] Looking for migrate helper utility in path '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/migrate_utils/gzip'.--> UpgradeMacroReplacer::Instance...<-- UpgradeMacroReplacer::Instance[GetMigrateUtilPath] Utility is not found in this path, presuming it is in default location at '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gzip'<-- GetMigrateUtilPath..--> GetMigrateUtilPath...--> UpgradeMacroReplacer::Instance.<-- UpgradeMacroReplacer::InstanceGetMigrateUtilPath] Looking for migrate helper utility in path '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/migrate_utils/gtar'..--> UpgradeMacroReplacer::Instance...<-- UpgradeMacroReplacer::Instance[GetMigrateUtilPath] Utility is not found in this path, presuming it is in default location at '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar'<-- GetMigrateUtilPath--> ExecCommandGetOutput[ExecCommandGetOutput] Going to execute command: '"/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar" -x "--use-compress-program=/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gzip" -f "/var/log/export_database.tgz"'[ExecCommandGetOutput] Command completed with an exit code 2[ExecCommandGetOutput] ERR: The given exit code indicates an error..<-- ExecCommandGetOutputTgzExtractor::exec] Command's output:-------------------------------------gzip: stdin: invalid compressed data--format violated
/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar: Skipping to next header/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar: Child returned status 1/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar: Error is not recoverable: exiting now
I would try to expand /var/log/export_database.tgz on my desktop and see if the issue replicates there. If yes, generating a new export is suggested....
Where is the error ?
Thats, what im looking for.
it only says:
[Expert@gw1:0]# ./migrate import /var/log/export_database.tgz
The import operation will eventually stop all Check Point services (cpstop).
Do you want to continue? (y/n) [n]? y
Extracting the database...
Execution finished with errors. See log file '/opt/CPshrd-R80.40/log/migrate-2021.03.09_14.40.57.log' for further details
You log just stops before licenses are checked. Is that really the whole log file ?
Gimme an:
# tail /opt/CPshrd-R80.40/log/migrate-2021.03.09_14.40.57.log
[Expert@gw1:0]# tail /opt/CPshrd-R80.40/log/migrate-2021.03.09_13.50.17.log
[9 Mar 13:50:19] [CleanupManager::DoCleanup] Starting to perform cleanup
[9 Mar 13:50:19] .--> DirCleaner::exec
[9 Mar 13:50:19] [DirCleaner::exec] Going to remove directory '/opt/CPsuite-R80.40/fw1/tmp/migrate/'
[9 Mar 13:50:19] .<-- DirCleaner::exec
[9 Mar 13:50:19] .--> ImportFailureMarker::exec
[9 Mar 13:50:19] [ImportFailureMarker::exec] Checking if cleaner is active
[9 Mar 13:50:19] [ImportFailureMarker::exec] Cleaner is not active, nothing to do
[9 Mar 13:50:19] .<-- ImportFailureMarker::exec
[9 Mar 13:50:19] [CleanupManager::DoCleanup] Completed the cleanup
[9 Mar 13:50:19] <-- CleanupManager::DoCleanup
See ? vi only shows the first few lines ! Either transfer the file to your desktop and edit it there, or use
# tail -n 100 /opt/CPshrd-R80.40/log/migrate-2021.03.09_14.40.57.log
to show the last 100 lines
Mostly this is caused by no disk space left 8)
[Expert@gw1:0]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_splat-lv_current 33027952 11914744 19435488 39% /
/dev/sda1 295561 110553 169748 40% /boot
tmpfs 3943144 6548 3936596 1% /dev/shm
/dev/mapper/vg_splat-lv_log 60944380 41980092 15818560 73% /var/log
The disk space seems pretty ok for me 😕
So what is the error from /opt/CPshrd-R80.40/log/migrate-2021.03.09_13.50.17.log ???
# cat /opt/CPshrd-R80.40/log/migrate-2021.03.09_13.50.17.log | grep ERR
[Expert@gw1:0]# cat /opt/CPshrd-R80.40/log/migrate-2021.03.09_13.50.17.log | grep ERR
[9 Mar 13:50:19] [ExecCommandGetOutput] ERR: The given exit code indicates an error
[9 Mar 13:50:19] [TgzExtractor::exec] ERR: Execution failed
[9 Mar 13:50:19] [ActivitiesManager::exec] ERR: Activity 'ConditionalExecutor' failed
Now try:
# cat /opt/CPshrd-R80.40/log/migrate-2021.03.09_13.50.17.log | grep [9 Mar 13:50:19]
But i fear you will have to consult TAC abnd upload the migrate-2021.03.09_13.50.17.log
Looks like your export file is damaged:
[9 Mar 13:50:19] [GetMigrateUtilPath] Looking for migrate helper utility in path '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/migrate_utils/gzip'...<-- UpgradeMacroReplacer::Instance[GetMigrateUtilPath] Looking for migrate helper utility in path '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/migrate_utils/gzip'.--> UpgradeMacroReplacer::Instance...<-- UpgradeMacroReplacer::Instance[GetMigrateUtilPath] Utility is not found in this path, presuming it is in default location at '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gzip'<-- GetMigrateUtilPath..--> GetMigrateUtilPath...--> UpgradeMacroReplacer::Instance.<-- UpgradeMacroReplacer::InstanceGetMigrateUtilPath] Looking for migrate helper utility in path '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/migrate_utils/gtar'..--> UpgradeMacroReplacer::Instance...<-- UpgradeMacroReplacer::Instance[GetMigrateUtilPath] Utility is not found in this path, presuming it is in default location at '/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar'<-- GetMigrateUtilPath--> ExecCommandGetOutput[ExecCommandGetOutput] Going to execute command: '"/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar" -x "--use-compress-program=/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gzip" -f "/var/log/export_database.tgz"'[ExecCommandGetOutput] Command completed with an exit code 2[ExecCommandGetOutput] ERR: The given exit code indicates an error..<-- ExecCommandGetOutputTgzExtractor::exec] Command's output:-------------------------------------gzip: stdin: invalid compressed data--format violated
/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar: Skipping to next header/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar: Child returned status 1/opt/CPsuite-R80.40/fw1/bin/upgrade_tools/././/gtar: Error is not recoverable: exiting now
I would try to expand /var/log/export_database.tgz on my desktop and see if the issue replicates there. If yes, generating a new export is suggested....
It seemed that there is something wrong with migrate export on the base system.
Every file im creating looks damanged.
Download from here : Migration tools for All Gaia versions and Secure Platform versions above R75.40 and re-install.
What are you migrate importing from (which version)?
R80.40 HF Bundle T87
Perhaps it is an accidental error, but you backup configuration with "migrate export".
Import is used for recovery.
If you were trying to perform the "migrate export", please confirm that you did NOT specify the extension for the resultant archive (i.e. no .tgz .tar etc..).
Try re-runing the migrate export again with the output located in /var/log/<exportfilename_without_extension>.
If you were not already doing it this way, try:
----
>>>Establish an SSH session to the Management Server and change mode to "Expert".
Change current directory to the one containing "upgrade_tools" and execute silent, non-timing out export:
----
[Expert@CPMGMT:0]# cd $FWDIR/bin/upgrade_tools/
[Expert@CPMGMT:0]# yes | nohup ./migrate export /var/log/<managementserverexportfile>
nohup: appending output to 'nohup.out'
----
>>>Create duplicate Putty session to the management server,
logon and change mode to "Expert".
In this second Putty session, change current directory to the one containing "update_tools" and
start trailing the log of the export process, the "nohup.out" file:
----
[Expert@CPMGMT:0]#
[Expert@CPMGMT:0]# cd $FWDIR/bin/upgrade_tools/
[Expert@CPMGMT:0]# tail -F nohup.out
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
17 | |
12 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 |
Tue 07 Oct 2025 @ 10:00 AM (CEST)
Cloud Architect Series: AI-Powered API Security with CloudGuard WAFThu 09 Oct 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: Discover How to Stop Data Leaks in GenAI Tools: Live Demo You Can’t Miss!Thu 09 Oct 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: Discover How to Stop Data Leaks in GenAI Tools: Live Demo You Can’t Miss!Wed 22 Oct 2025 @ 11:00 AM (EDT)
Firewall Uptime, Reimagined: How AIOps Simplifies Operations and Prevents OutagesAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY