No more network interface

This afternoon I wanted to experiment with how I can connect the Gosund WiFi electrical sockets to HomeKit. Unfortunately while I was attempting to do so, I installed packages that corrupted my Linux kernel and removed my network interface.

This is of course a huge inconvenience. After a reboot, I found the media server to not have any networking. The only network interface that it recognized was lo (the loop back interface 127.0.0.1).

When I performed a:

sudo lshw -C network

The network card was recognized but was UNCLAIMED. This obviously raised alarm bells and indicated to me that the kernel was some how not recognizing the card.

I had to download a version of Ubuntu Desktop 18.04 LTS on a USB drive and proceeded to live boot from it. Luckily the live boot recognize the network card and I was able to get networking.

Before I can perform any rescue activities, I had to mount the old root file system and chroot to it by taking the following steps:

# Boot the Ubuntu Live CD.
# Press Ctrl-Alt-F1

sudo mount /dev/sda1 /mnt

sudo mount --bind /dev /mnt/dev

sudo mount --bind /proc /mnt/proc

sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

# Add the following lines into /etc/resolv.conf after you use chroot:

nameserver 208.67.222.222
nameserver 208.67.220.220

I then needed to restore the kernel by executing the following:

sudo apt-get install --install-recommends linux-generic-hwe-18.04

After another reboot, the server is back to its old self.

Online Melt Down

Normally one expects the base services especially those relating to government and financial services to be ironclad. However, I get something like this:

The above is what resulted today when I wanted to check my 2019 Notice of Assessment online. I suppose in times when even the government of Canada experiences security breaches, then the above should not be a surprise.

On this same day, we checked our TD Visa card online statements and found a very large discrepancy in our balance. I called up their support line and they told us it is a known issue and it will be fixed next week. I commented on why we have not received a notification if this is a known issue. The representative was speechless as expected.

Our threshold for good service is dropping. I hope these are not early signs of things to come.

Bye Bye Kevo and Hello August

Old Kevo Gen 1 Smart Lock

About two weeks ago the Kevo smart lock was becoming unresponsive. My kids were having problems unlocking it from the outside and it was difficult to lock it as well.

The old Kevo lock was bluetooth only and with recent iOS updates, the quality of the bluetooth connection has gradually degraded to the point it rarely works. Because it is a very old version, we have not received any firmware updates. We purchased the lock in 2013/14 period so we have gotten a good 6 years worth of use.

Weiser Round Deadbolt Featuring SmartKey, Exterior Door Lock, Brass (9GDC94710-061)

We decided to get the August WiFi Smart Lock, with the hope that its WiFi connectivity will enable us to use the lock with HomeKit. Along with the August, I also purchased the Weiser Round Deadbolt Featuring SmartKey. The SmartKey feature allows us to reprogram the lock with our old set of keys so that we don’t have to change the front door keys.

The uninstallation of the Kevo unit and the installation of August was pretty straight forward. However, the operation with HomeKit did not work fully. It registered fine, and HomeKit was able to detect whether the lock was engaged or not. However, HomeKit did not respond very well to locking and unlocking the lock. Things improved when I reset the unit to factory settings and repeat the procedure again.

The iOS August App worked fine. I learned from the App that it has a smart connectivity feature that automatically determines whether it will connect via bluetooth or WiFi. As a person in this profession, this immediately raised alarm bells. My theory is that to save power and battery life, August engineers have aggressively underpowered the WiFi functionality. This was partially confirmed when I noticed the very long latency pings to the unit. Here is a sample inspection:

$ ping 192.168.168.36
PING 192.168.168.36 (192.168.168.36) 56(84) bytes of data.
64 bytes from 192.168.168.36: icmp_req=1 ttl=255 time=381 ms
64 bytes from 192.168.168.36: icmp_req=2 ttl=255 time=10384 ms
64 bytes from 192.168.168.36: icmp_req=3 ttl=255 time=9377 ms
64 bytes from 192.168.168.36: icmp_req=4 ttl=255 time=8377 ms
64 bytes from 192.168.168.36: icmp_req=5 ttl=255 time=7377 ms
64 bytes from 192.168.168.36: icmp_req=6 ttl=255 time=6377 ms
64 bytes from 192.168.168.36: icmp_req=7 ttl=255 time=5377 ms
64 bytes from 192.168.168.36: icmp_req=8 ttl=255 time=4380 ms
64 bytes from 192.168.168.36: icmp_req=9 ttl=255 time=3370 ms
64 bytes from 192.168.168.36: icmp_req=10 ttl=255 time=2370 ms
64 bytes from 192.168.168.36: icmp_req=11 ttl=255 time=1360 ms
64 bytes from 192.168.168.36: icmp_req=12 ttl=255 time=359 ms

As you can see the latency is extremely long. The unresponsive aspect of the WiFi connection probably explains why HomeKit connectivity is largely craps shoot. If I was August, it was probably premature to market this product as WiFi capable, should have waited for or designed for better reliability.

In conclusion, the lock works fine with the App and mostly work with HomeKit (70/30 chance). I find that it works better with HomeKit if you are in close proximity with the lock and your iOS device. Can you lock/unlock when you are around the world? Once again, it mostly works depending on the connectivity, but I would not depend on it for emergencies.

Installed
August Lock

First Week of School (OR NOT)

If it was a normal year, my kids will be going to school tomorrow, the traditional first Tuesday after Labour Day long weekend. We all know 2020 is not a normal year. We are in the midst of a pandemic, and along with this crisis comes with special circumstances. Public schooling is no exception to special treatments. All of this is quite understandable and expected.

What is disappointing is that our school board and our government has had many months to prepare since March of this year, and yet as a parent of two secondary school students, I feel that our schools are woefully unprepared. Yes, they have provided emails, videos, and web resources filled with general information, along with “more information to come”, but nothing concrete and specific to my kids’ schedule. There are sample schedules to be sure, but the answers communicated so far raises more questions than answers. For example, as of the writing of this post, we still do not know:

  • When exactly is the first day of school (physically)?
  • Which cohort?
  • How does a student who opted for virtual learning register?
  • What are the details to synchronous virtual / online learning for those who have chosen in-person learning?
  • Will the above information come from a future email before school starts, or will they get it on the first day of school?

The best information so far is from this web page (http://www.yrdsb.ca/school-reopening). The most important excerpts are:

So if your child is going to grade 9, you currently do not know which cohort. If your child is not in grade 9, they currently do not have any information to attend the so called, “Compressed online schedule for all courses”.

The information for Thursday, Friday, and Monday could not be more cryptic for students who are in grades 10 to 12, because we were lead to believe from previous emails that the idea of cohorts is that the in-person sessions are staggered to be held on alternate days. The above Monday description seems a little contradictory to our previous expectation.

The school board is effectively launching a new service or product, and yet their communication for this new service is well below industry standard. Compare the board’s effort in launching this “re-opening” with product launches from Apple, Tesla, Samsung, and others. I think you will find the difference quite stark.

Is my expectation too high? Perhaps. However, these are the folks who bear the responsibility for teaching our next generation. Collectively as a decision making body, and the execution of this re-opening clearly show “they” do not fully comprehend how to launch something new. Think about this, as this is the example that your kids will be learning from!

Thankfully, the uncertainty does not affect our family too much, but I hate to be a parent of a grade 9 student who is standing on pins and needles as they try to comprehend how they are going to plan for this week and the next. I truly feel for them.

First Dim Sum in 6 Months

Today we went out to Premiere Ballroom & Convention Centre for dim sum. My dad made the reservation for 11am.

The protocol there was pretty impressive. The tables are spaced between 3 to 6 meters apart, very spacious. Along with the high ceiling, you do have the feeling of being “isolated”. All attending staff was wearing face masks and gloves. Face masks are mandatory when you are not at your table eating, and your temperature is checked before they allow you to enter the dining area.

So if you miss your dim sum dining experience during the pandemic, I think Premiere Ballroom provides a very nice compromise. They are also opened on Friday, Saturday and Sunday evening for dinner services.

It was the Fan!

Recently I have encountered many hard drive related errors on my home server. These errors were intermittent. Sometimes everything would be okay for a week, sometimes just a couple of days, and more recently within a few minutes. A sample of these errors would look like:

Aug 29 03:55:20 avs kernel: [47250.550847] ata9: softreset failed (1st FIS failed)

I performed a SMART test on the hard drive and the tests reported that the drive was healthy, and yet the drive continues to fail.

I thought it was my SATA controller card, so I swapped the SATA port with another drive, and the same drive had the same issue. Therefore I knew it was not the SATA port, and the SATA cable was fine. I finally gave in and purchased a replacement drive. When the replacement drive arrived, I got the same error!

This is becoming extremely frustrating. The only thing that was left was the SATA power cable. I sourced the SATA power cable to another power source adapter, and finally the error went away. If I only knew!

Now I have an extra 10 TB drive. I didn’t want to return it, so I decided to buy another 10 TB drive and replace all the 4 TB drives in RAID 1 configuration that I had on the server. When I was replacing the drives, I noticed that one of the case fans was not working. It just so happens that this defective fan was sharing the same problematic power line.

After buying a $10 fan from CanadaComputers, and replacing the damaged fan, the server is now running without any issues along with the unintended storage expansion. I noticed from my UPS, the server is now consuming 10 W less.

In conclusion, the failed case fan probably caused some power anomaly. The fan did not totally fail because its LED was still working, but the fan motor seized and is no longer turning. This probably caused the extra 10W draw as the system was probably trying to overpower the unintended friction.

I’m documenting this because I find it fascinating that a simple failed fan could cause such instability to the system. Something to keep in mind for sure. Last point I want to make is that this fan is probably 15 years old, and absolutely more than a decade, so can’t really complain.

Road Bike Rear Wheel Malfunction

Last week on August 23rd, we organized a neighbourly ride to the bakery in Goodwood, Ontario. On the way back, 60 km into the ride or about 5 km away from home, I heard an extremely loud ping as I try to accelerate from a stop sign on 19th and Woodbine. As I feared, a spoke had snapped.

Didn’t want to put any unnecessary pressure on the carbon rims, so I called home and asked my wife to give us a ride back. The broken spoke was a surprise, since I only had about 10,000 km on it. Thinking that it should be an easy fix, I dropped the wheel off at Evolution Cycles the next day, and was quoted $30 to fix the broken spoken. By the way, the guys at Evolution are great guys with excellent and friendly service. I would recommend them if you have any bike troubles.

So my expectation was to pick up the fixed wheel in the next few days and all would be good. Unfortunately, within an hour of the drop off, I received a call from Evolution and they informed me that the wheel’s axle is damaged.

Damaged axle

As you can see in the above picture, the hub’s housing has come apart and the inside thread can no longer be put back. I decided to fix the broken Reynold Assualt 2017 rear wheel at a later date. I’ll probably have to visit LaBicicletta, where I original purchased the wheel and the bike, and see what they can do to either fix or replace it. However, I want to ride my bike as soon as possible, so I decided to purchase the Shimano Dura Ace C24 rear wheel.

Bike with new Shimano C24 rear wheel.

I took out the bike twice now with the new wheel. It seemed quieter and smoother. This is probably not surprising, since the old damaged wheel was rubbing or grinding internal parts. The bike may not look so good with mismatching wheels, but I’ll wait until I can spot a good deal on the front wheel.

So far so good, now just have to take the old broken wheel back to LaBicicletta to get it fixed. It is no longer urgent, since I can continue to ride my bike.

YRDSB Fall 2020 School Opening Summary

Yesterday I received an email from the Directory of YRDSB (York Region District School Board). It essentially says this:

Click above to see the full size

This is the board that my boys belong to and we now have to decide what we will be doing in September of 2020. The above slide does not represent all of the info from the letter, but certainly all of the gist that a parent like me would be interested in.

The original letter is two and half page, to which you can only access, after opening a PDF document containing links of your preferred language. I almost deleted this email, because the perceptive content looks blank, see below.

This is what I see in my email.

You figure that of all people, those who are in the business of teaching communication would do a better job in these times of crisis. It would have been nice if the slide that I provided above was the first thing that I saw.

Sorry about my rant, but it is now over and I feel better.

Ontario in selected Stage 2 of Re-opening

As of today, in Ontario, Canada, we are in the midst of reopening from a tight lockdown started in mid-March. The current rules are best explained in this article. While I love staying indoors enjoying my music, videos, and learning new stuff from watching tutorials on YouTube, to reading articles and books, I am certain others are feeling restless and having an innate urge to go out and enjoy the beautiful weather that is bestowed upon us in the middle of June. Part of this enjoyment, is to gather around with friends and family who we have not seen for so many weeks.

I too have been enjoying the blue skies and sunshine by riding my road bike. However, I have seen many people gathering around without practicing social distancing. Of course I am not here to tell people what to do, but I do want to take this opportunity to present my own risk assessment of the current situation. If anything else, many months or years from now I can look back to this post and re-read this assessment, hopefully in a lighter mood.

Currently Ontario is limiting to group gathering of sizes of up to 10 people, while practicing social distancing. The government also allowed the expansion of your household to connect to another household, so called double bubbling, as referred by the previously linked article. On the surface, these new rules seem to relax the isolation policies. However, my interpretation of these rules is that it will provide little opportunity for me to change my current behaviour. Personally, the double bubbling of your household is limited to one additional household, and this assumes the other household is only connected to yours, so the limitation is reciprocal. For us, this is still currently impractical. If you just include our parents (my wife and I), we have already exceeded the limit. As for the group gatherings of 10 people while practicing social distancing, this really means that the other 9 can be potentially asymptomatic carriers of the virus, and we should be wise to treat them as such. The personal risk of contraction really has not been reduced. The group size limitation is probably more for ease of enforcement than a reflection that you are now more safe.

So what is our risk of contraction versus when the lockdown began? I am not a doctor, but I can collect some data from the worldometer web site, and perform some amateur analysis. Here is what I found.

The above clearly shows that daily new cases within Canada is still much higher than before the lockdown (started in mid March). The current active cases are equally alarming. Although the trend is heading in the right direction, it does not appear to reach a state where we can say we are better off today. Granted that these are national numbers, but then I come across articles like this, where the CBC reported less than a day ago that a local Home Depot store (less than 10 km away from our house) has 14 of its employees tested positive for Covid-19.

For contrast, I compare our Canadian numbers with two other countries. The first is New Zealand, who victoriously eradicated the virus, and the other is Australia, a country comparable to Canada in terms of population distribution and size.

As you can see that both countries are in much better shape than we are. My point is that Canada should at least be looking like Australia before we even think about re-opening, because our numbers are still 1 to 2 orders of magnitude away from Australia, where they are experiencing a tolerable flatten daily infection rate.

A couple of weeks ago I heard a horrible story. Someone contracted the virus and was asymptomatic and unbeknownst to them, gave it to their parents. The father passed away because of it, and the mother was hospitalized. Although this was second hand information, it was direct enough for me to treat this information to be real. The first thing that came to mind was that to be responsible for your own parent’s death is a burden and a regret that no one should bear. I for one certainly do not want to be in that position, when I can currently control my own behaviour in this current environment.

So in summary, I personally feel that Covid-19 in Ontario, Canada is still a clear and present danger. Any reopening policy should be taken into context and I will personally continue to behave as if everyone who I encounter is a possible carrier of the virus.

So am I paranoid, or do you feel the same after you process the data from above?

Updated: Added South Korea

Experimenting with Residential Fibre

We have a need to expand our home network and to place another switch in the house. Normally I would run a CAT-6 cable and call it job done, but I thought I try something different and run a fibre optic cable.

My existing UniFi Switch 24 POE-250W already has 2 SFP ports, which supports fibre if I purchase the appropriate transceivers. I decided to buy the Unifi 1 Gbps multimode SFP modules (Ubiquiti U Fiber Multi-Mode SFP 1G – UF-MM-1G) just to make sure there are no compatibility issues. There was no point in getting a pair of 10Gbps transceivers because the Unifi Switch can only handle 1 Gbps any ways.

Since I only have one switch that has SFP ports, I needed to buy another device that will receive SFP port and bridge it to a standard RJ45 connection. I found a nice little converter called the TP-Link MC220L Gigabit Media Converter. This worked perfectly.

I already decided to use the more popular multimode vs single mode fibre operation, so I went and got hold of 50M of OM3 Duplex 50/125 fibre cable (Jeirdus 50M LC to LC 10G OM3 Indoor Armored Duplex 50/125 Fiber Optic Cable).

Fibre from UniFi Switch going into the TP-Link Converter and then out to another normal NetGear Gigabit Switch

The only confusing part was the different types of fibre connectors that are out there, and whether to go with single vs multi-mode. Apparently most installations are using LC (Lucent Connector), which is the type that I went with. There was no need for me to go with single mode because I don’t need kilometres of cables.

Fibre connectors galore!

Everything worked like a charm. It was much easier than I thought. So step into the light and give fibre a try!