Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. OtterFanboy
    O
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    OtterFanboy

    @OtterFanboy

    0
    Reputation
    12
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    OtterFanboy Follow

    Best posts made by OtterFanboy

    This user hasn't posted anything yet.

    Latest posts made by OtterFanboy

    • RE: Buildmaster - Gitea Tie In

      Many thanks for the excellent fixes put in. Can I trouble you to look at a couple of niggles please?

      1. Clicking on Git - Files produces a 500 error when using a standalone Git instance (http://localhost:8622/applications/1/git/browse).

      2. Clicking on the first Commit link ID produces a 500 error when using a standalone Git instance.

      3. When adding Git on a per application level, the first time that you create a connection, with new credentials, the connection adds successfully but won't sync. It shows as "not synced". Digging into the error logs shows "System.InvalidCastException: Unable to cast object of type 'Inedo.Extensions.Credentials.UsernamePasswordCredentials' to type 'Inedo.Extensibility.Git.GitServiceCredentials'." At this point the Git browse menu appears in the header navigation bar but cannot be used (all 500 errors).

      To get around this, go back and add it again but select the credentials created in the previous step rather than typing them this time. The repository syncs and adds successfully. If you are trying to reproduce this on a system that has successfully added this repo with credentials before, ensure you remove it from the Global Services and Credentials screen or the bug will not appear (http://localhost:8622/secure-credentials)

      1. When trying to add a new credential for Git standalone with the same username as a previous entry, without specifying a new credential name under the advanced options, you receive a SQL FK exception rather than a user message "the credential with that username is already added". - "2627141Credentials_CreateOrUpdateCredential22`Violation of UNIQUE KEY constraint 'UQ__Credentials'. Cannot insert duplicate key in object 'dbo.Credentials'. The duplicate key value is (<NULL>, Git-test1, <NULL>, <NULL>). Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0."

      Please pass on my thanks to all involved in this which makes a real difference - the ability to have a Pipeline linked in to standalone Git with building on commit is amazing, using the same agent as Otter is just the icing on the cake.

      posted in Support
      O
      OtterFanboy
    • RE: InedoAgent Silent Install

      OK I've got it silently installing without specifying the encryption key. I think I have found the error of my ways. The encryption key should be a 64 character length hexadecimal not 32. When I specify "3e56ce4ae8ad498e447944fa79c7b21571a2acd3723b75966beff78b70ff14c6" for instance, that works fine.

      posted in Support
      O
      OtterFanboy
    • InedoAgent Silent Install

      I'm trying to follow the instructions - https://docs.inedo.com/docs/en/inedoagent-installation-silent-installation?highlight=agent silent install - to do a silent install of the Otter Agent but can't seem to get it working.

      When I copy and paste the arguments in the list the Otter Agent installs briefly then disappears from the install location.

      If I run with no arguments and just /S it installs silently without issue, but that doesn't solve the problem of using AES encryption and silently installing.

      Things I've tried:

      1. Different install location.
      2. Different encryption type (None, AES)
      3. Different encryption keys
      4. Different temp location.
      5. Different order of arguments.
      6. Different service name.

      Am I doing something silly?

      posted in Support
      O
      OtterFanboy
    • RE: Buildmaster - Gitea Tie In

      Amazing, thank you so much.

      posted in Support
      O
      OtterFanboy
    • RE: Buildmaster - Gitea Tie In

      Thank you, it would be great to get it working as this is a key feature for our use case. Not worried about the Gitea bit for now.

      posted in Support
      O
      OtterFanboy
    • Buildmaster - Gitea Tie In

      Hello,

      I read interestingly about Gitea so tried to use it with Windows and Buildmaster and had a little trouble so would be grateful for some support.

      Setup:
      Buildmaster 2022.3
      Git 2.39
      Gitea 1.18.5

      Steps taken:

      1. clean install of BM
      2. clean install of git
      3. clean install of gitea using sql lite
      4. create new direcory c:\test
      5. add file.
      6. push to gitea
      7. try to create new application via git repository
      8. it says successsful
      9. go into applications it's not present
      10. go into error logs - get a cast error

      "System.InvalidCastException: Unable to cast object of type 'Inedo.Extensions.Credentials.UsernamePasswordCredentials' to type 'Inedo.Extensibility.Git.GitServiceCredentials'.
      at Inedo.Extensibility.Git.GitRepository.GetRemoteBranchesAsync(ICredentialResolutionContext context, CancellationToken cancellationToken)+MoveNext()
      at"

      Bold text below not in anger but to distinguish between pictures 👍

      Capture 5.PNG Capture 6.PNG Capture 7.PNG Capture 8.PNG

      If i tried to do it the other way, create an Application, then create a connection I get the same error BUT if I choose not to synchronise it, it seems to fair better. Though I am still not sure its working correctly as the same error occurs in the logs?

      Capture 9.PNG Capture 10.PNG Capture 11.PNG Capture 1.PNG

      If you for instance go back into the Application and choose connections and then click on the connection for Git, the username and password shows as "Unknown", and clicking on the Edit button throws a server error.

      Go back.PNG Go back 2.PNG

      I also noticed that if the Browse Url is not populated when completing the Git connection you get a 500 error when trying to click on the Browse function under Git menu

      Browse.PNG

      posted in Support
      O
      OtterFanboy
    • Buildmaster - Build Purge

      Hello,

      Am I doing something wrong with BuildMaster? When attempting to purge the builds, all works well until I attempt to Purge Build 1. At this point, I receive a (500) Server Error
      Nullable object must have a value and the entire Application (within Buildmaster) becomes unusable - clicking on The Applications tab, then the application returns the same error.

      Logs attached.

      Capture.PNG capture 2.PNG Capture 3.PNG

      I have not found a way to recover the application after this error.

      posted in Support
      O
      OtterFanboy
    • RE: Inedo Agent with Otter Bug - Legacy Powershell Instances

      @stevedennis This is amazing, what a great feature.

      posted in Support
      O
      OtterFanboy
    • Inedo Agent with Otter Bug - Legacy Powershell Instances

      I have found an issue with the Inedo Agent when running an Otter configuration remediation or configuration check whereby legacy Powershell.exe and Otter.Agent.exe processes are not cleaned up if an execution is cancelled half way through. Where a configuration has a substantial number of steps, a large amount of RAM can be taken up by Powershell instances which are hung which could result in system instability. The fix to this is to close the Otter.Agent process, close individual PowerShell instances, or restart the main Otter service. Restarting the Agent service does not fix the issue. On sites with a large number of servers, this could cause administrative headache if a rogue script is deployed.

      This error is particularly prevalent when creating PowerShell scripts that require user input (by mistake) - for example calling a Start-Process which should launch a silent application but for whatever reason shows a GUI. At this point the Powershell process called is hung, the Agent run configuration shows being stuck on that script, and the cancel method for scripts is unusable (it says "if the script can be cancelled it will" - but these never can).

      However the error also exists when cancelling a run of multiple Powershell scripts as part of a configuration half way through. In this case, the run is cancelled successfully but the legacy processes are retained on the Agent machine. The fix is as above.

      Potential ways of fixing this:

      1. Providing an option for a maximum run time for a configuration after which the agent shutdowns all the processes it has started up on that run, thereby eliminating ghost runs.
      2. Providing timeouts for script runs of individual items in the desired configuration thereby eliminating rogue processes.
      3. Force closing any processes created during an execution run when an execution cancellation is requested rather after a specified time rather than waiting for the graceful ending of the current step (which in the case of waiting user input) would never happen.

      Additionally (very tiny) under "Administration - System Status" Infrastructure Sync is typo'd to say Infrastrucure Sync.

      posted in Support
      O
      OtterFanboy
    • Otter - 500 Error On Clean Install

      A 500 error object not set to an instance... occurs in the following conditions:

      1. A new install.
      2. A server is added.
      3. An environment is added but no roles is added.
      4. A user navigates into Servers then selects the server.
      5. A user clicks on Desired configuration of the server.
      6. The 500 error occurs.

      This occurs because no role exists for the server. When a role is created, the 500 still occurs until a script is created. At this point in time the 500 error disappears.

      This error is probably happening because when clicking on the Server it its trying to enumerate the configuration it should be trying to apply but no configuration has yet been created.

      posted in Support
      O
      OtterFanboy