pandaproject/panda — Issue #376: Solr migration only works once
Author: onyxfish
Created: 2012-01-26 22:09:07+00:00
State: open
Labels: bug

Traceback on 2nd run:

```
Beginning Solr migration
Connecting to EC2
Identifying running instance
Running instance is i-17c33972
Creating new volume
New volume is vol-4b130126
Finding an available device path
New device will be /dev/xvdh
Attaching new volume
Formatting volume
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262144 blocks
13107 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Creating temporary mount point
Mounting volume
Stopping Solr
solr stop/waiting
Copying indexes
Traceback (most recent call last):
File "test.py", line 89, in
shutil.copytree(src_path, dest_path)
File "/usr/lib/python2.7/shutil.py", line 174, in copytree
os.makedirs(dst)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/mnt/solrmigration/lost+found'
```