Bug 12828 - Automatic restart doesn't take command line parameters into account
: Automatic restart doesn't take command line parameters into account
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Plugins
: 7.4.0
: PC Ubuntu Linux
: P2 normal (vote)
: 7.4.0
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-13 01:28 UTC by Erland Isaksson
Modified: 2009-10-05 14:38 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erland Isaksson 2009-07-13 01:28:14 UTC
Automatic restart after installing a plugin fails if you have configured a custom cache dir by using the --cachedir startup parameter.

I'm starting Squeezebox Server with:
slimserver.pl --cachedir /var/lib/squeezecenter/Cache74LiteSmallNoPlugins --prefsdir /home/erland/Configurations/Prefs74LiteSmallNoPlugins --logdir /var/lib/squeezecenter/Logs74LiteSmall --d_startup

When I select to restart when asked after installing a new plugin I get the following error and the server dies. I suspect it has to do with the --cachedir parameter which probably isn't used when the server restarts.

I'm using Squeezebox Server svn 27512

==============
[09-07-13 10:21:23.5188] Slim::Schema::init (133) Error: Couldn't connect to database! Fatal error: [No such file or directory] Exiting!
[09-07-13 10:21:23.5200] Slim::Schema::init (133) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Schema.pm line 133)
   frame 1: Slim::Schema::init (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Music/Import.pm line 658)
   frame 2: Slim::Music::Import::_checkLibraryStatus (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Music/Import.pm line 600)
   frame 3: Slim::Music::Import::useImporter (/var/lib/squeezecenter/Cache74LiteSmallNoPlugins/InstalledPlugins/Plugins/DynamicPlayList/lib/Plugins/DynamicPlayList/Plugin.pm line 2411)
   frame 4: Plugins::DynamicPlayList::Plugin::shutdownPlugin (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Utils/PluginManager.pm line 335)
   frame 5: (eval) (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Utils/PluginManager.pm line 335)
   frame 6: Slim::Utils::PluginManager::shutdownPlugins (/opt/squeezecenter74_sqlite_noplugins/slimserver.pl line 1036)
   frame 7: main::cleanup (/opt/squeezecenter74_sqlite_noplugins/slimserver.pl line 1007)
   frame 8: main::stopServer (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Utils/OS.pm line 378)
   frame 9: Slim::Utils::OS::restartServer (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Web/Settings/Server/Plugins.pm line 133)
   frame 10: Slim::Web::Settings::Server::Plugins::_restartServer (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Utils/Timers.pm line 255)
   frame 11: (eval) (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Utils/Timers.pm line 255)
   frame 12: Slim::Utils::Timers::__ANON__ (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Networking/IO/Select.pm line 162)
   frame 13: (eval) (/usr/src/squeezecenter/7.4/server_sqlite_noplugins/Slim/Networking/IO/Select.pm line 162)
   frame 14: Slim::Networking::IO::Select::loop (/opt/squeezecenter74_sqlite_noplugins/slimserver.pl line 610)
   frame 15: main::idle (/opt/squeezecenter74_sqlite_noplugins/slimserver.pl line 579)
   frame 16: main::main (/opt/squeezecenter74_sqlite_noplugins/slimserver.pl line 1074)
=================
Comment 1 Adrian Smith 2009-07-13 14:37:31 UTC
This actually looks a dup of bug 12829 - can you confirm this is also fixed by change 27522?
Comment 2 Erland Isaksson 2009-07-13 16:39:38 UTC
(In reply to comment #1)
> This actually looks a dup of bug 12829 - can you confirm this is also fixed by
> change 27522?

It helped a bit but it didn't solve the problem.

After 27522 it doesn't crash but it still starts up with the standard preference directory instead of the one I've specified as argument with --prefsdir when I started the server initially. The result is that all my preferences seems to be lost and it opens up the setup wizard at startup. If I shut it down with Ctrl+C and startup manually with correct --prefsdir and --cachedir values it works again.

I'm running an svn version on Ubuntu Linux if that matters.
Comment 3 Michael Herger 2009-08-06 02:19:49 UTC
reducing priority unless this issue can be reproduced on Windows or OSX
Comment 4 Ben Klaas 2009-08-26 07:53:57 UTC
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
Comment 5 SVN Bot 2009-08-31 05:04:34 UTC
 == Auto-comment from SVN commit #28380 to the slim repo by michael ==
 == https://svn.slimdevices.com/slim?view=revision&revision=28380 ==

Fixed Bug: 12828
Description: need to copy @ARGV very early inside the BEGIN block; remove redundant @original_args in favour of @argv
Comment 6 James Richardson 2009-10-05 14:38:04 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.