Build 887 - ImportFBS.exe Bugs

Unable to get the /log option to actually produce any of these errors, so I had to grab them out of CMD.exe. Looks like the majority of information is around LDAP authentication. Here is the security configured for Continua.

![](upload://sWX1G8p6Ddwi6RbljvDntuQE7FT.jpeg)

Bug 1 - get command line options in command prompt

Trying to get the command line options (as per many other applications) with the /? command.

 C:\Program Files\VSoft Technologies\ContinuaCI\Server>importfbs.exe /?  

The following error occurred importing Final Builder Server to Continua: System.  Security.SecurityException: Failed to authenticate LDAP user.     at Continua.Import.ContinuaConnection.Connect()     at ImportFBS.Import.Main(String[] args)  The Zone of the assembly that failed was:  MyComputer

Bug 2 - command line options with a really bad port call (http IIS port)

 C:\Program Files\VSoft Technologies\ContinuaCI\Server>importfbs.exe /logpath=c:\  Data\ /hostname=localhost /port=18080  

The following error occurred importing Final Builder Server to Continua: System.  ServiceModel.ProtocolException: You have tried to create a channel to a service  that does not support .Net Framing. It is possible that you are encountering an  HTTP endpoint. ---> System.IO.InvalidDataException: Expected record type 'Preamb  leAck', found '72'.     --- End of inner exception stack trace ---    Server stack trace:     at System.ServiceModel.Channels.FramingDecoder.ValidatePreambleAck(FramingRec  ordType foundType)     at System.ServiceModel.Channels.ClientDuplexDecoder.Decode(Byte[] bytes, Int3  2 offset, Int32 size)     at System.ServiceModel.Channels.ConnectionUpgradeHelper.ValidatePreambleRespo  nse(Byte[] buffer, Int32 count, ClientFramingDecoder decoder, Uri via)     at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreambl  e(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)       at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConne  ctionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& ti  meoutHelper)     at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(Time  Span timeout)     at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(Time  Span timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)    Exception rethrown at [0]:     at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim  eSpan timeout)     at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan  timeout)     at System.ServiceModel.Security.TlsnegoTokenProvider.OnOpen(TimeSpan timeout)       at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(Tim  eSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open  (TimeSpan timeout)     at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan tim  eout)     at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(Tim  eSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChanne  l`1.OnOpen(TimeSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperat  ion(SecuritySessionOperation operation, EndpointAddress target, Uri via, Securit  yToken currentToken, TimeSpan timeout)     at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetToken  Core(TimeSpan timeout)     at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan tim  eout)     at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecurit  ySessionChannel.OnOpen(TimeSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)     at System.ServiceModel.Channels.CommunicationObject.Open()    Exception rethrown at [1]:     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req  Msg, IMessage retMsg)     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa  ta, Int32 type)     at System.ServiceModel.ICommunicationObject.Open()     at Continua.Shared.ServiceClient`1.Initialise()     at Continua.Shared.ServiceClient`1.get_Proxy()     at Continua.Import.ContinuaConnection.Connect()     at ImportFBS.Import.Main(String[] args)    C:\Program Files\VSoft Technologies\ContinuaCI\Server>

 Bug 3 - Command line options - different log path, server name

C:\Program Files\VSoft Technologies\ContinuaCI\Server>importfbs.exe /logpath=c:\
Data\ /hostname=jdsrv07

The following error occurred importing Final Builder Server to Continua: System.
Security.SecurityException: Failed to authenticate LDAP user.
   at Continua.Import.ContinuaConnection.Connect()
   at ImportFBS.Import.Main(String[] args)
The Zone of the assembly that failed was:
MyComputer 

Bug 4 - Command line options - different log path

I did this test because I was concerned about the volume of files in C:\ProgramData\VSoft\FBServer7 and I'm not sure I could determine what's going on.

C:\Program Files\VSoft Technologies\ContinuaCI\Server>importfbs.exe /logpath=c:\Data\

The following error occurred importing Final Builder Server to Continua: System.
Security.SecurityException: Failed to authenticate LDAP user.
   at Continua.Import.ContinuaConnection.Connect()
   at ImportFBS.Import.Main(String[] args)
The Zone of the assembly that failed was:
MyComputer

Bug 5 - Command line - no options

C:\Program Files\VSoft Technologies\ContinuaCI\Server>importfbs.exe

The following error occurred importing Final Builder Server to Continua: System.
Security.SecurityException: Failed to authenticate LDAP user.
   at Continua.Import.ContinuaConnection.Connect()
   at ImportFBS.Import.Main(String[] args)
The Zone of the assembly that failed was:
MyComputer

ContinuaCI_887_ImportFSB_LDAP_settings.jpg

I am working on these ugly errors at the moment and the fix should be out either this afternoon or tomorrow. I will keep you posted!

Dave, np -> enjoying finding bugs in others software at the moment.

Fixes will be out in the next build! I added a whole bunch of prettier validation and all those errors should now be gone!

Dave,

Build 892 has this working. Wow, it's very quick.

  1. Open cmd.exe
  2. runas /user:{continuadomainUser} "cmd.exe"
  3. From the new user authenticated cmd window.
  4. cd C:\Program Files\VSoft Technologies\ContinuaCI\Server
  5. ImportFBS.exe /? 
  6. Command line options displayed. Cool
  7. ImportFBS.exe /logpath="{A path on the server that I knew my continuaDomainUser could write to}"
  8. Worked very quickly. 
  9. Log file matched CMD echo messages.

Thanks! Just seeing if they work in continua now.

No problem. The import was always designed to get as many settings across as possible but a little work will still need to be done to start running builds. As Vincent mentioned, FBS and Continua are quite different in terms of architecture so you will need to relink your final builder projects back into Continua. The import creates a placeholder for this action. Your feedback has been great and let me know if you have any more issues with the import or Continua!