Server Failed to Remove the Staged Files

Problem

When using the installation wizard to upgrade, or when using the Oracle WebLogic console to re-deploy an application, the deployment fails and shows the DeploymentException error message Server failed to remove the staged files. You can also find the error message in the log file corresponding to your deployment method:
  • If you were using the installation wizard, you can verify this error message in root\temp\MM_Log.log.

  • If you were using the Oracle WebLogic console, you can verify this error message in Oracle WebLogic installation path\Oracle\Middleware\user_projects\domains\WebLogic domain\servers\AdminServer\logs\. The WebLogic domain is typically bifoundation_domain for Reporting and Analytics and icare_domain for Gift and Loyalty.

The error message is logged as follows:

Deployment command type : deploy

Deployment State : failed

Deployment Message : weblogic.management.DeploymentException: [Deployer:ID]Server failed to remove the staged files.

Cause

The Oracle WebLogic installation could not remove a file from the Oracle WebLogic installation path\Oracle\Middleware\user_projects\domains\WebLogic domain\servers\application server domain\stage\ folder.

The WebLogic domain is typically bifoundation_domain for Reporting and Analytics and icare_domain for Gift and Loyalty.

Resolution

  1. Stop the application server.

  2. Remove the \stage\ folder.

  3. Start the application server, and then attempt installation again.