MoriTanosuke/glacieruploader

MalformedURLException

Closed this issue · 4 comments

I was trying to use your uploader for testing Glacier. I was able to successfully build the uploader using maven but when I tried to get an inventory list (command is below) I received an error. Have you encountered this before? If so, any assistance pointing me in the proper direction is appreciated.

user1:/home/user1/glacierupload/glacieruploader/target# java -jar uploader-0.0.7-SNAPSHOT-jar-with-dependencies.jar --credentials /home/user1/glacierupload/backup_user_aws.properties -l
Nov 16, 2012 11:08:17 AM de.kopis.glacier.GlacierUploader main
INFO: Ooops, something is wrong with your setup.
Nov 16, 2012 11:08:17 AM de.kopis.glacier.GlacierUploader main
SEVERE: Something is wrong with the system configuration
java.net.MalformedURLException
at java.net.URL.(URL.java:619)
at java.net.URL.(URL.java:482)
at java.net.URL.(URL.java:431)
at de.kopis.glacier.GlacierUploader.main(GlacierUploader.java:65)
Caused by: java.lang.NullPointerException
at java.net.URL.(URL.java:524)

Hm, interesting. looks like the configuration file isn't complete in your setup. You could check https://github.com/MoriTanosuke/glacieruploader#configuration-file and post your configuration here, so I can point out what's missing. My first thought is that you might have provided an invalid endpoint or vault.

My ARN shows our vault is in Glacier us-east-1 ao I'm pretty sure our endpoint is glacier.us-east-1.amazonaws.com

Is the #configuration-file you reference the .glacieruploaderrc file mentioned in the README file? If so I did the following:
I created the .glacieruploader file in the glacieruploader dir created from git. In the file I have the following:
credentials=:/home/user1/glacierupload/backup_user_aws.properties
endpoint=https://glacier.us-east-1.amazonaws.com
vault=data-test01

In the /home/user1/glacierupload/backup_user_aws.properties I have (actual values differ):
accessKey=AIIAI7VAJJSSRHDTKVMA
secretKey=0P7CNUYnTjyT1ezwLsHO0fwjxFvZxQdqfFqruD9T

Thanks for your help.

The file .glacieruploaderrc has to sit in your HOME directory, not in the glacieruploader directory. Try to move it, that should do the trick.

Yes, that did it. Thanks!