Mengurus Terraform OpenTofu State: Tips Praktikal
Tips praktikal urus Terraform/OpenTofu state — fix state lock, sync state dengan AWS, dan rolling upgrade tanpa downtime.
Tips praktikal urus Terraform/OpenTofu state — fix state lock, sync state dengan AWS, dan rolling upgrade tanpa downtime.
Pengenalan Postfix adalah Mail Transfer Agent (MTA) yang popular untuk Linux. Dalam artikel ini, saya akan tunjukkan cara configure Postfix untuk guna Gmail SMTP relay dengan authentication. Ini berguna untuk server yang perlu send email tapi tidak ada dedicated mail server. Kenapa Guna Gmail SMTP Relay? Prerequisites Sebelum mula, pastikan anda ada: Langkah 1: Install … Read more
Live dashboard: hilux.azmi.my Apa Benda Ni Aku bina web scraper yang kumpul listing Toyota Hilux dari Mudah.my setiap hari, simpan dalam AWS, dan papar dalam dashboard dengan charts dan filters. Automated — tak perlu buat manual. Tech Stack Terraform — IaC untuk semua AWS resources Lambda — serverless scraper, bayar ikut guna DynamoDB — simpan … Read more
Pengalaman & Penyelesaian Isu yang Aku Hadapi Pengenalan Ansible ialah automation tool yang popular untuk provisioning, configuration management, dan deployment.Masalahnya, Ansible dibina untuk Linux/Unix environment dan tidak secara rasmi disokong pada Windows.Kalau guna Windows, biasanya kita kena: Tapi dalam environment kerja aku, WSL & install global tak dibenarkan (Windows environment “restricted” habis).Jadi aku pilih jalan … Read more
If you’re facing an EC2 boot issue after Terraform deployment, you’re not alone. In my recent experience using Rocky Linux 9 on AWS EC2, everything worked perfectly after provisioning — until I rebooted. The instance failed to come back online due to a missing NVMe driver in the initramfs, resulting in a kernel panic. Here’s … Read more
When I recently renewed my SSL certificate files from 123-reg, I was confused by all the different files they sent me. If you’ve ever wondered what those various SSL certificate files are for, here’s what I learned through the process. The Certificate Files Breakdown When I downloaded my new SSL certs, I got these files: On my server, I … Read more
Confluence database restoration can be tricky, especially when you encounter permission errors. I just wrapped up a challenging restoration project and wanted to share some key insights that might save you hours of troubleshooting. The biggest challenge? Database privileges. Our restore kept failing with this error: This happens because the SQL dump contains DEFINER clauses … Read more
Simplified approach to upgrading from InfluxDB 1.8 to 2.7 using Docker Compose: Step 1: Create Docker Compose for InfluxDB 1.8 Step 2: Create Docker Compose for InfluxDB 2.7 Upgrade This will upgrade the data automatically from InfluxDB 1.8 to 2.7. It will create the required structure for InfluxDB 2.x in the ./influxdb2 directory and migrate … Read more
Reset password the Zabbix’s users or for the admin itself if you lost their password. Would be easy this command can be reach from alias, place them on the shell you’re currently use. It requires python3 , couldnt know if this support python2, feel free to test. Generate password, my example password as such. To … Read more
“not contain the JNI_CreateJavaVM” – The JNI_CreateJavaVM symbol is a function symbol that is used in the Java Native Interface (JNI) to create a Java Virtual Machine (JVM) instance. If a system does not contain the JNI_CreateJavaVM symbol, it means that the JNI library cannot be loaded properly and that the JVM cannot be created … Read more
Been using letsencrypt for couple of years and manually generate using certbot whenever certificates expired. Yesterday taking sometime to upgrade certbot packages and set up some automation for renewal. I have removed old certbot packages which was installed using yum and then use snap to install new certbot. You can refer to their guides to … Read more
Dari setup traditional server dekat rumah.. pindahkan ke AWS, dah tak mampu nak maintain kos AWS sebab OPR yang makin naik pindah balik ke server dekat rumah tapi nak set up dia duduk dalam docker pulak. Site nih dah berapa kali pindah tak tahu lah. LOL. Cari dalam github jumpa sorang satu repo ada stack … Read more
Ada sedikit issue selepas downgrade dari php8 ke php7.4.4 sebab dah clearkan semua packages php7.4.4. Jadi bila buat sedikit research Mpdf function perlu module php-mbstring untuk jalankan function pdf generation. Tapi packages ini perlu dua repository di bawah ada dalam sistem. remi-php74 # cat /etc/yum.repos.d/remi-php74.repoThis repository only provides PHP 7.4 and its extensionsNOTICE: common dependencies … Read more
Selepas dari fix yang aku apply masalah masih ada. Jadi jumpa satu site https://sitecheck.sucuri.net yang boleh scan website dan identify file js mana yang infected. Hasil scan dapat kenal pasti dua fail dari cache directory & file js dari jquery directory infected. Jadi aku remove dua fail tersebut. Cara di atas boleh kata berkesan tapi … Read more
Terbaru website yang saya hosted sendiri kena malware. Malware yang saya jumpa masih boleh di”bersih”kan tapi kena pastikan backup juga masih ada dalam simpanan sekiranya tak boleh dibaikpulih. Simptom malware yang saya jumpa adalah dia sentiasa re-direct kita ke URL yang tidak sepatutnya user pergi seperti contoh website gambling, atau sebagainya. Dalam screenshot dibawah, boleh … Read more
Masa update crontab dengan job baru perasan yang cron log tak update. /var/log/message juga tak update. Cari juga penyelesaian di internet dan juga dari portal Red Hat tapi takde yang berhasil. Punca message & cron log tak update sebab service rsyslogd.service tak running. Bila restart service itu dia akan jadi failed balik. Terfikir untuk check … Read more
Beberapa minggu yang lepas aku setup OpenVPN di server dalam rumah untuk aku akses dari luar beberapa website yang aku host dan juga CCTV. Cara nak setup OpenVPN rasanya merata dan banyak dah orang kongsi contoh nya disini, aku pun ikut guide dari web itu juga. Dan apabila dah ada service VPN ini baru lah … Read more
Beberapa hari lepas aku saja buat percubaan untuk host live stream dari CCTV ke VLC Player dan cara setup dia agak mudah juga asalkan kita tahu apa id dan password untuk akses ke RTSP protocol CCTV tersebut. Untuk kes aku seperti mana yang aku pernah cerita sebelum ini, aku menggunakan CCTV HikVision dan ada feature … Read more
Masa nak install software Akaunting ini ada satu masalah yang mana dapat error “Mixed Content”. Error log ini cuma boleh nampak bila enable Developer mode dekat browser dan pilih Console tab. Bila load page, untuk kes aku sebab first time installation jadi masa dia load page itu nampak error mixed content ini. Mixed Content: The … Read more
Aku dapat error ini masa tengah nak extend filesystem application. Jadi aku tengok balik apa yang salah. Kalau tengok betul-betul dari output lsblk di bawah kita boleh nampak yang type disk untuk mount point /opt/prod_jira adalah lvm. Jadi dekat sini kita kena guna konsep LVM. Di sini kita tengok saiz disk nvme1n1 adalah 80G. Jadi … Read more