I am upgrading magento from 1.4.0.1 to 1.7.0.2. Initially there were some errors; after fixing those, now the upgrade is running for 5 hours and never completes. No error is
Check your apache logs. However, it sounds like it's getting caught somewhere in the upgrade process. Make sure all your files are the new version, backup your database, and make sure your database connection information is correct.
You may also want to double check the size of your database. If your database is huge, magento may be timing out.