Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
ISOC_Imerja
Explorer

Database export failed -R80.20

Good Morning Guys,

We trying backups our device and its keep failing with following error after entering the command "./migrate export /var/log/":

error: 

FWM:0]# ./migrate export /var/log/
Can opening TdError log file /opt/CPshrd-R80.20/log/migrate-2019.12.22_04.02.20.log: No such file or directory
[22 Dec 4:02:20] [SetupLogging] WRN: Failed to initialize logging, continuing logging to the screen
[22 Dec 4:02:20] --> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] <-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] --> AddExpansionMacro
[22 Dec 4:02:20] <-- AddExpansionMacro
[22 Dec 4:02:20] --> SetupMacroExpansions
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'JAVA_HOME' to '/opt/CPshrd-R80.20/jre_32'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'MDS_FWDIR' to '/opt/CPsuite-R80.20/fw1'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'PGDIR' to '/opt/CPshrd-R80.20/database/postgresql'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] .--> GetAceDir
[22 Dec 4:02:20] [GetAceDir] Checking ACEDATA environment variable
[22 Dec 4:02:20] [GetAceDir] ACEDATA is not defined
[22 Dec 4:02:20] .<-- GetAceDir
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'ACEDIR' to '/var/ace/'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] [SetupMacroExpansions] $UAGDIR is not defined
[22 Dec 4:02:20] [SetupMacroExpansions] $SECUREXLDIR is not defined
[22 Dec 4:02:20] .--> GetRtdirBasePath
[22 Dec 4:02:20] [GetRtdirBasePath] $RTDIR_BASE is not defined in the environment, trying to resolve it
[22 Dec 4:02:20] [GetRtdirBasePath] Current environment doesn't need this env. variable, nothing to do
[22 Dec 4:02:20] .<-- GetRtdirBasePath
[22 Dec 4:02:20] [SetupMacroExpansions] $RTDIR_BASE is not defined
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'RTDIR' to '/opt/CPrt-R80.20'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'SMARTLOGDIR' to '/opt/CPSmartLog-R80.20'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'EXPORTERDIR' to '/opt/CPrt-R80.20/log_exporter'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'INDEXERDIR' to '/opt/CPrt-R80.20/log_indexer'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] <-- SetupMacroExpansions
[22 Dec 4:02:20] --> SetupMacroExpansions
[22 Dec 4:02:20] .--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] .--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'UEPMDIR' to '/opt/CPuepm-R80.20'
[22 Dec 4:02:20] .<-- AddExpansionMacro
[22 Dec 4:02:20] <-- SetupMacroExpansions
[22 Dec 4:02:20] --> SetupPatternMatching
[22 Dec 4:02:20] [SetupPatternMatching] Initialized PM subsystem
[22 Dec 4:02:20] <-- SetupPatternMatching
[22 Dec 4:02:20] --> InitLicenseApi
[22 Dec 4:02:20] [InitLicenseApi] Initializing licensing API
[22 Dec 4:02:20] [InitLicenseApi] Initialization done
[22 Dec 4:02:20] <-- InitLicenseApi
[22 Dec 4:02:20] --> CommandLineArgsManager::CommandLineArgsManager
[22 Dec 4:02:20] [CommandLineArgsManager::CommandLineArgsManager] Found argument: ./migrate
[22 Dec 4:02:20] [CommandLineArgsManager::CommandLineArgsManager] Found argument: export
[22 Dec 4:02:20] [CommandLineArgsManager::CommandLineArgsManager] Found argument: /var/log/
[22 Dec 4:02:20] <-- CommandLineArgsManager::CommandLineArgsManager
[22 Dec 4:02:20] --> CommandLineArgsManager::ParseCommandLine
[22 Dec 4:02:20] .--> CommandLineArgsManager::ParseExePath
[22 Dec 4:02:20] ..--> SplitPath
[22 Dec 4:02:20] [SplitPath] Splitting path './migrate'
[22 Dec 4:02:20] [SplitPath] Result:
Directory part: './'
File part: 'migrate'
[22 Dec 4:02:20] ..<-- SplitPath
[22 Dec 4:02:20] ..--> AddExecutableExtension
[22 Dec 4:02:20] ..<-- AddExecutableExtension
[22 Dec 4:02:20] ..--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] ..<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] ..--> ConvertPathToAbsolute
[22 Dec 4:02:20] [ConvertPathToAbsolute] Converting path './' to absolute path
[22 Dec 4:02:20] ...--> GetCurrentDir
[22 Dec 4:02:20] ....--> CanonicalizePath
[22 Dec 4:02:20] [CanonicalizePath] Canonicalizing path '/opt/CPsuite-R80.20/fw1/bin/upgrade_tools'
[22 Dec 4:02:20] [CanonicalizePath] Resulting path: '/opt/CPsuite-R80.20/fw1/bin/upgrade_tools/'
[22 Dec 4:02:20] ....<-- CanonicalizePath
[22 Dec 4:02:20] [GetCurrentDir] Found that current directory is: '/opt/CPsuite-R80.20/fw1/bin/upgrade_tools/'
[22 Dec 4:02:20] ...<-- GetCurrentDir
[22 Dec 4:02:20] [ConvertPathToAbsolute] The resulting path is: '/opt/CPsuite-R80.20/fw1/bin/upgrade_tools/././'
[22 Dec 4:02:20] ..<-- ConvertPathToAbsolute
[22 Dec 4:02:20] ..--> AddExpansionMacro
[22 Dec 4:02:20] [AddExpansionMacro] Setting macro 'EXEPATH' to '/opt/CPsuite-R80.20/fw1/bin/upgrade_tools/././'
[22 Dec 4:02:20] ..<-- AddExpansionMacro
[22 Dec 4:02:20] .<-- CommandLineArgsManager::ParseExePath
[22 Dec 4:02:20] .--> CommandLineArgsManager::InitApplicationConfig
[22 Dec 4:02:20] ..--> GetConfig
[22 Dec 4:02:20] ...--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] ...<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] ...--> ReadFwsetFile
[22 Dec 4:02:20] ....--> UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] ....<-- UpgradeMacroReplacer::Instance
[22 Dec 4:02:20] [ReadFwsetFile] Going to read file '/opt/CPsuite-R80.20/fw1/bin/upgrade_tools/././migrate.conf'
[22 Dec 4:02:20] [ReadFwsetFile] Succeeded to read file
[22 Dec 4:02:20] ...<-- ReadFwsetFile
[22 Dec 4:02:20] [GetConfig] Got config file
[22 Dec 4:02:20] ..<-- GetConfig
[22 Dec 4:02:20] .<-- CommandLineArgsManager::InitApplicationConfig
[22 Dec 4:02:20] .--> CommandLineArgsManager::ParseArguments
[22 Dec 4:02:20] ..--> CommandLineArgsManager::GetActionInfo
[22 Dec 4:02:20] ...--> GetFilePart
[22 Dec 4:02:20] ....--> SplitPath
[22 Dec 4:02:20] [SplitPath] Splitting path './migrate'
[22 Dec 4:02:20] [SplitPath] Result:
Directory part: './'
File part: 'migrate'
[22 Dec 4:02:20] ....<-- SplitPath
[22 Dec 4:02:20] ...<-- GetFilePart
[22 Dec 4:02:20] ...--> AddExecutableExtension
[22 Dec 4:02:20] ...<-- AddExecutableExtension
[22 Dec 4:02:20] ...--> AddExecutableExtension
[22 Dec 4:02:20] ...<-- AddExecutableExtension
[22 Dec 4:02:20] ...--> AddExecutableExtension
[22 Dec 4:02:20] ...<-- AddExecutableExtension
[22 Dec 4:02:20] ...--> AddExecutableExtension
[22 Dec 4:02:20] ...<-- AddExecutableExtension
[22 Dec 4:02:20] [CommandLineArgsManager::GetActionInfo] Found that executable's name is migrate
[22 Dec 4:02:20] [CommandLineArgsManager::GetActionInfo] Found that action is export
[22 Dec 4:02:20] ..<-- CommandLineArgsManager::GetActionInfo
[22 Dec 4:02:20] ..--> GetConfig
[22 Dec 4:02:20] ..<-- GetConfig
[22 Dec 4:02:20] ..--> CommonParamsParser::ParseParams
[22 Dec 4:02:20] ...--> GetConfig
[22 Dec 4:02:20] ...<-- GetConfig
[22 Dec 4:02:20] [CommonParamsParser::ParseParams] Found option: '/var/log/'
[22 Dec 4:02:20] ...--> GetOptionWithArgument
[22 Dec 4:02:20] ...<-- GetOptionWithArgument
[22 Dec 4:02:20] ...--> GetOptionWithArgument
[22 Dec 4:02:20] ...<-- GetOptionWithArgument
[22 Dec 4:02:20] ...--> GetOptionWithArgument
[22 Dec 4:02:20] ...<-- GetOptionWithArgument
[22 Dec 4:02:20] ..<-- CommonParamsParser::ParseParams
[22 Dec 4:02:20] ..--> CommandLineArgsManager::ActionParsers
[22 Dec 4:02:20] ..<-- CommandLineArgsManager::ActionParsers
[22 Dec 4:02:20] ..--> CommandLineArgsManager::ActionParsers
[22 Dec 4:02:20] ..<-- CommandLineArgsManager::ActionParsers
[22 Dec 4:02:20] ..--> CommandLineArgsManager::ActionParsers
[22 Dec 4:02:20] ..<-- CommandLineArgsManager::ActionParsers
[22 Dec 4:02:20] ..--> ActionParamsParser::ParseParams
[22 Dec 4:02:20] ...--> ExportParamsParser::DoParamsParsing
[22 Dec 4:02:20] ....--> GetConfig
[22 Dec 4:02:20] ....<-- GetConfig
[22 Dec 4:02:20] [ExportParamsParser::DoParamsParsing] Found option: '/var/log/'
[22 Dec 4:02:20] ...<-- ExportParamsParser::DoParamsParsing
[22 Dec 4:02:20] [ActionParamsParser::ParseParams] Parsed parameters for specific command
[22 Dec 4:02:20] ...--> ActionParamsParser::ParseArchivePath
[22 Dec 4:02:20] ....--> ActionParamsParser::VerifyRemainingParams
[22 Dec 4:02:20] .....--> GetConfig
[22 Dec 4:02:20] .....<-- GetConfig
[22 Dec 4:02:20] ....<-- ActionParamsParser::VerifyRemainingParams
[22 Dec 4:02:20] ....--> ActionParamsParser::VerifyArchivePath
[22 Dec 4:02:20] .....--> SplitPath
[22 Dec 4:02:20] [SplitPath] Splitting path '/var/log/'
[22 Dec 4:02:20] [SplitPath] Result:
Directory part: '/var/log/'
File part: ''
[22 Dec 4:02:20] .....<-- SplitPath
[22 Dec 4:02:20] [ActionParamsParser::VerifyArchivePath] ERR: Name of archive file is missing in the command
[22 Dec 4:02:20] ....<-- ActionParamsParser::VerifyArchivePath
[22 Dec 4:02:20] ...<-- ActionParamsParser::ParseArchivePath
[22 Dec 4:02:20] ..<-- ActionParamsParser::ParseParams
[22 Dec 4:02:20] [CommandLineArgsManager::ParseArguments] ERR: Failed to parse command line arguments
[22 Dec 4:02:20] .<-- CommandLineArgsManager::ParseArguments
[22 Dec 4:02:20] [CommandLineArgsManager::ParseCommandLine] ERR: Failed to parse arguments
[22 Dec 4:02:20] <-- CommandLineArgsManager::ParseCommandLine
[22 Dec 4:02:20] --> PrintUsage
[22 Dec 4:02:20] .--> IsRunningInteractively
[22 Dec 4:02:20] ..--> GetConfig
[22 Dec 4:02:20] ..<-- GetConfig
[22 Dec 4:02:20] [IsRunningInteractively] Running interactively
[22 Dec 4:02:20] .<-- IsRunningInteractively
[22 Dec 4:02:20] .--> GetFilePart
[22 Dec 4:02:20] ..--> SplitPath
[22 Dec 4:02:20] [SplitPath] Splitting path './migrate'
[22 Dec 4:02:20] [SplitPath] Result:
Directory part: './'
File part: 'migrate'
[22 Dec 4:02:20] ..<-- SplitPath
[22 Dec 4:02:20] .<-- GetFilePart
[22 Dec 4:02:20] .--> AddExecutableExtension
[22 Dec 4:02:20] .<-- AddExecutableExtension
[22 Dec 4:02:20] .--> AddExecutableExtension
[22 Dec 4:02:20] .<-- AddExecutableExtension
[22 Dec 4:02:20] .--> AddExecutableExtension
[22 Dec 4:02:20] .<-- AddExecutableExtension
[22 Dec 4:02:20] .--> AddExecutableExtension
[22 Dec 4:02:20] .<-- AddExecutableExtension

Use the migrate utility to export and import Check Point
Security Management Server database.

Usage: migrate <ACTION> [OPTIONS] <FILE>


Action (required parameter):

export - exports database.

import - imports database.


Options (optional parameters):

-l - Export/import logs without log indexes.
-x - Export/import logs with log indexes.

Note: only closed logs are exported/imported.

-f - Filter private data.

Note: option is valid for export mode only.

-n - Run non-interactively

--exclude-uepm-postgres-db - skip over backup/restore of PostgreSQL.

--include-uepm-msi-files - export/import the uepm msi files.

--exclude-licenses - skip over backup/restore of licenses.


File (required parameter):

Name of archived file to export/import database to/from.
Path to archive should exist.


Note:
Run the utility either from the current directory or using
an absolute path.

[22 Dec 4:02:20] <-- PrintUsage

Can you please help us with this matter?

 

Thanks 

 

0 Kudos
2 Replies
PhoneBoy
Admin
Admin

The parameter you're supposed to give to migrate export is the name of the tarball that gets created, not /var/log/.
0 Kudos
HeikoAnkenbrand
Champion Champion
Champion

Insert the name for the tarball:

./migrate export /var/log/name

This command generated a file:

name.tgz

➜ CCSM Elite, CCME, CCTE ➜ www.checkpoint.tips
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events