Discovery tool command "mono Discovery.exe -s" not working in ubuntu 18.0.4

Pratap Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2023

I am trying to deploy discovery tool in linux environment, I followed the steps as mentioned in documentation and after installing mono and downloading and extracting the discovery tool package and when I am running the command "mono Discovery.exe -s", I am getting below error 

 root@monomc:/opt/Discovery_3.1.8/Discovery# mono Discovery.exe -s
Show Setting Dialog...
05/02/2023 12:37:17 : Error opening the Discovery configuration
05/02/2023 12:37:17 : Exceptions:
05/02/2023 12:37:17 : The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception.
at System.Windows.Forms.Control..ctor () [0x0000d] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.Form..ctor () [0x00012] in <28e46de2d20c496895000ef0abfc2106>:0
at Insight.Discovery.Forms.frmSettings..ctor () [0x00021] in <db97e6f384764597a826a534944c1c82>:0
at (wrapper remoting-invoke-with-check) Insight.Discovery.Forms.frmSettings..ctor()
at Insight.Discovery.CommandLineLogic.CommandClasses.SettingsCommand.ShowSettingsDialog () [0x0000a] in <db97e6f384764597a826a534944c1
c82>:0
at Insight.Discovery.CommandLineLogic.CommandClasses.SettingsCommand.ExecuteCommand () [0x00000] in <db97e6f384764597a826a534944c1c82>
:0
05/02/2023 12:37:17 : The type initializer for 'System.Windows.Forms.XplatUI' threw an exception.
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00005] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.Control..ctor () [0x000d6] in <28e46de2d20c496895000ef0abfc2106>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0
05/02/2023 12:37:17 : Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x003d0] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.XplatUI..cctor () [0x000c0] in <28e46de2d20c496895000ef0abfc2106>:0 

0 answers

Suggest an answer

Log in or Sign up to answer