Search

Blogroll

Meta:

Vhimport failing to restore site backup

April 26th, 2009 by vicky

When you experience error during EnsimX import script like this:

Unknown Error: Traceback (most recent call last):
File “vhbackuplib.py”, line 54, in call_backend_import
File “virtualhosting/virthost.py”, line 4575, in vhimport
File “virtualhosting/virthost.py”, line 4730, in __do_import
File “virtualhosting/virthost.py”, line 5030, in __site_import
File “virtualhosting/virthost.py”, line 3300, in handle_remaining_files
File “virtualhosting/virthost.py”, line 3380, in link
OSError: [Errno 17] File exists

the cause may be in X11 symlink on OS other than FC6. The cure is as follows:

mv /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/X11{,XTEMP}
vhimport site_backup.tar.gz
mv /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/XTEMP{,X11}

Basicaly what is does it renames /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/X11 and after the restore is successful it renames it back to original name.

Posted in Ensim | No Comments »

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.