Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
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?
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
/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
What shadow version is installed? I think there was a problem with an earlier version (unfortunately, I don't remember the details).
root@bob:~# ls /ffp/var/packages/shadow* /ffp/var/packages/shadow-4.1.2.1-1
Offline
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
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
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 serverI 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
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
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 mysqlMaybe 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
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
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.
Offline
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
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
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
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