Indigo 5.0.3 seems to have broken the iTunes plugin.

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
User avatar
JGTracy
Posts: 46
Joined: Sat Aug 23, 2008 1:17 pm
Location: Hendersonville, NC

Indigo 5.0.3 seems to have broken the iTunes plugin.

Post by JGTracy »

I've been have trouble with iTunes since I installed the 5.0.3 update. I've noticed the following:
-- Indigo could no longer control iTunes on a different iMac. Pairing worked, but the device continued to show "unavailable"
-- The iTunes on my computer would frequently freeze and require a "Forced Quit" to recover.
-- Indigo is supposed to start iTunes at 8AM. I took some time this morning to look into it. The log is below. I successfully paired and then issued an ACTION GROUP that should turn on iTunes at a particular radio station.

I'll try to switch back to 5.0.2.

Log file excerpt:

2012-02-06 08:00:00 Action Group iTunesWCQS
2012-02-06 08:03:41 iTunes Debug logging disabled
2012-02-06 08:04:38 iTunes Error iTunes stopped due to the following error:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/iTunes.indigoPlugin/Contents/Server Plugin/statusThread.py", line 120, in run
self.iTunesController.iTunesLogin()
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/iTunes.indigoPlugin/Contents/Server Plugin/itunes.py", line 55, in iTunesLogin
raise UnknownError("ITunesController.iTunesLogin() The request URL format is bad (most likely causing this error): " + traceback.format_exc(10))
UnknownError: 'ITunesController.iTunesLogin() The request URL format is bad (most likely causing this error): Traceback (most recent call last):\n File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/iTunes.indigoPlugin/Contents/Server Plugin/itunes.py", line 46, in iTunesLogin\n self.login()\n File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/iTunes.indigoPlugin/Contents/Server Plugin/dacp.py", line 567, in login\n raise DACPException(respond.status, ("reason: " + respond.reason))\nDACPException: 404 - reason: Not Found\n'


2012-02-06 08:04:38 iTunes Error iTunes has an unknown error - disabling
2012-02-06 08:04:47 Action Group iTunesWCQS
2012-02-06 08:04:47 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:04:47 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:04:47 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:40:53 iTunes Debug logging enabled
2012-02-06 08:41:40 iTunes Debug getDeviceConfigUiValues called
2012-02-06 08:41:40 iTunes Debug getDeviceConfigUiValues(): starting pairing thread
2012-02-06 08:41:40 iTunes Debug pairingThread: Starting run method
2012-02-06 08:41:41 iTunes Debug pairingThread: Waiting for pairing message
2012-02-06 08:41:43 iTunes Debug validateDeviceConfigUi called
2012-02-06 08:41:44 iTunes Debug closedDeviceConfigUi: device config dialog closed
2012-02-06 08:41:44 iTunes Debug closedDeviceConfigUi: pairing thread exists
2012-02-06 08:41:44 iTunes Debug closedDeviceConfigUi: pairing thread is running, cancelling
2012-02-06 08:41:44 iTunes Debug pairingThread: Received pairing message
2012-02-06 08:41:44 iTunes Debug pairingThread: From host: ('127.0.0.1', 61329)
2012-02-06 08:41:44 iTunes Debug pairingThread: Closing down
2012-02-06 08:42:06 iTunes Debug getDeviceConfigUiValues called
2012-02-06 08:42:06 iTunes Debug getDeviceConfigUiValues(): starting pairing thread
2012-02-06 08:42:06 iTunes Debug pairingThread: Starting run method
2012-02-06 08:42:06 iTunes Debug pairingThread: Waiting for pairing message
2012-02-06 08:42:17 iTunes Debug pairingThread: Received pairing message
2012-02-06 08:42:17 iTunes Debug pairingThread: From host: ('192.168.1.102', 61338)
2012-02-06 08:42:17 iTunes Debug pairingThread: Closing down
2012-02-06 08:42:21 iTunes Debug validateDeviceConfigUi called
2012-02-06 08:42:21 iTunes Debug validateDeviceConfigUi: Pairing message was received from ip: 192.168.1.102
2012-02-06 08:42:21 iTunes Debug getMediaServerList: called
2012-02-06 08:42:22 iTunes Debug getMediaServerList: ip: 192.168.1.102 and host: Iorek-4.local
2012-02-06 08:42:22 iTunes Debug validateDeviceConfigUi: serverList:
[('192.168.1.102', u'Iorek-4.local', u'Iorek-4.local:49152')]
2012-02-06 08:42:22 iTunes Debug validateDeviceConfigUi: successful pairing with host: ('192.168.1.102', 61338)
2012-02-06 08:42:22 iTunes Debug validateDeviceConfigUi: increasing pairCount to: 4
2012-02-06 08:42:26 iTunes Debug closedDeviceConfigUi: device config dialog closed
2012-02-06 08:42:26 iTunes Debug closedDeviceConfigUi: pairing thread exists
2012-02-06 08:42:40 Action Group iTunesWCQS
2012-02-06 08:42:40 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:42:40 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:42:40 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:44:19 iTunes Debug getDeviceConfigUiValues called
2012-02-06 08:44:19 iTunes Debug getDeviceConfigUiValues(): starting pairing thread
2012-02-06 08:44:19 iTunes Debug pairingThread: Starting run method
2012-02-06 08:44:20 iTunes Debug pairingThread: Waiting for pairing message
2012-02-06 08:44:23 iTunes Debug validateDeviceConfigUi called
2012-02-06 08:44:23 iTunes Debug closedDeviceConfigUi: device config dialog closed
2012-02-06 08:44:23 iTunes Debug closedDeviceConfigUi: pairing thread exists
2012-02-06 08:44:23 iTunes Debug closedDeviceConfigUi: pairing thread is running, cancelling
2012-02-06 08:44:23 iTunes Debug pairingThread: Received pairing message
2012-02-06 08:44:23 iTunes Debug pairingThread: From host: ('127.0.0.1', 61382)
2012-02-06 08:44:23 iTunes Debug pairingThread: Closing down
2012-02-06 08:44:28 iTunes Debug getDeviceConfigUiValues called
2012-02-06 08:44:28 iTunes Debug getDeviceConfigUiValues(): starting pairing thread
2012-02-06 08:44:28 iTunes Debug pairingThread: Starting run method
2012-02-06 08:44:29 iTunes Debug pairingThread: Waiting for pairing message
2012-02-06 08:44:37 iTunes Debug pairingThread: Received pairing message
2012-02-06 08:44:37 iTunes Debug pairingThread: From host: ('192.168.1.102', 61399)
2012-02-06 08:44:37 iTunes Debug pairingThread: Closing down
2012-02-06 08:44:45 iTunes Debug validateDeviceConfigUi called
2012-02-06 08:44:45 iTunes Debug validateDeviceConfigUi: Pairing message was received from ip: 192.168.1.102
2012-02-06 08:44:45 iTunes Debug getMediaServerList: called
2012-02-06 08:44:46 iTunes Debug getMediaServerList: ip: 192.168.1.102 and host: Iorek-4.local
2012-02-06 08:44:46 iTunes Debug validateDeviceConfigUi: serverList:
[('192.168.1.102', u'Iorek-4.local', u'Iorek-4.local:49152')]
2012-02-06 08:44:46 iTunes Debug validateDeviceConfigUi: successful pairing with host: ('192.168.1.102', 61399)
2012-02-06 08:44:46 iTunes Debug validateDeviceConfigUi: increasing pairCount to: 5
2012-02-06 08:44:48 iTunes Debug closedDeviceConfigUi: device config dialog closed
2012-02-06 08:44:48 iTunes Debug closedDeviceConfigUi: pairing thread exists
2012-02-06 08:45:07 Action Group iTunesWCQS
2012-02-06 08:45:07 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:45:07 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:45:07 Ignored device "iTunes" action request (communication is disabled)
2012-02-06 08:46:18 iTunes Debug logging disabled
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Indigo 5.0.3 seems to have broken the iTunes plugin.

Post by jay (support) »

It's working here fine both locally and remotely. What version of iTunes are you using and on what OS version?

According to the error you list above, iTunes is listening on the correct port but it's returning an error (404) when the plugin is asking for it's current status - which it shouldn't. Given that iTunes is freezing, it sounds like iTunes is corrupt somehow on that Mac. The plugin can't cause iTunes to crash - only a problem with iTunes can cause that.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Locked

Return to “Extending Indigo with Plugins and Python”