Windows application installation error codes

To enable logging of .msi packages open a command prompt as an administrator and execute MY_APPLICATION.msi /l*vx install.log Error Code Explanation 2 ? 1603 Error message from the operating system dll can not register msi installation failed required version of the .NET framework missing 1605 Nothing to uninstall ? 1618 ? 1619 The source directory does …

Stop multiple untagged AWS EC2 instances with a Bash script

 List all EC2 instances without a specific tag One day we have found 499 instances running in our account without any tags. Most likely someone accidentally started a process to launch those, so we needed a way to find them and stop them. Later we will terminate them with the same script below when we can make …

“incompatible-network” error when launching an AWS RDS instance

When the AWS subnet has no enough IP addresses Terraform displays the following error message: * aws_db_instance.default: unexpected state ‘incompatible-network’, wanted target ‘available, storage-optimization’. last error: %!s(<nil>) Make sure the subnet has enough available IP addresses.

Docker commands to run popular images

Maven Navigate to the Maven project directory on your workstation and launch the Maven container. To run a Maven project by using the Maven Docker image directly, passing a Maven command to docker run. docker run -it –rm –name my-maven-project -v “$(pwd)”:/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn clean install To launch the Maven Docker container and open …

Set up a user to connect to a Linux server with a private-public key pair

To secure a Linux server, disable password authentication on it. This way only those users can connect to it, who have access to an authorized private key. To enable users to connect to a Linux server with a private-public key pair Generate an RSA key pair In a Bash terminal on your workstation execute ssh-keygen Follow …

Install a ZIP web application package with Octopus Deploy

Install the Octopus Tentacle on the application server. Automated Tentacle installation instructions are at https://octopus.com/docs/infrastructure/windows-targets/automating-tentacle-installation (Note for our DevOps team: execute ~/Git/devops-scripts/OctopusDeploy/Tentacle_Installation/install_tentacle.ps1.) Make sure the box registered itself in the Octopus server. On the Deployment Targets tab of the Infrastructure menu enter the server name into the search box. The script already created the Environment and the Role and attached …

Trigger an Octopus Deploy application package installation from TeamCity

Push the package to Octopus Deploy from TeamCity Create project level parameters In TeamCity create the parameters to centralize the configuration of reused values On the project level create a system parameter for the Octopus package name including the build number interpolation Push the artifact to Octopus Deploy Create a build configuration, and on the General Settings page …

Set up an application to auto-start on macOS

To set up an application to automatically start when the Macintosh computer starts Open Settings Select Users & Groups On the Login Items tab click the lock to enable changes Enter your credentials to unlock the function Click the + sign to add an application to the list Select the application and click the Add button

Connect to a database on the host in a Docker container from a virtual machine

Docker is an emerging technology to launch applications without installation. The same host can run multiple Docker containers of any type, so one physical or virtual server can serve as a complete mini cloud environment. Most of the time Linux is used as the host operating system. In this example, we will launch a PostgreSQL …

Add identity into an ASP.NET Core 2.1 MVC project and maintain full control of the Identity UI

To maintain full control over the Identity UI in an ASP.NET Core 2.1 MVC project, scaffold the identity using the Windows version of Visual Studio 2017. Scaffold the Identity Right click the web application project and select Add, New Scaffolded Item… On the left side of the Add Scaffold dialog select Identity, and click the Add button …