[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache, PHP and Mysql on NSLU2



I wanted to reply to the list the resolution or at least what I think
is the resolution.

I decided to redo the entire install and in doing so and installing
one package at a time I was able to force apache, php5, mysql and some
php5-modules like php5-gd and php5-imagick to install but only after I
corrected an issue I had with not having any swap space initialize on
boot.

Randomly intermingled with the other errors listed in this thread I
would get an out of memory message.  I thought it might be that I was
just skirting close to the limit of what this little slug could do
with php, apache, mysql, samba, openssh and proftpd installed and
running.  When I did fire them all up the system did crawl and
sessions would 'hangup' for no apparent reason.  With out swap I was
apparently literally running out of ram and causing the system to just
giveup.

On 6/23/07, David Fokkema <dfokkema@ileos.nl> wrote:
On Sat, 2007-06-23 at 15:24 -0400, Aaron Klein wrote:
> Ok to catch up.  Below is the output I get when I try to reinstall
> debconf and perl.
>
> SLUG:/home/aaron# apt-get install --reinstall debconf perl
> Reading package lists... Done
> Building dependency tree... Done
> 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 2 not upgraded.
> Need to get 3558kB of archives.
> After unpacking 0B of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Get:1 http://ftp.egr.msu.edu etch/main debconf 1.5.11 [146kB]
> Get:2 http://ftp.egr.msu.edu etch/main perl 5.8.8-7 [3413kB]
> Fetched 3558kB in 34s (103kB/s)
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33, <> line 2.
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48, <> line 2.
> Can't fork at /usr/sbin/dpkg-preconfigure line 67, <> line 2.
> (Reading database ... 21927 files and directories currently installed.)
> Preparing to replace debconf 1.5.11 (using .../debconf_1.5.11_all.deb) ...
> Unpacking replacement debconf ...
> Preparing to replace perl 5.8.8-7 (using .../archives/perl_5.8.8-7_arm.deb) ...
> Unpacking replacement perl ...
> Setting up debconf (1.5.11) ...
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 33.
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm line 48.
> open2: fork failed: Cannot allocate memory at
> /usr/share/perl5/Debconf/ConfModule.pm line 58
> dpkg: error processing debconf (--configure):
>  subprocess post-installation script returned error exit status 9
> Setting up perl (5.8.8-7) ...
>
> Errors were encountered while processing:
>  debconf
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> The two lines in question of /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm
>
> Line 33                my ($rows)=`stty -a 2>/dev/null` =~ m/rows (\d+)/s;
> Line 48                      my ($cols)=`stty -a 2>/dev/null` =~ m/columns (\d+)/s;
>
> The entire files contents below...  Its everything between the **Start
> and **End of file lines.  The file ends on line 54 with a 1
>
> ** Start of File**
> #!/usr/bin/perl -w
> # This file was preprocessed, do not edit!
>
>
> package Debconf::FrontEnd::ScreenSize;
> use strict;
> use Debconf::Gettext;
> use base qw(Debconf::FrontEnd);
>
>
> sub init {
>       my $this=shift;
>
>       $this->SUPER::init(@_);
>
>       $this->resize; # Get current screen size.
>       $SIG{WINCH}=sub {
>               if (defined $this) {
>                       $this->resize;
>               }
>       };
> }
>
>
> sub resize {
>       my $this=shift;
>
>       if (exists $ENV{LINES}) {
>               $this->screenheight($ENV{'LINES'});
>               $this->screenheight_guessed(0);
>       }
>       else {
>               my ($rows)=`stty -a 2>/dev/null` =~ m/rows (\d+)/s;
>               if ($rows) {
>                       $this->screenheight($rows);
>                       $this->screenheight_guessed(0);
>               }
>               else {
>                       $this->screenheight(25);
>                       $this->screenheight_guessed(1);
>               }
>       }
>
>       if (exists $ENV{COLUMNS}) {
>               $this->screenwidth($ENV{'COLUMNS'});
>       }
>       else {
>               my ($cols)=`stty -a 2>/dev/null` =~ m/columns (\d+)/s;
>               $this->screenwidth($cols || 80);
>       }
> }
>
>
> 1
> **END OF FILE**

Looks the same to me...

I'm out of ideas. I suggest starting a new thread with a subject
specifying this problem and take it from there. It has nothing to do
with apache, php and mysql anymore.

I have the same versions of debconf and perl and I don't think these
specific files are corrupted. You could try:

for i in `dpkg -L debconf`; do md5sum $i; done 2>/dev/null | md5sum -

which calculates an md5sum for all files in the debconf package and then
(to save bandwidth, ;-) it calculates an md5sum of that output. My sum
is:

5af70b74a53dcb587452c54aab47b733

Since I've never tried anything like this, your sum might be different
and this might be totally okay. However, I believe your sum should be
the same if your package files are the same. I don't think they vary
from system to system, but there are a few config files included. So
beware...

Good luck,

David




>
> On 6/23/07, David Fokkema <dfokkema@ileos.nl> wrote:
> > On Sat, 2007-06-23 at 10:07 -0400, Aaron Klein wrote:
> > > 1) I first tired to install apache, php and mysql all in one command
> > > and it bombed out so I started doing it one at a time.
> >
> > ...And it was only mysql which bailed out. Strange!
> >
> > > 2) dont know I have seen others with simular error messages post on
> > > the web for slugs and non slugs but the answer has always been to run
> > > apt-get -f install and it fixes it.
> >
> > Yes, but I don't think those are the same errors. For them, dpkg -l
> > probably told them a package was half-installed or something like that.
> >
> > > 3) Oddly enough I dont appear to have a file named ScreenSize.pm in
> > > that folder.  Here is the contents of that folder.  I have it two
> > > different formats because I know some folks see it better as a list
> > > than in columns.
> > >
> > > SLUG:/usr/share/perl5/Debconf# ls
> > > AutoSelect.pm  Config.pm    Element      Format.pm    Iterator.pm  Template
> > > Base.pm        Db.pm        Element.pm   FrontEnd     Log.pm       Template.pm
> > > Client         DbDriver     Encoding.pm  FrontEnd.pm  Priority.pm  TmpFile.pm
> > > ConfModule.pm  DbDriver.pm  Format       Gettext.pm   Question.pm
> >
> > <snip>
> >
> > <sigh>
> > me again! It should be in /usr/share/perl5/Debconf/FrontEnd/ ...
> > </sigh>
> >
> > David
> >
> >
> > > On 6/23/07, David Fokkema <dfokkema@ileos.nl> wrote:
> > > > On Sat, 2007-06-23 at 08:59 -0400, Aaron Klein wrote:
> > > > > I used the Debian/NSLU2 Stable 4.0r0 firmware.
> > > >
> > > > Ok, then it _should_ work. So you've hit a very strange bug or file
> > > > corruption resulting in strange behaviour or something like that.
> > > >
> > > > It would be very helpful to know a few things:
> > > >
> > > > 1) When and how did your problem start and do you see it when you
> > > > install other packages as well?
> > > > 2) Are there other people who hit the same bug when they install
> > > > mysql-server-5.0?
> > > > 3) What are the contents of your /usr/share/perl5/Debconf/ScreenSize.pm
> > > > at lines 33 and 48? Do they match mine? (probably...)
> > > >
> > > > I installed etch before release and upgraded mysql-server alone several
> > > > times. That's not the same as installing it cleanly. I have never
> > > > encountered that bug, but that might say nothing at all...
> > > >
> > > > Luck,
> > > >
> > > > David
> > > >
> > > >
> > > >
> > > >
>
>


--
To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org




--
Have pets?  Get the help you need from the Pet Advice Network.
We have 6 websites ready to help you.  http://www.petadvice.net



Reply to: