Cloud-oriented Life

Cloud Native Technology Improves Lives

Expanding Disk Space on CentOS 7.x

Running out of disk space on your Linux server? It’s a common problem, especially as your applications and data grow. Today, we’ll walk through a practical guide to expand disk space on a CentOS 7.x cloud server. We’ll cover expanding both the root partition and an LVM logical volume. Let’s dive in!

Read more »

Troubleshooting Kubernetes Pod Startup Issues: Image Pull Failures

Introduction

Recently, I encountered an issue where a Kubernetes (K8s) pod failed to start, getting stuck at:

1
Pulling image "docker.io/bitnami/minideb:stretch"

However, running docker images on the node showed that the image was already present.

1
2
docker images | grep bitnami/minideb
bitnami/minideb stretch e398a222dbd6 2 years ago 53.8MB
Read more »

Locked Out? Reset Your Sentry Admin Password with createuser

Forgot your Sentry admin password and can’t log in? Don’t panic! While password resets can sometimes be tricky, Sentry provides a straightforward command-line tool to create a new superuser account, effectively bypassing the login issue and granting you administrative access again. This guide will walk you through using the sentry createuser --superuser command to regain control of your Sentry instance.

Read more »

How to Enable Git LFS for a Repository and Track Large Files

Git Large File Storage (LFS) is an extension for Git that allows efficient handling of large binary files by storing them outside the main Git repository while keeping lightweight pointers in place. This helps prevent repository bloat and improves performance when working with large files.

In this guide, we’ll cover:

  1. How to enable Git LFS in a repository
  2. How to track common large file types using Git LFS
Read more »

Troubleshooting Access Denied Errors in Alibaba Cloud OSS

When working with Alibaba cloud storage, one of the most frustrating issues you can encounter is an “Access Denied” error, when you’re in the middle of transferring a file with ossutil. This blog post will walk you through a common issue related to Alibaba Cloud’s Object Storage Service (OSS) and how to quickly resolve it by properly configuring your ossutil tool.

Read more »

Resolving “Permission Denied for Table” Error in PostgreSQL pg_dump

When managing PostgreSQL databases, one of the common tasks is creating backups using the pg_dump utility. However, you might encounter a frustrating error during this process, especially when your user lacks the necessary permissions. A common error looks like this:

Read more »

Persisting Logs in Ingress Nginx

When running an application at scale in a Kubernetes environment, logging is essential for monitoring, debugging, and auditing. Ingress Nginx, a popular ingress controller, plays a critical role in managing and routing traffic into your Kubernetes cluster. This article will walk you through how to persist logs in Ingress Nginx, including how to configure different types of logs such as controller logs, access logs, and error logs.

Read more »

Enhancing Your Workflow with Bundler’s Auto-Install

Working in a large monolithic application often means dealing with frequent changes from multiple engineers. Every time you pull from main, you’re likely to encounter the familiar ritual of running bundle install, followed by rails db:prepare if you’re on a Rails application. Missing the bundle install step can lead to frustrating errors like:

1
2
Could not find X-1.2.3 in locally installed gems
Run `bundle install` to install missing gems.

With Bundler 2.5.10, there’s a game-changing update: the auto_install config. By setting this in your project or globally:

1
2
3
bundle config auto_install true
# or
bundle config --global auto_install true

Bundler will automatically install missing gems on demand. While auto_install isn’t new, it now supports any command that uses require "bundler/setup", including binstubs.

Streamlining Kubernetes Logging with Loki and Promtail

In the world of Kubernetes, efficient log management is crucial for maintaining and troubleshooting applications. Enter Loki and Promtail, a powerful duo that simplifies log collection and analysis in Kubernetes environments. This blog post will explore how to set up Promtail as a DaemonSet and configure it to work seamlessly with Loki.

Read more »

Resolving 404 Errors with Debian Jessie Repositories on Aliyun Mirrors

If you’ve been managing Debian servers, especially those running the older Jessie distribution, you might have encountered a frustrating 404 Not Found error when trying to fetch updates from Aliyun mirrors. This error typically looks something like this:

Read more »
0%