Websites fail to load after migration: The process cannot access the file because another process has locked a portion of the file

Created:

2016-11-16 13:08:00 UTC

Modified:

2017-04-24 11:56:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Websites fail to load after migration: The process cannot access the file because another process has locked a portion of the file

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

  1. Websites are not working on the destination server after migration.

  2. The following error can be found if failed request tracing is enabled:

    ModuleName IIS Web Core
    Notification 1
    HttpStatus 500
    HttpReason Internal Server Error
    HttpSubStatus 19
    ErrorCode 2147942433
    ConfigExceptionInfo \\\\?\\C:\\Inetpub\\vhosts\\example.com\\httpdocs\\web.config ( 61) :Lock violation

    Notification BEGIN_REQUEST
    ErrorCode The process cannot access the file because another process has locked a portion of the file. (0x80070021)

Cause

Incorrect settings in website's web.config prevent to load of IIS handlers for domain.

This is Plesk internal issue with ID #PPPM-4884 that is planned to be fixed in future Plesk updates.

Resolution

Rebuild web.config file for website by repair tool as below:

"%plesk_cli%\\repair.exe" --reconfigure-web-site -web-site-name example.com
Have more questions? Submit a request
Please sign in to leave a comment.