Saturday, November 29, 2014

iOS 8.1.1 iTunes sync bug - 'Show All Music' needed to see Music downloaded to device

I’ve seen this bug on my daughter’s (new) 4s. Even by the standards of Apple 2014 it is a good one.

All of her downloaded music disappeared. I turned on ‘Show All Music’ in Music.app settings and it reappeared — even thought it was physically on device.

iOS 8.1.1 and iTunes 12.x have some pretty impressive sync bugs (in addition to hiding hardware issues that impact sync).

It’s too late for me to avoid this iOS/iTunes pair, but I’m happy to be staying on Mavericks. I’ll look at Yosemite in the spring of 2015.

Apple has about $165 billion in cash reserves. You can buy a lot of software testing for just 1% of that. Just saying.

Thursday, November 27, 2014

Move your Apple product records from one Apple ID to another Apple ID

Apple’s ID management has been a bit of a thrash. Many of us have multiple Apple IDs — I have four that I know of (Find Your Apple ID couldn’t locate any of them). My purchases are currently distributed between two Apple IDs - one that I use for all iTunes and one that has most, but not all, of my hardware purchases.

Today I figured out how to transfer devices between two Apple IDs. It’s fairly simple. Go to your support profile and log into the Apple ID you wish to remove the product from, remove it, log into the destination Apple ID, then add it.

For example:

1. Remove from 1st profile (this is an old device, useful for test purposes)

1

2. Add to 2nd profile (Apple ID)

2

3. Voila

3

Unfortunately it would be really tedious to unite all my hardware with my iTunes Apple ID, but at least I can move the two devices on the iTunes Apple ID to another one. They’ll all be in one place — but I’ll only move things that are out of warranty lest I mess up warranty records.

I have a feeling that the initial assignment is based on a flawed matching algorithm that uses things like credit card phone and address information.

Tuesday, November 25, 2014

iTunes sync problem: Internet Audio Stream, the Duplicate tune bug and Playlist Voodoo

Rob Griffiths is the kind of Mac geek who gets tech support from Tim Cook, and even he is struggling to keep iTunes sync working. The list of presumed bugs and magical workarounds for sync failures and Metastatic Other (CloudAssets cache bug), continues to grow, though no fix has been quite as exotic as my restoring from iCloud when restore from iTunes failed or @gaelicwizard’s suggestion to sync from a foreign computer to fully reset sync.

I see all of the problems Rob sees — and more. I really do miss the reliable days of iPod synchronization to iTunes. [1] 

There’s rumor of some sync fixes coming, but what I’d mostly like to see is error logging in Console. At least then we’d have a fighting chance at debugging this kludged mix of Cloud, USB, OS X and iOS.

Today’s problem was failure to sync my daughter’s music to her often troublesome 4s. I tried all the usual incantations including a “restore” (wipe) and restore from backup [2], and as usual nothing worked. iTunes sync swallowed its errors as it always did, and I saw long lists of dashed circle icons next to her phone music list (means sync failed).

Given Rob’s article I looked for dupes and I found an odd set in the music library:

Screen Shot 2014 11 25 at 5 42 31 PM

Internet audio stream dupes?! That’s another bug, they aren’t supposed to show in Music — they’re “radio stations”. I deleted them, but it didn’t help.

What worked was kind of odd — I think the Wipe/Restore helped a bit with this, but it wasn’t enough by itself. I walked through iTunes long music screen, removing all the albums, playlists, manually added tunes and so on. Lots of clicks, but I didn’t uncheck music sync. Eventually I got all the music off the iPhone. Then I created Playlists and consolidated them with another “union” playlist that merged every playlist. Then I set that, and only that, playlist to sync. It worked … almost. Of 433 songs in the consolidated playlist, 432 actually show up on the iPhone. Turns out one of them is “Explicit” so was blocked, it shows as “dotted”.

I think this phone has some Flash problems, but maybe the single playlist sync source helped workaround what sounds like some nasty bugs with reconciling duplicates. Or, more likely, it’s all voodoo [2].

Update 11/26/2014

It’s dead Jim.

I thought maybe I’d gotten a bit more life out of this incredibly problematic phone, but my daughter reported that much of the music on the phone wouldn’t actually play. Music.app skipped the piece.

I had another 4s a friend just gave us. I wiped that one, restored by daughter’s last backup to it, and it works perfectly.

This phone is done. I assume the Flash is widely defective.

I’ve set up a service repair by mail — I don’t have time to trek over to the Apple store (not to mention I tried that 6-12 months ago and the phone passed testing). If Apple can’t find out what’s wrong I’ll give it to charity and take the tax break (I couldn’t inflict this thing on anybody else).

See also:

[1] Synchronization is Hell. Gotta admit though — Calendars5.app/Google Calendar and Contacts.app/iCloud still mostly work, Toodledo/Todo is very reliable, and Simplenote/AltNV hangs on by its wee finger nails. [2] I wonder if the voodoo depends on whether the phone stalls out on a bad bit of memory. We need those missing Console diagnostics. 

Sunday, November 23, 2014

Time Capsule fails again -- and Mavericks has the old OS X sparsebundle delete bug

I’d say that I’m paranoid about backups, but, honestly, I’m just realistic. Our entire computing architecture is designed to destroy data — because it’s designed for performant writes and reads. We aren’t writing on stone tablets [1], we’re writing on sand.

Realism means that for my most important machines I always have two backup systems with as much independence as I can manage. At work I use Retrospect/Win (historic reasons) and HP/Autonomy’s “Connected Backup”. At home I use Carbon Copy Cloner 3.x [2] and Apple’s infamous Time Capsule [3].

But maybe I’m not realistic enough. As of this moment three of my four backup systems have failed.

At work Retrospect/Win stopped launching — probably the victim of a corporate system/antivirus update/bug. “Connected Backup”, when I did a routine restore test, turned out to have made a mess of my backups — old data, missing data, etc.

At home meanwhile Time Capsule failed a routine restore test [4]. I could navigate my backups, but from my primary user account I couldn’t interact with the Time Machine UI. My clicks were ignored. I did some experimentation with different accounts and, as best I can tell, Time Machine wasn’t completely dead. It was just responding extreeeeeeeeeeemlllyyyyyyyy sloowwwwwllyyyyy - and missing my mouse clicks (maybe in the timeline it inhabited my clicks were too fast to be perceived. I used GB ethernet of course.).

I wasted a few hours trying to delete my main machine’s 1.4TB sparse bundle disk image; I tried all the tricks in the book to work around OS X’s inane file deletion limitations [5]. Nothing worked - perhaps because the drive had deeper hardware or permissions or file system problems (Time Capsule is an opaque system, probably running NetBSD.)

I gave up on the fix and wiped the Time Capsule drive, restoring new backups from each computer one at a time (via ethernet for initial backup). 

I’m going to take a look at Synology NAS options. In the meantime I’ll up my Time Capsule ‘single file restore’ checks; I wonder if I’ll have to wipe the Time Capsule every 6 months or so to get more reliable results.

- fn -

[1] At one time in the ancient world writing was done on clay tablets - designed for rapid erasure. It’s a lousy way to preserve data— except that in Nineveh great fire backed the tablets.

[2] Mostly a clone, but it moves updated files into an archival storage. It isn’t a great way to recover data that was corrupted months ago, but since I rotate 4hard drives to 3 locations (work, home, my van) I do have older versions of my data.

[3] Infamous for the world’s least practical user interface (LSD-fueled trip through a star field), awful performance, and cryptic failure modes.

[4] Every month I try restoring a small file; I’ve a Toodledo task for this that I just keep bumping ahead.

[5] Finder and most terminal deletes need to a reference to EVERY file to be deleted, and getconf ARG_MAX shows Mavericks has the same and limit as Mountain Lion: 262,144 arguments. Since a sparse bundle is a collection of 8MB files (“bands”) big bundles hit this limit.

Update 11/24/2014 - Twist

After wiping my Time Capsule drive and recreating my backup, I tried a restore.

It worked well with 2 of the 3 accounts I tried — but, again, not on my home account. The Time Machine window didn’t respond to mouse clicks. As shown in the attached screen photo there’s a pencil icon in bottom left with a slash through it (can’t write).

IMG 5214

So I tried repairing permissions. It’s never worked before, and it didn’t work this time.

Next I verified my (SSD) drive — that hung about midway through. No error, it just didn’t complete.

So I booted from the recovery partition and ran Repair Disk — which did complete. Without any kind of error report.

Then I removed all peripherals and tried Time Machine. This time if I switched to a recent backup and waited a couple of minutes it DID respond and I COULD restore a test file for my problem user.

It seems that there’s something about that user’s account (by far largest and most complex) that causes Time Machine to take a VERY long time to be ready to interact with the user.

Update 11/25/2014 - I think it might have been the SSD.

At the same time I was wrestling this problem I was also preparing to apply Samsung’s fix for my increasingly slow Samsung EVO 840 SSD. As noted above I was seeing some odd behavior with Disk Utility — no error was reported, but Disk Utility seemed to hang waiting for a directory structure operation to complete. After I repaired the Disk Time Machine seemed to work.

After I had a working backup I ran the Samsung repair. Following that my startup times went from 20 seconds (faster than hard drive) to 2-3 seconds (SSD speed). Time Machine was also quite a bit faster.

My guess is that read failures on the directory structure for my problematic user account was causing Time Machine to hang. If so the problem wasn’t with the Time Machine backup, it was with the drive I wanted to restore too…

Samsung SSD 840 EVO has a slow read bug: information on the fix

Over a year ago I switched my 2009 iMac from yet another dead hard drive to a Samsung EVO 840 1TB SSD. It was a calculated gamble that has worked fairly well so far, but SSD technology has proved less mature that I’d thought (Maybe this is why Apple has been slow to transition). For example, the net is full of contradictory recommendations on TRIM use. For another, the Anandtech coverage of this complex bug ends with “None of the big SSD manufacturers have been able to avoid widespread bugs”

Recently Samsung admitted they had a problem with slow reads — something I’ve been wondering about. They’ve put out  Windows fix and a bootable DOS version that’s supposed to work on a Mac.

I haven’t tried it yet, but I’ve assembled my references…

Thanks to Conrad’s Chavez’s generous blog post I feel ready to do this - once again I appreciate the CD drive in my old iMac. After BOTH of my backup systems are completely current of course. Actually, maybe I’ll do a 3rd back up just in case.

Update 11/25/14

Wow. I did the fix and the speed improvement of my 1.5 yo SSD is amazing. I’d noticed some operations were slow, but the gradual decline hid how bad things were. Startup time is maybe 2-10% of what it was.

I think extremely slow reads on something related to directory structure were causing my Time Machine/Time Capsule restore failures (more on that in the post, later).

A few notes/extensions of Conrad’s fine post:

  • I did 2 backups beforehand and tested a file restore from one. Then I did an additional Aperture specific backup to another drive.
  • I recommend booting into and running Disk Utility disk repair prior to the fix — just as a general safety measure.
  • Unplug all peripherals — keep it simple.
  • I didn’t have to rename the .ISO file to .DMG as Conrad mentioned. Disk Utility burned CD normally.
  • On my Bluetooth keyboard I hold down the ‘c’ key immediately after startup tone to boot off CD
  • Firmware fix is very quick — but the full repair took about 4.5h. The UI writes a dot every 15min or so (see below).
  • After the fix was done I got the old (I remember DOS) prompt. I pressed restart and got a heart attack as OS X was stuck in an exotic failed boot cycle. I had to press and hold power for a few seconds to force a proper shutdown. After that all was fine.

IMG 5216

Friday, November 21, 2014

iOS 8, AT&T MVNO and the endless searching Personal Hotspot bug: toggle Bluetooth

We’re on 8.1.1 and I’ve discovered our first significant bug - the Personal Hotspot icon is stuck in endless “searching” spin on two of the 3 children’s H2O Wireless (AT&T MVNO) iPhone 4s and 4.

IMG 2038

It’s a new problem, likely related to the new Instant Hotspot features of 8.1 (even though it’s not supported on these older phones), but there was a variant of this in older iOS versions. The phones use the H2O “Locus” configuration Profile though, so I can’t follow old advice to edit APN settings.

I think there’s also a contribution to the bug from restrictions on making changes to cellular data (restricted on the children’s phones).

There’s a workaround though, one that I came up after realizing one of the 3 phones didn’t have the stuck Hotspot search. That phone had Bluetooth disabled, and Bluetooth is needed for Instant Hotspot functionality.

So I disabled Bluetooth on the #3’s phone and the endless search stopped, instead I saw “Set up Personal Hotspot”. I reenabled Bluetooth and the bug didn’t return. On #2’s phone Bluetooth was off, and enabling it stopped the search.

So it seems all I have to do is toggle Bluetooth. 

There is still weird stuff here. All 3 devices have the same Profile and H2O plan, but one 4s has the “Personal Hotspot” functionality and the other two say bring up a “Call AT&T to enable” dialog. I’m still playing around to see if I can fix that.

Subscription to Facebook Events calendar now possible, including Google Calendar - for the moment

I just added a subscription to my Facebook calendar to my Google Calendar.

Is this new?

I can't say, but knowing how it works I found documentation updated in Sept 2014. So it might be new. I briefly scanned Facebook's marketing infested 'newsroom' and didn't see any notification there.

Parenthetically, this kind of discovery is a real Facebook issue. I've looked for this feature several times over the past few years. The last time I looked I found several old hacks that were either obsolete or insanely high risk.

Why is Facebook such a mystery? Partly it's lack of documentation and feature churn, but, more importantly, geeks ignore Facebook. So my usual notification systems fail.

Anyway, this is something I've really wanted. Look for the cryptic three dot icon next to a Facebook event:

Choose "Export Event". You can email a .ICS for the event, but, more importantly, you'll see webcal URL with an embedded unique identifier (token).

Copy that URL and paste it into Google Calendar "Add by URL".

Suddenly Facebook Calendar is useful.