You should take a look at the Apple forums...this thread deals with the error code -9838
At some point, I also had error code -4.
I've been connected since 9am, it's now 12pm and my iPhone v1 upgraded to 2.0 software just became activated.
It's still restoring my iPhone music and videos, which is taking a while.
Others have been doing things, but this is what I specifically did, which I don't think expedited the process, but whatever makes you feel more secure:
1) made sure i was logged in to "View My Account" on iTunes store
2) clicked on and off from the iPhone Device to anywhere in iTunes (music, my playlists, apps, etc.)
3) taking the USB on and off seemed to make it longer, so just keep it connected
4) kept posting sarcastic messages on their forums
I can definitely say iPhone launch days are not friendly to me...
Apple forums http://discussions.apple.com/thread.jspa?messageID=7550124�