Article ID: 128822, created on May 12, 2016, last review on May 12, 2016

  • Applies to:
  • Plesk Automation 11.1

Symptoms

The following error is displayed in the Customer Control Panel on attempt to create a website backup:

Could not connect to 192.168.0.10
    Error:  server "server"
    Runtime error: Can't call method "put" on an undefined value at /usr/local/psa/PMM/agents/shared/Storage/FtpFileStorage.pm line 245.
     at /usr/local/psa/PMM/agents/shared/Storage/FtpFileStorage.pm line 245
            Storage::FtpFileStorage::uploadFileToFtp('Storage::FtpFileStorage=HASH(0x3d65eb8)', '/var/lib/psa/dumps/resellers/reseller1/clients/client1/d...', 'resellers/reseller1/clients/client1/domains/example...') called at /usr/local/psa/PMM/agents/shared/Storage/FtpFileStorage.pm line 293
            Storage::FtpFileStorage::CleanupFiles('Storage::FtpFileStorage=HASH(0x3d65eb8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 674
            main::__ANON__('Error::Simple=HASH(0x3a27de0)', 'SCALAR(0x31bf7a0)') 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(0x3a265f8)', 'Can\'t call method "mkdir" on an undefined value at /usr/loca...', undef, 'ARRAY(0x3a267f0)') called at /usr/local/psa/PMM/agents/shared/Error.pm line 417
            Error::subs::try('CODE(0x3a26358)', 'HASH(0x3a265f8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 680
            main::perform('verbose', 4, 'owner-type', 'server', 'split-size', undef, 'session-path', '/usr/local/psa/PMM/sessions/2015-04-28-121233.48', 'description', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1331
            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(0x3d58560)', 'HASH(0x3d58890)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1339
            main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1343.

The error below can be found in the backup session log /usr/local/psa/PMM/sessions/<sess_id>/psadump.log:

    [13899]: 07:24:01 DEBUG passive
    [13899]: 07:25:04 ERROR 31af1a07-1637-4b73-8e61-65814b48c36c Could not connect to 192.168.0.10 <---
    [13899]: 07:25:04 DEBUG Tar bundle. id=resellers/example/clients/client1/domains/example.com/test2___example.com_vhost_1312261122:gzipped, destFile=/var/lib/psa/dumps/resellers/reseller1/clients/client1/domains/example.com/test2___example.com_vhost_1312261122
    [13946]: 07:25:04 DEBUG FileFinder: tar resolved to /bin/tar
    [13946]: 07:25:04 DEBUG Executing bundle producer: 'su sub2639_44 --shell /bin/bash -c "/bin/tar -f - -c --anchored  -X '/tmp/filehM0H85' *"' in /var/www/vhosts/example.com

Cause

No route between the web service node and backup node or firewall on the backup node blocks connections.

Resolution

  1. Make sure the there is a route between the web service node and the backup node:

    Run on the web service node:

    # traceroute 192.168.0.10
    

    configure proper routing if any issues found.

  2. Add web server IP address and Management node IP addresses in the list of allowed IP's. For example and retry creating backup:

    iptables -I INPUT -s 192.168.0.2 -j ACCEPT
    iptables -I INPUT -s 192.168.0.5 -j ACCEPT
    

    Where is 192.168.0.5 IP address of web service node and 192.168.0.2 is the IP address of the management node.

Search Words

Runtime error: Can't call method "put" on an undefined value at

cannot

backup does not work

connect to backup node

Could not connect to

backup node

c1ecc6010feff26cb42d1d14a7881dd6 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF