The specified bucket is not S3 v2 safe

I ran into this error when running ec2-upload-bundle:The specified bucket is not S3 v2 safe (see S3 documentation for details)This was due to uppercase letters or underscores. Later I also ran into an issue with periods in bucket names which showed up as this error message:ERROR: Error talking to S3: Server.AccessDenied(403): Access DeniedHere is an … Continue reading The specified bucket is not S3 v2 safe

Have bash warn you about uninitialized variables with set -u

By default, Bash treats uninitialized variables the same way as Perl -- they are blank strings. If you want them treated more like Python, you can issue the following command in your bash script: set -u You will then start seeing warning messages like the following: ./my_script.sh: line 419: FOO_BAR: unbound variable Note that this … Continue reading Have bash warn you about uninitialized variables with set -u

Startup order of services on RHEL or CentOS

The startup order of services on Red Hat Enterprise Linux (and very likely other flavours) is determined by the numerical prefix on the symbolic links in /etc/rc3.d/ (for run level 3), /etc/rc5.d/ (for run level 5), and so on. When adding a service (chkconfig --add my_service --level 35), you can specify startup order by including … Continue reading Startup order of services on RHEL or CentOS