Bug 12120 - Auto-update on Mac does not offer update
: Auto-update on Mac does not offer update
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Mac Installer
: 7.4.0
: Macintosh MacOS X 10.5
: P3 normal (vote)
: 7.4.0
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-20 17:43 UTC by Dan Evans
Modified: 2010-04-05 13:13 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments
Server log from 5/18 to 5/19 (42.33 KB, text/plain)
2009-05-21 08:44 UTC, Dan Evans
Details
Server log from 6/9 to 6/17 (8.03 MB, text/plain)
2009-06-17 10:17 UTC, Dan Evans
Details
Server Log r27265 (3.92 MB, text/plain)
2009-07-01 04:29 UTC, Joerg Schwieder
Details
Log from latest two days. (15.94 KB, text/plain)
2009-07-01 17:29 UTC, Dan Evans
Details
signalupdate.scpt file from Devans' Mac (1.04 KB, text/plain)
2009-07-06 09:35 UTC, Dan Evans
Details
Mac Upgrade Notification (65.98 KB, image/png)
2009-07-28 09:12 UTC, James Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Evans 2009-05-20 17:43:31 UTC
(related to bug 7982)

I was going to file this bug and say the auto-update feature never offers a new update, but ... this morning it did.  However, this is the first time I've ever seen it and I suspect there's still something wrong.

On May 15 I updated to version 7.4 - 26555 (5/13) and waited to be offered an update.  Nothing appeared for days until this morning when I saw the update dialog.

I will update to latest build (26688) and continue to monitor.
Comment 1 Michael Herger 2009-05-20 22:20:31 UTC
Dan - some information from your server.log might be interesting.

Andy - I'd assume this might be due to the change in the event handling loop:

[09-05-21 07:12:22.9210] Slim::Utils::Misc::msg (1154) Warning: [07:12:22.8621] Use of uninitialized value in subroutine entry at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Networking/IO/Select.pm line 116.
[09-05-21 07:12:22.9216] Slim::Networking::IO::Select::__ANON__ (113) Error: Select task failed calling Slim::Networking::Async::_async_read: illegal file descriptor or filehandle (either no attached file descriptor or illegal value):  at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Networking/IO/Select.pm line 116.

Any idea?
Comment 2 Dan Evans 2009-05-21 08:44:15 UTC
Created attachment 5250 [details]
Server log from 5/18 to 5/19
Comment 3 Michael Herger 2009-05-25 04:48:21 UTC
change 26725 - this should be fixed now. Please note that you'll have to update to this build manually, as the download mechanism was broken.
Comment 4 Dan Evans 2009-06-17 10:16:14 UTC
I am still seeing this.  I'm on build 26982.  I've not seen a notification of a new update in 1 week after updating manually on June 10.

Looking at the log it is successfully finding and downloading the update.  But it never pops up and offers it to install. (log attached)
Comment 5 Dan Evans 2009-06-17 10:17:02 UTC
Created attachment 5341 [details]
Server log from 6/9 to 6/17
Comment 6 Michael Herger 2009-06-18 00:16:30 UTC
> Looking at the log it is successfully finding and downloading the  
> update.  But it never pops up and offers it to install. (log attached)

What OSX version are you running? I did add some code last week which  
would lead to failure on 10.3/4. If you're on 10.5 (Leopard), could you  
please try to run the following command from a terminal:

osascript  
/Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin/openprefs.scpt

Do you see any error message?
Comment 7 Dan Evans 2009-06-18 08:26:38 UTC
Error: "osascript: ./Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin/openprefs.scpt: No such file or directory"

The path appears wrong.  I ran this instead and it opened the PrefPane: 
osascript /Volumes/Macintosh\ HD/Library/PreferencePanes/Squeezebox\ Server.prefPane/Contents/server/Bin/darwin/openprefs.scpt
Comment 8 Michael Herger 2009-06-18 09:39:34 UTC
> Error: "osascript:
> ./Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Bin/darwin/openprefs.scpt:
> No such file or directory"

Where did you get that error message? By typing the command manually or from within SC?
Comment 9 Dan Evans 2009-06-18 11:08:55 UTC
I ran the command in Terminal as you requested.  I tried it as you typed it-- it failed.  I tried it with a period at the start to place it in the local directory-- it failed.  

I tried it with the amended path using "Squeezebox/ Server" and it worked.
Comment 10 Michael Herger 2009-06-22 01:44:45 UTC
Dan - fixed a few more issues which _might_ have broken the update on OSX today. Please install tomorrow's build manually if needed and see how it behaves. Thanks!
Comment 11 Michael Herger 2009-06-29 06:46:04 UTC
Dan - closing this again, as it's working fine again (for me). With or without Growl running I got informed about the update. Feel free to re-open (again :-)) if needed.
Comment 12 Dan Evans 2009-06-29 11:18:20 UTC
I'm running 27203 (6/23) and am still not seeing any update box.  The only time I see anything is I manually open Sys Prefs and select "Squeezebox Software".  Then I see a box asking do I want to update now or later.

I'm having other support folk try this and I'll report back.

James-- Is this working for you?
Comment 13 James Richardson 2009-06-29 12:57:16 UTC
Do you have Growl installed on your Mac?

I get the notification box, some times 3-4 of them, depending on how long its been since I have updated.

That may be a separate bug, that the Growl (notification) boxes do not supersead each other.  I.E. multiple growls will appear based on the frequency SC downloads new updates.
Comment 14 Michael Herger 2009-06-29 13:45:16 UTC
> That may be a separate bug, that the Growl (notification) boxes do not
> supersead each other.  I.E. multiple growls will appear based on the  
> frequency SC downloads new updates.

Hmm... do they all show up at the same time? Only one every 24hrs should  
pop up.
Comment 15 Dan Evans 2009-06-29 14:24:37 UTC
I do not have Growl installed.  
I never see any notification box automatically.
If I manually go into SysPres > SB Software then I will see a notification box.
Comment 16 James Richardson 2009-06-29 15:36:46 UTC
(In reply to comment #14)
> > That may be a separate bug, that the Growl (notification) boxes do not
> > supersead each other.  I.E. multiple growls will appear based on the  
> > frequency SC downloads new updates.
> 
> Hmm... do they all show up at the same time? Only one every 24hrs should  
> pop up.

It looks like 1 every 24h yes.  I left my Mac running over the weekend, 3 updates were pushed from when I installed last, and 3 growl boxes were visible stacked
Comment 17 Michael Herger 2009-06-30 07:01:09 UTC
That makes sense. Should probably make them disappear again after a while.  
Just don't complain you didn't see them then ;-)
Comment 18 James Richardson 2009-06-30 07:38:13 UTC
Post Beta, it really shouldn't matter.  Since we should only be updating infrequently correct?

Maybe put a 72hour timer on it?

Also, since it displays in the Control Panel, I'm not too worried about when or how long the box shows up for
Comment 19 Dan Evans 2009-06-30 10:58:24 UTC
Maybe I have a fundamental misunderstanding here.  Should I be seeing a spontaneous, independent notification box appear about the update?  Or should I only see notification about the update if and when I open the Control Panel?
Comment 20 Michael Herger 2009-07-01 00:05:07 UTC
(In reply to comment #19)
> Should I be seeing a
> spontaneous, independent notification box appear about the update?

Yes. What do you see in your server.log?
Comment 21 Michael Herger 2009-07-01 04:18:51 UTC
Oh well... still seems to be broken for some users. Please attach server.log file if you still don't see the notifications.
Comment 22 Joerg Schwieder 2009-07-01 04:24:04 UTC
You asked for it...
Comment 23 Joerg Schwieder 2009-07-01 04:29:49 UTC
Created attachment 5394 [details]
Server Log r27265
Comment 24 Michael Herger 2009-07-01 05:09:06 UTC
Dan/Jörg - could you please check whether there is a ~/Library/Caches/Squeezebox Server/updates/server.version file on your system? What's in there? What are the permissions on that file?

change 27345 - add some more logging

Please update manually and see what happens. Updated server.log files are always welcome - doesn't need to be the full file, but only the last few hundred lines (with the update logging entries).
Comment 25 Dan Evans 2009-07-01 17:29:11 UTC
Created attachment 5402 [details]
Log from latest two days.

Michael-- Yes, I have that file.  It contains:

/Users/daniel/Library/Caches/Squeezebox Server/updates/SqueezeboxServer-7.4-27339.dmg

It was updated today.  It's permissions are: daniel - read&write.  Also note, the file it points to is also present in the same path.  Currently running r27310.
Comment 26 Michael Herger 2009-07-01 23:23:49 UTC
Dan - that log file is looking good. Do you have Growl installed? You would see it in the PreferencePane. If so - is it set to start at login?
Comment 27 Dan Evans 2009-07-02 11:31:45 UTC
Michael, I do not have Growl installed.  Is Growl a requirement for seeing the notification?
Comment 28 Michael Herger 2009-07-02 12:39:23 UTC
> Michael, I do not have Growl installed.  Is Growl a requirement for seeing the
> notification?

No, Growl is optional for a less intrusive notification.

What if you run the following command (as found in your log file) run manually from a terminal (please note: this is to be entered on one line!):

/usr/bin/osascript '/Library/PreferencePanes/Squeezebox Server.prefPane/Contents/server/Bin/darwin/signalupdate.scpt' Some notification
Comment 29 Dan Evans 2009-07-02 13:50:45 UTC
Here is the input/output with that command:

DEvans-MacBook:~ daniel$ /usr/bin/osascript '/Library/PreferencePanes/Squeezebox Server.prefPane/Contents/server/Bin/darwin/signalupdate.scpt' Some notification
/Library/PreferencePanes/Squeezebox Server.prefPane/Contents/server/Bin/darwin/signalupdate.scpt:614:615: script error: Expected end of line, etc. but found “"”. (-2741)
DEvans-MacBook:~ daniel$ 

Just in case I was not supposed to include the last two words ("Some notification") I ran a second time without those and still got the same error.
Comment 30 Michael Herger 2009-07-03 06:22:35 UTC
Would you mind attaching /Library/PreferencePanes/Squeezebox
Server.prefPane/Contents/server/Bin/darwin/signalupdate.scpt to this bug? osascript is complaining about some odd characters.
Comment 31 Dan Evans 2009-07-06 09:35:29 UTC
Created attachment 5407 [details]
signalupdate.scpt file from Devans' Mac

Here you go, Michael.
Comment 32 Michael Herger 2009-07-28 06:37:21 UTC
Dan - script seems to be fine. Do you still not get the notification? What Growl version are you running? Do you see the Squeezebox Server item in the Growl PrefPane?
Comment 33 Dan Evans 2009-07-28 09:07:24 UTC
Sorry Michael, but again I do not have Growl installed.  I'm currently running build 27765.  I've yet to see a notification from the server.  Not even sure what it looks like.  

You've said Growl is not required so I do not plan to install it.  I'd rather keep my system closer to the average user.
Comment 34 James Richardson 2009-07-28 09:12:20 UTC
Created attachment 5530 [details]
Mac Upgrade Notification

Dan: Do you see this type of message?

Michael: Besides this announcement, what else should customers see, when Growl is NOT present?
Comment 35 Dan Evans 2009-07-28 09:34:31 UTC
James-- Yes, I do see that.  I reported seeing that in comment #12 and comment #15, but got the impression that there's something else?  Something non-Growl?  

Michael-- Can you please provide a screenshot of what this looks like with Growl NOT installed?  I feel like we're chasing our tails here when maybe it's not even broken?
Comment 36 Michael Herger 2009-07-29 02:05:54 UTC
Ooops.... sorry Dan about the Growl confusion (and asking it over and over again).

No, it's not required.

> Michael-- Can you please provide a screenshot of what this looks like with
> Growl NOT installed? 

If you don't have Growl, then the SC PrefPane should pop up, giving you the screen James has attached (thanks!). If you don't get this, can you open the pref pane manually? It seems to sometimes get stuck and wouldn't open.
Comment 37 Dan Evans 2009-07-29 09:49:51 UTC
Michael-- Thanks, I think I understand now.  So I _do_ see the screen James attached, but only if I open it manually.  Nothing opens or presents itself automatically.

Truthfully, I think this works well enough now for release.  If the update didn't work at all I'd feel differently.  I recommend we push this out for 8.01 or 8.1. Your plate must be plenty full, Michael, with more critical issues... unless you believe this is an easy fix, but it's not sounding that way. 

Thanks for your patience.
Comment 38 Michael Herger 2009-08-18 06:15:09 UTC
Dan - could you please watch this issue again (with revision 28201 or later)? There was another issue (bug 13451) with the notification which caused playback pausing and other oddities. In that case the PrefPane would have hung. Maybe that fix fixed your issue too?
Comment 39 Dan Evans 2009-08-19 14:48:24 UTC
I updated to 28225 this morning.  I'll let you know what I see over the next day or so.
Comment 40 Dan Evans 2009-08-20 06:07:44 UTC
Michael--  Good news... I saw the pop-up asking for an update for the first time today.  Yeehaw!  

Sadly, it wasn't able to update because the installer failed to close System Prefs.  Not sure if those two events are related or not.  I'll try again later.

How often does it offer the update?  Once a day?  Once an hour?
Comment 41 Michael Herger 2009-08-20 06:38:54 UTC
> Sadly, it wasn't able to update because the installer failed to close  
> System Prefs.  Not sure if those two events are related or not.  I'll  
> try again later.

They might indeed be related: sometimes the PrefPane locks up for some  
reason. Have you been able to close it manually?

> How often does it offer the update?  Once a day?  Once an hour?

once a day (by default). Can be changed by setting the  
checkVersionInterval value
Comment 42 Dan Evans 2009-08-25 09:25:30 UTC
Michael- over the last 4 days I've successfully gotten the update notification 4 times, and successfully updated 4 times.  One time the prefPane would not close and the installer failed.  I immediately retried the update and it completed successfully.

Seems to be working fine now.
Comment 43 Michael Herger 2009-08-25 15:09:26 UTC
Thanks for the feedback! Let's close this quickly, before it fails working again ;-)
Comment 44 James Richardson 2009-10-05 14:28:09 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 45 Dan Evans 2010-04-05 12:48:10 UTC
About two weeks ago I installed Growl.  Since that time I have not gotten any update offers from the PrefPane.  Is that by design?

Note- I _do_ get Growl messages 1/hour stating there's a new version available.

Just want to be sure this is how it's supposed to work.  

Thanks!
Comment 46 Michael Herger 2010-04-05 12:52:59 UTC
> Since that time I have not gotten any
> update offers from the PrefPane.
> 
> Note- I _do_ get Growl messages 1/hour stating there's a new version available.

?!? Do you get the message or not?
Comment 47 Dan Evans 2010-04-05 12:58:27 UTC
What I _used_ to get was the PrefPane would auto-open itself up and a box appeared middle of the screen stating the update is available and provided and update button.  (see James' attachment, "Mac Upgrade Notification")

Now... there is no PrefPane box.

Instead, I get a Growl message.  But the Growl message has no way to actually update.  (the user must know to open the PrefPane manually.)

That's why I'm asking if this is intended or not.  I hope this helped explain. (I'm on OSX 10.6.3)

Should I continue to see the PrefPane auto-open?  Complete with the update button?
Comment 48 Michael Herger 2010-04-05 13:01:57 UTC
Just tested this again:

- first I got the growl message
- went to open the PrefPane - asked me to restart in 32-bit mode
- in 32-bit mode I was immediately asked to install the update

This is working as designed for me. Please note that there haven't been new nightlies for a few days, as there haven't been changes either.
Comment 49 Michael Herger 2010-04-05 13:09:19 UTC
> Now... there is no PrefPane box.
> 
> Instead, I get a Growl message.  But the Growl message has no way to actually
> update.  (the user must know to open the PrefPane manually.)

That's correct. We're using growl to lower the impact on the user experience. Opening the PrefPane is a bit heavy. It's only done if growl isn't installed.

To answer your question: yes, this is as designed (or at least how it has been ever since we introduced that feature).
Comment 50 Dan Evans 2010-04-05 13:13:03 UTC
Ok, good.  Fair enough.

Thanks, Michael!