Computer courses · Tools for technicians · Tech support Call 859-878-2615 WhatsApp Send a message

Home · Blog

Step-by-step guide

How to fix "413 Request Entity Too Large" when updating Antminer E3 firmware

By Gabriel ·

Short answer: the Antminer E3 "413 Request Entity Too Large" error during a firmware upgrade appears when the miner's internal storage is full, so it cannot accept the firmware file. SSH into the miner (user root, password admin by default), run df to confirm the root filesystem is at 100%, delete the big crash-dump file with rm /core, and then flash the firmware again from the Upgrade page.

In this guide you will update a Bitmain Antminer E3 from firmware 4.9 to 5.4 exactly as I did in the video: check the current version, download the official file, see the 413 error, fix it from the Mac Terminal, flash again and confirm the new version after the reboot. I also show how to do the same from Windows with PuTTY, how to clear the "remote host identification has changed" SSH warning, and a troubleshooting table for other upload problems.

DifficultyModerate
Time15 - 30 minutes
Tools & requirementsBitmain Antminer E3 on your local network (you need its IP address), Computer on the same network: Mac or Linux (Terminal) or Windows (PuTTY or the built-in ssh command), Official E3 firmware file from Bitmain's support site (.tar.gz), Web browser to open the miner's web interface, UPS (battery backup) recommended so power does not drop during the flash
In this article
  1. Check the current firmware version
  2. Download the official E3 firmware from Bitmain
  3. Try the normal upgrade from the Upgrade page
  4. Recognize the 413 Request Entity Too Large error
  5. Open the Terminal and SSH into the miner
  6. Fix "Remote host identification has changed"
  7. Check the free space with df
  8. Delete the core file with rm /core
  9. Run df again to confirm the space is free
  10. Use basic commands and exit
  11. Flash the firmware again
  12. Wait for "System Upgrade Succeeded" and the reboot
  13. Confirm the new firmware version
  14. On Windows: do the same with PuTTY
  15. Why the Antminer E3 firmware upgrade gives a 413 error
  16. Antminer E3 413 error troubleshooting
  17. Safety tips before flashing any Antminer firmware
  18. Is it still worth updating an Antminer E3?
  19. Frequently asked questions
  20. Watch the video

Step 1Check the current firmware version

Antminer E3 web interface System Overview page in a browser showing Miner Type Antminer E3 and CGminer Version 4.9.0 before the firmware upgrade
  • Type the miner's IP address in your browser and log in to the Antminer web interface.
  • On System > Overview, look at the CGminer Version. My E3 showed 4.9.0, so it needed the 5.4 update.
  • Write down the version: after the upgrade you will come back to this page to confirm it changed.
  • Tip: if you do not know the IP, look it up in your router's list of connected devices (or give the miner a fixed address, see DHCP reservation on UniFi).

Step 2Download the official E3 firmware from Bitmain

Bitmain support Product Manual and Firmware page with Antminer E3 selected under Ethash Miners and the E3_V5.40_0327.tar.gz firmware file of 34.84 MB listed with its MD5 and Download button
  • Go to Bitmain's official support site and open Product Manual & Firmware > Ethash Miners > Antminer E3.
  • Download the firmware file. In the video it is E3_V5.40_0327.tar.gz (34.84 MB); the description says it extends the E3 miner life and fixes a corner case of abnormal operation on ETC.
  • Do not unzip the .tar.gz: the miner expects the file as it comes.
  • Common mistake: firmware from random forums or file-sharing sites. Only use Bitmain's file, and compare the MD5 shown on the page (Mac: md5 file.tar.gz; Windows: certutil -hashfile file.tar.gz MD5).

Caution: Flashing firmware is risky: if something goes wrong you can brick the miner and there may be no way back. Do it only if you accept that risk.

Step 3Try the normal upgrade from the Upgrade page

Antminer E3 System Upgrade page showing the Backup and Restore section and the Flash new firmware image section with Keep settings checkbox, Choose File and Flash image buttons
  • Open System > Upgrade. Under Flash new firmware image, click Choose File, select the .tar.gz and click Flash image, then confirm.
  • Leave Keep settings checked if you want to keep your pool configuration.
  • Make sure the miner is on a UPS or a reliable power source: a power cut in the middle of a flash is the classic way to brick it (see my CyberPower UPS setup).

Step 4Recognize the 413 Request Entity Too Large error

Diagram explaining the Antminer E3 413 Request Entity Too Large error: root filesystem 100 percent full with 8 KB available because of a core dump file, and 44 percent used after deleting it with rm /core so the firmware upload works
  • Instead of upgrading, the browser shows a page that only says "413 - Request Entity Too Large", and the firmware stays the same.
  • HTTP status 413 means the web server refused the upload because it is bigger than it can accept. On this E3 the reason was that the root filesystem was 100% full, with only 8 KB free, so there was no room for the 35 MB file.
  • The space was taken by a large file called core in the root folder (a crash dump). Deleting it is the fix shown in the next steps.

Step 5Open the Terminal and SSH into the miner

Mac Terminal window running ssh root@192.168.2.125 to log in to an Antminer E3, with the host fingerprint question answered yes and the password prompt
  • On a Mac or Linux computer, open Terminal and type ssh root@<miner-IP>. In the video it is ssh root@192.168.2.125; use your own IP.
  • Answer yes when asked whether to continue connecting, then enter the password. The default user is root and the password is admin.
  • Nothing appears while you type the password; that is normal. If you get "Permission denied", retype it carefully.
  • On Windows, use PuTTY or the built-in ssh command (Step 14).

Step 6Fix "Remote host identification has changed"

Mac Terminal showing the SSH warning remote host identification has changed for 192.168.2.125 and the command ssh-keygen -R 192.168.2.125 removing the old key from known_hosts
  • If SSH stops with "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED", your computer remembers an old key for that IP (for example, a different device or a reflashed miner used it before).
  • Run ssh-keygen -R 192.168.2.125 with your miner's IP. It removes the old entry from known_hosts; then connect again with ssh root@IP.
  • Only do this on your own local network when you know the device is yours; on unknown networks that warning can mean someone is intercepting the connection.

Step 7Check the free space with df

Antminer E3 SSH session showing the df command with ubi0:rootfs at 100 percent used and 8 KB available, followed by cd / and ls listing the core file in the root folder
  • Type df and press Enter. Look at the line ubi0:rootfs mounted on /.
  • On my miner it showed 115,488 KB total, 115,480 KB used, 8 KB available, 100%. That is why the upload failed.
  • Go to the root folder with cd / (with a space) and run ls or ls -la: you will see a file called core.

Step 8Delete the core file with rm /core

Zoomed Antminer terminal listing the root folder with ls -la and the command rm /core typed at the root@antMiner prompt to delete the core dump file
  • Type rm /core and press Enter. That deletes the dump file that filled the storage.
  • A core file is a memory dump written when a program crashes; the miner does not need it to run.
  • Type it exactly. Do not delete other files or folders such as /config, and never use rm -rf here.

Caution: You are logged in as root: a wrong rm command can delete system files and break the miner.

Step 9Run df again to confirm the space is free

Antminer terminal after rm /core with df showing the root filesystem at 44 percent used with 51,116 KB used and 64,372 KB available
  • Run df again. In the video the root filesystem dropped to 44%: 51,116 KB used and 64,372 KB available.
  • That is more than enough room for the roughly 35 MB firmware file.
  • If it is still near 100%, the space is used by something else; stop and get help instead of deleting random files.

Step 10Use basic commands and exit

Antminer SSH session in a Mac Terminal showing df, ls, cd .., pwd showing /home, cd / and exit commands at the root@antMiner prompt
  • Useful commands while you are in: ls lists files, cd .. goes up one folder, cd / goes to the root, and pwd shows where you are.
  • When you are done, type exit to close the SSH session (or just close the Terminal window).
  • If you want to learn more Terminal basics, see how to install and upgrade Python from the Mac Terminal.

Step 11Flash the firmware again

Antminer E3 Upgrade page showing Upload firmware image progress after freeing space on the root filesystem
  • Back in the browser, go to System > Upgrade, choose the same .tar.gz and click Flash image.
  • This time the 413 error does not appear: you will see Upload firmware image... while it uploads.
  • Do not close the page, refresh, or power off the miner while it uploads and flashes.

Step 12Wait for "System Upgrade Succeeded" and the reboot

Antminer E3 web page showing System Upgrade Succeeded, rebooting system and please wait for 120 seconds
  • After a few minutes the page shows System Upgrade Succeeded and Rebooting system... please wait for 120 seconds.
  • Wait the full two minutes. The miner restarts and the web interface is unavailable during that time.
  • Common mistake: unplugging it because it looks frozen. Give it time.

Step 13Confirm the new firmware version

Antminer E3 System Overview page after the upgrade showing CGminer Version 5.4.0 and a new file system version
  • Refresh the browser and open System > Overview again.
  • The CGminer Version now shows 5.4.0, the latest version in the video. The miner was working on 5.4 right after.
  • Then check your pool settings in Miner Configuration and that the miner is hashing.

Step 14On Windows: do the same with PuTTY

Illustration of PuTTY configuration on Windows with the Antminer IP address in Host Name, port 22, SSH selected and a terminal logging in as root with password admin and running df and rm /core
  • Download PuTTY from its official site, open it, type the miner's IP in Host Name (or IP address) and click Open (SSH, port 22 are the defaults).
  • Log in as root with the password admin and run the same commands: df, rm /core, df, exit.
  • Windows 10 and 11 also include an OpenSSH client, so ssh root@IP in PowerShell works too. Ubuntu and other Linux distributions work like the Mac.

Why the Antminer E3 firmware upgrade gives a 413 error

HTTP 413 ("Request Entity Too Large", called "Content Too Large" in the current HTTP standard) is the code a web server returns when it refuses an upload because the request is bigger than it is willing or able to process. On a normal website that usually means an upload size limit. On the Antminer E3 in this video, the real problem was no free space:

  • The root filesystem (ubi0:rootfs, about 113 MB) was 100% full, with 8 KB available.
  • A large core file sat in the root folder. Core files are crash dumps a Linux system can write when a program crashes.
  • The firmware file is about 35 MB, so the miner's web server could not accept it and answered 413.

Deleting /core freed about 63 MB, and the same file uploaded and flashed normally. So if your E3 shows 413, check df first before trying other firmware files or browsers.

Antminer E3 413 error troubleshooting

ProblemLikely causeWhat to do
413 Request Entity Too LargeRoot filesystem full (core file)SSH in, df, rm /core, df, flash again
ssh: Permission deniedWrong password or userUser root, default password admin; type carefully
Remote host identification has changedOld key saved for that IPssh-keygen -R <IP>, then reconnect
ssh: Connection refused or timed outWrong IP, miner off, different networkCheck the IP in your router, be on the same LAN
Still 100% after rm /coreSpace used by other filesStop; do not delete random files, get help
Upgrade page hangsPower or network interruptionWait; do not unplug during a flash. Use a UPS
Miner not hashing after updatePool settings lostRe-enter pool URL, worker and password

Note: if the miner no longer boots after a failed flash, recovery usually needs Bitmain's SD card recovery procedure for your model. Check Bitmain's support site for your exact miner.

Safety tips before flashing any Antminer firmware

  • Use only official firmware from Bitmain's support site and check the MD5.
  • Keep power stable: a UPS protects you from the most common cause of bricked miners.
  • Do not interrupt the upload, flash or 120-second reboot.
  • Back up your settings: the Upgrade page has a Backup option to download your configuration first.
  • Be careful as root: the only thing this fix deletes is the file /core.
  • Change default passwords if the miner is reachable by other people on your network; root/admin is widely known.

If you are new to crypto in general, see my comparison of Bitcoin vs fiat money vs gold.

Is it still worth updating an Antminer E3?

The Antminer E3 is an Ethash miner. Ethereum moved to proof of stake in September 2022 ("the Merge"), so ETH can no longer be mined with it. The firmware notes in the video mention ETC (Ethereum Classic), which still uses a proof-of-work algorithm. Before you spend time on an old E3, check current profitability for the coins it can still mine, your electricity cost and whether your pool still supports it. The firmware fix itself is the same either way.

Frequently asked questions

What does 413 Request Entity Too Large mean on an Antminer?

The miner's web server refused the firmware upload. On the E3 in the video it happened because the root filesystem was 100% full, so there was no room for the file.

How do I fix the Antminer E3 413 error?

SSH into the miner as root, run df to confirm the storage is full, delete the crash-dump file with rm /core, run df again and flash the firmware from the Upgrade page.

What is the default SSH login for an Antminer E3?

In the video the user is root and the password is admin. If someone changed it, use the current password.

Is it safe to delete the core file on an Antminer?

The core file is a crash dump, and deleting it fixed the problem in the video. Only delete /core; removing other system files or folders can break the miner.

How do I SSH into an Antminer from Windows?

Use PuTTY: enter the miner's IP, SSH on port 22, click Open and log in as root. Windows 10 and 11 can also use ssh root@IP in PowerShell.

How do I fix 'remote host identification has changed'?

Run ssh-keygen -R followed by the miner's IP to remove the old saved key, then connect again.

Where do I download Antminer E3 firmware?

From Bitmain's official support site under Product Manual & Firmware, Ethash Miners, Antminer E3. The file in the video is E3_V5.40_0327.tar.gz.

Can a firmware update brick an Antminer?

Yes. A power loss or a wrong file during the flash can brick it, so use a UPS, use only official firmware and do not interrupt the process.

Need help with this?

Call, text or WhatsApp me at 859-878-0554.

Watch the video

how to fix 413- Request Entity Too Large - how to update firmware antminer bitmain e3

Original video: how to fix 413- Request Entity Too Large - how to update firmware antminer bitmain e3

Comments

More articles

WhatsApp Visitors today: — This month: — Total: —