StarWindX throw exception on server connect

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Tue Apr 16, 2019 3:58 pm

On server connect I got the following error:

PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> $server = New-SWServer -host 127.0.0.1 -port 3261 -user root -password starwind
PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> $server.Connect()
External component has thrown an exception.
At line:1 char:1
+ $server.Connect()
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], SEHException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.SEHException

I tried to reinstall StarWind but it did not help, it is the newest build 12767, in server log, there is only one error that the 'NVMfTarget' was not found but noting else.

4/16 17:48:22.194756 d7c conf: TelnetListener::listenConnections: Accepted control connection from 127.0.0.1:55132.
4/16 17:49:32.743318 2d04 conf: *** ControlConnection::doControl: Plugin 'NVMfTarget' not found!
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Tue Apr 16, 2019 6:34 pm

You can disregard the NVMf related messages for now.
Can you tell more details about the environment when you got this error? Are you able to connect to the same service using the management console?
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Wed Apr 17, 2019 11:15 am

It is a Windows 10 so not a server but it hasn't had a problem like this or the reinstall solved it, I use this install for tests only.

I can connect with the GUI but its a free license after the 30 days so I can't do much which wouldn't be a problem if I could connect with StarWindX.

For me it seems its a StarWindX issue and not a serverside issue, it also happens from C#.
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Wed Apr 17, 2019 1:37 pm

You can update to the latest build. With it, you will have StarWind Management Console in read-only mode infinitely. So, you will be able to monitor your setup.
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Wed Apr 17, 2019 2:46 pm

Well yes, I can monitor it from the Management Console and it is the latest build.

Could you provide me some help for how to get a better or more detailed exception or log from StarWindX, until than I try a rollback to build 12658 and see what happens.

As I mentioned I just reinstalled the whole StarWind before testing the error again and I made sure that delete any remaining file before install.

This may help this exception is from C# it has an added HResult value:

System.Runtime.InteropServices.SEHException
HResult=0x80004005
Message=External component has thrown an exception.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Wed Apr 17, 2019 4:36 pm

Try enabling StarWindX logging.

Code: Select all

Enable-SWXLog -level SW_LOG_LEVEL_DEBUG -path path_to_logfile
and let me know what you get as output.
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Wed Apr 17, 2019 5:27 pm

I tested multiple times but I don't see any error in the log file only INFO and DEBUG.

It just lists the targets then the devices, I didn't copy the whole device response from the log.


17-04 19:17:48 INFO : STARWINDX LOG STARTED!
17-04 19:17:48 INFO : Version 1.0.0.436

17-04 19:18:01 INFO : Refresh service data

17-04 19:18:01 INFO : Refresh targets
17-04 19:18:01 DEBUG : Send to host 127.0.0.13261:
list -what:"targets" -mode:0

17-04 19:18:01 DEBUG : Response from host 127.0.0.13261:
200 Completed.

Nothing found.

17-04 19:18:01 INFO : Refresh devices
17-04 19:18:01 DEBUG : Send to host 127.0.0.13261:
list -what:"devices"

17-04 19:18:01 DEBUG : Response from host 127.0.0.13261:
200 Completed.

{SPTI Devices data...}

Last 3 lines:
ScsiBus="0"
ScsiTarget="3"
ScsiLun="0"

Nothing afeter this.
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Wed Apr 17, 2019 7:59 pm

I do not see that error thrown in this log entry though.
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Wed Apr 17, 2019 9:57 pm

So this exception is not logged this way, or it fails before it can log anything.
I don't know what comes next after getting the devices but the problem should be in the next part may be in the serialization or what comes after that.
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Thu Apr 18, 2019 8:47 am

After you tested multiple times with nothing weird logged, are you still able to reproduce the issue the way you did in the original post?
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Thu Apr 18, 2019 10:46 am

Yes, the error always happens no matter what, but it has never shown in the log only in the console as I mentioned previously.
Sekkmer
Posts: 29
Joined: Thu Mar 08, 2018 12:11 pm

Thu Apr 18, 2019 2:35 pm

Well, I don't know what changed but after the last restart, the error just magically disappeared.

Unfortunately, I have no idea what was the problem but if I encounter this error again I will update you.
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Thu Apr 18, 2019 3:27 pm

It's a kind of magic :)
Let us know if that reappears. Most likely it will not, as it looks like that was a glitch.
Post Reply