PDA

View Full Version : Upgrade Slimnas



Kuben72
2008-02-22, 16:25
Does anyone know how to upgrade from Slimserver 6.5 to SqueezeCenter 7 on SlimNas? I can't seem to find any how-tos.

/Kuben72

mherger
2008-02-24, 08:39
> Does anyone know how to upgrade from Slimserver 6.5 to SqueezeCenter 7
> on SlimNas? I can't seem to find any how-tos.

You'll have to install the latest slimnas tar file from my site, then the latest SC7 *noCPAN* file. I'd recommend you remove the old version of SlimServer before doing so.

--

Michael

Kuben72
2008-02-24, 11:02
Thanks Michael,

I have allready done that and it worked just fine.
I have one small question though: If I install the AlienBBC plugin should I change the same things in the config-files that I did with version 6.5?

/Kurt.

mherger
2008-02-24, 12:56
> I have one small question though: If I install the AlienBBC plugin
> should I change the same things in the config-files that I did with
> version 6.5?

I'd say so, yes. It's a mplayer issue - nothing which could be changed by
the SC/SS side.

Michael

Kuben72
2008-02-24, 15:17
Okay thanks.

/Kurt

Kuben72
2008-05-01, 14:07
If I want to upgrade from 7.0 to 7.0.1 can I just copy the latest nigthly build of 7.0.1, the latest slimnas.tgz and the latest slimnas-install.sh to the slimnas directory and then on the FreeNAS->SqueezeCenter->Settings page choose the 7.0.1 file and then click the save butten and then expect the 7.0 to be upgraded to 7.0.1 wihtout uninstall 7.0 first and there by loosing all of my setup?

/Kuben72

mherger
2008-05-02, 00:09
> If I want to upgrade from 7.0 to 7.0.1 can I just copy the latest
> nigthly build of 7.0.1, the latest slimnas.tgz and the latest
> slimnas-install.sh to the slimnas directory and then on the
> FreeNAS->SqueezeCenter->Settings page choose the 7.0.1 file and then

If you want to update the SlimNAS part of things, you'll have to install it first. Just run the same command you've run at the first installation (/bin/sh /mnt....). Then restart your machine, go to the SC page in FreeNAS and update SC itself.

If you've been running a SlimNAS version > 0.9 and didn't encounter any issue, you probably don't even need to update SlimNAS. Later releases only fixed a few bugs with installing SC 7.0 and restarting SC after reboots under certain conditions.

--

Michael

Kuben72
2008-05-02, 12:03
Just to bee clear: Since I am running 7.0 and have used Slimnas version > 0.9 it should be sufficient with copying the newest build of 7.0.1 and then press save on the FreeNAS->SqueezeCenter->Settings page. Should I disable SC before upgrading?

/kuben72

mherger
2008-05-02, 13:15
> Just to bee clear: Since I am running 7.0 and have used Slimnas version
>> 0.9 it should be sufficient with copying the newest build of 7.0.1 and
> then press save on the FreeNAS->SqueezeCenter->Settings page. Should I

Yes... or... NO!

> disable SC before upgrading?

Just remembered: 0.9 had that bug where SC wasn't shut down when disabled from the web interface :-/. You'll probably have to reboot the machine after disabling it. And while you're at it: I'd recommend updating to the latest 0.999999 build.

--

Michael

Kuben72
2008-05-02, 15:03
So this it how it should be done:

1) disable SC
2) Reboot PC
3) Run the installation of slimnas which I have just downloaded from your website.
4) Install SC 7.0.1.XXXX
5) Enable SC and hope it starts :)

Is there anyway to make a backup of the slimnas installation before I start the upgrade?
Will this upgrade destroy my setup for all the plugins?

/Kuben72

mherger
2008-05-03, 01:21
> So this it how it should be done:

Yes. Especially the last part :-)

> 5) Enable SC and hope it starts :)
>
> Is there anyway to make a backup of the slimnas installation before I
> start the upgrade?

Just backup the folder where you installed slimnas (typically there are subfolders called etc, usr, squeezecenter, var)

> Will this upgrade destroy my setup for all the plugins?

No, it should overwrite existing _program_ files, without removing anything or changing config files.

--

Michael

Kuben72
2008-05-03, 12:02
And it worked. Actually it is impossible to take a backup because the directories under slimnas\var\squeezecenter\MySQL is accesseble.

/Kuben72

mherger
2008-05-04, 05:07
> And it worked.

Great!

> Actually it is impossible to take a backup because the
> directories under slimnas\var\squeezecenter\MySQL is accesseble.

But you could if you ignored var? Don't worry about it: all you'd need to back up is etc (settings), squeezecenter (SC - obviously) and usr (SlimNAS). var is caches and stuff which would be recreated without any loss (except for the time needed to rescan your collection).

--

Michael

Kuben72
2008-05-04, 13:29
Yes I could. I didn't know that it was unimportent stuff in that directory. Thanks for your help.

/Kuben72

Kuben72
2008-05-14, 12:47
Hi Michael,

Sorry to use this thread for a completely different thing, but I need your help:

I have problems with a lot of plugins under SlimNAS (See this thread for more info: http://forums.slimdevices.com/showthread.php?p=301974#post301974)
As you can read it seems that all plugins that are using PAR.pm from the CPAN directory of SC has trouble with creating at tmp file and I cannot figure out why.

Please help.

/Kuben72

Kuben72
2008-05-15, 04:59
Hi Michael,

KDF helped me. The problem was that the PAR_TEMP environment variable was missing so plugins based on the PAR.pm from CPAN cannot create a temp file in the /tmp directory.

After adding PAR_TEMP /tmp to the .profiles file in the etc directory and then reboot the server the plugins worked.

Would it be possible to add that environment variable during installation of SlimNAS or SC?

/Kuben72

mherger
2008-05-15, 09:57
> KDF helped me.

Thanks kdf :-).

> After adding PAR_TEMP /tmp to the .profiles file in the etc directory
> and then reboot the server the plugins worked.

Thanks a lot for working this out!

> Would it be possible to add that environment variable during
> installation of SlimNAS or SC?

I will add it as soon as I'm back from my vacation and got some spare time. Expect 0.9999999 or whatever to be out soon :-).

--

Michael

Kuben72
2008-05-15, 11:42
I am afraid that I am not out of the woods yet:

If I stop and start SC then the environment variable for the /tmp directory is gone! If I reboot the server then PAR.pm find the enviroment variable again.

I'm lost!

/Kuben72

mherger
2008-05-19, 14:56
> Would it be possible to add that environment variable during
> installation of SlimNAS or SC?

Please find the updated SlimNAS 1.0 for download on my web site. This
build should fix your issue. Thanks for reporting!

Michael

Kuben72
2008-05-20, 00:44
Hi Michael,

Thanks. I will try it tonight. Do you know where to get the noCPAN.tgz version of SC 7.0.1?

mherger
2008-05-20, 00:53
> Thanks. I will try it tonight. Do you know where to get the noCPAN.tgz
> version of SC 7.0.1?

http://www.slimdevices.com/downloads/current/

--

Michael

Kuben72
2008-05-20, 11:47
Hi Michael,

I tried it and it won't work. When I execute the command:

bin/sh /mnt/Musikdisk/slimnas/slimnas-install.sh

absolutly nothing happens.

Kuben72
2008-05-20, 12:08
Aaah forgot that FreeNAS is casesensitiv. Sorry Michael. It works like a charm.

Kuben72
2008-05-20, 13:13
Hi Michael,

Something is very wrong. I get this in the log file when I try to scan my library.

[08-05-20 22:09:45.9319] Slim::Control::Request::execute (1757) Error: While trying to run function coderef [Slim::Control::Queries::albumsQuery]: [Carp::Clan::__ANON__(): Error executing 'SELECT me.id, me.artwork, me.title, contributor.name, me.titlesort FROM albums me JOIN contributors contributor ON ( contributor.id = me.contributor ) GROUP BY me.id, me.artwork, me.title, contributor.name, me.titlesort ORDER BY concat('0', me.titlesort), me.disc LIMIT 2': DBD::mysql::st execute failed: Can't create/write to file '/ftmp/#sql_49e_0.MYI' (Errcode: 13) at /mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 771.
]
[08-05-20 22:09:45.9900] Slim::Schema::Storage::throw_exception (70) Error: Error executing 'SELECT me.id, me.name, me.namesort, me.musicmagic_mixable, me.namesearch, me.musicbrainz_id FROM contributors me LEFT JOIN contributor_album contributorAlbums ON ( contributorAlbums.contributor = me.id ) WHERE ( ( ( contributorAlbums.role IN ( ?, ? ) ) ) ) GROUP BY me.id ORDER BY me.namesort LIMIT 1': DBD::mysql::st execute failed: Can't create/write to file '/ftmp/#sql_49e_0.MYI' (Errcode: 13) at /mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 771.
[08-05-20 22:09:45.9934] Slim::Schema::Storage::throw_exception (70) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Schema/Storage.pm line 70)
frame 1: Slim::Schema::Storage::throw_exception (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 773)
frame 2: DBIx::Class::Storage::DBI::_execute (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 826)
frame 3: DBIx::Class::Storage::DBI::_select (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI/Cursor.pm line 79)
frame 4: DBIx::Class::Storage::DBI::Cursor::next (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Cursor.pm line 69)
frame 5: DBIx::Class::Cursor::all (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI/Cursor.pm line 115)
frame 6: DBIx::Class::Storage::DBI::Cursor::all (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/ResultSet.pm line 945)
frame 7: DBIx::Class::ResultSet::all (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/ResultSet.pm line 143)
frame 8: DBIx::Class::ResultSet::search (/mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/ResultSet.pm line 659)
frame 9: DBIx::Class::ResultSet::slice (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Queries.pm line 696)
frame 10: Slim::Control::Queries::artistsQuery (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Request.pm line 1753)
frame 11: (eval) (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Request.pm line 1753)
frame 12: Slim::Control::Request::execute (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Request.pm line 817)
frame 13: Slim::Control::Request::executeRequest (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Jive.pm line 115)
frame 14: Slim::Control::Jive::buildCaches (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Request.pm line 1930)
frame 15: (eval) (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Request.pm line 1930)
frame 16: Slim::Control::Request::notify (/mnt/Musikdisk/slimnas/squeezecenter/Slim/Control/Request.pm line 796)
frame 17: Slim::Control::Request::checkNotifications (/mnt/Musikdisk/slimnas/squeezecenter/slimserver.pl line 482)
frame 18: main::idle (/mnt/Musikdisk/slimnas/squeezecenter/slimserver.pl line 453)
frame 19: main::main (/mnt/Musikdisk/slimnas/squeezecenter/slimserver.pl line 1012)

[08-05-20 22:09:45.9963] Slim::Control::Request::execute (1757) Error: While trying to run function coderef [Slim::Control::Queries::artistsQuery]: [Carp::Clan::__ANON__(): Error executing 'SELECT me.id, me.name, me.namesort, me.musicmagic_mixable, me.namesearch, me.musicbrainz_id FROM contributors me LEFT JOIN contributor_album contributorAlbums ON ( contributorAlbums.contributor = me.id ) WHERE ( ( ( contributorAlbums.role IN ( ?, ? ) ) ) ) GROUP BY me.id ORDER BY me.namesort LIMIT 1': DBD::mysql::st execute failed: Can't create/write to file '/ftmp/#sql_49e_0.MYI' (Errcode: 13) at /mnt/Musikdisk/slimnas/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 771.
]

It was not possible to perform an upgrade, I had to delete everything and start all over again to get it as far as this.

heybirder
2008-05-20, 14:49
I have the same problem as Kuben72. And just when I had things mostly working. My only issue was 95% of my album art wasn't being loaded in (.mp3 contain the artwork) even though it works on the Windows install I had. Was hoping 7.0.1 would fix this and poof, broke.

mherger
2008-05-21, 00:36
> I had. Was hoping 7.0.1 would fix this and poof, broke.

What SlimNAS and FreeNAS versions are you using?

Michael

mherger
2008-05-21, 00:45
> Something is very wrong. I get this in the log file when I try to scan
> my library.

Could you please upload my.cnf (you should find it in the var/Cache folder
on your slimnas installation share).

> me.disc LIMIT 2': DBD::mysql::st execute failed: Can't create/write to
> file '/ftmp/#sql_49e_0.MYI' (Errcode: 13) at

MySQL shouldn't write to the main filesystem. /ftmp/ very likely can't be
written to as the root filesystem is only a few MBs large.

Michael

Kuben72
2008-05-21, 01:03
SlimNas 1.0 and FreeNAS 0.683

I tried to downgrade to an old version of 7.0.1 that worked for me before I upgraded to SLimNas 1.0 but that won't work either. So in my opinion the problem is in Slimnas 1.0 since that is the only thing that is changed in my setup

Kuben72
2008-05-21, 01:10
I will upload the file when I get home and can get to my server.

mherger
2008-05-21, 01:40
> opinion the problem is in Slimnas 1.0 since that is the only thing that
> is changed in my setup

So do I: I changed some configuration details for the cache and temporary folder to fix the .par extraction issue. I fear this broke your MySQL configuration (that's why I'd like to see your my.cnf).

--

Michael

tobyjug
2008-05-21, 04:33
I also have the same problem. Will my my.cnf do. If so here it is:-

# $Id$
#
# SqueezeCenter specific MySQL Server config.

[mysqld]
innodb
skip-locking

# If you want to have user permissions - you need to setup a valid user, and
# remove this line below.
skip-grant-tables

basedir = /mnt/Media/slimnas/squeezecenter/MySQL
datadir = /mnt/Media/slimnas/var/squeezecenter/Cache/MySQL
language = /mnt/Media/slimnas/squeezecenter/MySQL
port = 9092
socket = /mnt/Media/slimnas/var/squeezecenter/Cache/squeezecenter-mysql.sock
pid-file = /mnt/Media/slimnas/var/squeezecenter/Cache/squeezecenter-mysql.pid
log-error = /mnt/Media/slimnas/var/squeezecenter/Cache/mysql-error-log.txt
innodb_fast_shutdown = 1
max_connections = 4
thread_concurrency = 4
log-warnings = 0
bind-address = 127.0.0.1
default-character-set = utf8
default-collation = utf8_general_ci
key_buffer = 2M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K

[client]
socket = /mnt/Media/slimnas/var/squeezecenter/Cache/squeezecenter-mysql.sock


Peter

mherger
2008-05-21, 04:52
Thanks Peter! This helped a lot:

> basedir = /mnt/Media/slimnas/squeezecenter/MySQL
> datadir = /mnt/Media/slimnas/var/squeezecenter/Cache/MySQL

tmpdir isn't defined. Don't know why this worked for me, but there's a bug in usr/www/functions.inc:

change the following line:
$mytt = "{$config['slimserver']['rootfolder']}/squeezecenter/Cache/MySQL/my.tt";

to:
$mytt = "{$config['slimserver']['rootfolder']}/squeezecenter/MySQL/my.tt";

Then restart SC. This should fix the issue (though I can't test it right now).

I'm really sorry for this bug :-(. Should not have happened. Will try to create a new build tonight.

--

Michael

Kuben72
2008-05-21, 05:42
Hey don't be so hard on yourself. You can't test every form of installation (tak it from someone who has developed systems for 20 years). I am just glad that you want to take the effort to make SC run on FreeNAS. Without that I would be forced to invest my money in a new computer instead of the old one that runs things now. Which by the way is doing it perfectly.
But I think I will setup a WM image with FreeNAS/SlimNAS on it for test purposes so it won't affect my running installation.

Somehow it screwed up the SBC as well because it got downgraded to a version that won't connect to the SBR.

tobyjug
2008-05-21, 08:35
Fixed in less than 24 hours

Impressive

Thanks

Peter

Kuben72
2008-05-21, 10:06
Yep. That did the trick. Thanks Michael for your quick response.

I really need a test system. My whole music system depends on SC is running.

mherger
2008-05-21, 10:20
> Yep. That did the trick. Thanks Michael for your quick response.

Thanks for testing!

> I really need a test system. My whole music system depends on SC is
> running.

Yeah, VMs are great tools for this kind of stuff. Actually I don't have any physical FreeNAS installation at all, but about four virtual instances I use for development and testing.

--

Michael

Kuben72
2008-05-21, 10:59
I know this is a bit of topic but do you know which firmware the SBC and SBR should have for SC 7.0.1.

I can see that the SBR is using no 22 and the SBC is 7.0 r2097. But I mean that the SBR was no 23 and the SBC was 7.0 r24-something before upgrading. Am I wrong?

Kuben72
2008-05-21, 11:41
I found out what is wrong. The link you gave me to 7.0.1 is NOT 7.0.1 it is 7.0 17793. So where is 7.0.1 in the noCPAN flaover ?

mherger
2008-05-21, 12:00
> I found out what is wrong. The link you gave me to 7.0.1 is NOT 7.0.1 it
> is 7.0 17793. So where is 7.0.1 in the noCPAN flaover ?

It should be 7.0.1 by now - it wasn't when I posted it, sorry.

Michael

Kuben72
2008-05-21, 12:49
Yep. That did it. Now everything is as it was before. Thanks for your help.

mherger
2008-05-21, 14:49
> Yep. That did it. Now everything is as it was before.

No more than this? :-)

Please note that I've uploaded SlimNAS v1.0.1 which adds the above fix.

Michael

MrSlim
2008-05-21, 20:57
Hey Michael,
I'd like to commend you on your timing on fixing this issue.. Yesterday I had finally gotten around to attempting to set up SlimNAS on a box that I had installed FreeNAS on several months ago, and ran into this very issue of the library scanning. I was only getting 2 albums before it would konk out..
Anyway, that is fixed, and using squeezecenter-7.01 the scan went through fine in a matter of minutes.. Happy happy joy joy.. ;)

Being the hopeful type, I also tried the 7.1 nightly build (7.1-19938), but that one won't install (it always says Squeezecenter is not available)

mherger
2008-05-21, 22:30
> Being the hopeful type, I also tried the 7.1 nightly build (7.1-19938),
> but that one won't install (it always says Squeezecenter is not
> available)

Argh... we updated some of the required modules. This might be breaking
7.1. What do you see in server.log?

If this is the case, I'll have to create a different build for 7.1 :-(.
Don't expect this to happen too soon...

Michael