Title: Crash trying to copy /dev/zero Post by: bbrown on April 29, 2007, 01:45:24 PM I'm using s3sync to back up my /var partition. One of the files included is /var/named/chroot/dev/zero. s3sync crashes with this error:
Create node named/chroot/dev/zero /usr/lib/ruby/1.8/delegate.rb:158:in `method_missing': undefined method `length' for nil:S3sync::ProgressStream (NoMethodError) from /usr/lib/ruby/1.8/net/http.rb:1507:in `send_request_with_body' from /usr/lib/ruby/1.8/net/http.rb:1496:in `exec' from /usr/lib/ruby/1.8/net/http.rb:1044:in `_HTTPStremaing_request' from ./HTTPStreaming.rb:45:in `request' from ./S3_s3sync_mod.rb:50:in `make_request' from ./S3.rb:152:in `put' from ./s3try.rb:57:in `S3try' from ./s3sync.rb:499:in `updateFrom' from ./s3sync.rb:370:in `main' from ./s3sync.rb:690 I could add it to my exclude list, but s3sync ought to handle this situation. Title: Re: Crash trying to copy /dev/zero Post by: lowflyinghawk on April 29, 2007, 04:09:40 PM I deal with this by checking File.ftype; if it isn't "file", "directory" or "link" I skip it as unsupported. obviously it would take a while to archive /dev/zero, and then there *is* the issue of the length...
Title: Re: Crash trying to copy /dev/zero Post by: ferrix on April 29, 2007, 06:03:35 PM I think the changes I made for --progress caused a lot of the error conditions I catch to be converted into "method_missing" errors.. thereby making a bunch of previously solved things happen again.
Title: Re: Crash trying to copy /dev/zero Post by: ferrix on June 03, 2007, 12:05:30 AM should be fixed in 1.1.3
|