Navigation

    Inedo Community Forums

    Forums

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

    PhilipWhite

    @PhilipWhite

    0
    Reputation
    14
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    PhilipWhite Follow

    Best posts made by PhilipWhite

    This user hasn't posted anything yet.

    Latest posts made by PhilipWhite

    • RE: [BM] $ApplicationName is empty

      Hi @atripp,
      So I associated the deployment targets with environments and that fixed both of my issues: $EnvironmentName is populated and now the environments are showing on that application screen:

      f2980f10-64c0-41a7-a082-7115d0d3b1ba-image.png

      Thanks!

      posted in Support
      P
      PhilipWhite
    • RE: [BM] $ApplicationName is empty

      Hi @atripp,

      Sorry, I got kind of muddled there; it's actually $EnvironmentName that is empty.
      I'm running a script as part of promoting a build to a Test environment. I expect the $EnvironmentName would contain "Test".

      83ed6f90-0b5e-4e71-9682-7a55c7b2edf4-image.png
      75e2e796-47f6-4891-9b9b-050b872f5c78-image.png
      c5a8b0f7-58db-4ca5-9b57-a22929083333-image.png
      4626bed8-667d-4946-83c0-a79da7d573bb-image.png

      posted in Support
      P
      PhilipWhite
    • [BM] $ApplicationName is empty

      For some reason the $ApplicationName variable is empty in one of my applications. It's working in the others. The plan is fully working, I can create releases and run the pipelines, etc, but the variable is empty when I use it in scripts.

      Maybe also related, on the landing page, it says there are no executions for the app, even though under Releases I have multiple releases that have gone through various stages.
      7250f303-da03-4f3f-b24a-20464aa3b596-image.png

      posted in Support
      P
      PhilipWhite
    • RE: Docker::Build-Image on Linux server

      Hi @rhessinger,
      I should have taken a larger screenshot to show the context. That error I mention in my reply is when creating the connection:
      60dd3878-405b-49d1-9cd0-a411d31a9d08-image.png

      I'm pretty sure there is a bug in validating the "Repository name" field and it is disallowing digits in the name even though they should be allowed.
      -Philip

      posted in Support
      P
      PhilipWhite
    • RE: Docker::Build-Image on Linux server

      Ok thanks, I'll be a little more diligent looking through the docs next time. Here, I think, is a real issue though, the docker connection doesn't seem to allow digits in the repository name, despite the message:
      58d5ea02-3402-49ab-9c4c-f5f11a06e640-image.png
      Our actual Docker registry, does in fact, start with 'c4i'.

      posted in Support
      P
      PhilipWhite
    • Docker::Build-Image on Linux server

      Not sure what exactly is wrong here. I have a Dockerfile in the git repo under code/

      Here is my OtterScript

      Git::Checkout-Code();
      
      SHExec >>pwd;
      ls;>>;
      
      Docker::Build-Image
      (
          Repository: mydockerserver/foo,
          From: $WorkingDirectory/code
      );
      

      I get this error:

      Unhandled exception: System.ArgumentException: The specified DockerRepository resource ("mydockerserver/foo") was not found.

      at Inedo.Extensibility.SecureResources.SecureResource.Create(SecureResourceType type, String resourceName, IResourceResolutionContext context)

      at Inedo.Extensions.Docker.Operations.DockerOperation_ForTheNew.CreateRepository(ICredentialResolutionContext context, String repositoryResourceName, String repositoryNameOverride) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E374097\Src\Docker\InedoExtension\Operations\DockerOperation.cs:line 41

      at Inedo.Extensions.Docker.Operations.BuildImageOperation.ExecuteAsync(IOperationExecutionContext context) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E374097\Src\Docker\InedoExtension\Operations\BuildImageOperation.cs:line 91

      at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.OtterScriptExecuter.Inedo.ExecutionEngine.Executer.IExecutionHostEnvironment.ExecuteActionAsync(ActionStatement actionStatement, IExecuterContext context)

      I manually built the docker image and pushed it as mydockerserver/foo:latest ahead of time, to verify that all works.

      Suggestions?

      posted in Support
      P
      PhilipWhite
    • RE: [BM] Error checking out code on Linux server

      @atripp
      Thanks, I installed 23.0.10 this morning and the git checkout task succeeds on the RedHat server. Next step is getting the docker build task to succeed. I may open a separate post for that.

      posted in Support
      P
      PhilipWhite
    • RE: [BM] Error checking out code on Linux server

      Also I just tried doing the same thing with another server, a Centos7 server, that we had been able to successfully build on and deploy to from an old version of BuildMaster (4.9.10) in the recent past. This server does not have noexec mount at /tmp.
      I configured it with the same creds and a similar tmp directory as the old buildmaster was using, but I am getting the same original error above:

      Unhandled exception: System.InvalidOperationException: Error initializing remote process.
      at Inedo.Agents.Hosting.RemoteHostedAgentProcess.SendMessageAsync(AgentCommand command, CancellationToken cancellationToken)
      at Inedo.Extensibility.Operations.RemoteExecuteOperation.ExecuteAsync(IOperationExecutionContext context)

      I suppose we are looking at 2 separate issues. I'd like to resolve both, but the noexec /tmp issue is the more important one for me.

      posted in Support
      P
      PhilipWhite
    • RE: [BM] Error checking out code on Linux server

      @atripp
      So /tmp is being mounted with 'noexec'. I might be able to get our security department to grant an exemption, but it'll probably take a long time.
      Anyway to change where buildmaster stores its libraries?

      Edit: I was thinking, I can probably get an exemption for one machine, but if we start using buildmaster in a bigger way, we'll want to be deploying apps to a number of different machines and I don't think I will be able to get exemptions for all of them. If it's not possible to change the path currently, then that would be an important feature request for us.

      posted in Support
      P
      PhilipWhite
    • RE: [BM] Error checking out code on Linux server

      @atripp
      I think you are right. Yes, the file exists. I saw it didn't have execution permissions so I gave it that but it still fails.
      I tried running 'ldd' on it but that failed too: "ldd: warning: you do not have execution permission for `/tmp/Inedo/ExtensionCache/fafcab6c8d528766939b379f9e8f3dc9ba44db15/package/runtimes/linux-x64/native/libgit2-a2bde63.so'
      not a dynamic executable"
      However if I copy it to another location I can run ldd on it.

      Can I change the location of the /tmp/Inedo/ folder? I'll reach out to one of our Linux admins too, to see if it can be resolved on our side.

      posted in Support
      P
      PhilipWhite