Posts

Showing posts from 2019

Repair Your Windows Store and Metro Apps After Windows Update

Background Sometimes after updating  Windows 10, the Windows Modern UI / Metro Apps no longer works.  You could try starting any of them, such as Calculator, Photo, or Microsoft Store - and after opening a  blank window it will just close. This has happened several times, twice in my wife's laptop, and once in our home Desktop PC. This post will try to give few options to solve this problem. But I still don't know what caused it. Step 1. Assess condition of installed VCLib Packages Open up Powershell by pressing Windows Key and typing Powershell. Click Run as administrator if it is shown (if not, right click on the Powershell icon first). Type : Get-AppxPackage Microsoft*VC* | Select InstallLocation The result will be the location where VCLibs packages were installed. We concern only the VCLibs 140 version without UWPDesktop in the package names.  Try to check the files of the installed VCLibs packages (we need to do this twice, once for the x86 and the seco

Backing Up MySQL Database using Openshift/Kubernetes Cron Job

Periodic Backups When running an application in production, the data and app should be backed up periodically. One way to do that is by using git repository for the source code and periodically dumping the database. This article shows how to do such periodic jobs using CronJob functionality of Openshift/Kubernetes. Technique When running a cronjob, the filesystem that being used to run the  pod will be ephemeral, that is, non-persistent. To work around this limit we should mount from external volume, which can be in the form of persistent volume claim or directly provided volume specification.  The Job specs apiVersion: batch/v1 kind: Job metadata:   name: job04-test  spec:   template:     spec:       containers:       - name: job04c-test         image: centos/mysql-57-centos7         command: ["/bin/sh","-c",  "/opt/rh/rh-mysql57/root/usr/bin/mysqldump --single-transaction -u $MYSQL_USER $MYSQL_DB -h $MYSQL_HOST | gzip > /tmp/dump`d

Find out Lock Path in ZFS

Scenario A linux server that using ZFS storage, exports the directory in the storage using NFS. There is a need to confirm that some files are still locked or not.  1. Determine Inode The ls command has -i option to show inode id for each directory/files. [root@pv1 mysql]# ls -il total 200867 41506 -rw-rw-r--+ 1 1000070000 nfsnobody         0 Aug 15   2017 debian-5.5.flag 41509 -rw-rw----+ 1 1000070000 nfsnobody 195035136 Apr   5 12:02 ibdata1 41507 -rw-rw----+ 1 1000070000 nfsnobody   5242880 Apr   5 12:02 ib_logfile0 41508 -rw-rw----+ 1 1000070000 nfsnobody   5242880 Mar 26 19:33 ib_logfile1 41376 drwx------+ 2 1000070000 nfsnobody       119 Jul 30   2018 jwdb 41511 drwxr-x---+ 2 1000070000 nfsnobody         74 Aug 15   2017 mysql 41510 -rw-------+ 1 1000070000 nfsnobody         6 Aug 15   2017 mysql_upgrade_info 41487 drwx------+ 2 1000070000 nfsnobody         20 Aug 15   2017 performance_schema 2. Determine Locks Locks are stored in /

How to Build Your Own Openshift Builder Image (PHP 5.6 with oci, pdo_oci, rfc) - part II

In the previous post, I described the final process of building an Openshift builder docker image. This post is like a flashback - where I describe the processes before   the final docker image can be built. The processes are necessary to build two files; the pdo-oci rpm ( rh-php56-php-pdo_oci-5.6.25-1.el7.centos.x86_64.rpm ) and the oci8.so extension file. Checkout Let us checkout the pdo_oci8 branch first from (my) github : (skip if you already followed part I) aws@broker ~ $  git clone https://github.com/yudhiwidyatama/s2i-php-container.git aws@broker  ~ $  cd s2i-php-container/ aws@broker  s2i-php-container $  git checkout pdo_oci8 Branch pdo_oci8 set up to track remote branch pdo_oci8 from origin. Switched to a new branch 'pdo_oci8' Go to the 5.6 php version directory : aws@broker s2i-php-container $ ls 5.5   5.6   7.0   7.1   common   LICENSE   Makefile   README.md aws@broker s2i-php-container $ cd 5.6 aws@broker 5.6 $ ls -l tota