Magento Connect is not Working
From Brian Nelson Ramblings
Having issue with Magento Connect?
Is this the first time you have used Magento Connect? If it is, then Magento Connect might not have been setup correctly.
To set this up you can running the following command from html directory
First make sure to have execute permissions on the mage file.
chmod +x mage
Then run the following command to setup Magento Connect
./mage mage-setup
Missing Modules from Magento Connect
If you have already setup Magento Connect and you run into a problem with Magento Connect (ex missing modules)
You can execute
./mage sync
That will sync all you current install Modules back to Magento Connect