Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

Created:

2017-06-13 07:32:40 UTC

Modified:

2017-08-18 15:09:33 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

Applicable to:

  • Plesk Onyx for Windows

Note: This article has the reference to the issue with the fix available:

  • #PPPM-6466 "Backup to an FTP storage failed if the field “Directory for backup files storage” was empty."
    Fixed in:
Please consider updating your server:

Symptoms

  • A backup cannot be created on a remote FTP server.
  • The following error can be found in stderr file under %plesk_dir%\PMM\sessions\ folder:

    Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at psarepository.DumpExporter.AddFile(String filePath)
    at psadumpagent.RepositoryHelper.AddFileToRepository(String fileName, String dstPath, String dstName)
    at psadumpagent.ContentBuilder.PutFile(Object Object, CidType cidType, String path, String extension, Object owner, String filePrefix)
    at psa9dumpagent.MailContentSaver.BackupIncrementally()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
  • The following error appears in backup.log for faulty backup sessions

    [2017-06-10 13:35:41.222|13280] Debug: System.Exception: Repository error: Unable to create the destination directory 'ftp://'
    at psarepository.DumpExporter.AddFile(String filePath)
    at psadumpagent.RepositoryHelper.AddToRepository(CidType cidType, String srcPath, String dstPath, String dstName, String[] include, String[] exclude, String user, String password)
    at psadumpagent.ContentBuilder.AddFileCid(Object Object, CidType cidType, String fileToBackup, String filePrefix, String user, String password)
    at psadumpagent.ContentBuilder.AddFileToContent(Object Object, CidType cidType, String fileToBackup, Object Owner, String filePrefix)
    at psadumpagent.ContentBuilder.AddStringDataToContent(Object Object, CidType cidType, String[] data, Object Owner, String filePrefix)
    at psa9dumpagent.PSADomainObject.dumpMailSystem(Mailsystem mailSystem)
    at psa9dumpagent.PSADomainObject.doDomainDump()
    at psa9dumpagent.PSADomainObject.dump()
    at psa9dumpagent.Psa9DumpAgent.doDumpDomains(String[] domainNames, Object owner, IDomainOwner schemaOwner)

Cause

This is Plesk bug with ID PPPM-6466 which is planned to be fixed in future Plesk updates. No value is specified in Directory for backup files storage files field under Tools & Settings > Backup Manager > FTP Storage Settings.

Resolution

As a workaround, go to Tools & Settings > Backup Manager > FTP Storage Settings and specify " / " character (without quotes) in Directory for backup files storage field.

Have more questions? Submit a request
Please sign in to leave a comment.