• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

plesk-restore feature generates error!

C

Cadey

Guest
hello

i did a full "clients" backup using the plesk-backup command line utility

later i wanted to restore only 1 domain out of the whome (call it mydomain.com) and i get error message below :
domain was not fully restored, only created but the files are not present!

(any clue??? thanks)

[root@srv61048 bin]# ./pleskrestore --restore /root/bkp -level domains -filter list:mydomain.com -map /root/map
------------------------------------------------------------------------
Restore has been started
------------------------------------------------------------------------
Temps écoulé : 00:00:00
Temps écoulé : 00:00:05Uncaught std::exception: UnixClientSocket::UnixClientSocket, connect: No such file or directory
Traceback (most recent call last):
File "/usr/local/psa/admin/share/supervisor/processor.py", line 116, in doActivityRunner
newState = self.doActivity()
File "/usr/local/psa/admin/share/supervisor/processor.py", line 817, in doActivity
cmd.spawn(os.environ.has_key("PLESKRESTORE_MODE"))
File "/usr/local/psa/admin/lib/python/subproc.py", line 238, in spawn
proc.run()
File "/usr/local/psa/admin/lib/python/subproc.py", line 193, in run
BaseSubprocess.run(self)
File "/usr/local/psa/admin/lib/python/subproc.py", line 177, in run
self.wait()
File "/usr/local/psa/admin/lib/python/subproc.py", line 197, in wait
BaseSubprocess.wait(self)
File "/usr/local/psa/admin/lib/python/subproc.py", line 187, in wait
raise NonzeroExitException(self, os.WEXITSTATUS(status))
NonzeroExitException: was finished with exit code 1
 
Hi,

First of all make sure that you have enough disk space on your server.

If it is not the case then try running pleskrestore with --verbose option and check restore logs which should be located under
/var/lib/psa/dumps/...

or

/usr/local/psa/PMM/var/log/....

can't remember exact path.
If you find any additional information in logs post it here and let's check if will be any suggestions.
 
I get the same error and can't restore from backup (Plesk 8.3, FC7).
This is the error from the restore process:

Uncaught std::exception: UnixClientSocket::UnixClientSocket, connect: No such file or directory
Traceback (most recent call last):
File "/usr/local/psa/admin/share/supervisor/processor.py", line 116, in doActivityRunner
newState = self.doActivity()
File "/usr/local/psa/admin/share/supervisor/processor.py", line 817, in doActivity
cmd.spawn(os.environ.has_key("PLESKRESTORE_MODE"))
File "/usr/local/psa/admin/lib/python/subproc.py", line 238, in spawn
proc.run()
File "/usr/local/psa/admin/lib/python/subproc.py", line 193, in run
BaseSubprocess.run(self)
File "/usr/local/psa/admin/lib/python/subproc.py", line 177, in run
self.wait()
File "/usr/local/psa/admin/lib/python/subproc.py", line 197, in wait
BaseSubprocess.wait(self)
File "/usr/local/psa/admin/lib/python/subproc.py", line 187, in wait
raise NonzeroExitException(self, os.WEXITSTATUS(status))
NonzeroExitException: was finished with exit code 1

and this is the logged error:

2008-08-11 19:24:40,866 INFO Packet succesfully validated.
2008-08-11 19:24:43,296 INFO Subprocess <subprocess[27768] '/usr/local/psa/admin/sbin/deployer' '--session-path=/opt/backup/restore' '--deploy-dump' '--backup-user=admin' '--backup-user-type=admin' '--socket-path=/usr/local/psa/tmp/backup-extractor.27726'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

2008-08-11 19:24:45,867 INFO Incoming packet:
<?xml version='1.0' encoding='UTF-8'?>
<action>
<get-status/>
</action>

2008-08-11 19:24:45,868 INFO Packet succesfully validated.
2008-08-11 19:24:40,847 INFO Incoming packet:
<?xml version='1.0' encoding='UTF-8'?>
<action>
<get-status/>
</action>

2008-08-11 19:24:40,848 INFO Packet succesfully validated.
2008-08-11 19:24:40,866 INFO Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?><action-response action-internal-name="RestoreDeploymentState">
<working>
<deploy domains="31" accounts-left="1" accounts="1" domains-left="31">
<current-object type="account">espen</current-object>
</deploy>
</working>
</action-response>

2008-08-11 19:24:40,866 INFO Packet succesfully validated.
2008-08-11 19:24:43,296 INFO Subprocess <subprocess[27768] '/usr/local/psa/admin/sbin/deployer' '--session-path=/opt/backup/restore' '--deploy-dump' '--backup-user=admin' '--backup-user-type=admin' '--socket-path=/usr/local/psa/tmp/backup-extractor.27726'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

2008-08-11 19:24:45,867 INFO Incoming packet:
<?xml version='1.0' encoding='UTF-8'?>
<action>
<get-status/>
</action>

2008-08-11 19:24:45,868 INFO Packet succesfully validated.
2008-08-11 19:24:45,869 INFO Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?><action-response action-internal-name="FinishedState">
<finished status="error">
<message code="Error in RestoreDeploymentState.doActivity()">
<context></context>
<file></file>
<line></line>
<text>Traceback (most recent call last):
File &quot;/usr/local/psa/admin/share/supervisor/processor.py&quot;, line 116, in doActivityRunner
newState = self.doActivity()
File &quot;/usr/local/psa/admin/share/supervisor/processor.py&quot;, line 817, in doActivity
cmd.spawn(os.environ.has_key(&quot;PLESKRESTORE_MODE&quot;))
File &quot;/usr/local/psa/admin/lib/python/subproc.py&quot;, line 238, in spawn
proc.run()
File &quot;/usr/local/psa/admin/lib/python/subproc.py&quot;, line 193, in run
BaseSubprocess.run(self)
File &quot;/usr/local/psa/admin/lib/python/subproc.py&quot;, line 177, in run
self.wait()
 
i had the same problem today. i had secured the /tmp with noexec etc... but therefor the unixsocket didn't worked anymore... unsecuring the /tmp and it worked again....
 
I have had plesk look at this error for me. They have fixed it with the following :

I have changed the permissions to 1777:
[root@ns0 ~]# ls -ld /tmp
drwxrwxrwt 3 root root 12288 Oct 8 04:02 /tmp

And also did the same for the following directory:
[root@ns0 ~]# ls -ld /usr/local/psa/tmp
drwxrwxrwt 5 root root 4096 Oct 8 19:17 /usr/local/psa/tmp

Also I have created the backup signature:
[root@ns0 ~]# /usr/local/psa/admin/sbin/backup_sign generate

Then launched the backup again.
[root@ns0 ~]# /usr/local/psa/bin/pleskrestore --restore /root/bkp -map /root/map -level server -verbose


All is working!
 
Did Not Help Me

No, this did not help me. In addition to that, I get now a warning, too. Beside the warning everything is the same, restore not possible:

/usr/local/psa/bin/pleskrestore --restore /restore/PleskBackup_all_Mon -level domains -filter list:aufWeb.de -map /restore/PleskRestoreMap -verbose

WARNING: Backup file has wrong signature for this server

Traceback (most recent call last):
File "/usr/local/psa/admin/share/supervisor/processor.py", line 117, in doActivityRunner
newState = self.doActivity()
File "/usr/local/psa/admin/share/supervisor/processor.py", line 818, in doActivity
cmd.spawn(os.environ.has_key("PLESKRESTORE_MODE"))
File "/usr/local/psa/admin/lib/python/subproc.py", line 238, in spawn
proc.run()
File "/usr/local/psa/admin/lib/python/subproc.py", line 193, in run
BaseSubprocess.run(self)
File "/usr/local/psa/admin/lib/python/subproc.py", line 177, in run
self.wait()
File "/usr/local/psa/admin/lib/python/subproc.py", line 197, in wait
BaseSubprocess.wait(self)
File "/usr/local/psa/admin/lib/python/subproc.py", line 185, in wait
raise SignalException(self, os.WTERMSIG(status))
SignalException

This is sh..
 
Solution

This helped me:

# known problem to Plesk ... find file usr/local/psa/PMM/plesk.dtd.
# Search for ...
#
# <!ATTLIST pinfo
# name (company|phone|fax
# |address|city|state
# |zip|country|locale|email
# |name) #REQUIRED
#
# ... and replace line ...
#
# |name) #REQUIRED
#
# ... with ...
#
# |name|info_not_required) #REQUIRED
 
Back
Top