PDA

View Full Version : Automate the "Wipe Cache" feature in SlimServer?



track2
2005-05-31, 20:02
Does anyone know if it's possible to automate the Wipe Cache feature in SlimServer? The daily scan doesn't delete albums from the database if I've deleted the files, so I figure a daily Wipe Cache would work best.

track2
2005-06-03, 16:07
Bump!

Any ideas?

stinkingpig
2005-06-03, 16:58
track2 wrote:
> Bump!
>
> Any ideas?
>
>

not really... you might try scheduling a restart of the server with the
--scanonly option, but you'd probably have to manually delete the
database. SDI's goal seems to be removing the need for wipe cache rather
than making it easier to use, especially as it is very slow for people
with large libraries and/or slow machines.

--
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip since 1996!

Marc Sherman
2005-06-04, 08:49
track2 wrote:
> Bump!
>
> Any ideas?

I don't know what you're full original question was, because all you
said was "bump!", but if you're looking for something to run from a
linux shell, here's what I use for slimserver 5.4.1:

wget -nv -O /dev/null \
"http://localhost:9000/setup.html?page=performance&wipecache=wipecache"

- Marc

track2
2005-06-04, 11:15
@stinkingpig: I don't mind how long a full re-scan would takes (my library is about 200GB btw). It's just that the nightly re-scan does not remove all the dead or now non-existent entries in the music library would have before. So is there a way to nuke the database from the command line too?

@Marc Sherman: My full question is in my first post, but you've basically got the answer right there for me. But I'm running this on Windows server...any way I can run that from a command line?

Dan Sully
2005-06-04, 11:25
* track2 shaped the electrons to say...

>@stinkingpig: I don't mind how long a full re-scan would takes (my
>library is about 200GB btw). It's just that the nightly re-scan does
>not remove all the dead or now non-existent entries in the music
>library would have before. So is there a way to nuke the database from
>the command line too?

The 6.1 nightlies now do an active deletion of dead entries.

-D
--
You know, for kids.

Marc Sherman
2005-06-04, 12:33
track2 wrote:
>
> @Marc Sherman: My full question is in my first post, but you've
> basically got the answer right there for me.

Please bear in mind that many subscribers read this as a mailing list,
and quote appropriately.

> But I'm running this on
> Windows server...any way I can run that from a command line?

Google has quite a few hits for "wget windows":
http://www.google.ca/search?q=wget+windows

I don't use any of them, so I can't recommend a particular distribution
for you.

IE might be command line scriptable, but again, I'm not sure.

- Marc

track2
2005-06-05, 09:38
Thanks for your help everyone. I found a version of wget for Windows and created a scheduled task to run the command every morning at 5AM. It seems to be working well, so I'm a happy camper.

Peter Evans
2005-06-05, 10:30
Folks,

After four weekends trying different distros, I managed to find one that
recognized my SATA drives.

After that, I had to fight with the network card, now I'm online with a new
card, & SUSE 9.3.

I've used YaST to install the RPM, and I've looked for the SuSE startup
script.

Now I have several questions:

1) Do I have to log in as Slimserver user? Which is the password?

2) I've tried from root and I get the following:

linux:/home/peter # ./slimserver start
Starting SlimServer done
linux:/home/peter # The following modules failed to load: DBD::SQLite
HTML::Parser Compress::Zlib

To download and compile them, please
run: /usr/local/slimserver/Bin/build-perl-modules.pl

Use of uninitialized value in string eq
at /usr/local/slimserver/Slim/Utils/Prefs.pm line 390.


Then I ran /usr/local/slimserver/Bin/build-perl-modules.pl and got:

linux:/home/peter # /usr/local/slimserver/Bin/build-perl-modules.pl
Welcome to the Slim Devices perl module installer.

These packages are needed for SlimServer 6 to function.
You will need a C compiler (gcc), make, and perl installed.

*** Ignore any warnings about AppConfig. ***

Please enter a perl binary to use (defaults to /usr/bin/perl)
This must be the same perl binary that you ran this program with -->
Please enter the path to your SlimServer directory (ex:
/usr/local/slimserver) --> /usr/local/slimserver
Please enter a directory to download files to --> /home/peter
Downloads will use lwp to fetch tarballs.

Downloading Compress-Zlib-1.33.tar.gz to: /home/peter
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Up/Downgrade complete.
Building..
Zlib.xs: In function `DispStream':
Zlib.xs:205: warning: long int format, different type arg (arg 2)
Zlib.xs:206: warning: long int format, different type arg (arg 2)
Zlib.xs: In function `XS_Compress__Zlib__inflateStream_inflate':
Zlib.xs:982: warning: comparison is always false due to limited range of data
type
Zlib.xs: In function `XS_Compress__Zlib__inflateStream_inflateSync':
Zlib.xs:1017: warning: comparison is always false due to limited range of
data type
Library for Compress-Zlib-1.33.tar.gz is OK!

Downloading DBI-1.46.tar.gz to: /home/peter
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL

I see you're using perl 5.008006 on x86_64-linux-thread-multi, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.

Building..
Library for DBI-1.46.tar.gz is OK!

Downloading DBD-SQLite-1.08.tar.gz to: /home/peter
Uncompressing..
Configuring..
PERL5LIB=/home/peter/DBI-1.46/blib/lib:/home/peter/DBI-1.46/blib/arch
/usr/bin/perl Makefile.PL
Building..
table.c: In function `sqlite3_get_table':
table.c:146: warning: cast to pointer from integer of different size
table.c: In function `sqlite3_free_table':
table.c:191: warning: cast from pointer to integer of different size
vdbeaux.c: In function `displayP3':
vdbeaux.c:389: warning: cast from pointer to integer of different size
Library for DBD-SQLite-1.08.tar.gz is OK!

Downloading HTML-Parser-3.45.tar.gz to: /home/peter
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
/usr/lib/perl5/5.8.6/x86_64-linux-thread-multi/CORE/patchlevel.h:121:
warning: `local_patches' defined but not used
Library for HTML-Parser-3.45.tar.gz is OK!

Downloading Template-Toolkit-2.13.tar.gz to: /home/peter
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL TT_DOCS=n TT_SPLASH=n TT_THEME=n TT_EXAMPLES=n
TT_EXAMPLES=n TT_EXTRAS=n TT_QUIET=y TT_ACCEPT=y TT_DBI=n TT_LATEX=n

The Template Toolkit requires that the AppConfig module (version 1.55
or later) first be installed. This is used by
the 'ttree' program for reading command line options and configuration
files. It is available from CPAN:

http://www.cpan.org/authors/Andy_Wardley/

Warning: prerequisite AppConfig 1.55 not found.
Building..
Stash.xs:1092: warning: `list_dot_first' defined but not used
Stash.xs:1141: warning: `list_dot_last' defined but not used
Library for Template-Toolkit-2.13.tar.gz is OK!

Downloading Time-HiRes-1.66.tar.gz to: /home/peter
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for Time-HiRes-1.66.tar.gz is OK!

Downloading XML-Parser-2.34.tar.gz to: /home/peter
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Expat.xs: In function `parse_stream':
Expat.xs:299: warning: unused variable `buff'
Expat.xs: In function `startElement':
Expat.xs:501: warning: comparison is always false due to limited range of
data type
Expat.xs:481: warning: unused variable `pcontext'
Expat.xs:484: warning: unused variable `pnstab'
Expat.xs:485: warning: unused variable `pnslst'
Expat.xs: In function `unknownEncoding':
Expat.xs:1146: warning: unused variable `count'
Expat.xs: In function `XS_XML__Parser__Expat_ParseStream':
Expat.xs:1462: warning: unused variable `delimsv'
Expat.xs: In function `XS_XML__Parser__Expat_ParsePartial':
Expat.xs:1488: warning: unused variable `cbv'
Expat.xs: In function `XS_XML__Parser__Expat_SetDoctypeHandler':
Expat.xs:1740: warning: unused variable `set'
Expat.c: In function `XS_XML__Parser__Expat_GetBase':
Expat.c:2055: warning: unused variable `RETVAL'
Expat.xs: In function `XS_XML__Parser__Expat_DefaultCurrent':
Expat.xs:1920: warning: unused variable `cbv'
Expat.c: In function `XS_XML__Parser__Expat_ErrorString':
Expat.c:2342: warning: unused variable `RETVAL'
Expat.c:2343: warning: unused variable `targ'
Expat.xs: In function `XS_XML__Parser__Expat_LoadEncoding':
Expat.xs:2043: warning: comparison is always false due to limited range of
data type
Expat.xs:2044: warning: comparison is always false due to limited range of
data type
Expat.xs: In function `XS_XML__Parser__Expat_Do_External_Parse':
Expat.xs:2205: warning: unused variable `pret'
Expat.xs:2192: warning: unused variable `type'
Expat.xs:2194: warning: unused variable `cbv'
Expat.xs: In function `parse_stream':
Expat.xs:289: warning: `tbuff' might be used uninitialized in this function
Expat.xs:290: warning: `tsiz' might be used uninitialized in this function
Expat.xs:291: warning: `linebuff' might be used uninitialized in this
function Expat.c: In function `XS_XML__Parser__Expat_Do_External_Parse':
Expat.c:2645: warning: `RETVAL' might be used uninitialized in this function
Expat.xs: In function `generate_model':
Expat.xs:280: warning: enumeration value `XML_CTYPE_EMPTY' not handled in
switch
Expat.xs:280: warning: enumeration value `XML_CTYPE_ANY' not handled in
switch Expat.xs: At top level:
/usr/lib/perl5/5.8.6/x86_64-linux-thread-multi/CORE/patchlevel.h:121:
warning: `local_patches' defined but not used
Library for XML-Parser-2.34.tar.gz is OK!
All done!

I can't find this readme file about PERL and 64-bit, where should I look?

If I try to start the server I get:


linux:/home/peter # ./slimserver start
Starting SlimServer done
linux:/home/peter # Use of uninitialized value in string eq
at /usr/local/slimserver/Slim/Utils/Prefs.pm line 390.

linux:/home/peter # ./slimserver status
Checking for service SLIMSERVER unused

3) Is there a How-To tutorial for installing this? i.e.: without knowing a
bit about Linux?

4) Any suggestions to make this installation as painless as possible?

Regards,

Peter