Hey, first off, thanks for all the new goodies in the dev branch!
I’m getting this error when trying the new backup feature of 2.0.0.1643 to back up your config.xml and nzbdrone.db:
14-7-7 08:32:12.1|Info|BackupService|Starting Backup
14-7-7 08:32:12.6|Error|TaskExtensions|Task Error
System.IO.DirectoryNotFoundException: Could not find a part of the path “/usr/local/nzbdrone/var/.config/NzbDrone/Backups/manual/nzbdrone_backup_2014.07.07_08.32.12.zip”.
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in :0
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
at System.IO.File.Create (System.String path, Int32 bufferSize) [0x00000] in :0
at System.IO.File.Create (System.String path) [0x00000] in :0
at ICSharpCode.SharpZipLib.Zip.ZipFile.Create (System.String fileName) [0x00000] in :0
at NzbDrone.Common.ArchiveService.CreateZip (System.String path, System.String[] files) [0x00000] in :0
at NzbDrone.Core.Backup.BackupService.Backup (BackupType backupType) [0x00000] in :0
at NzbDrone.Core.Backup.BackupService.Execute (NzbDrone.Core.Backup.BackupCommand message) [0x00000] in :0
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[BackupCommand] (NzbDrone.Core.Messaging.Commands.Command command) [0x00000] in :0
Fix:
- cd /usr/local/nzbdrone/var/.config/NzbDrone/Backups
- mkdir manual
- chown nzbdrone manual
More info:
- I’m running the mono version on a Synology, not sure if it’s related.
- I upgrade using the built-in method, but manually so I can install updates one by one to see if anything breaks…
This also got me wondering about another feature of this release… “run a database backup before upgrade”.
Found this:
public enum BackupType
{
Scheduled = 0 ,
Manual = 1,
Update = 2
}
So I’m assuming there should also be a “scheduled” and “update” directory at the same level of “manual”? I’ll have to see what happens when upgrading to 2.0.0.1644 tonight.
Please let me know if you need further info, logs, …