Time Machine Backup Failed

So I hadn’t opened up my MacBook in awhile, and, when I finally did, was constantly greeted with There isn’t enough space 😣

Time Machine Backup Failed

A bit frustrating at first since I thought the whole Time Machine allure was that old backups would automatically be deleted 🤔

So after a few weeks of getting this annoying message each night finally decided to think this through.

Realized that, yes, I had configured Time Machine to back up to my Synology NAS automatically so I didn’t have to think about it, so I decided to check the DSM for clues as to what was going on.

So I opened up File Station, right clicked Time Machine Backups and right clicked Properties to find that yes, the volume was nearly full.

File Station Time Machine Backups Properties

Then I opened up Control Panel > Shared Folder then right clicked Time Machine Backups to select Edit where I found Empty Recycle Bin.

DSM Empty Recycle Bin

Emptying the recycle bin resolved all the issues which then reminded me that Time Machine on my MacBook had indeed been properly deleting old backups but that the NAS as configured will only free up space once the recycle bins are emptied. I configured this on purpose months ago to ensure that if a machine on the local network ever got compromised that a virus or other malicious activity could not remotely delete backups once they were completed. I suppose I could enable auto emptying of recycle bins or disable them altogether for Time Machine Backups since a backup of that volume is done nightly to a volume that is inaccessible to the network 🤔

Mac OS Import Keystore for Target Endpoint Under Test

So I like the following in obtaining browser client certs so that my test clients (i.e. io.restassured) can trust them:

openssl s_client -connect www.website.com:443 -showcerts

Then I can import the server cert for my integration tests into a new keystore:

cd ~
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/keytool -import -trustcacerts -keystore cacerts -noprompt -file ~/browser_cert.cer

and then have my tests use the specific keystore (~/cacerts) during testing:

System.setProperty("javax.net.ssl.trustStore", "/Users/bfish3/cacerts");

Or, in Bash:

echo "Q" | openssl s_client -connect www.website.com:443 -showcerts 2>/dev/null | grep "BEGIN CERTIFICATE" -A 30 > import.cer
keytool -import -trustcacerts -keystore imported_cer.jks -noprompt -file import.cer -storepass changeit

Using BeagleBone Black as Salt-Master to Provision VMs

Instructions Apply To

Beagle Bone Black, Rev C

/etc/dogtag: BeagleBoard.org BeagleBone Debian Image 2014-04-23

 

1. Boot up BeagleBone black and SSH over USB.

2. Fix /etc/init.d/led_aging.sh to contain the following so that apt-get installs work.

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          led_aging.sh
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start LED aging
# Description:       Starts LED aging (whatever that is)
### END INIT INFO

x=$(/bin/ps -ef | /bin/grep “[l]ed_acc”)
if [ ! -n “$x” -a -x /usr/bin/led_acc ]; then
/usr/bin/led_acc &
fi

3. Follow saltstack installation for Debian.

http://docs.saltstack.com/en/latest/topics/installation/debian.html

Removing Application and Device Control (ADC) from Symantec Endpoint Protection Fixed VirtualBox

I can now finally use VirtualBox 4.3.14. Interesting that disabling the ADC policy was not enough, we had to remove ADC from the workstation itself before VirtualBox would start.

InjectedDLL will reveal when sysfer.dll is being injected into Windows processes.

http://www.nirsoft.net/utils/injected_dll.html

Troubleshooting a New Dell Laser (LED) Printer Wireless Connection

I noticed that, even if a wireless printer shows as connected with it’s wifi light on steady, sometimes you just have to press the WPS button on both the printer and router to re-add it, if you cannot print. Then just re-add the printer over wifi.

An easy way to check whether your printer really is on your wifi network, just connect to the router (usually at 192.168.0.1, or, address written on the bottom of router), and look at the list of devices connected to it. Mine just showed that the DELLC printer wasn’t connected through the router web interface, even when the laser printer thought it was, kind of odd. Probably just wireless interference.

Automatic discovery failed today, so I had to use the IP address reported by the D-Link wireless router, and manually enter the IP address into the find network printer wizard in Windows.

Seagate Drives Not What They Used To Be

Well, one of the hard drives in my desktop computer just died finally. Taking it out sped up and stabilized my desktop system. Thankfully with Acronis True Image home, all of my data and files were backed up on schedule last week so I lost nothing; didn’t even miss a beat 🙂 Now my computer just runs faster, now that only stable drives are inside of it. All of the intermittent lock ups are also resolved.

Just goes to show, a good backup scheme keeps things convenient, and you never have to worry about losing anything, let alone be inconvenienced.

For you Mac users out there, that means make sure to enable and use Time Machine. No excuses, it comes free with your mac, and allows you to undo any major mistake on your mac with a couple clicks 🙂

This is the third or fourth Seagate drive I have had die on me in the last 3 years — Seagate totally sucks now. Kind of sad, in the old days, Seagates outlasted every computer I had ever owned as a kid. Looks like now we should look to Western Digital for reliable mass storage. I have purchased 2 new western digitals, and 2 new intel solid state drives in the last two years, and they have run silently, quickly, and are very stable. Looks like I’ll be sticking with them for the foreseeable future 🙂

 

Backup software for data backup and recovery | Acronis

www.acronis.com

Get all your data back with a complete PC-backup solution. True Image 2013 by Acronis is an easy-to-use data backup and hard drive recovery software.

My Experience With Amazon EC2 Hosting With WordPress

With the new year comes new realizations for me in my Amazon EC2 hosting which I wanted to share so others could learn from my experience. It wasn’t as cheap as I thought, but still I am enjoying well over 50 – 70% cost savings in hosting. This is as compared to any other hosting company I could find in getting a dedicated server. I am not really into VPS or shared hosting whose performance varies and is often oversold, in my experience. I want performance I can count on in the long run for my projects and don’t want my performance to vary over time. Unfortunately this has been my experience with VPS and shared hosting in the last few years not only for my sites, but my clients and friends as well.

 

The one time payment for an EC2 reserved instance is NOT the total cost of that instance as I had mistakenly overlooked previously. I almost had a total cow when I looked at my Account Activity going up for the month of January 2012 by about 30 bucks.

 

The real cost of your own Amazon EC2 instance, which is similar to a dedicated server, is broken down by ( reserve cost ) / ( paid for term in months ) + ( hourly usage fee ) * 744 hours (a full month of usage) + storage fees (EBS) = $(actual monthly cost). If we look at my situation I paid $850 for a 36 month term to get the best savings I could as I plan on experimenting with many web projects in the coming years; a good investment I thought. I plan on having my high cpu medium instance from Amazon running 24/7/365 for my various websites and projects going forward. Using my new formula, my monthly cost is not $23.61 as I had originally hoped, but turned out to be $850 / 36 + $0.04 * 744 + $0.00 (my storage utiliziation is half a gig for web server storage, which is free) = $53.37 per month, on average.

 

When I calmed down, I realized, hell, I am still getting a sweet deal! How did I come to that? Well, at my old host, Arvixe, a cheap dedicated server, is $105 a month, and, was only for a single core processor with mediocre hardware. Look at my stats below and you can still see why I am smiling and enjoying great performance, Amazon’s specs seem to be holding and running as fast as they have promised. Even though the monthly cost is considerably higher than I originally intended I still feel very happy in that I am getting incredible performance per dollar that I couldn’t really get for the same price anywhere else I’ve shopped; I’ve recently left LunarPages and Arvixe. What I really enjoy so far about this is that my performance should not (I only have a few months experience) degrade over time as more customers join the service or other sites hosted by others receive far more traffic. In my experience VPS and shared hosting is hit and miss, if you are on a under utilized VPS or shared hosting account, the performance is great, but others can steal performance as the total load among all customers increase. A simple way to think of this is DSL vs Cable, with DSL you get private bandwidth whereas with Cable you have to share total bandwidth with all other customers in your area. This is why cable is often slower in large cities as compared to a private DSL line with lower specs in the same city; here in Reno cable is amazing because we are comparatively small at half a million people. I also like that my account won’t be suspended for using too much CPU as I have purchased all 2.5 cores for my 100% utilization as I see fit; no management problems there and I won’t find my site down or have urgent emails from my host to deal with lest I risk having all my sites go offline unless I comply.

 

My Amazon EC2 High CPU Medium Reserved Instance – Heavy Utilization Plan – Hosts Four WordPress Websites:

 

1. 2.5 ECUs = Two and a half cores, assuming each core is equivalent in performance to a 1.7 Ghz Intel Xeon processor produced in 2007.

2. 1.7 GB of RAM

* Between all four WordPress sites, I still have a full gig left over that I can use for other projects, awesome!

 

Hopefully this paints a useful real life example of WordPress on Amazon’s EC2 platform. Compared to dedicated hosting, it’s easily half the cost as long as you don’t mind managing the server yourself; I find backups the easiest way to rollback to a known good state to instantly undo viruses, hacker attacks, etc. I’ve been able to restore images of my web server in minutes with Amazon’s awesome web interface.

 

Happy new year everyone!!