DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#26 2008-09-30 10:48:31

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

zeroday wrote:

very wierd
1 device (CH3SNAS) ok

Thanks for reporting.

zeroday wrote:

2nd gives this error
/mnt/HD_a2/ffp/start # sh /ffp/start/slimserver.sh start
Adding slimserver user
useradd: invalid numeric argument 'slimserver'
su: unknown id: slimserver
/mnt/HD_a2/ffp/start #

The slimserver start script creates both slimserver group and user. Isn't there a message 'Adding slimserver group' before the slimserver user message?

Code:

root@bob:~# grep -w slimserver /etc/group
slimserver:x:612:
root@bob:~# grep -w slimserver /etc/passwd
slimserver:x:612:612::/no/where:/bin/false

Offline

 

#27 2008-09-30 12:44:45

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

/mnt/HD_a2/ffp/start # grep -w slimserver /etc/group
slimserver:x:612:

/mnt/HD_a2/ffp/start # grep -w slimserver /etc/passwd
/mnt/HD_a2/ffp/start #


no output on last part

starting only shows
/mnt/HD_a2/ffp/start # sh slimserver.sh start
Adding slimserver user
useradd: invalid numeric argument 'slimserver'
su: unknown id: slimserver
/mnt/HD_a2/ffp/start #


removing group (by webinterface)

/mnt/HD_a2/ffp/start # sh slimserver.sh start
Adding slimserver group
Adding slimserver user
useradd: invalid numeric argument 'slimserver'
su: unknown id: slimserver
/mnt/HD_a2/ffp/start #

Last edited by zeroday (2008-09-30 12:46:32)

Offline

 

#28 2008-09-30 12:55:52

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

What shadow version is installed? I think there was a problem with an earlier version (unfortunately, I don't remember the details).

Code:

root@bob:~# ls /ffp/var/packages/shadow*
/ffp/var/packages/shadow-4.1.2.1-1

Offline

 

#29 2008-09-30 12:58:23

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

What shadow version is installed? I think there was a problem with an earlier version (unfortunately, I don't remember the details).

Code:

root@bob:~# ls /ffp/var/packages/shadow*
/ffp/var/packages/shadow-4.1.2.1-1

/mnt/HD_a2/ffp/start # ls /ffp/var/packages/shadow*
/ffp/var/packages/shadow-4.0.18.2-2

packages today installed from your server

/mnt/HD_a2/ffp/packages # funpkg -u shadow*
Installing package shadow-4.1.2.1-1 ...
Removing package shadow-4.0.18.2-2 ...
Removing file /mnt/HD_a2/ffp/lib/libshadow.so.0.0.0
Removing file /mnt/HD_a2/ffp/lib/libshadow.la
Removing file /mnt/HD_a2/ffp/lib/libshadow.a
Removing link /mnt/HD_a2/ffp/lib/libshadow.so.0
Removing link /mnt/HD_a2/ffp/lib/libshadow.so
/mnt/HD_a2/ffp/packages # cd ..
/mnt/HD_a2/ffp # cd ..
/ # cd ffp
/mnt/HD_a2/ffp # cd start
/mnt/HD_a2/ffp/start # sh slimserver.sh start
Adding slimserver user
useradd: unknown GID 1000


now checking if it's working ;-)

Last edited by zeroday (2008-09-30 13:48:11)

Offline

 

#30 2008-09-30 13:02:39

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

zeroday wrote:

/mnt/HD_a2/ffp/start # ls /ffp/var/packages/shadow*
/ffp/var/packages/shadow-4.0.18.2-2

packages today installed from your server

I updated shadow on Aug 27. Please try the latest version.

Offline

 

#31 2008-09-30 13:49:37

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

zeroday wrote:

/mnt/HD_a2/ffp/start # ls /ffp/var/packages/shadow*
/ffp/var/packages/shadow-4.0.18.2-2

packages today installed from your server

I updated shadow on Aug 27. Please try the latest version.

mmm wierd.. I grabbed the packages this morning after the squeeze package installation
rsync -av inreto.de::dns323/fun-plug/0.5/packages .
after I noticed I had no mysql

now with the update no problem .. it's working

Offline

 

#32 2008-09-30 14:01:44

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

zeroday wrote:

mmm wierd.. I grabbed the packages this morning after the squeeze package installation
rsync -av inreto.de::dns323/fun-plug/0.5/packages .
after I noticed I had no mysql

Maybe you installed from a different directory with older packages? Also, if you re-download to the same directory, be sure to add '--delete' to your rsync command, so that it removes old packages.

Anyway, glad it works.

Offline

 

#33 2008-09-30 15:08:53

zeroday
Member
Registered: 2007-07-01
Posts: 136
Website

Re: Walkthrough guide for slim center

fonz wrote:

zeroday wrote:

mmm wierd.. I grabbed the packages this morning after the squeeze package installation
rsync -av inreto.de::dns323/fun-plug/0.5/packages .
after I noticed I had no mysql

Maybe you installed from a different directory with older packages? Also, if you re-download to the same directory, be sure to add '--delete' to your rsync command, so that it removes old packages.

Anyway, glad it works.

yep .. installation of 2 hours downsized to about 10 minutes ;-)

Offline

 

#34 2009-05-21 17:28:57

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Walkthrough guide for slim center

fonz, i managed to install all the perl packages and the squeezecenter-7.3.2-1 package from the extra folder on your web server and can access the web interface. However, I found that whenever I do a scan on my music folder (only have like 1000 songs max), squeezecenter will crash after some 15-30mins. The last message in the scanner log will be something like this:

[09-05-21 21:38:18.7904] Slim::Schema::Storage::throw_exception (70) Error: DBI Connection failed: DBI connect('database=slimserver','slimserver',...) failed: Can't connect to local MySQL server through socket '/ffp/var/run/mysql/mysql.sock' (2) at /mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 652
[09-05-21 21:38:18.7987] Slim::Schema::Storage::throw_exception (70) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema/Storage.pm line 70)
   frame 1: Slim::Schema::Storage::throw_exception (/mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 658)
   frame 2: DBIx::Class::Storage::DBI::_connect (/mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 616)
   frame 3: DBIx::Class::Storage::DBI::_populate_dbh (/mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 543)
   frame 4: DBIx::Class::Storage::DBI::ensure_connected (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema/Storage.pm line 29)
   frame 5: (eval) (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema/Storage.pm line 29)
   frame 6: Slim::Schema::Storage::dbh (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema.pm line 1493)
   frame 7: (eval) (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema.pm line 1493)
   frame 8: Slim::Schema::forceCommit (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 351)
   frame 9: main::cleanup (/mnt/usb/ffp/lib/squeezecenter/Slim/bootstrap.pm line 378)
   frame 10: Slim::bootstrap::sigint (/mnt/usb/ffp/lib/squeezecenter/Slim/bootstrap.pm line 412)
   frame 11: Slim::bootstrap::theEND (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 358)
   frame 12: main::END (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 0)
   frame 13: (eval) (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 0)

[09-05-21 21:38:19.2347] Slim::Schema::forceCommit (1496) Warning: Couldn't commit transactions to DB: [DBD::mysql::db commit failed: MySQL server has gone away at /mnt/usb/ffp/lib/squeezecenter/Slim/Schema.pm line 1493.
]
[09-05-21 21:38:19.2590] Slim::Schema::Storage::throw_exception (70) Error: DBI Connection failed: DBI connect('database=slimserver','slimserver',...) failed: Can't connect to local MySQL server through socket '/ffp/var/run/mysql/mysql.sock' (2) at /mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 652
[09-05-21 21:38:19.2674] Slim::Schema::Storage::throw_exception (70) Backtrace:

   frame 0: Slim::Utils::Log::logBacktrace (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema/Storage.pm line 70)
   frame 1: Slim::Schema::Storage::throw_exception (/mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 658)
   frame 2: DBIx::Class::Storage::DBI::_connect (/mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 616)
   frame 3: DBIx::Class::Storage::DBI::_populate_dbh (/mnt/usb/ffp/lib/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 543)
   frame 4: DBIx::Class::Storage::DBI::ensure_connected (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema/Storage.pm line 29)
   frame 5: (eval) (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema/Storage.pm line 29)
   frame 6: Slim::Schema::Storage::dbh (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema.pm line 256)
   frame 7: (eval) (/mnt/usb/ffp/lib/squeezecenter/Slim/Schema.pm line 256)
   frame 8: Slim::Schema::disconnect (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 352)
   frame 9: main::cleanup (/mnt/usb/ffp/lib/squeezecenter/Slim/bootstrap.pm line 378)
   frame 10: Slim::bootstrap::sigint (/mnt/usb/ffp/lib/squeezecenter/Slim/bootstrap.pm line 412)
   frame 11: Slim::bootstrap::theEND (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 358)
   frame 12: main::END (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 0)
   frame 13: (eval) (/mnt/usb/ffp/lib/squeezecenter/scanner.pl line 0)

Any ideas what is wrong with my setup?

Offline

 

#35 2009-05-21 17:46:57

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Walkthrough guide for slim center

bfg100k wrote:

Any ideas what is wrong with my setup?

I don't know what the exact problem is. Maybe it's because there's so little memory. In the squeezecenter funplug, I include a mysql config that uses a lot less memory than the default config. It's attached. I suggest you

1. stop squeezecenter and mysql
2. install the attached config file in /ffp/etc
3. rm -rf /ffp/var/mysql/*
4. rerun mysql_install_db
5. start mysql
6. run /ffp/sbin/reset-slimserver-database.sh
7. sh /ffp/start/slimserver.sh start

then give it a minute or five to settle before connecting to the web interface.


Attachments:
Attachment Icon my.cnf, Size: 660 bytes, Downloads: 341

Offline

 

#36 2009-05-21 20:56:04

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Walkthrough guide for slim center

Hi Fonz,

Thanks for the prompt reply. I am already using most of the settings you have other than "skip-networking" and "skip-bdb". I'm guessing my problem could be timeout on the slimserver side as only slimserver crashed while mysql still runs fine. Oh, another point to note is that I have the db files stored on my USB partition rather than the harddisk. I read somewhere that USB writes are slower than HDD hence maybe that could be the problem?

[EDIT: Looks like my problem went away when I configure slimserver to use TCP/IP instead of named pipes. i.e. I changed the dbsource to "dbi:mysql:hostname=localhost;port=3306". Also, I found a way to reduce the amount of memory used. Turn off those plugins that are not relevant to you! I turned all the online music services off and my memory usage dropped from 135% to 113%.]

Last edited by bfg100k (2009-05-24 17:45:32)

Offline

 

#37 2009-05-24 17:47:41

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Walkthrough guide for slim center

Ok.. two problems:

1) When the device is off, my display shows only the time. How do I get it to show both the date AND time?

[edit: found the solution to this one. it has to do with the font used for the standby state. change it to Standard Narrow and you will get the date showing on top of the time.]

2) On the device, the display is unable to show chinese/jap/korean characters although they show up just fine on the web interface. Any help?

Last edited by bfg100k (2009-05-29 13:25:00)

Offline

 

#38 2009-05-25 17:53:12

Thiam
Member
Registered: 2007-06-18
Posts: 43

Re: Walkthrough guide for slim center

bfg100k wrote:

Oh, another point to note is that I have the db files stored on my USB partition rather than the harddisk. I read somewhere that USB writes are slower than HDD hence maybe that could be the problem?

[EDIT: Looks like my problem went away when I configure slimserver to use TCP/IP instead of named pipes. i.e. I changed the dbsource to "dbi:mysql:hostname=localhost;port=3306". Also, I found a way to reduce the amount of memory used. Turn off those plugins that are not relevant to you! I turned all the online music services off and my memory usage dropped from 135% to 113%.]

Thank you for those hints.
SqueezeCenter on my DNS-323 struggles with the low memory conditions too, so any advice is appreciated. I've tried some diffent configs, gathered by combining several posts on this forum.

About 8000 audio files on the NAS, only a fraction has cover art at the moment.

1. FFP & SC on the HD
SqueezeCenter itself is stable, but the scanner suffers from disconnects about 30% of the time.
Delete database & complete rescan time: about 2 hours 30 minutes.
HD's usually do not spin down because of constant swapping.

2. FFP & SC + Swap on USB.
Very slow and not stable at all. The nightly scan would bring down everything on the NAS about 50% of the time. Even holding te power button didn't shut it down.

3. FFP & SC on HD, Swap on USB (running like this at the moment)
SqueezeCenter seems to run well, the nightly scan still hangs the unit once a week.
Scanner sometimes disconnects from database, but not frequent.
Delete database & complete rescan time: over 5 hours (2 for audio, 3 for cover art)
HD's do spin down after 5 minutes when it's not streaming music.

At the moment, I disabled the nightly scan. I'll scan manually before going to sleep when I add files to the unit.
Another issue: Scanning with the faster settings 'Search for new and deleted files' never completes. The last step keeps running and slows down the entire unit.

I'd like to try moving the ramdisk from RAM to USB. This might reduce swapping.
The steps to do this are not yet clear to me. (especially getting the ramdisk image file)
Is there a way to check actual I/O speeds from withing the OS? I'd like to compare the transfer rate of the USB stick versus the HD's. The USB stick feels very slow.

Offline

 

#39 2009-05-29 13:11:10

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: Walkthrough guide for slim center

are you using named pipes to access the DB? If so, change it to TCP/IP. I no longer get errors while scanning (full or just new files only) since that changed. Note that my FFP + SC are on USB while swap is on HD. I also have a collection of just 1500 songs.

BTW, swap on USB is not a good idea IMHO since flash drives have a limited write cycle and are much slower than HDD

Thiam wrote:

bfg100k wrote:

Oh, another point to note is that I have the db files stored on my USB partition rather than the harddisk. I read somewhere that USB writes are slower than HDD hence maybe that could be the problem?

[EDIT: Looks like my problem went away when I configure slimserver to use TCP/IP instead of named pipes. i.e. I changed the dbsource to "dbi:mysql:hostname=localhost;port=3306". Also, I found a way to reduce the amount of memory used. Turn off those plugins that are not relevant to you! I turned all the online music services off and my memory usage dropped from 135% to 113%.]

Thank you for those hints.
SqueezeCenter on my DNS-323 struggles with the low memory conditions too, so any advice is appreciated. I've tried some diffent configs, gathered by combining several posts on this forum.

About 8000 audio files on the NAS, only a fraction has cover art at the moment.

1. FFP & SC on the HD
SqueezeCenter itself is stable, but the scanner suffers from disconnects about 30% of the time.
Delete database & complete rescan time: about 2 hours 30 minutes.
HD's usually do not spin down because of constant swapping.

2. FFP & SC + Swap on USB.
Very slow and not stable at all. The nightly scan would bring down everything on the NAS about 50% of the time. Even holding te power button didn't shut it down.

3. FFP & SC on HD, Swap on USB (running like this at the moment)
SqueezeCenter seems to run well, the nightly scan still hangs the unit once a week.
Scanner sometimes disconnects from database, but not frequent.
Delete database & complete rescan time: over 5 hours (2 for audio, 3 for cover art)
HD's do spin down after 5 minutes when it's not streaming music.

At the moment, I disabled the nightly scan. I'll scan manually before going to sleep when I add files to the unit.
Another issue: Scanning with the faster settings 'Search for new and deleted files' never completes. The last step keeps running and slows down the entire unit.

I'd like to try moving the ramdisk from RAM to USB. This might reduce swapping.
The steps to do this are not yet clear to me. (especially getting the ramdisk image file)
Is there a way to check actual I/O speeds from withing the OS? I'd like to compare the transfer rate of the USB stick versus the HD's. The USB stick feels very slow.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB