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!

  • Create new server in Otter using API

    Support api buildmaster otter
    3
    0 Votes
    3 Posts
    19 Views
    P
    Hello Paul Here is the powershell script we are using. It is running from the server as a part of our init server script. We deploy the Otter/BuildMaster Agent and we run the script . Hope this help Regards Philippe Param( [Parameter(Mandatory=$false)] [string]$API = "https://#OTTERHOST#/api", [Parameter(Mandatory=$false)] [string]$SERVEUR = $env:computerName ) #end param # Extract AESKey [xml]$XmlDocument = Get-Content -Path "C:\Program Files\InedoAgent\InedoAgentService.exe.config" $AESKey=($XmlDocument.configuration.appsettings.add | where-object {$_.key -eq "EncryptionKey"}).value # # Grab list of registered server # $URI=$API+"/infrastructure/servers/list" $aListServer=Invoke-RestMethod -Method Post -Uri $URI -Headers @{'X-ApiKey' = '********************'} if ($aListServer.Name -contains $SERVEUR){ # # Mise à jour # $URI=$API+"/infrastructure/servers/update/"+$SERVEUR $body = @{ name="$SERVEUR"; hostname="$SERVEUR"; active=$true; serverType="windows"; port="46336"; encryptionType="AES"; encryptionKey=$AESKey } }else{ # # Creation # $URI=$API+"/infrastructure/servers/create/"+$SERVEUR $body = @{ name="$SERVEUR"; hostname="$SERVEUR"; serverType="windows"; active=$true; drift="automaticallyRemediate"; port="46336"; roles=@("Baseline"); environments=@("Integration"); encryptionType="AES"; encryptionKey=$AESKey } } # # Appel de l'API # Invoke-RestMethod -Method Post -ContentType 'application/json;' -Uri $URI -Body (ConvertTo-Json $body) -Headers @{'X-ApiKey' = '********************'} #
  • Time out Error 500 :(

    Support otter
    2
    0 Votes
    2 Posts
    9 Views
    ?
    The error is related to a database connection/query that is timing out. Based on the data you're describing (two servers... not like two million servers), this is the result of network connectivity, or a severe problem on your remote sql server (e.g. other applications consuming all resources).
  • 0 Votes
    3 Posts
    5 Views
    P
    Hi Greg Due to my lack of time, I stop the migration and I am still working with 1.7. Therefore, I will make some test with the new release and let you know what is going on. We are intensively using Otter for deploying and configuring SQL, IIS, File Server, ... and the migration have to be handle carefully. Best regards Philippe
  • 0 Votes
    3 Posts
    7 Views
    ?
    Hello Great news Best Regards Philippe
  • IIS AppPool misconfiguration on fresh install Otter 2.0.7

    Support otter
    3
    0 Votes
    3 Posts
    4 Views
    ?
    Hi Dean Thanks for the reply.
  • Missing parameters in IIS::Ensure-AppPoll ?

    Support otter
    2
    0 Votes
    2 Posts
    9 Views
    T
    Hello Philippe, For restartTimeLimit, I believe StartupTimeLimit and ShutdownTimeLimit (in the Process Model tab for the visual editor) are what you're looking for. I've submitted a pull request to add PeriodicRestartSchedule: https://github.com/Inedo/inedox-windows/pull/35
  • 0 Votes
    1 Posts
    6 Views
    No one has replied
  • 0 Votes
    3 Posts
    11 Views
    C
    That was the first thing I tried to get, though the server sort of hung at the last step, and I couldn't see it right from the installer page. Is there a folder where the logs would have been saved perhaps? They're probably still there if so. I'll be honest. Wasn't so much the server itself hanging as it was a screen reading software I was using to access it.
  • Assets- Illegal charecters in path- stuck in loop

    Support error otter
    6
    0 Votes
    6 Posts
    16 Views
    ?
    I'm not sure I totally understand what you mean by "had the path of where I stored the PoSh script"? Basically, when you create an asset in Otter, it is stored in a Raft, which is a sort of abstract file system. So, it's basically just a file (script-name.ps1) stored in this raft. We are working on building out our training videos (sadly, they take quite a while), but we'd love to learn what your overall goals are, and how we can build good content to help you reach those goals. In a lot of organizations, one of the most important things is "showing the value/success" of automation, infrastructure as code, etc. So we want to help with that too. Anyways, it's obvious quite a "big topic", so your best would be to get in touch with us, so we can work together directly.
  • Run time issue with the Otter Web Service

    Support otter
    17
    0 Votes
    17 Posts
    39 Views
    ?
    Doubled checked and verified that ASP.NET 4.5 (or later) is already installed.
  • 0 Votes
    5 Posts
    4 Views
    ?
    Hi Another point of complexity is the use of script and files in the raft. Lets say, you define myraft and a file called myfile in this raft. You make a plan whatever the raft you use and call myfile from myraft Your code will contain something like ....myraft::myfile But if you rename myraft to mynewraft the plan won't change and it will fail at the next run. The only way to handle correctly the raft renaming would be after changing the raft name to parse all the plans and configurations and templates in all the rafts to replace myraft::myfile by mynewraft::myfile. So renaming a raft is not so simple, according my understanding of Otter :-)
  • Otter extension missing

    Support otter
    5
    0 Votes
    5 Posts
    13 Views
    ?
    Were you able to ever get this resolved? I haven't seen the case of "an extension not really loading" in this manner, so hoping it was fixed already. If not, I guess I would delete all extensions from the folder, then restart the web/service, to make sure it says "nothing installed", then install them again.
  • Syntax on PsDSC help needed

    Support otter
    4
    0 Votes
    4 Posts
    5 Views
    ?
    It seems the part is causing '1' to be converted to a decimal: https://github.com/Inedo/inedox-windows/blob/88f5924bc1d2397c9edfb135eb9429bbe9fa34e8/Windows/OtterExtension/Operations/PSDscOperation.cs#L241-L243 Of course, because OtterScript is only strings, there's no way to know if it "should" be a string or a decimal. I wonder if the property could be inspected of the dsc resource? I'll note you can shorten @([string[]](1)) to @('1'),
  • Repoint to new DB Server

    Support otter
    2
    0 Votes
    2 Posts
    5 Views
    ?
    There's just the two connection strings (web and service)... you shouldn't be getting timeouts, however. It might be network related?
  • 0 Votes
    4 Posts
    13 Views
    benB
    Hello Clint, This SQL will copy any credentials that BuildMaster has but Otter doesn't to Otter. However, it will not work if BuildMaster and Otter use different encryption keys. You can find the encryption keys for BuildMaster and Otter in app_appSettings.config and in web_appSettings.config. The key will look like this in the file: <add key="Persistence.EncryptionKey" value="[encryption key is here]" /> INSERT INTO [Otter].[dbo].[Credentials] ([Environment_Id], [Credential_Name], [CredentialType_Name], [LegacyConfiguration_Bytes], [Configuration_Xml], [AllowFunctionAccess_Indicator]) -- Omit the line above this comment to test this before running it for real SELECT OE.[Environment_Id] ,BC.[Credential_Name] ,BC.[CredentialType_Name] ,[LegacyConfiguration_Bytes] = NULL ,[Configuration_Xml] = CAST(REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( CAST(BC.[Configuration_Xml] AS VARCHAR(MAX)), '<Inedo.BuildMaster.Extensibility.Credentials.BuildMasterCredentials Assembly="BuildMasterCore">', '<Inedo.Otter.Extensions.Credentials.BuildMasterCredentials Assembly="OtterCore">' ), '<Inedo.BuildMaster.Extensibility.Credentials.OtterCredentials Assembly="BuildMasterCore">', '<Inedo.Otter.Extensions.Credentials.OtterCredentials Assembly="OtterCore">' ), '<Inedo.BuildMaster.Extensibility.Credentials.ProGetCredentials Assembly="BuildMasterCore">', '<Inedo.Otter.Extensions.Credentials.ProGetCredentials Assembly="OtterCore">' ), '<Inedo.BuildMaster.Extensibility.Credentials.PrivateKeyCredentials Assembly="BuildMasterCore">', '<Inedo.Otter.Extensions.Credentials.PrivateKeyCredentials Assembly="OtterCore">' ), '<Inedo.BuildMaster.Extensibility.Credentials.UsernamePasswordCredentials Assembly="BuildMasterCore">', '<Inedo.Otter.Extensions.Credentials.UsernamePasswordCredentials Assembly="OtterCore">' ), '</Inedo.BuildMaster.Extensibility.Credentials.BuildMasterCredentials>', '</Inedo.Otter.Extensions.Credentials.BuildMasterCredentials>' ), '</Inedo.BuildMaster.Extensibility.Credentials.OtterCredentials>', '</Inedo.Otter.Extensions.Credentials.OtterCredentials>' ), '</Inedo.BuildMaster.Extensibility.Credentials.ProGetCredentials>', '</Inedo.Otter.Extensions.Credentials.ProGetCredentials>' ), '</Inedo.BuildMaster.Extensibility.Credentials.PrivateKeyCredentials>', '</Inedo.Otter.Extensions.Credentials.PrivateKeyCredentials>' ), '</Inedo.BuildMaster.Extensibility.Credentials.UsernamePasswordCredentials>', '</Inedo.Otter.Extensions.Credentials.UsernamePasswordCredentials>' ) AS XML) ,BC.[AllowFunctionAccess_Indicator] FROM [BuildMaster].[dbo].[Credentials] BC LEFT OUTER JOIN [Otter].[dbo].[Credentials] OC ON BC.[Credential_Name] = OC.[Credential_Name] LEFT OUTER JOIN [BuildMaster].[dbo].[Environments] BE ON BC.[Environment_Id] = BE.[Environment_Id] LEFT OUTER JOIN [Otter].[dbo].[Environments] OE ON BE.[Environment_Name] = OE.[Environment_Name] WHERE OC.[Credential_Id] IS NULL
  • Latest Otter download being flagged by Windows Defender

    Support otter
    2
    0 Votes
    2 Posts
    4 Views
    ?
    Thanks for the report; we're unfortunately powerless against these, since they randomly come and go. I'm sure you're already aware, but just as an FYI, we have published KB#1113 that talks about false positives and code signing.
  • Maps/Lists do not work

    Support otter buildmaster
    2
    0 Votes
    2 Posts
    13 Views
    benB
    Copying John's answer from StackOverflow: Maps are specified as %(key: value), here is an example plan that should help: set %map = %(Web.config: @("Web.Beta.config", "Web.Release.config")); foreach $key in @MapKeys(%map) { set @values = %map[$key]; Log-Information `$key = $key; Log-Information `@values = $Join(", ", @values); } Sleep 3;
  • GIT Raft Questions - Git to Otter then Otter to Git

    Support otter
    3
    0 Votes
    3 Posts
    16 Views
    benB
    Looking deeper, I see that the raft repositories are supposed to automatically download changes, but that functionality is broken. I've filed this as OT-183 and also fixed the related bugs OT-184 and OT-185.
  • Inedo Agent 5.8.1 Setup Switches are not working

    Support otter
    2
    0 Votes
    2 Posts
    4 Views
    benB
    Hello Giri, This command should work: InedoAgentSetup5.8.1.exe /S /TargetPath="D:\program files\inedoagent" /port=46336 /UserAccount=LocalSystem I changed TargetDirectory to TargetPath, captialized /S, removed the install argument, and added quotes around the file path with spaces in it.
  • Cannot download otter

    Support otter
    2
    0 Votes
    2 Posts
    2 Views
    ?
    As long as the digital certificate is signed by Inedo, it's just a false positive. Please see: https://inedo.com/support/kb/1113/anti-malware-false-positives-code-signing-and-safety-of-inedo-products