PDA

View Full Version : Infinite menus in 6.5.1



wilhol
2007-02-02, 14:34
I've just installed slimserver 6.5.1 on freenas and when I go to browse -> artists and press right, it appears to load the 'browse' menu again (i.e. i keep pressing right and it just goes artists -> artists -> artists -> etc...). I get the same behaviour in albums.

The library appears fine in the web interface and in Genres, Years and Music Folder on the Squeezebox (3). Does anybody have any ideas what might be causing this?

p.s. On installing the trackstat plugin, I can view artists correctly by going to trackstat -> artists -> all artists.

Triode
2007-02-02, 15:01
It means there's a bug in something and to avoid crashing the server by switching to a new mode, it shows the same display.

There should be something in the log which says why - go to the server url /log.txt, e.g. http://localhost:9000/log.txt

wilhol
2007-02-03, 00:40
Thanks for the swift reply! The logs show the following:

2007-02-03 07:34:05.1061 Couldn't push into new mode: [browsedb] !: Carp::Clan::__ANON__(): Error executing 'SELECT me.id, me.name, me.namesort, me.moodlogic_id, me.moodlogic_mixable, me.musicmagic_mixable, me.namesearch, me.musicbrainz_id FROM contributors me LEFT JOIN contributor_album contributorAlbums ON ( contributorAlbums.contributor = me.id ) JOIN albums album ON ( album.id = contributorAlbums.album ) WHERE ( ( ( album.compilation IS NULL ) OR ( album.compilation = ? ) ) AND contributorAlbums.role IN ( ?, ? ) ) GROUP BY me.id ORDER BY me.namesort': DBD::mysql::st execute failed: Error writing file '/var/tmp/MYOFVqoq' (Errcode: 28) at /mnt/Public/slimnas/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 771.

2007-02-03 07:34:06.5934 ERROR: Error executing 'SELECT me.id, me.name, me.namesort, me.moodlogic_id, me.moodlogic_mixable, me.musicmagic_mixable, me.namesearch, me.musicbrainz_id FROM contributors me LEFT JOIN contributor_album contributorAlbums ON ( contributorAlbums.contributor = me.id ) JOIN albums album ON ( album.id = contributorAlbums.album ) WHERE ( ( ( album.compilation IS NULL ) OR ( album.compilation = ? ) ) AND contributorAlbums.role IN ( ?, ? ) ) GROUP BY me.id ORDER BY me.namesort': DBD::mysql::st execute failed: Error writing file '/var/tmp/MYYDYepx' (Errcode: 28) at /mnt/Public/slimnas/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 771.

2007-02-03 07:34:06.5939 ERROR: Backtrace follows:

2007-02-03 07:34:06.5945 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (/mnt/Public/slimnas/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 773)
frame 1: DBIx::Class::Storage::DBI::_execute (/mnt/Public/slimnas/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 826)
frame 2: DBIx::Class::Storage::DBI::_select (/mnt/Public/slimnas/slimserver/CPAN/DBIx/Class/Storage/DBI/Cursor.pm line 118)
frame 3: DBIx::Class::Storage::DBI::Cursor::all (/mnt/Public/slimnas/slimserver/CPAN/DBIx/Class/ResultSet.pm line 945)
frame 4: DBIx::Class::ResultSet::all (/mnt/Public/slimnas/slimserver/Slim/Buttons/BrowseDB.pm line 724)
frame 5: Slim::Buttons::BrowseDB::setMode (/mnt/Public/slimnas/slimserver/Slim/Buttons/Common.pm line 1604)
frame 6: (eval) (/mnt/Public/slimnas/slimserver/Slim/Buttons/Common.pm line 1604)
frame 7: Slim::Buttons::Common::pushMode (/mnt/Public/slimnas/slimserver/Slim/Buttons/Common.pm line 1744)
frame 8: Slim::Buttons::Common::pushModeLeft (/mnt/Public/slimnas/slimserver/Slim/Buttons/Home.pm line 463)
frame 9: Slim::Buttons::Home::homeExitHandler (/mnt/Public/slimnas/slimserver/Slim/Buttons/Input/List.pm line 486)
frame 10: Slim::Buttons::Input::List::exitInput (/mnt/Public/slimnas/slimserver/Slim/Buttons/Input/List.pm line 133)
frame 11: Slim::Buttons::Input::List::__ANON__ (/mnt/Public/slimnas/slimserver/Slim/Hardware/IR.pm line 830)
frame 12: Slim::Hardware::IR::executeButton (/mnt/Public/slimnas/slimserver/Slim/Control/Commands.pm line 148)
frame 13: Slim::Control::Commands::buttonCommand (/mnt/Public/slimnas/slimserver/Slim/Control/Request.pm line 1483)
frame 14: (eval) (/mnt/Public/slimnas/slimserver/Slim/Control/Request.pm line 1483)
frame 15: Slim::Control::Request::execute (/mnt/Public/slimnas/slimserver/Slim/Control/Request.pm line 772)
frame 16: Slim::Control::Request::executeRequest (/mnt/Public/slimnas/slimserver/Slim/Player/Client.pm line 464)
frame 17: Slim::Player::Client::execute (/mnt/Public/slimnas/slimserver/Slim/Hardware/IR.pm line 844)
frame 18: Slim::Hardware::IR::processCode (/mnt/Public/slimnas/slimserver/Slim/Hardware/IR.pm line 604)
frame 19: Slim::Hardware::IR::processIR (/mnt/Public/slimnas/slimserver/Slim/Control/Commands.pm line 264)
frame 20: Slim::Control::Commands::irCommand (/mnt/Public/slimnas/slimserver/Slim/Control/Request.pm line 1483)
frame 21: (eval) (/mnt/Public/slimnas/slimserver/Slim/Control/Request.pm line 1483)
frame 22: Slim::Control::Request::execute (/mnt/Public/slimnas/slimserver/Slim/Control/Request.pm line 772)
frame 23: Slim::Control::Request::executeRequest (/mnt/Public/slimnas/slimserver/Slim/Player/Client.pm line 464)
frame 24: Slim::Player::Client::execute (/mnt/Public/slimnas/slimserver/Slim/Hardware/IR.pm line 120)
frame 25: Slim::Hardware::IR::idle (/mnt/Public/slimnas/slimserver/slimserver.pl line 466)
frame 26: main::idle (/mnt/Public/slimnas/slimserver/slimserver.pl line 445)
frame 27: main::main (/mnt/Public/slimnas/slimserver/slimserver.pl line 1071)

I am using freenas and Michael Herger's slimserver extension so looks like permissions or a directory not exiting i guess...

mherger
2007-02-03, 02:14
> I am using freenas and Michael Herger's slimserver extension so looks

Now this is catching my interest :-)

> like permissions or a directory not exiting i guess...

If you go to FreeNAS web page and open the Diagnostics/Logs page, do you
see some message about a full root "/" filesystem?

> failed: Error writing file '/var/tmp/MYOFVqoq' (Errcode: 28) at

Arrghh... I've been aware about MySQL trying to write to /tmp, but
/var/tmp? Hmm... I'm trying to fix this issue by adding the following line
to slimserver/MySQL/my.tt:

tmpdir = [% datadir %]

right after the "datadir = [% datadir %]" line. Could you please give this
a try, restart SlimServer and tell me, whether it helps?

Problem is that FreeNAS is running from a ramdisk which is _very_ small
(40MB?) and usually 97% full right after the start. This only leaves very
little space for applications on the root filesystem. I'm trying to have
everything slimserver related in the SlimNAS share (wherever you installed
it).

Thanks in advance for your help on that issue!

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

wilhol
2007-02-04, 14:58
Hi Michael - yes I do see the error about a full filesystem:

kernel: pid 226 (mysqld), uid 80 inumber 8292 on /: filesystem full

Will try the tmpdir line and let you know how it goes...

Thanks for the excellent work getting slimserver playing nicely with freenas!

tommypeters
2007-02-04, 16:29
Is the FreeNAS ramdisk non-configurable?

mherger
2007-02-05, 01:41
> Hi Michael - yes I do see the error about a full filesystem:
> kernel: pid 226 (mysqld), uid 80 inumber 8292 on /: filesystem full

Do you also see SlimServer/MySQL complaining about a "world-writable
my.cnf" file (see slimserver.log)? If you haven't done so already you
might want to update to the latest 0.31 which should handle that issue.

> Will try the tmpdir line and let you know how it goes...

This is fixed in 0.31 as well.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

mherger
2007-02-05, 01:43
> Is the FreeNAS ramdisk non-configurable?

It is, but only at buildtime. OTOH it doesn't make sense increasing its
size globally, as this increases memory footprint as well. SlimServer does
work properly, but the configuration is still a little touchy. I guess the
reason for these problems is mainly MySQL writing to the root filesystem
as it doesn't like its configuration file world-writable, thus ignoring
SlimServer's MySQL settings.

SlimNAS 0.31 tries to handle this better. Please give it a try if you
encounter the "root fs full" or "out of swap space" issue.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

wilhol
2007-02-06, 06:19
Hi Michael,

After updating to the 0.31 mysql appears to be playing nicely - thanks for all your help!

Will

mherger
2007-02-06, 06:47
> After updating to the 0.31 mysql appears to be playing nicely - thanks
> for all your help!

Thanks for the feedback! I'm glad you helped me sort out that issue.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR