Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...File Access Error with Evotiva BackupFile Access Error with Evotiva Backup
Previous
 
Next
New Post
3/10/2009 6:26 PM
 

Hi, I have been in discussions with Horacio of Evotiva and we are both stumped so I am posting this here:

I use the Evotiva Backup module to backup my database with a scheduled task. Recently my sites were moved to a new server and this stopped working. Here is the error:

.UnauthorizedAccessException: Access to the path 'C:\XYZ\BACKUP\EvotivaBackups\PokerDIYDatabase2009-03-06-213914.bkp' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Evotiva.BackupNativeUtilities.CompressTools.?(String ?, String ?, String ?, Int32 ?, Int32 ?, String ?, Int32 ?, String ?) at Evotiva.BackupNativeUtilities.CompressTools.DoZipFile(String strFileToZip, String strEntryName, String strZippedFile, Int32 nCompressionLevel, Int32 useZip64Option, String zipPassword, Int32 nBufferSize, String CommentMessage) at Evotiva.DNN.Modules.BackupNative.BackupController.ֺ(String ֻ, String ּ, Boolean ֽ, Boolean ־) --- End of inner exception stack trace --- at Evotiva.DNN.Modules.BackupNative.BackupController.ֺ(String ֻ, String ּ, Boolean ֽ, Boolean ־) at Evotiva.DNN.Modules.BackupNative.BackupController.ֺ() at Evotiva.DNN.Modules.BackupNative.BackupController.?() --- End of inner exception stack trace --- at Evotiva.DNN.Modules.BackupNative.BackupController.?() at Evotiva.DNN.Modules.BackupNative.BackupController.PerformScheduledBackup() at Evotiva.DNN.Modules.BackupNative.ScheduledBackup.?()]

 

Basically the database backup dump is working correctly. It is creating a .bkp file inthe right location. What is NOT working is the auto-zipping of it by the scheduled task. It can't open the newly-dumped file. This obviously looks like a file perms issue - I have the Account which the IIS process is running under with Full Control on that directory (cascaded from the root all the way to the bottom) AND for the meantime I have added EVERYONE (with Full Control) to the entire affected tree. It still does not work. The file mentioned above definitely has EVERYONE with full rights on it.

I have tried using Impersonation in the module (although Horacio says that the DNN Scheduler does not yet support this) with no luck. It used to work on my old server (unfortunately I don't have access to it so can't check the config).

So - perhaps the Zipping process (which uses the SharpZipLib library) is using a temp folder which does not have the right rights? I tried adding EVERYONE to the LocalSettings Temp folders with no joy.

I am running DNN 4.9.2 on a Windows 2003 Dedicated Server (SQL + Web server on same box) 

Can anyone shed any light on this? I have screenshots of my folder perms, the IIS process user etc. etc.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
3/10/2009 6:43 PM
 

Without the sourcecode to his compression function, it's hard to tell. I'm pretty sure SharpLib doesn't write to a temp folder by default. I've got a similar backup module I wrote that you're welcome to try. It's free, and hasn't been tested on 4.9.2... I've run it on about a dozen 5.0 sites, you could even setup a 5.0 development site and have it backup a 4.9.2 install (which I have tested)...

I'd also be happy to troubleshoot any problems you might have with my backup module...

 
New Post
3/11/2009 9:35 AM
 

A new idea: the .bkp file is created by sql server. If you (from the file system,  'view properties') check is newly created file permisions and ownership. What does it say?

 
New Post
3/11/2009 6:21 PM
 

Horacio Judeikin wrote

A new idea: the .bkp file is created by sql server. If you (from the file system,  'view properties') check is newly created file permisions and ownership. What does it say?

I am not sure the problem is related to SQL because when I enable the Portal Files .zip the same thing happens immediately (and I assume this is just using the zip library)

Properties - The Owner is the Administrator, and the properties are correctly inherited from the folder (ie. Everyone has Full control, as does the account which IIS is running under).


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
3/11/2009 8:45 PM
 

Rodney Joyce wrote

I am not sure the problem is related to SQL because when I enable the Portal Files .zip the same thing happens immediately (and I assume this is just using the zip library)

Well, there was a chance because is not really the same. For the portal files, is always the web site job (ZIP its files). However, the sql server backup file is not generated by the web site. Is the sql server who creates it and  I thought could be created with permissions not valid for the web site to read it.

 

BTW, since yesterday I'm unable to send emails to you (they are rejected):

Could not deliver message to the following recipient(s):

Failed Recipient: rod...

Reason: Failed all attempts to connect to the recipients mail server.

Attempted to send the message to the following ip's:

      66.206.198.154

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...File Access Error with Evotiva BackupFile Access Error with Evotiva Backup


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out