Synergy 3.1.1b release
-
Greg Hurrell
https://wincent.dev/a/news/archives/2007/03/synergy_311b_se.php
-
heavyboots
Hi Wincent,
I suppose I'll know in a week, but just out of curiosity, did you implement some sort of login retry for Audio Scrobbler in 3.1.1b?
They seem to have changed their policy about being logged in from multiple locations at once, but now I notice that once a week they require a new login (and my machines all run 24/7 so they rarely get the required login). At any rate, once a week I now have to manually go in and check a new checkbox/hit apply/uncheck the checkbox/hit apply to force a new login from Synergy.
Thanks in advance!
-
Greg Hurrell
Not yet, but I think I'll implement it before the next beta comes out.
If you have a log showing what happens when they require a new login (messages printed to the console), please send/post it because it will help me know exactly what'll be required.
In the meantime though, wouldn't it be easier to stop/restart Synergy at least once a week?
-
heavyboots
Well, yes. But I always forget for a couple extra days! Typically I remember to re-login every 9 days, so by that time I have a huge cached backlog for Synergy to report. And if I quit Synergy, don't I lose the cache?
At any rate, I'll post the log once I get back home tonight.
(I suppose I could make an osascript Synergy-relaunching cronjob? Will have to think about this...)
-
Greg Hurrell
Yes, you do unfortunately lose the cache.
I think when Leopard comes out I will finally drop support for Jaguar and possibly even require Tiger. Then I could easily use Core Data (Tiger-only) to keep a persistent store of that stuff.
-
heavyboots
Okay, here's the log for the time it happens. Basically, it just comes back BADAUTH out of the blue. (There's lots of entries right above this that are submitting fine.) From this point, Synergy just starts queueing but not submitting any more.
Quote:2007-03-17 20:41:40.542 Synergy[215] Audioscrobbler: Starting connection attempt 2007-03-17 20:41:40.543 Synergy[215] Audioscrobbler: Waiting for submission response 2007-03-17 20:41:40.994 Synergy[215] Audioscrobbler: Connection to Audioscrobbler did finish loading (response received) 2007-03-17 20:41:40.994 Synergy[215] Audioscrobbler: Received an INTERVAL directive 2007-03-17 20:41:40.994 Synergy[215] Audioscrobbler: Storing interval value: 1 2007-03-17 20:41:40.994 Synergy[215] Audioscrobbler: Processing submission response 2007-03-17 20:41:40.994 Synergy[215] Audioscrobbler: Received BADAUTH response 2007-03-17 20:44:32.839 Synergy[215] Audioscrobbler: Received notification from iTunes 2007-03-17 20:44:32.839 Synergy[215] Audioscrobbler: Received notification of playing status 2007-03-17 20:44:32.839 Synergy[215] Audioscrobbler: Track information: {
WOAudioscrobblerAlbum = "High Land, Hard Rain"; WOAudioscrobblerArtist = "Aztec Camera"; WOAudioscrobblerLength = 242; WOAudioscrobblerTrack = "Pillar To Post";
} 2007-03-17 20:44:32.839 Synergy[215] Audioscrobbler: This track appears to be a new submission 2007-03-17 20:44:32.839 Synergy[215] Audioscrobbler: Cancelling previously existing submission timer, if any 2007-03-17 20:44:32.839 Synergy[215] Audioscrobbler: Setting up new submission timer (121 seconds) 2007-03-17 20:46:33.831 Synergy[215] Audioscrobbler: Submission timer fired; will double-check that current track position matches expected value 2007-03-17 20:46:33.831 Synergy[215] Audioscrobbler: Position matches, will submit to Audioscrobbler 2007-03-17 20:46:33.832 Synergy[215] Audioscrobbler: Adding song to submission queue; song information: {
WOAlbum = "High Land, Hard Rain"; WOArtist = "Aztec Camera"; WODate = "2007-03-18 03:46:33"; WOLength = 242; WOMBID = ""; WOTrack = "Pillar To Post";
} 2007-03-17 20:46:33.832 Synergy[215] Audioscrobbler: Enqueuing object: {
WOAlbum = "High Land, Hard Rain"; WOArtist = "Aztec Camera"; WODate = "2007-03-18 03:46:33"; WOLength = 242; WOMBID = ""; WOTrack = "Pillar To Post";
} 2007-03-17 20:46:33.832 Synergy[215] Audioscrobbler: Number of items currently on the queue: 2 2007-03-17 20:46:33.832 Synergy[215] Audioscrobbler: Queue was non-empty, but not ready to submit: not processing item
-
Greg Hurrell
Excellent. That's just the information I needed.
-
Greg Hurrell
Ok, I've now implemented an auto-retry in response to receiving a "BADAUTH" from last.fm. It will retry up to three times before giving up. After a successful handshake the failure counter will be reset back to zero. Hopefully this means that you can run Synergy for weeks on end without ever having to manually re-login.
If you'd like to try it out, please check out this nightly build:
https://wincent.dev/a/about/wincent/weblog/nightlog/archives/2007/03/synergy_revision_328.php
-
Greg Hurrell
3.1.1 is now officially out:
https://wincent.dev/a/news/archives/2007/03/synergy_311_now.php
-
heavyboots
Well dang, I didn't get to test the fix in time! I appreciate the time you put in, but I have bad news.
Firstly, it appears I lied when I said that last.fm was allowing multiple logins. It's still a factor and I apologize for having concluded otherwise prematurely.
So, I sat down just now at home and realized I have Remote Access so I can do multi-machine testing quite quickly. I RA'd into work and started Synergy 3.1.1 running there. Since home started first, it gets the login and work gets BADAUTH. And it doesn't seem to try 3x--it just says BADAUTH and then starts queuing with the same messages.
Here is a sample: Quote:2007-03-26 21:25:32.411 Synergy[11167] Audioscrobbler: Starting connection attempt 2007-03-26 21:25:32.411 Synergy[11167] Audioscrobbler: Waiting for submission response 2007-03-26 21:25:32.912 Synergy[11167] Audioscrobbler: Connection to Audioscrobbler did finish loading (response received) 2007-03-26 21:25:32.912 Synergy[11167] Audioscrobbler: Received an INTERVAL directive 2007-03-26 21:25:32.912 Synergy[11167] Audioscrobbler: Storing interval value: 1 2007-03-26 21:25:32.912 Synergy[11167] Audioscrobbler: Processing submission response 2007-03-26 21:25:32.912 Synergy[11167] Audioscrobbler: Received BADAUTH response Loading plain environment 2007-03-26 21:27:26.801 Synergy[11167] Audioscrobbler: Received notification from iTunes 2007-03-26 21:27:26.801 Synergy[11167] Audioscrobbler: Received notification of playing status 2007-03-26 21:27:26.801 Synergy[11167] Audioscrobbler: Track information: {
WOAudioscrobblerAlbum = "The Trinity Session"; WOAudioscrobblerArtist = "Cowboy Junkies"; WOAudioscrobblerLength = 215; WOAudioscrobblerTrack = "Sweet Jane";
} 2007-03-26 21:27:26.801 Synergy[11167] Audioscrobbler: This track appears to be a new submission 2007-03-26 21:27:26.801 Synergy[11167] Audioscrobbler: Cancelling previously existing submission timer, if any 2007-03-26 21:27:26.801 Synergy[11167] Audioscrobbler: Setting up new submission timer (107 seconds) 2007-03-26 21:29:13.801 Synergy[11167] Audioscrobbler: Submission timer fired; will double-check that current track position matches expected value 2007-03-26 21:29:13.802 Synergy[11167] Audioscrobbler: Position matches, will submit to Audioscrobbler 2007-03-26 21:29:13.802 Synergy[11167] Audioscrobbler: Adding song to submission queue; song information: {
WOAlbum = "The Trinity Session"; WOArtist = "Cowboy Junkies"; WODate = "2007-03-27 04:29:13"; WOLength = 215; WOMBID = ""; WOTrack = "Sweet Jane";
} 2007-03-26 21:29:13.802 Synergy[11167] Audioscrobbler: Enqueuing object: {
WOAlbum = "The Trinity Session"; WOArtist = "Cowboy Junkies"; WODate = "2007-03-27 04:29:13"; WOLength = 215; WOMBID = ""; WOTrack = "Sweet Jane";
} 2007-03-26 21:29:13.802 Synergy[11167] Audioscrobbler: Number of items currently on the queue: 2 2007-03-26 21:29:13.802 Synergy[11167] Audioscrobbler: Queue was non-empty, but not ready to submit: not processing item 2007-03-26 21:31:01.807 Synergy[11167] Audioscrobbler: Received notification from iTunes 2007-03-26 21:31:01.807 Synergy[11167] Audioscrobbler: Received notification of playing status 2007-03-26 21:31:01.807 Synergy[11167] Audioscrobbler: Track information: {
WOAudioscrobblerAlbum = "The Trinity Session"; WOAudioscrobblerArtist = "Cowboy Junkies"; WOAudioscrobblerLength = 202; WOAudioscrobblerTrack = "Postcard Blues";
} 2007-03-26 21:31:01.807 Synergy[11167] Audioscrobbler: This track appears to be a new submission 2007-03-26 21:31:01.807 Synergy[11167] Audioscrobbler: Cancelling previously existing submission timer, if any 2007-03-26 21:31:01.807 Synergy[11167] Audioscrobbler: Setting up new submission timer (101 seconds) 2007-03-26 21:32:42.807 Synergy[11167] Audioscrobbler: Submission timer fired; will double-check that current track position matches expected value 2007-03-26 21:32:42.807 Synergy[11167] Audioscrobbler: Position matches, will submit to Audioscrobbler 2007-03-26 21:32:42.808 Synergy[11167] Audioscrobbler: Adding song to submission queue; song information: {
WOAlbum = "The Trinity Session"; WOArtist = "Cowboy Junkies"; WODate = "2007-03-27 04:32:42"; WOLength = 202; WOMBID = ""; WOTrack = "Postcard Blues";
} 2007-03-26 21:32:42.808 Synergy[11167] Audioscrobbler: Enqueuing object: {
WOAlbum = "The Trinity Session"; WOArtist = "Cowboy Junkies"; WODate = "2007-03-27 04:32:42"; WOLength = 202; WOMBID = ""; WOTrack = "Postcard Blues";
} 2007-03-26 21:32:42.808 Synergy[11167] Audioscrobbler: Number of items currently on the queue: 3 2007-03-26 21:32:42.808 Synergy[11167] Audioscrobbler: Queue was non-empty, but not ready to submit: not processing item 2007-03-26 21:34:24.506 Synergy[11167] Audioscrobbler: Received notification from iTunes 2007-03-26 21:34:24.506 Synergy[11167] Audioscrobbler: Received notification of playing status 2007-03-26 21:34:24.506 Synergy[11167] Audioscrobbler: Track information: {
WOAudioscrobblerAlbum = "The Trinity Session"; WOAudioscrobblerArtist = "Cowboy Junkies"; WOAudioscrobblerLength = 360; WOAudioscrobblerTrack = "Walkin' After Midnight";
} 2007-03-26 21:34:24.506 Synergy[11167] Audioscrobbler: This track appears to be a new submission 2007-03-26 21:34:24.506 Synergy[11167] Audioscrobbler: Cancelling previously existing submission timer, if any 2007-03-26 21:34:24.506 Synergy[11167] Audioscrobbler: Setting up new submission timer (180 seconds) 2007-03-26 21:37:24.506 Synergy[11167] Audioscrobbler: Submission timer fired; will double-check that current track position matches expected value 2007-03-26 21:37:24.507 Synergy[11167] Audioscrobbler: Position matches, will submit to Audioscrobbler 2007-03-26 21:37:24.507 Synergy[11167] Audioscrobbler: Adding song to submission queue; song information: {
WOAlbum = "The Trinity Session"; WOArtist = "Cowboy Junkies"; WODate = "2007-03-27 04:37:24"; WOLength = 360; WOMBID = ""; WOTrack = "Walkin' After Midnight";
} 2007-03-26 21:37:24.507 Synergy[11167] Audioscrobbler: Enqueuing object: {
WOAlbum = "The Trinity Session"; WOArtist = "Cowboy Junkies"; WODate = "2007-03-27 04:37:24"; WOLength = 360; WOMBID = ""; WOTrack = "Walkin' After Midnight";
} 2007-03-26 21:37:24.507 Synergy[11167] Audioscrobbler: Number of items currently on the queue: 4 2007-03-26 21:37:24.507 Synergy[11167] Audioscrobbler: Queue was non-empty, but not ready to submit: not processing item
So, I'm not sure what is going on from the point. Again, sorry to have lead you astray about the multiple login issue--I could swear I saw both home and work reporting successfully but I must have quit one or the other and forgotten about it...
-
Greg Hurrell
Ok, thanks for bringing this to my attention. I've made one other change that should force a re-try in this circumstance.
Give this nightly build a try if you'd like:
https://wincent.dev/a/about/wincent/weblog/nightlog/archives/2007/03/synergy_revision_339.php
-
heavyboots
That did the trick! I triggered some sort of spam protection during testing (by playing from two places simultaneously), but it works so I am officially a happy camper.
Thanks so much!
-
Greg Hurrell
Glad to hear it works! Thanks for confirming.
Reply
This topic is now closed.