How to fix error 1004??

Can someone please explain how to fix this problem? It's not a major problem having to use TU to kick out of recovery mode but I would like to fix whatever is causing this. I read a few things about editing host files but I have never edited them on this computer.. Thanks in advance.

Can someone please explain how to fix this problem? It's not a major problem having to use TU to kick out of recovery mode but I would like to fix whatever is causing this. I read a few things about editing host files but I have never edited them on this computer.. Thanks in advance.

Click to expand...

You cannot fix it. Since iTunes doesn't get the message the the baseband was updated, it doesn't know the upgrade is complete, therefor it flags an error.

I know enough to get by but far from an expert, can you explain this to me lol. The JB causes this?

Click to expand...

During the upgrade, iTunes looks for a signal that the restore/upgrade is complete, including baseband replacement. When it doesn't get that, it flags the error believing the process failed to complete.

During the upgrade, iTunes looks for a signal that the restore/upgrade is complete, including baseband replacement. When it doesn't get that, it flags the error believing the process failed to complete.

Click to expand...

Thanks for explaining. I was freaking out today, I had an genius bar apt to replace my phone and I could not restore, even with TU.. I eventually got it to work.

Once you run TU it comments out #gs.apple.com 127.0.0.1 which is show as the number sign in front of the line. Basically it tells the the computer to skip this operation.
TU adds a line gs.apple.com. 78.xxx.xxx.xx the number i am not sure. but it is the only other line in the host file that shows gs.apple.com.

What is happening is on restore Itunes is now pointed to another server. It no longer points to apple to sign off on the new FW.

You can simply remove the comment. and delete the other line. reboot. your good to go. You can delete both lines if that doesnt work. Because as soon as you us either Itunes, or TU it will add the line back in.

THere are some instruction on iclarified and here on how to edit your host file. It depends on if you are using a mac or PC.

on mac go to finder/ menu go/ go to folder/ then type /etc in that folder look for hosts file. open with txt. YOu have to save the amended file to desktop then drag it back into /etc you cannot just edit. It has to be replaced.

Tiny umbrella edited your host files and Tiny Umbrella can put them back to normal. Just open Tiny Umbrella, go to advance mode and uncheck the box where it says set host file to Cydia on exit. Then close Tiny umbrella and bingo everything is back to normal. Unless you do this the host file edit will keep happening everytime you open tiny umbrella.

During the upgrade, iTunes looks for a signal that the restore/upgrade is complete, including baseband replacement. When it doesn't get that, it flags the error believing the process failed to complete.

Click to expand...

Interesting explanation but wrong. The 1004 error is caused because the baseband needs to be signed and the signing failed.

Tiny umbrella edited your host files and Tiny Umbrella can put them back to normal. Just open Tiny Umbrella, go to advance mode and uncheck the box where it says set host file to Cydia on exit. Then close Tiny umbrella and bingo everything is back to normal. Unless you do this the host file edit will keep happening everytime you open tiny umbrella.

Click to expand...

I learn something here every day. I didn't realize TU could edit and "unedit" the hosts file!

Once you run TU it comments out #gs.apple.com 127.0.0.1 which is show as the number sign in front of the line. Basically it tells the the computer to skip this operation.
TU adds a line gs.apple.com. 78.xxx.xxx.xx the number i am not sure. but it is the only other line in the host file that shows gs.apple.com.

What is happening is on restore Itunes is now pointed to another server. It no longer points to apple to sign off on the new FW.

You can simply remove the comment. and delete the other line. reboot. your good to go. You can delete both lines if that doesnt work. Because as soon as you us either Itunes, or TU it will add the line back in.

THere are some instruction on iclarified and here on how to edit your host file. It depends on if you are using a mac or PC.

on mac go to finder/ menu go/ go to folder/ then type /etc in that folder look for hosts file. open with txt. YOu have to save the amended file to desktop then drag it back into /etc you cannot just edit. It has to be replaced.

Click to expand...

Unfortunately, I think there is more to the story. I recently tried to restore to 4.1 using iTunes, no jailbreak involved and it keeps giving me this error. I have restored the hosts file but it still does it.

The only way for me to restore now is to boot into windows and restore there, it's annoying the crap out of me.

I think I'll have to completely re-install my machine in order to be able to restore my iPhone in OS X again, because it's clearly not just the hosts file and I can't figure out what else might be causing it.

You are booting into windows to restore because your host file there has not been edited. Read a few post above about unchecking set host file in tiny umbrella and you will find it solves your problem. Your host file has been modified on the mac a simple check is to open a terminal session on the desk top and type in the following command.

ping gs.apple.com

if it comes back saying 127.0.0.1 that is correct for apple
if it says 74.208.10.249 then you are pointing to cydia.

You are booting into windows to restore because your host file there has not been edited. Read a few post above about unchecking set host file in tiny umbrella and you will find it solves your problem. Your host file has been modified on the mac a simple check is to open a terminal session on the desk top and type in the following command.

ping gs.apple.com

if it comes back saying 127.0.0.1 that is correct for apple
if it says 74.208.10.249 then you are pointing to cydia.

Click to expand...

It says neither, what it says is:

64 bytes from 17.112.176.11: icmp_seq=0 ttl=239 time=162.678 ms

I'm trying to restore my iPhone right now to 4.1 just because it bothers me so much that I'm going to a worse OS just to restore. So I'd like to solve this problem not working at the moment.

Is the line in the host file with 127.0.0.1 meant to be hashed out or not?

I'll answer that myself, if I unhash the 127.0.0.1 line, iTunes crashes out of restore right away saying that the update server can't be found. So I'm guessing that line has to be hashed out.

The IP found in my previous message is an apple server, so that seems to be alright. the restore process still doesn't finish though and crashes out after a long long time.

Click to expand...

127.0.0.1 is the apple server and should not normally be hashed out. Since you are in the UK maybe you are using a different server.

Since you say windows work, then the only other suggestion I have is to check the host file on windows and compare with the MAC host file and see what is different. Perhaps windows is using a different apple server.

127.0.0.1 is the apple server and should not normally be hashed out. Since you are in the UK maybe you are using a different server.

Since you say windows work they the only other suggestion I have is to check the host file on windows and compare with the MAC host file and see what is different. Perhaps windows is using a different apple server.

Click to expand...

127.0.0.1 is the IP for localhost as far as I know.

For the purposes of anybody else coming across this thread, I have worked it out now.

hosts file should have either no entries to do with gs.apple.com, or both hashed out.

My problem was not only that the hosts file was messed up, but also that I had wifi-sync installed previously. Uninstalling wifi-sync solved the restore problem.

For the purposes of anybody else coming across this thread, I have worked it out now.

hosts file should have either no entries to do with gs.apple.com, or both hashed out.

My problem was not only that the hosts file was messed up, but also that I had wifi-sync installed previously. Uninstalling wifi-sync solved the restore problem.

thanks for all your input!

restoring from backup now

Click to expand...

Well that broad statement might be true in the non-jailbreaking world but in the jailbreaking world we use the HOST file to decide where we want to get the restore from. We point it at apple 127.0.0.1 when we want a standard restore from apple and we point it at Cydia when we want previous versions of software for which Cydia has our SHSH files.

Well that broad statement might be true in the non-jailbreaking world but in the jailbreaking world we use the HOST file to decide where we want to get the restore from. We point it at apple 127.0.0.1 when we want a standard restore from apple and we point it at Cydia when we want previous versions of software for which Cydia has our SHSH files.

Click to expand...

Yes, but 127.0.0.1 is NOT an apple server, it's the IP address for localhost, on just about ANY computer.

Tiny umbrella edited your host files and Tiny Umbrella can put them back to normal. Just open Tiny Umbrella, go to advance mode and uncheck the box where it says set host file to Cydia on exit. Then close Tiny umbrella and bingo everything is back to normal. Unless you do this the host file edit will keep happening everytime you open tiny umbrella.

Click to expand...

Should I only do this when needing to restore, and otherwise, leave them as TU has them?

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.