#849 new defect

Tahoe cp command refuses to copy remote files to a local directory that contains special files

Reported by: AgentME Owned by:
Priority: major Milestone: soon
Component: code-frontend-cli Version: 1.5.0
Keywords: reliability tahoe-cp Cc:
Launchpad Bug:

Description

( test: is set to URI:DIR2-RO:5vpbdqwe7wu5ch3u6r6qeuldle:5lsoilnoaa2rmtk7dbkukrirazs2eayzdohyj3kkbjj4tinquvnq )

On my Ubuntu system, this command fails:

tahoe cp -r test:blah/file.txt test:blah/file2.txt /tmp/

I've attached the error it gives to this post to save space.

However, running this following command works fine, whether or not the directory "aaa" already exists:

tahoe cp -r test:blah/file.txt test:blah/file2.txt /tmp/aaa/

Attachments (1)

tahoe-cp-to-tmp.log (1.2 KB) - added by AgentME at 2009-12-06T03:58:10Z.

Download all attachments as: .zip

Change History (7)

Changed at 2009-12-06T03:58:10Z by AgentME

comment:1 in reply to: ↑ description Changed at 2009-12-06T04:31:42Z by AgentME

Replying to AgentME:

( test: is set to URI:DIR2-RO:5vpbdqwe7wu5ch3u6r6qeuldle:5lsoilnoaa2rmtk7dbkukrirazs2eayzdohyj3kkbjj4tinquvnq )

This example is on the test grid by the way, though I figure that would be most people's first guess. Nothing special about the files besides them being only a few bytes for a quick download.

I made a copy of /tmp and tried to figure out what was special about it that tahoe cp choked on it for. I finally found out that it was because of the sockets located in that folder. After I removed the sockets from the copy of /tmp, I was able to use tahoe cp to make files in that folder.

It seems that if there's an object in a folder that isn't a file, directory, or symlink, (like a fifo pipe or socket) then "tahoe cp -r" will crash when you try to write files to that directory.

comment:2 Changed at 2009-12-06T16:24:31Z by davidsarah

  • Keywords reliability cp added
  • Priority changed from minor to major
  • Summary changed from Tahoe cp command refuses to copy remote files to /tmp to Tahoe cp command refuses to copy remote files to a directory that contains special files

comment:3 Changed at 2009-12-06T16:25:20Z by davidsarah

  • Summary changed from Tahoe cp command refuses to copy remote files to a directory that contains special files to Tahoe cp command refuses to copy remote files to a local directory that contains special files

comment:4 Changed at 2010-02-01T20:04:29Z by davidsarah

  • Milestone changed from undecided to 1.7.0

comment:5 Changed at 2010-02-12T04:57:40Z by davidsarah

  • Keywords tahoe-cp added; cp removed

comment:6 Changed at 2010-06-18T23:51:14Z by zooko

  • Milestone changed from 1.7.0 to soon
Note: See TracTickets for help on using tickets.