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

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Cannot get s3sync to invoke  (Read 3785 times)
edstuart
Newbie
*
Posts: 1


View Profile
« on: June 23, 2008, 08:43:37 PM »

Hi,

I have Ruby, verson 1.8.6, on my MBP running Tiger and when I attempt to execute backup.sh from its /Library/s3backup directory, I receive the following errors:

        /usr/lib/ruby/1.8/yaml.rb:119:in `load': parse error on line 3, col -1: `' (ArgumentError)
                from /usr/lib/ruby/1.8/yaml.rb:119:in `load'
                from /usr/lib/ruby/1.8/yaml.rb:130:in `load_file'
                from /usr/lib/ruby/1.8/yaml.rb:129:in `open'
                from /usr/lib/ruby/1.8/yaml.rb:129:in `load_file'
                from ./s3config.rb:19
                from ./s3config.rb:17:in `each'
                from ./s3config.rb:17
                from /Library/s3backup/s3sync.rb:28:in `require'
                from /Library/s3backup/s3sync.rb:28

As I know nothing about ruby, would someone be so kind as to give me a pointer or two here?

Thanx,
Ed
Logged
s3user
Newbie
*
Posts: 2


View Profile
« Reply #1 on: October 24, 2009, 07:59:14 PM »

I have the same error, running on Ubuntu.

I took the example config file, put in the appropriate keys and CERT directory, placed it in my home dir in ~/s3conf/s3config.yml, and ran this as a test (let's back up the s3sync dir):

./s3sync/s3sync.rb ./s3sync

I got the following:

Quote
/usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 3, col -1: `' (ArgumentError)
   from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
   from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
   from /usr/lib/ruby/1.8/yaml.rb:143:in `open'
   from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
   from /home/blueplate/s3sync/s3config.rb:19
   from /home/blueplate/s3sync/s3config.rb:17:in `each'
   from /home/blueplate/s3sync/s3config.rb:17
   from ./s3sync/s3sync.rb:28:in `require'
   from ./s3sync/s3sync.rb:28

I can't tell from the error what's going on. Is it not seeing my conf file? Is the file corrupt? Pointers appreciated.


Logged
s3user
Newbie
*
Posts: 2


View Profile
« Reply #2 on: October 24, 2009, 08:14:04 PM »

Note: if I completely delete my config file, I then get a more normal result:

Quote
$ ./s3sync/s3sync.rb ./s3sync
You didn't set up your environment variables; see README.txt
s3sync.rb [options] <source> <destination>      version 1.2.6
  --help    -h          --verbose     -v     --dryrun    -n   
  --ssl     -s          --recursive   -r     --delete
...

Logged
Admin
Administrator
Newbie
*****
Posts: 10


View Profile
« Reply #3 on: October 26, 2009, 12:43:45 PM »

It's impossible to tell without seeing at least a redacted config file.
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!