[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2279: attempt to restore, local file doesn't exist

Tahoe-LAFS trac at tahoe-lafs.org
Wed Aug 13 07:18:09 UTC 2014


#2279: attempt to restore, local file doesn't exist
----------------------+---------------------------
 Reporter:  jgillisp  |          Owner:  daira
     Type:  defect    |         Status:  new
 Priority:  normal    |      Milestone:  undecided
Component:  unknown   |        Version:  1.10.0
 Keywords:            |  Launchpad Bug:
----------------------+---------------------------
 some data needed to be removed to protect privacy, replaced with x
 {{{
 c:\allmydata-tahoe-1.10.0\bin>python tahoe cp -r tahoe:tahoe/Latest
 c:\_tahoe\xx
 xxxxxx\restoreTest_140810
 :0: UserWarning: You do not have a working installation of the
 service_identity
 module: 'No module named service_identity'.  Please install it from
 <https://pyp
 i.python.org/pypi/service_identity> and make sure all of its dependencies
 are sa
 tisfied.  Without the service_identity module and a recent enough
 pyOpenSSL to s
 upport it, Twisted can perform only rudimentary TLS client hostname
 verification
 .  Many valid certificate/hostname mappings may be rejected.
 Traceback (most recent call last):
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\runner.py", line
 156, in
  run
     rc = runner(sys.argv[1:], install_node_control=install_node_control)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\runner.py", line
 141, in
  runner
     rc = cli.dispatch[command](so)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\cli.py", line 551,
 in cp

     rc = tahoe_cp.copy(options)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 770,
 in copy
     return Copier().do_copy(options)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 451,
 in do_copy
     status = self.try_copy()
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 512,
 in try_copy
     return self.copy_to_directory(sources, target)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 672,
 in copy_to_directory
     self.copy_files_to_target(self.targetmap[target], target)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 703,
 in copy_files_to_target
     self.copy_file_into(source, name, target)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 748,
 in copy_file_into
     target.put_file(name, f)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\scripts\tahoe_cp.py", line
 158,
 in put_file
     fileutil.put_file(pathname, inf)
   File "c:\allmydata-tahoe-1.10.0\src\allmydata\util\fileutil.py", line
 274, in
 put_file
     outf = open(os.path.expanduser(pathname), "wb")
 IOError: [Errno 2] No such file or directory:
 u'c:\\_tahoe\\xxxxxxxx\\restoreTes
 t_140810\\~Backup\\080814\\Users Shared
 Folders\\xxxxxxxxxxxx\\Clients\\Closed\\
 xxxxxxxxxxxxxxxxx\\Docs Prior to xxxx\\xxxxxxxxxxxxxxxxxxx\\xxxxxxxx,
 xxxxxxxxxxx
 xxxxx & xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (
 xxxxxxxxxxxxxxxxxx
 xxx. xx, xxxx).pdf'

 c:\allmydata-tahoe-1.10.0\bin>
 }}}
 All I can say for certain is that the string being complained about is
 unicode (the u before the leading ') and contains ampersands, parentheses,
 and commas.  I attempted the restore twice to see if this was a problem
 with not running the cp command in administrator.  First attempt restored
 6149 files.  Second attempt restored to a total of 16167 files.  Both
 attempts returned a no such file IOError.

 Files were missing from other directories (notably outside of the
 "~Backup" folder) but were restored up to and including files in the "Docs
 Prior to xxxx" directory.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2279>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list