NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
vesper76
Dec 07, 2009Aspirant
Somehow broke logger, thereby breaking everything
For background on how I somehow got to this point:
viewtopic.php?f=22&t=36105&start=0
I'm moving to this forum, because it's essentially a different question than I started with.
The short version: My ReadyNAS Pro was working fine. Then I tried to update Squeezebox Server. Now I can't start Squeezebox Server, can't start Mysql, and can't do anything via apt-get. Plus probably other stuff.
The problem seems to be that BusyBox's 'logger' command doesn't accept the -i option, which the normal 'logger' command does accept. And /etc/init.d/mysql expects to use logger -i. As do apt-get postinstall scripts. And probably a lot of other things. So they all fail.
Does anyone know how this might have happened to me? And how do I un-frak myself?
Thanks in advance.
Adam
viewtopic.php?f=22&t=36105&start=0
I'm moving to this forum, because it's essentially a different question than I started with.
The short version: My ReadyNAS Pro was working fine. Then I tried to update Squeezebox Server. Now I can't start Squeezebox Server, can't start Mysql, and can't do anything via apt-get. Plus probably other stuff.
The problem seems to be that BusyBox's 'logger' command doesn't accept the -i option, which the normal 'logger' command does accept. And /etc/init.d/mysql expects to use logger -i. As do apt-get postinstall scripts. And probably a lot of other things. So they all fail.
Does anyone know how this might have happened to me? And how do I un-frak myself?
Thanks in advance.
Adam
39 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredUsing the community add-ons provided e.g. the ones by super-poussin is a good idea. Installing not using add-ons on a production system is not a good idea if you haven't tested it out on another machine.
I'd backup your data, do a config backup, factory default and restore config backup, then restore backup of data. - vesper76AspirantI don't have another 2TB disk to back up to, so I can't really reset to factory default.
I tried to do an OS reinstall (as shown here: faq.php#How_do_I_re-install_the_firmware%3F), but it didn't solve the problem. It "worked", I think -- passwords are reset, some file dates are new -- but it didn't fix the problem at all.
To repeat, I get this error all the time:
Setting up mysql-server-5.0 (5.0.32-7etch8) ...
Stopping MySQL database server: mysqld.
logger: invalid option -- i
BusyBox v1.14.3 (2009-08-12 21:37:19 UTC) multi-call binary
Usage: logger [OPTION]... [MESSAGE]
Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.
Options:
-s Log to stderr as well as the system log
-t TAG Log using the specified tag (defaults to user name)
-p PRIO Priority (numeric or facility.level pair)
ATTENTION: An error has occured. More info is in the syslog!
(That particular output is from an apt-get upgrade attempt, but I get the same thing with /etc/init.d/mysql start.)
And that means Squeezebox Server won't work.
Does anyone else have an idea for how to rescue my system? Or is it time to go buy another NAS box to backup my ReadyNAS to.
Thanks.
Adam - Dwarf1AspirantHi vesper76,
Did you solve your problem ?
I have got exactly the same problem, mysql can't start because the logger don't know the "-i" argument.
If you solved your problem, can you tell me how ?
If someone has got a solution ...
thanks
@++
Dwarf - dbott67GuideA firmware re-installation will likely fix the problem. This does not affect your data, however, it will reset your admin password to 'netgear1' and reset the network settings to default settings (DHCP, no jumbo frames, no teaming, etc.):
faq.php#How_do_I_re-install_the_firmware%3F - Dwarf1Aspirant
dbott67 wrote: A firmware re-installation will likely fix the problem. This does not affect your data, however, it will reset your admin password to 'netgear1' and reset the network settings to default settings (DHCP, no jumbo frames, no teaming, etc.):
http://www.readynas.com/forum/faq.php#H ... irmware%3F
Thanks dbott67 for the tip,
Vesper76 tried this method and the problem was not solved.
I'll try too ... the luck might be with me :)
@++
Dwarf
Edit:
I continued some investigations, and I think the problem comes from the BusyBox tool installed in the ReadyNAS Pro.
Here is the output of the Busybox command on my RNDP.root@Elrond:/ # busybox
BusyBox v1.14.3 (2009-08-12 21:37:19 UTC) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!
Currently defined functions:
less, logger, lzmacat, md5sum, readahead, telnet, udhcpc, udhcpd, unlzma, usleep, vi
I tried to find a new version of the busybox tool with apt-get but no luck.
If the Jedi council reads me, can you help me ? Do you know if a new version of the busybox tool has been released and how to install it ??
@++
Dwarf - super_poussinVirtuosoMy friend dwarf there's always a solution :
Vador:/Develop/utils-src/# ./misc-utils/logger --help
./misc-utils/logger: invalid option -- -
usage: logger [-is] [-f file] [-p pri] [-t tag] [-u socket] [ message ... ] - Dwarf1AspirantHi Poussin,
Thanks for your answer :)
I see you've got on your NAS a directory " /Develop/utils-src ", I don't have this directory on mine.
Must I suppose you've donwloaded the SDK of the readynas and that you used it to link old logger to this one ??
Recently, I've donwloaded and unzip the GPL sources of firmware 4.2.8 (GPL for 4.2.9 isn't released yet).
I can see there are 2 versions of busybox, "BusyBox 1.14.3" and "BusyBox 1.7.0"
Do you think I could recompile the version 1.7.0 logger ??
Thanks for all :)
@++
Dwarf - super_poussinVirtuosothere's another logger, which is a part of bsdutils :)
I can make a tar of the new logger for you :)
/Develop/ is where I store all my dev and addons :)
I will try to compile busybox and let you know - Dwarf1AspirantOh yeah ... that would be great !
You know my email :)
Thanks. - Dwarf1AspirantPoussin, You're the man !
I've received your mail with the new version of "logger", have copied it to /usr/bin after having renamed the existing symbolik link
After that I've tried to start MySQL but didn't work ... doh ! No error message from logger (that's the good point :p), but just some permissions to fix on the right directories.
After that MySQL starts !
I still have a problem with a missing file /etc/mysql/debian-start, but MySQL starts now !
Thanks again !
@++
Dwarf
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!