TITLE:
pleskbackup fails from cron
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Product Plesk Onyx
Version 17.8.11 Update #7, last updated on May 10, 2018 12:31 AM
OS CentOS 6.9 (Final)
PROBLEM DESCRIPTION:Version 17.8.11 Update #7, last updated on May 10, 2018 12:31 AM
OS CentOS 6.9 (Final)
Running pleskbackup as a scheduled task (as root) fails, same command completes fine from the command line:
/usr/local/psa/bin/pleskbackup server -c --output-file="/home/backup/plesk_all_conf_sch.tgz" -vvvvv
The error given: <description>Unable to create dump</description>
This was working in an older version of Plesk (not sure which upgrade broke it).
STEPS TO REPRODUCE:/usr/local/psa/bin/pleskbackup server -c --output-file="/home/backup/plesk_all_conf_sch.tgz" -vvvvv
The error given: <description>Unable to create dump</description>
This was working in an older version of Plesk (not sure which upgrade broke it).
Crontab contains:
10 * * * * /usr/local/psa/bin/pleskbackup server -c --output-file="/home/backup/plesk_all_conf_sch.tgz" -vvvvv
(configured via Plesk Scheduled Task)
ACTUAL RESULT:10 * * * * /usr/local/psa/bin/pleskbackup server -c --output-file="/home/backup/plesk_all_conf_sch.tgz" -vvvvv
(configured via Plesk Scheduled Task)
.-------------- Start print backup log hire -------------- <?xml version="1.0" encoding="UTF-8"?>
<execution-result status="error" log-location="/usr/local/psa/PMM/sessions/2018-05-17-161001.943/migration.result">
<object name="server" type="server">
<message id="27ba9a5c-61a3-44f3-8e15-4d4fe853380a" severity="error" code="fatal">
<description>Unable to create dump</description>
</message>
</object>
</execution-result>
-------------- End print backup log hire --------------
You can view additional information in the log file located in /usr/local/psa/PMM/sessions/2018-05-17-161001.943 directory. This directory will be removed automatically after 30 days
Runtime error: The backup failed with errors!
psadump.log contains:
EXPECTED RESULT:<execution-result status="error" log-location="/usr/local/psa/PMM/sessions/2018-05-17-161001.943/migration.result">
<object name="server" type="server">
<message id="27ba9a5c-61a3-44f3-8e15-4d4fe853380a" severity="error" code="fatal">
<description>Unable to create dump</description>
</message>
</object>
</execution-result>
-------------- End print backup log hire --------------
You can view additional information in the log file located in /usr/local/psa/PMM/sessions/2018-05-17-161001.943 directory. This directory will be removed automatically after 30 days
Runtime error: The backup failed with errors!
psadump.log contains:
[8056]: 2018-05-17 17:18:12.818 DEBUG Execute: /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/sbin/backup_restore_helper --get-extensions-hooks
[8056]: 2018-05-17 17:18:13.655 TRACE SQL: SELECT id, host, port, type, admin_login, admin_password, server_version FROM DatabaseServers: Params:
[8056]: 2018-05-17 17:18:13.657 DEBUG Set backup owner guid '00000000-0000-0000-0000-000000000000', type 'server'
[8056]: 2018-05-17 17:18:13.657 DEBUG Select to backup Administrator info
[8056]: 2018-05-17 17:18:13.657 DEBUG Select to backup server settings
[8056]: 2018-05-17 17:18:13.657 DEBUG Select to backup server settings
[8056]: 2018-05-17 17:18:13.659 DEBUG The dump of content is switched off
[8056]: 2018-05-17 17:18:13.659 DEBUG Execute: /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/sbin/backup_restore_helper --backup-server-info
[8056]: 2018-05-17 17:18:14.531 TRACE SQL: SELECT e.name, e.value FROM ServiceNodeEnvironment AS e INNER JOIN ServiceNodes AS n ON e.serviceNodeId = n.id WHERE n.ipAddress = 'local' AND e.section = 'componentsPackages' AND e.value IS NOT NULL AND e.value <> '': Params:
[8056]: 2018-05-17 17:18:14.539 DEBUG Wait termination of child processes
[8056]: 2018-05-17 17:18:14.539 DEBUG Execute: pkill -P 8056
[8056]: 2018-05-17 17:18:14.561 DEBUG Delete dump files
[8056]: 2018-05-17 17:18:14.561 DEBUG Exec: /usr/local/psa/admin/sbin/pmm-ras --delete-dump-files --dump-storage /home/backup --dump-file-specification plesk_all_conf_sch.tgz --session-path /usr/local/psa/PMM/sessions/2018-05-17-171809.336 --debug --verbose
[8056]: 2018-05-17 17:18:14.620 DEBUG Unable to delete dump files: Repository error: file plesk_all_conf_sch.tgz not exists
[8056]: 2018-05-17 17:18:14.620 DEBUG Unable to create dump: Can't locate object method "setMarkers" via package "Packer" at /usr/local/psa/PMM/agents/PleskX/PleskX.pm line 611.
[8056]: 2018-05-17 17:18:14.620 ERROR d4c3ebbb-6373-4dff-8508-5a537e8f1ed1 Unable to create dump:
at /usr/local/psa/PMM/agents/shared/Logging.pm line 128
Logging::error('Unable to create dump', 'fatal') called at /usr/local/psa/admin/bin/plesk_agent_manager line 780
main::__ANON__('Error::Simple=HASH(0x3c7fa40)', 'SCALAR(0x2945130)') called at /usr/local/psa/PMM/agents/shared/Error.pm line 330
eval {...} called at /usr/local/psa/PMM/agents/shared/Error.pm line 321
Error::subs::run_clauses('HASH(0x3cf95e8)', 'Can\'t locate object method "setMarkers" via package "Packer"...', undef, 'ARRAY(0x3cff448)') called at /usr/local/psa/PMM/agents/shared/Error.pm line 417
Error::subs::try('CODE(0x3cfeb90)', 'HASH(0x3cf95e8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 782
main:erform('verbose', 4, 'owner-type', 'server', 'include-increments', 0, 'split-size', undef, 'session-path', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1410
main::__ANON__() called at /usr/local/psa/PMM/agents/shared/Error.pm line 406
eval {...} called at /usr/local/psa/PMM/agents/shared/Error.pm line 398
Error::subs::try('CODE(0x268aac0)', 'HASH(0x38b5fd8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1418
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1422
Successful backup with no errors.
ANY ADDITIONAL INFORMATION:Working in an older version of Plesk
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug