Bug 12677 - Lack of playlistdir causes web homepage to fail
: Lack of playlistdir causes web homepage to fail
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 7.4.0
: PC Windows Vista
: P2 normal (vote)
: 7.4.0
Assigned To: Alan Young
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-04 09:22 UTC by Adrian Smith
Modified: 2009-10-05 14:35 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Smith 2009-07-04 09:22:15 UTC
Alan - I get the following on svn 27419 after restarting without a database.  It builds the db ok, but as I have no playlistdir or playlists the home page fails to build with:

[09-07-04 17:21:29.1996] Slim::Schema::throw_exception (409) Error: Can't find source for Playlist
[09-07-04 17:21:29.2008] Slim::Schema::throw_exception (409) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Schema.pm line 409)
   frame 1: Slim::Schema::throw_exception (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 574)
   frame 2: DBIx::Class::Schema::source (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 531)
   frame 3: DBIx::Class::Schema::resultset (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Schema.pm line 689)
   frame 4: Slim::Schema::rs (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/Pages/Home.pm line 120)
   frame 5: Slim::Web::Pages::Home::home (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/Pages/Home.pm line 29)
   frame 6: Slim::Web::Pages::Home::__ANON__ (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/HTTP.pm line 1082)
   frame 7: Slim::Web::HTTP::generateHTTPResponse (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/HTTP.pm line 909)
   frame 8: Slim::Web::HTTP::processURL (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/HTTP.pm line 720)
   frame 9: Slim::Web::HTTP::processHTTP (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 119)
   frame 10: (eval) (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 119)
   frame 11: Slim::Networking::IO::Select::__ANON__ (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 162)
   frame 12: (eval) (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 162)
   frame 13: Slim::Networking::IO::Select::loop (./slimserver.pl line 600)
   frame 14: main::idle (./slimserver.pl line 569)
   frame 15: main::main (./slimserver.pl line 1053)

[09-07-04 17:21:29.2029] Slim::Utils::Misc::msg (1160) Warning: [17:21:29.2026] Use of uninitialized value $mapped in hash element at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 576.
[09-07-04 17:21:29.2036] Slim::Networking::IO::Select::__ANON__ (125) Error: Select task failed calling Slim::Web::HTTP::processHTTP: Can't call method "resultset" on an undefined value at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 531.
; fh=Slim::Web::HTTP::ClientConn=GLOB(0xc4162a0)
Comment 1 Alan Young 2009-07-04 09:35:57 UTC
Change 27421
Comment 2 Adrian Smith 2009-07-04 09:48:00 UTC
Similar problem browsing into artists:

Underlying problem is rs is returning undef?

[09-07-04 17:46:41.1928] Slim::Utils::Misc::msg (1160) Warning: [17:46:41.1925] Use of uninitialized value in split at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/Pages/BrowseDB.pm line 59.
[09-07-04 17:46:41.1939] Slim::Utils::Misc::msg (1160) Warning: [17:46:41.1937] Use of uninitialized value $levelName in string eq at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/Pages/BrowseDB.pm line 72.
[09-07-04 17:46:41.1947] Slim::Utils::Misc::msg (1160) Warning: [17:46:41.1945] Use of uninitialized value $levelName in string ne at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/Pages/BrowseDB.pm line 72.
[09-07-04 17:46:41.1954] Slim::Schema::throw_exception (409) Error: Can't find source for 
[09-07-04 17:46:41.1961] Slim::Schema::throw_exception (409) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Schema.pm line 409)
   frame 1: Slim::Schema::throw_exception (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 574)
   frame 2: DBIx::Class::Schema::source (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 531)
   frame 3: DBIx::Class::Schema::resultset (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Schema.pm line 689)
   frame 4: Slim::Schema::rs (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/Pages/BrowseDB.pm line 84)
   frame 5: Slim::Web::Pages::BrowseDB::browsedb (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/HTTP.pm line 1082)
   frame 6: Slim::Web::HTTP::generateHTTPResponse (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/HTTP.pm line 909)
   frame 7: Slim::Web::HTTP::processURL (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Web/HTTP.pm line 720)
   frame 8: Slim::Web::HTTP::processHTTP (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 119)
   frame 9: (eval) (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 119)
   frame 10: Slim::Networking::IO::Select::__ANON__ (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 162)
   frame 11: (eval) (/home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/Slim/Networking/IO/Select.pm line 162)
   frame 12: Slim::Networking::IO::Select::loop (./slimserver.pl line 600)
   frame 13: main::idle (./slimserver.pl line 569)
   frame 14: main::main (./slimserver.pl line 1053)

[09-07-04 17:46:41.1968] Slim::Utils::Misc::msg (1160) Warning: [17:46:41.1967] Use of uninitialized value $mapped in hash element at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 576.
[09-07-04 17:46:41.1975] Slim::Networking::IO::Select::__ANON__ (125) Error: Select task failed calling Slim::Web::HTTP::processHTTP: Can't call method "resultset" on an undefined value at /home/adrian/squeezecenter/7.4/branches/noweb-sqlite/server/CPAN/DBIx/Class/Schema.pm line 531.
; fh=Slim::Web::HTTP::ClientConn=GLOB(0xd15e0e0)
Comment 3 Alan Young 2009-07-04 10:50:32 UTC
How do you browse into artists? There should not be a Music Library entry at all.

Admittedly, for the moment, not so much effort has been spent on making sure that the webUI all works in this mode, as it is expected that the WebUI will generally be disabled altogether for this scenario.
Comment 4 Adrian Smith 2009-07-04 11:49:12 UTC
I think I've confused you - I have audiodir set, but playlistdir is not set as I don't have any playlists.  This used to mean it defaulted to cachedir for any SC generated playlists.  I should be able to browse using the web interface as normal with this setup..
Comment 5 Alan Young 2009-07-04 23:59:14 UTC
Yes, I was confused. However, I cannot reproduce the problem now (with r27421). I have audiodir defined and no playlistsdir. I can browse via artists just fine. Anything useful earlier in the log?
Comment 6 Adrian Smith 2009-07-05 03:41:29 UTC
It looks to be resolved by change 27423 - what was happening was that Slim::Schema was not being initialised and hence validHierachies was undef.
Comment 7 James Richardson 2009-10-05 14:35:59 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.