Error
Error Code:
1378
MySQL Error 1378: Purgeable Log In Use
Description
Error 1378 indicates that MySQL attempted to purge a log file, but the operation failed because the target log is currently in active use by the server. This typically occurs when a binary log or relay log file is still required for replication, recovery, or ongoing operations, preventing its safe removal.
Error Message
A purgeable log is in use, will not purge
Known Causes
4 known causesReplication Slave Lag
A replication slave server is still processing or requires the log file that MySQL attempted to purge, preventing its safe removal.
Server Operations in Progress
The MySQL server is actively using the log for an ongoing transaction, crash recovery, or other essential internal processes.
Aggressive Log Retention
Configuration settings like `expire_logs_days` or `relay_log_purge` are set too low, causing the system to attempt purging logs that are still needed.
Premature Manual Log Purge
A `PURGE BINARY LOGS` or `PURGE RELAY LOGS` command was manually executed on a log file that is currently in use by the server or a replication slave.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service