Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Exception when creating dummy server

    Scheduled Pinned Locked Moved Support
    serversbuildmasterdummy
    3 Posts 1 Posters 17 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      When I try to create a dummy server (with any name), I get the error below. BuildMaster does succeed in creating the dummy server, but it has no name. I then can edit the details of the no-name dummy server and give it a name, and it takes the name just fine.


      Server Error in '/' Application.

      2627141Environments_CreateOrUpdateServer22`Violation of UNIQUE KEY constraint 'UQ__Servers__Server_Name'. Cannot insert duplicate key in object 'dbo.Servers'.

      Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

      Exception Details: System.Data.SqlClient.SqlException: 2627141Environments_CreateOrUpdateServer22`Violation of UNIQUE KEY constraint 'UQ__Servers__Server_Name'. Cannot insert duplicate key in object 'dbo.Servers'.

      Source Error:

      An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

      Stack Trace:

      [SqlException (0x80131904): 2627`14`1`Environments_CreateOrUpdateServer`22`Violation of UNIQUE KEY constraint 'UQ__Servers__Server_Name'. Cannot insert duplicate key in object 'dbo.Servers'.]
      System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +388
      System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +688
      System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4403
      System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6665769
      System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +6667768
      System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +577
      System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +735
      System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +290
      Inedo.Data.DatabaseFactory.Inedo.Data.IDatabaseExecuter.ExecuteNonQuery(String storedProcName, DbParameter[] parameters) +268
      Inedo.BuildMaster.Web.Controls.Extensions.AgentEditorHost.SaveExtension() +300
      Inedo.BuildMaster.Web.Controls.Extensions.Internal.ExtensionEditorHostBase`1.InitializeNew(Type extensionType) +190
      Inedo.BuildMaster.Web.WebApplication.Administration.Environments.EditServer.CreateChildControls() +195
      System.Web.UI.Control.EnsureChildControls() +189
      System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +40
      System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +313
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2773

      Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

      Product: BuildMaster
      Version: 4.1.6

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        When you say dummy server, you mean the "Dummy Agent" in the Dummy extension? Very likely could be a bug in that extension; we primarily use that to test extensibility points. I assume this is for testing multi-server functionality and the like?

        But in any case, I don't think the Dummy Agent will provide any useful functionality; you probably want to create additional Local agents. This can only be done via the API / Database directly.

        Just look at how server ID=1 is configured, and add as many additional servers as you'd like (just make sure to use different names).

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Yes, it's from the Dummy extension. When I click the "Add Server" button on the Servers page, it lets me choose an agent type -- self-hosted, IIS-hosted, SSH-based, or Dummy Agent.

          I was hoping to use dummy servers as stand-ins for real servers that don't (yet) exist so I could create my deployment plan before the servers exist. Then, once they exist, I would just point the deployment steps to the real servers.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation