Bug 13664 - rpm build does not autostart after an upgrade (or an install ) on all systems.
: rpm build does not autostart after an upgrade (or an install ) on all systems.
Status: RESOLVED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: RPM
: 7.4.0
: PC Other
: -- minor with 1 vote (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-25 11:46 UTC by Mikael Nyberg
Modified: 2012-04-19 11:34 UTC (History)
4 users (show)

See Also:
Category: Task


Attachments
startup script from my system (4.65 KB, application/octet-stream)
2011-09-27 09:18 UTC, Mikael Nyberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Nyberg 2009-08-25 11:46:53 UTC
See our discussion here:

http://forums.slimdevices.com/showthread.php?p=451411#post451411

Install with yum it starts.

Install with rpm you have to manually restart.

No real problems as start-up after bot is ok and works after that.
Just the initial start after install.
Comment 1 Matt Wise 2009-08-26 08:41:42 UTC
Exactly what OS are you running, and which rev did this happen with. Does it happen with todays? 

(we've tested this on a few systems without this problem)
Comment 2 Mikael Nyberg 2009-08-26 09:21:15 UTC
My OS:

ClarkConnect 4.2 community edition

Kernel version 2.6.18-53.1.13.2.cc (SMP)

squeezebox server:

Version: 7.4 - r28286 @ Wed Aug 26 07:38:14 PDT 2009
Hostname: hal.home.lan
Server IP Address: 192.168.1.5
Server HTTP Port Number: 9000
Operating system: Red Hat - EN - utf8
Platform Architecture: i686-linux
Perl Version: 5.8.8 - i686-linux-thread-multi
MySQL Version: 4.1.20
Total Players Recognized: 4

This problem started with the first build i managed to install after you fixed bug 13485 .

>28235 ?
Comment 3 Mikael Nyberg 2009-09-01 06:19:50 UTC
More info everytime i stop the server i get this in my shell:

Last login: Mon Aug 31 20:50:45 2009 from mikael.home.lan
[root@hal ~]# service squeezeboxserver stop
/sbin/service: line 68:  3180 Terminated              env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
[root@hal ~]# 

This has not been the case with 7.1 to early 7.4 beta running on the same OS and Hardware.
Comment 4 Matt Wise 2009-09-01 07:34:16 UTC
Ross can you set up a ClarkConnect vmware image and test this... if you get it replicated, let me know via IM and I'll see what the fix is.
Comment 5 Mikael Nyberg 2009-09-01 08:53:13 UTC
Ok Starting to think a little you don't have to reinstall to get this error

It's the restart command that does not work

[root@hal ~]# service squeezeboxserver restart
/sbin/service: line 68: 31506 Terminated              env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}

Stop and Start works for some reason.

[root@hal ~]# service squeezeboxserver start
Starting Squeezebox Server:                                [  OK  ]
[root@hal ~]# 

Note that i'm on CC4.2 not 4.3 (which sends my hardware into kernel panic) .
I have not dared to try CC5.0 yet CC5.0 uses yum so it seems tempting to do that.
Comment 6 Mikael Nyberg 2010-02-04 08:43:35 UTC
Bump, it's still the same nothing changed regarding this.
Comment 7 Mikael Nyberg 2010-04-17 04:31:40 UTC
Can someone update this bug.

The

[root@hal ~]# service squeezeboxserver restart

command is not working "stop" and "start" works, stop gives you fault messages.

And thus autostart after install is not working.

But there is news, the restart prompt from within the web-UI when you install plugin or something, don't work either !

So it must use the same flawed method.
Comment 8 Mikael Nyberg 2011-01-18 08:32:18 UTC
The option --full-restart works but not restart.

Is this something with the CC.4.2 service script ?
Comment 9 Michael Herger 2011-09-26 23:04:19 UTC
I'm running a CentOS 4 relative myself (SME aka. e-smith). restart is working fine here. Are you running the startup script as provided by the RPM?
Comment 10 Mikael Nyberg 2011-09-27 07:17:56 UTC
i certainly hope soo, I have not modified the startup script myself ?

There is a related issue,  normaly the deamon runs as "squeezeboxserver" but after a plugin has updated and LMS demands a restart via the web-UI,  when i click restart in the web-UI I notice that the process when restarted is now called "perl" instead of "squeezeboxserver" .
and it is no longer possible to stop with the stop command.
the web-UI is capable of restarting multiple times.

I'm on my iPad now I could attach my startup script later ? Does not the installer give me a new one every now and then ? i reported the bug 2009 ?
where do i find it init somewhere ?
Comment 11 Mikael Nyberg 2011-09-27 09:18:50 UTC
Created attachment 7482 [details]
startup script from my system

My startup script.

Looks unmodified to me .

Also.

cat redhat-release
CentOS release 4.4 (Final)
Comment 12 Michael Herger 2011-09-28 00:51:44 UTC
The problem here seems to be that the init script relies on the executable name to stop the server. But SBS is restarting the server using the perl executable. Not sure how to fix this. We could disable server restarts from the server side, or make them smarter.
Comment 13 Mikael Nyberg 2011-09-28 17:43:16 UTC
(In reply to comment #12)
> The problem here seems to be that the init script relies on the executable name
> to stop the server. But SBS is restarting the server using the perl executable.
> Not sure how to fix this. We could disable server restarts from the server
> side, or make them smarter.

yes , but thats not this bug ( there is another bug for that ) but it is related

Even if it's running as squeezeboxserver "restart" would not work on my system start and stop does work which in itself is wierd as restart only seems to be stop and start with a time delay, but as the stop command gives you some error output ( but it is stopping ) it looks like it's not following the script anymoore after that ?

Wonder why it's terminating at line 68 in the service script.

Disabling restart would break it for far to many other user who don't see this problem.
The situation  is "stable" i know what to do in different situations.
Comment 14 Alan Young 2011-11-06 23:23:29 UTC
Unassigned bugs cannot have a priority.
Comment 15 quiet.dragon 2011-11-16 14:48:31 UTC
(In reply to comment #12)
> The problem here seems to be that the init script relies on the executable name
> to stop the server. But SBS is restarting the server using the perl executable.
> Not sure how to fix this. We could disable server restarts from the server
> side, or make them smarter.

See analysis in https://bugs-archive.lyrion.org/show_bug.cgi?id=17729
Comment 16 Mikael Nyberg 2011-11-16 20:37:51 UTC
(In reply to comment #15)
> (In reply to comment #12)
> > The problem here seems to be that the init script relies on the executable name
> > to stop the server. But SBS is restarting the server using the perl executable.
> > Not sure how to fix this. We could disable server restarts from the server
> > side, or make them smarter.
> 
> See analysis in https://bugs-archive.lyrion.org/show_bug.cgi?id=17729

Ok but in this bug I have already sucesfully stoped the server and are manually installing a server upgrade, SBS is not running at all yet ?

I'll try to find another related bug the restart command is broken to .

"#service squeezeboxserver restart" does not work either on my machine
Comment 17 Michael Herger 2011-11-16 22:06:34 UTC

*** This bug has been marked as a duplicate of bug 17729 ***
Comment 18 Michael Herger 2012-03-21 02:04:03 UTC
Mikael - how did you update your perl? I installed CC 4.2 and it's still using 5.8.5.
Comment 19 Michael Herger 2012-03-21 02:05:59 UTC
Not a dupe.
Comment 20 Mikael Nyberg 2012-03-21 08:34:30 UTC
(In reply to comment #18)
> Mikael - how did you update your perl? I installed CC 4.2 and it's still using
> 5.8.5.

That was a long time ago I used these instructions

http://www.ulverston.myzen.co.uk/mini-itx/old_stuff/perl.htm

To build my own perl .
Comment 21 Mikael Nyberg 2012-04-19 11:34:34 UTC
It works with a never version of my OS , I'm building a server based on ClearOS6.2 rc1 right now on that server I don't see this problem.

So I close this bug for now.
I'm probably the last person that had a CC4.2 server, can't imagine that anyone else are interested .

Logitech Media Server Version: 7.8.0 - r33939 @ Wed Apr 18 04:06:49 MDT 2012
Hostname: nostromo.home.lan
Server IP Address: 192.168.1.50
Server HTTP Port Number: 9000
Operating system: Red Hat - EN - utf8
Platform Architecture: i686-linux
Perl Version: 5.10.1 - i386-linux-thread-multi
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 1