I discovered how to solve this problem. Hopefully this will help others.
I have 7 TVs with Roku devices. Five of those TVs have Roku 3800X streaming sticks.
Two of those 3800x sticks were unable to update system software (from 12.5.0.4172 to 12.5.0.4175). The error code was 0004. These two sticks failed numerous times over multiple days. I tried turning off power, resetting the device, but I refused to do a factory reset on them. The other three 3800x sticks updated fine.
The error code typically sends people down a path of wifi or router issues, network traffic, etc. That was not the problem. Why would three update and two not update. It dawned on me to try deleting some apps to free up memory.
On both sticks there were about 60 apps (streaming TV channels: Hulu, Disney, local tv, etc). I wound up deciding to get rid of the clutter and try again. I deleted about 30 apps. Guess what? Software update went through successfully (the other three 3800x sticks didn't have close to the same number of apps). So I think it was a memory space issue. At least it solved my problem for the two 3800x sticks that refused to update software. Hopefully this will work for you too!
Thank you worked great
Glad to hear it worked for you, too!
A quick update with another helpful hint. Today, May 10th, 2024. I got a notice of a software update. It didn’t work and got the 004 error. This time Roku hung up on me and unplugging power and turning back on didn’t work for me.
This time I needed to do a factory rest on my Roku stick. How to do a factory reset:
Press Home five times.
Immediately press Fast Forward three times.
Press Rewind twice.
The Update and Reset menu should open. Perform a factory reset.
I then did the software update and it worked fine.