Author: Josh

  • Fedora 15 Review

    I upgraded to Fedora 15 the day it came out and have a few thoughts on the matter. Preupgrade The official Fedora documentation recommends using the “preupgrade” package to upgrade from Fedora 14. Don’t do it. It blew up and I had to spend 2 hours manually resolving the issues that it caused. Gnome Shell…

  • Change Encrypted Volume Password – Fedora / Linux

    I have been in the habit of encrypting the primary volume on every Fedora install that I’ve done in the past couple of years but have never changed the password until now (outside of rebuilds). I figured it was time to learn how to do this so that I could maintain a consistent password across…

  • Jenkins Slave on Windows – git clone failure

    I recently setup a Jenkins job to run on a Windows slave that was triggered from a successful build on a Linux master and it failed with the following error: Started by user anonymous Building remotely on 10.13.0.11 Checkout:Deploy App Code / c:\jenkins-slave\workspace\Deploy App Code – hudson.remoting.Channel@1e5cd7a:10.13.0.11 Using strategy: Default Checkout:Deploy App Code / c:\jenkins-slave\workspace\Deploy…

  • git log – good summary

    I have recently started using git and have struggled to find a good short summary of recent changes. This command does the trick: git log –name-status HEAD^..HEAD commit 1x3ga6g08f1c4324141f966d9766i86c6a790921 Author: Josh Miller Date: Tue Apr 19 07:19:15 2011 -0700 removing this file to test post-receive delete operation, take 1 D var/www/application/css/test07.css Using the –name-status and…

  • PHP Fatal error: Uncaught exception ‘RequestCore_Exception’ with message ‘The stream size for the streaming upload cannot be determined.’

    While attempting to upload some large files (>2GB) to S3 yesterday, I ran across this error (on both sdk 1.2.3 and 1.3.2): php s3-upload.php Uploading file: myfile.bak PHP Fatal error: Uncaught exception ‘RequestCore_Exception’ with message ‘The stream size for the streaming upload cannot be determined.’ in /home/josh/aws/sdk-1.2.3/lib/requestcore/requestcore.class.php:771 Stack trace: #0 /home/josh/aws/sdk-1.2.3/services/s3.class.php(722): RequestCore->prep_request() #1 /home/josh/aws/sdk-1.2.3/services/s3.class.php(1342): AmazonS3->authenticate(‘db-backup-resto…’,…

  • Configuring Apache to Proxy Requests to Tomcat

    A very common task when administering apache and/or tomcat is to setup apache to proxy requests to tomcat.  The primary driver to using this configuration is to get apache to handle all of the front-end requests and some caching with tomcat serving up dynamic content (which is proxied through apache). This also allows apache to…

  • HTTP Caching in yum…

    yum is great to work with when it works and a pain in the ass when it does not. I recently had a problem where I would get the dreaded metadata does not match checksum warning while trying to update a CentOS 5.3 system I was working on. filelists.xml.gz: [Errno -1] Metadata file does not…

  • Using PHP to check SSHD availability

    I’m working on a project where I need to spin up some EC2 instances and deploy code to them over SSH which requires that I know when SSH is available. To do this, I’ve written a little PHP snippet that will connect to the server via TCP port 22 and loop until the service is…

  • Apache Memory Consumption

    One quick way to determine how much memory is being consumed by all apache processes is to use the following command: ps -eo user,pid,pcpu,cmd,rss | egrep httpd | awk ‘{SUM += $5} END {print “Total memory used: ” SUM}’

  • Zend Studio / Zend Server Integration

    I have recently had the opportunity to work with Zend Server and Zend Studio as part of performance testing / bench-marking a large application. I had an interesting, intermittent problem getting Zend Server and Zend Studio to work together as part of the debugging/profiling process with the following error showing up frequently: Failed to communicate…