Decoding the Error: StatusCode=0 "ReferencedResourceNotProvisioned" in Azure

Introduction If you’re working with Azure, you might have encountered an error that looks something like this: “Failure sending request: StatusCode=0 — Original Error: Code=‘ReferencedResourceNotProvisioned’ Message=‘Cannot proceed with operation because resource used by resource is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation.’” Though the error message can seem intimidating and cryptic at first, don’t worry. In this post, we’ll delve into what this error means and how you can resolve it. ...

22 December 2018 · Shafiq Alibhai

Import a Resource to Terraform Module

The example below will import an AWS instance into a terraform module: terraform import module.foo.aws_instance.bar i-abcd1234

24 October 2018 · Shafiq Alibhai

Navigating Terraform Modules Stored in Package Subdirectories

In the realm of Infrastructure as Code, Terraform modules can play a significant role in making your life easier. Sometimes, however, these modules don’t live at the root directory of their source package. Instead, they reside in sub-directories. Thankfully, Terraform has a smart way to help you access these nested modules. Terraform employs a unique double-slash (//) syntax to help pinpoint the exact sub-directory where the module is located. The path that follows this double-slash syntax is considered to be a sub-directory within the package or repository. ...

24 October 2018 · Shafiq Alibhai

How to Fix the "RPC failed; HTTP 413 curl 22" Error in Nginx

Understanding the Issue: ‘RPC failed; HTTP 413 curl 22’ If you’ve stumbled upon the error message “RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large,” you’re probably trying to push a rather hefty commit over HTTP to your server running Nginx. This error means that the size of the request you’re trying to send exceeds the limit that the server is willing to accept. So, how do you fix it? ...

12 October 2018 · Shafiq Alibhai

Install ruby gem files

Install the gems on the destination machine from the local files: cd /path/to/gems gem install --force --local *.gem

27 September 2018 · Shafiq Alibhai

/bin/sh: 1: flex: not found

sudo apt-get install flex

19 September 2018 · Shafiq Alibhai

Merging Unrelated Git Histories - A Simple Guide

Are you stuck with two Git repositories or branches that have completely different histories, but you need to merge them? You may be hitting a roadblock because Git is designed to prevent this kind of operation by default. However, there’s a workaround for this, and it’s simpler than you might think. The Problem: Unrelated Git Histories Imagine you’re working on a project where you have a main branch, and someone else has a completely separate project with its own history. Now, you want to combine both projects into a single repository. If you try to perform a regular git merge or git rebase, Git will likely stop you with an error message, something like: ...

4 September 2018 · Shafiq Alibhai

Running Firefox OS apps on Ubuntu linux

24 November 2012 · Shafiq Alibhai

[HowTo] Replace ip address using sed

Following one-liner will search for a ip address pattern in the specified file and replace it with the one provided : sed 's/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}/**IPADDRESS-COMES-HERE**/g' /SourceFilename > /DestinationFilename

20 June 2011 · Shafiq Alibhai

Disable services in Solaris 10

To disable a service, you must be root or have sudo privileges. For example, to disable the Puppet service, you would run the following command: svcadm disable network/cswpuppetd:default This will disable the Puppet service and prevent it from running. To verify that the service has been disabled, you can run the following command: svcs | grep puppet This will list all of the services that are currently running, and if the Puppet service is disabled, it will not be listed. ...

23 May 2011 · Shafiq Alibhai