S3Sync.net
February 02, 2014, 01:19:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Crash trying to copy /dev/zero  (Read 5291 times)
bbrown
Newbie
*
Posts: 5


View Profile
« 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.
Logged
lowflyinghawk
Jr. Member
**
Posts: 52


View Profile
« Reply #1 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...
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #2 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.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #3 on: June 03, 2007, 12:05:30 AM »

should be fixed in 1.1.3
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!