How Do You Troubleshoot an s3cmd Error About “.s3cfg: None”?

Problem scenario
You are trying to run an s3cmd command (e.g., s3cmd ls), but it is not working.  You run an s3cmd command and you get this:

ERROR: /home/jdoe/.s3cfg: None
ERROR: Configuration file not available.
ERROR: Consider using --configure parameter to create one.

What do you do?

Possible Solution #1
1.  sudo find / -name .s3cfg
2.  Copy the .s3cfg location to the /home/jdoe/ directory path as displayed in the error message.

Possible solution #2
If you know .s3cfg file exists in the location the error refers to, run this command (where /home/jdoe is the path to the .s3cfg file):

sudo chmod 604 /home/jdoe/.s3cfg

Leave a comment

Your email address will not be published. Required fields are marked *