Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scheduled defrag

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
PolemEngineering
1047 Views, 3 Replies

Scheduled defrag

I have tried to perform a scheduled purge and defrag action of the vault and our custom library, but without succes.

 

Please see my log below.

 

13-1-2011 23:42:43 The backup operation has been successfully finished.
13-1-2011 23:42:43 System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at Connectivity.Common.CommonMessageBox.a(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.c(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.ShowDialog(String message, String title, ButtonType buttonType)
   at Connectivity.Common.CommonMessageBox.Show(String message, String caption, ButtonType buttonType)
   at Connectivity.Application.VaultManager.ManagerMessageBox.Show(String message, ButtonType buttonType)
   at Connectivity.Application.VaultManager.BackupVaultCommand.OnExecuteCommandLine(String rootBackupPath, Boolean validateBackup, Boolean backupStdContent, Boolean ignoreNonreplicatedFiles, LoginInfo dbLogin, Boolean validateFileStore)
   at Connectivity.Application.VaultManager.ApplicationClass.RunCommandLine(String commandLineArgs)
13-1-2011 23:42:44 ***** WARNING: Failed to initialize logging subsystem. Please check your app.config file for valid settings13-1-2011 23:43:49 ==================================================================
13-1-2011 23:43:49 Logging initiated: Core server version 15.2.66.0
13-1-2011 23:43:49 ==================================================================
13-1-2011 23:43:49  
13-1-2011 23:43:49 -Opurge -N"Vault" -KEEPVERS5 -MINAGE180 -VU[username] -VP[password] -L"D:\Vault_DB\Vault_Backup\BackupLog.txt" 
13-1-2011 23:43:50 Connectivity.Request.Common.RequestLibrary - RequestRuntimeStop()
13-1-2011 23:43:50 Connectivity.Request.Vault.RequestLibrary - RequestRuntimeStop()
13-1-2011 23:43:50 Connectivity.Request.Foundation.RequestLibrary - RequestRuntimeStop()
13-1-2011 23:43:50 Connectivity.Request.Document.RequestLibrary - RequestRuntimeStop()
13-1-2011 23:43:55 ==================================================================
13-1-2011 23:43:55 Logging initiated: Core server version 15.2.66.0
13-1-2011 23:43:55 ==================================================================
13-1-2011 23:43:55  
13-1-2011 23:43:55 -Odefragmentvault -N"Vault" -VU[username] -VP[password] -L"D:\Vault_DB\Vault_Backup\BackupLog.txt" 
13-1-2011 23:43:55 This operation cannot be performed if the vault is unlocked and available to users.  Would you like to lock this vault now?  Selecting 'No' will abort the operation.
13-1-2011 23:43:55 System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at Connectivity.Common.CommonMessageBox.a(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.c(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.ShowDialog(String message, String title, ButtonType buttonType)
   at Connectivity.Common.CommonMessageBox.Show(String message, String caption, ButtonType buttonType)
   at Connectivity.Application.VaultManager.ManagerMessageBox.Show(String message, ButtonType buttonType)
   at Connectivity.Application.VaultManager.DefragmentDatabaseCommand.OnExecuteCommandLine(LoginInfo vaultLogin, String databaseName)
13-1-2011 23:43:55 ***** WARNING: Failed to initialize logging subsystem. Please check your app.config file for valid settingsSystem.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at Connectivity.Common.CommonMessageBox.a(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.c(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.ShowDialog(Exception ex, String title, ButtonType buttonType)
   at Connectivity.Common.CommonMessageBox.Show(Exception ex, String caption)
   at Connectivity.Application.VaultManager.ManagerMessageBox.Show(Exception ex)
   at Connectivity.Application.VaultManager.DefragmentDatabaseCommand.OnExecuteCommandLine(LoginInfo vaultLogin, String databaseName)
   at Connectivity.Application.VaultManager.ApplicationClass.RunCommandLine(String commandLineArgs)
13-1-2011 23:46:22 ==================================================================
13-1-2011 23:46:22 Logging initiated: Core server version 15.2.66.0
13-1-2011 23:46:22 ==================================================================
13-1-2011 23:46:22  
13-1-2011 23:46:23 -Odefragmentlibrary -N"AI2011_Polem Bibliotheek" -VU[username] -VP[password] -L"D:\Vault_DB\Vault_Backup\BackupLog.txt" 
13-1-2011 23:46:23 This operation cannot be performed if the library is unlocked and available to users.  Would you like to lock this library now?  Selecting 'No' will abort the operation.
13-1-2011 23:46:23 System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at Connectivity.Common.CommonMessageBox.a(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.c(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.ShowDialog(String message, String title, ButtonType buttonType)
   at Connectivity.Common.CommonMessageBox.Show(String message, String caption, ButtonType buttonType)
   at Connectivity.Application.VaultManager.ManagerMessageBox.Show(String message, ButtonType buttonType)
   at Connectivity.Application.VaultManager.DefragmentLibraryCommand.OnExecuteCommandLine(LoginInfo vaultLogin, String libraryName)
13-1-2011 23:46:23 ***** WARNING: Failed to initialize logging subsystem. Please check your app.config file for valid settingsSystem.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at System.Windows.Forms.Form.ShowDialog()
   at Connectivity.Common.CommonMessageBox.a(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.c(CommonErrorForm A_0)
   at Connectivity.Common.CommonMessageBox.ShowDialog(Exception ex, String title, ButtonType buttonType)
   at Connectivity.Common.CommonMessageBox.Show(Exception ex, String caption)
   at Connectivity.Application.VaultManager.ManagerMessageBox.Show(Exception ex)
   at Connectivity.Application.VaultManager.DefragmentLibraryCommand.OnExecuteCommandLine(LoginInfo vaultLogin, String libraryName)
   at Connectivity.Application.VaultManager.ApplicationClass.RunCommandLine(String commandLineArgs)

 

Looks  like a question for user-input and a time-out after that.

Is it possible to lock and unlock the vault by commandline..?

 

Thanks in advance,

René

3 REPLIES 3
Message 2 of 4

Hi Rene,

 

Could you try this with the -S switch? That will run in silent mode and should auto-accept for you.

 

Paul

Message 3 of 4

That's funny. I just turned off this option to see if errors should  occur...

 

So, to be sure everything works fine, I have to use the commandline (without the -S)...?

 

Thanks for the reply,

René

Message 4 of 4

Hi Rene,

 

Even with the -S switch, any errors would be recorded in the log file.

 

So as long as you periodically check the logs you should be fine.

 

Paul

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report