Replication failure after severe errors

Issue

After severe errors in the application (out of memory, out of disk space, and so on), the replication can't authenticate (401) against the publish instance. However, you are certain that the password used for the replication wasn't changed.

In the request.log, you see that the replication request results in a 401 status code (unauthorized):