* [Buildroot] httpd question
@ 2008-05-10 1:53 hartleys
2008-05-10 4:48 ` Tony Borras
2008-05-10 7:59 ` Alexander Kriegisch
0 siblings, 2 replies; 13+ messages in thread
From: hartleys @ 2008-05-10 1:53 UTC (permalink / raw)
To: buildroot
Hello all,
I enabled the webif package and httpd in buildroot. Everything builds ok
and my system boots. But when I try to access the web interface I get
the following message in my browser:
httpd: bind: Address already in use
If I start the httpd service on a different port (8080) it works fine.
For the life of me I can't figure out what might already be bound to
port 80. Any ideas?
Thanks,
Hartley
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-10 1:53 [Buildroot] httpd question hartleys
@ 2008-05-10 4:48 ` Tony Borras
2008-05-12 16:15 ` hartleys
2008-05-10 7:59 ` Alexander Kriegisch
1 sibling, 1 reply; 13+ messages in thread
From: Tony Borras @ 2008-05-10 4:48 UTC (permalink / raw)
To: buildroot
On Fri, 9 May 2008 21:53:34 -0400
"hartleys" <hartleys@visionengravers.com> wrote:
> when I try to access the web interface I get
> the following message in my browser:
>
> httpd: bind: Address already in use
>
> For the life of me I can't figure out what might already be
> bound to port 80. Any ideas?
try: nmap -p80 localhost
or instead of localhost the name or ip of your host.
TonyB
There are 10 types of people in this world, those that read
binary and those who don't!
--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb at sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-10 1:53 [Buildroot] httpd question hartleys
2008-05-10 4:48 ` Tony Borras
@ 2008-05-10 7:59 ` Alexander Kriegisch
2008-05-12 16:01 ` hartleys
2008-05-12 16:50 ` hartleys
1 sibling, 2 replies; 13+ messages in thread
From: Alexander Kriegisch @ 2008-05-10 7:59 UTC (permalink / raw)
To: buildroot
Sounds like you have another process, probably another web server,
listening on that port. Find out which process that is by issuing these
commands:
# Is port 80 listened at?
netstat -ln |grep ":80"
# If so, by whom? (Hopefully your have 'lsof' installed)
lsof -i :80
Regards
--
Alexander Kriegisch
Certified ScrumMaster
http://scrum-master.de
hartleys:
> I enabled the webif package and httpd in buildroot. Everything builds
> ok and my system boots. But when I try to access the web interface I
> get the following message in my browser:
>
> httpd: bind: Address already in use
>
> If I start the httpd service on a different port (8080) it works
> fine.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-10 7:59 ` Alexander Kriegisch
@ 2008-05-12 16:01 ` hartleys
2008-05-12 16:50 ` hartleys
1 sibling, 0 replies; 13+ messages in thread
From: hartleys @ 2008-05-12 16:01 UTC (permalink / raw)
To: buildroot
Looks like I do have another process on port 80. Not sure who or how at
this point.
/ # netstat -ln | grep ":80"
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
Strange thing is I have a couple ports connected to 0.0.0.0 and in the
LISTEN state. They are 37, 7, 9, 13, 80, 19, and 13.
Right now I don't have 'lsof' installed. I tried enabling it in my
buildroot configuration but can't get the source to download. I keep
getting an "Error in server greeting." message when buildroot tries to
wget the package.
Any other ideas. Either for my problem with port 80 or how to go about
getting the lsof package?
Thanks,
Hartley
Alexander Kriegisch:
> Sounds like you have another process, probably another web server,
> listening on that port. Find out which process that is by issuing
> these commands:
> # Is port 80 listened at?
> netstat -ln |grep ":80"
> # If so, by whom? (Hopefully your have 'lsof' installed)
> lsof -i :80
> hartleys:
> > I enabled the webif package and httpd in buildroot. Everything
builds
> > ok and my system boots. But when I try to access the web interface I
> > get the following message in my browser:
> >
> > httpd: bind: Address already in use
> >
> > If I start the httpd service on a different port (8080) it works
> > fine.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-10 4:48 ` Tony Borras
@ 2008-05-12 16:15 ` hartleys
2008-05-12 16:54 ` Rex Ashbaugh
0 siblings, 1 reply; 13+ messages in thread
From: hartleys @ 2008-05-12 16:15 UTC (permalink / raw)
To: buildroot
On Friday, May 09, 2008 9:48 PM, Tony Borras wrote:
> > when I try to access the web interface I get the following message
in
> > my browser:
> >
> > httpd: bind: Address already in use
> >
> > For the life of me I can't figure out what might already be bound to
> > port 80. Any ideas?
>
> try: nmap -p80 localhost
>
> or instead of localhost the name or ip of your host.
I don't think nmap is available as a package in buildroot. At least I
can't locate it.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-10 7:59 ` Alexander Kriegisch
2008-05-12 16:01 ` hartleys
@ 2008-05-12 16:50 ` hartleys
2008-05-13 0:45 ` Hamish Moffatt
1 sibling, 1 reply; 13+ messages in thread
From: hartleys @ 2008-05-12 16:50 UTC (permalink / raw)
To: buildroot
On Saturday, May 10, 2008 1:00 AM, Alexander Kriegisch wrote:
> Sounds like you have another process, probably another web server,
> listening on that port. Find out which process that is by issuing
> these commands:
> # Is port 80 listened at?
> netstat -ln |grep ":80"
> # If so, by whom? (Hopefully your have 'lsof' installed)
> lsof -i :80
Ok. Got lsof to download and compile. I had to change the ftp site.
/ # netstat -ln |grep ":80"
tcp 0 0 0.0.0.0:80 0.0.0.0:*
LISTEN
/ # lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
inetd 372 root 15u inet 82 TCP *:www (LISTEN)
/ #
I'm not really sure what this output means. Can you offer any ideas?
Thanks,
Hartley
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-12 16:15 ` hartleys
@ 2008-05-12 16:54 ` Rex Ashbaugh
2008-05-12 17:26 ` hartleys
0 siblings, 1 reply; 13+ messages in thread
From: Rex Ashbaugh @ 2008-05-12 16:54 UTC (permalink / raw)
To: buildroot
what scripts are in your /etc/init.d/ directory?
do you have the inetd daemon installed?
-Rex
On Mon, May 12, 2008 at 9:15 AM, hartleys <hartleys@visionengravers.com>
wrote:
> On Friday, May 09, 2008 9:48 PM, Tony Borras wrote:
> > > when I try to access the web interface I get the following message
> in
> > > my browser:
> > >
> > > httpd: bind: Address already in use
> > >
> > > For the life of me I can't figure out what might already be bound to
>
> > > port 80. Any ideas?
> >
> > try: nmap -p80 localhost
> >
> > or instead of localhost the name or ip of your host.
>
> I don't think nmap is available as a package in buildroot. At least I
> can't locate it.
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080512/e9f69d3b/attachment.htm
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-12 16:54 ` Rex Ashbaugh
@ 2008-05-12 17:26 ` hartleys
0 siblings, 0 replies; 13+ messages in thread
From: hartleys @ 2008-05-12 17:26 UTC (permalink / raw)
To: buildroot
I don't actually have a /etc/init.d/ directory. There is only one
script (/etc/rc.sysinit) that gets called at boot time.
My /etc/inittab starts up the system with a couple mounts and setting up
lo then calling the rc.sysinit script.
# /etc/inittab
# Startup the system
::sysinit:/bin/mount -t proc none /proc
::sysinit:/bin/mount -t usbfs usbfs /proc/bus/usb
::sysinit:/bin/mount -t sysfs none /sys
::sysinit:/bin/mount -t devpts devpts /dev/pts
::sysinit:/sbin/ifconfig lo 127.0.0.1 up
::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
::sysinit:/etc/rc.sysinit
*snip*
My rc.sysinit sets the PATH, does a couple other mounts, then starts the
following:
syslogd -C m 0
klogd
udhcpc -i eth0 -b -p /var/run/edhcpc.eth0.pid >/dev/null 2>&1
inetd
crond
A 'ps' shows that initd is running. Also telnet is working fine.
This was working fine with busybox-1.1.3. It stopped working when I went
to the latest busybox 1.10.2.
Hartley
________________________________
From: rexonator@gmail.com [mailto:rexonator at gmail.com] On Behalf Of Rex
Ashbaugh
Sent: Monday, May 12, 2008 9:54 AM
To: hartleys
Cc: buildroot at uclibc.org
Subject: Re: [Buildroot] httpd question
what scripts are in your /etc/init.d/ directory?
do you have the inetd daemon installed?
-Rex
On Mon, May 12, 2008 at 9:15 AM, hartleys <hartleys@visionengravers.com>
wrote:
On Friday, May 09, 2008 9:48 PM, Tony Borras wrote:
> > when I try to access the web interface I get the following
message
in
> > my browser:
> >
> > httpd: bind: Address already in use
> >
> > For the life of me I can't figure out what might already be
bound to
> > port 80. Any ideas?
>
> try: nmap -p80 localhost
>
> or instead of localhost the name or ip of your host.
I don't think nmap is available as a package in buildroot. At
least I
can't locate it.
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080512/aa4b8ffe/attachment.htm
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-12 16:50 ` hartleys
@ 2008-05-13 0:45 ` Hamish Moffatt
2008-05-13 1:22 ` hartleys
0 siblings, 1 reply; 13+ messages in thread
From: Hamish Moffatt @ 2008-05-13 0:45 UTC (permalink / raw)
To: buildroot
On Mon, May 12, 2008 at 12:50:24PM -0400, hartleys wrote:
> On Saturday, May 10, 2008 1:00 AM, Alexander Kriegisch wrote:
> > Sounds like you have another process, probably another web server,
> > listening on that port. Find out which process that is by issuing
> > these commands:
> > # Is port 80 listened at?
> > netstat -ln |grep ":80"
> > # If so, by whom? (Hopefully your have 'lsof' installed)
> > lsof -i :80
>
> Ok. Got lsof to download and compile. I had to change the ftp site.
>
> / # netstat -ln |grep ":80"
> tcp 0 0 0.0.0.0:80 0.0.0.0:*
> LISTEN
> / # lsof -i :80
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> inetd 372 root 15u inet 82 TCP *:www (LISTEN)
> / #
>
> I'm not really sure what this output means. Can you offer any ideas?
It means you have an http service configured in /etc/inetd.conf. Post
your inetd.conf to this list if you need assistance.
cheers
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-13 0:45 ` Hamish Moffatt
@ 2008-05-13 1:22 ` hartleys
2008-05-13 2:14 ` Hamish Moffatt
0 siblings, 1 reply; 13+ messages in thread
From: hartleys @ 2008-05-13 1:22 UTC (permalink / raw)
To: buildroot
I finally got it working.
Had to enable "Support writing pidfiles" in busybox then add the -i
option when starting httpd in inetd.conf.
Then I ran into a problem with awk built into busybox. I was getting a
"can't resolve symbol '__fixdfsi'" error when webif ran some of it's awk
scripts. Using the real gawk package fixed that.
Thanks for all the help,
Hartley
-----Original Message-----
From: Hamish Moffatt [mailto:hamish at cloud.net.au]
Sent: Monday, May 12, 2008 5:46 PM
To: hartleys
Cc: Alexander Kriegisch; buildroot at uclibc.org
Subject: Re: [Buildroot] httpd question
On Mon, May 12, 2008 at 12:50:24PM -0400, hartleys wrote:
> On Saturday, May 10, 2008 1:00 AM, Alexander Kriegisch wrote:
> > Sounds like you have another process, probably another web server,
> > listening on that port. Find out which process that is by issuing
> > these commands:
> > # Is port 80 listened at?
> > netstat -ln |grep ":80"
> > # If so, by whom? (Hopefully your have 'lsof' installed) lsof -i
> > :80
>
> Ok. Got lsof to download and compile. I had to change the ftp site.
>
> / # netstat -ln |grep ":80"
> tcp 0 0 0.0.0.0:80 0.0.0.0:*
> LISTEN
> / # lsof -i :80
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> inetd 372 root 15u inet 82 TCP *:www (LISTEN)
> / #
>
> I'm not really sure what this output means. Can you offer any ideas?
It means you have an http service configured in /etc/inetd.conf. Post
your inetd.conf to this list if you need assistance.
cheers
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-13 1:22 ` hartleys
@ 2008-05-13 2:14 ` Hamish Moffatt
2008-05-13 2:21 ` hartleys
0 siblings, 1 reply; 13+ messages in thread
From: Hamish Moffatt @ 2008-05-13 2:14 UTC (permalink / raw)
To: buildroot
On Mon, May 12, 2008 at 09:22:34PM -0400, hartleys wrote:
> Then I ran into a problem with awk built into busybox. I was getting a
> "can't resolve symbol '__fixdfsi'" error when webif ran some of it's awk
> scripts. Using the real gawk package fixed that.
That would be a problem with your toolchain.. either gcc or uClibc, I'm
not sure which... Strange. busybox awk works for me (though I didn't
test the latest).
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-13 2:14 ` Hamish Moffatt
@ 2008-05-13 2:21 ` hartleys
2008-05-13 3:47 ` Hamish Moffatt
0 siblings, 1 reply; 13+ messages in thread
From: hartleys @ 2008-05-13 2:21 UTC (permalink / raw)
To: buildroot
That's what I figured. Still haven't tried to build a new toolchain.
That step scares me ;-)
-----Original Message-----
From: Hamish Moffatt [mailto:hamish at cloud.net.au]
Sent: Monday, May 12, 2008 7:15 PM
To: hartleys
Cc: Alexander Kriegisch; buildroot at uclibc.org
Subject: Re: [Buildroot] httpd question
On Mon, May 12, 2008 at 09:22:34PM -0400, hartleys wrote:
> Then I ran into a problem with awk built into busybox. I was getting a
> "can't resolve symbol '__fixdfsi'" error when webif ran some of it's
> awk scripts. Using the real gawk package fixed that.
That would be a problem with your toolchain.. either gcc or uClibc, I'm
not sure which... Strange. busybox awk works for me (though I didn't
test the latest).
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] httpd question
2008-05-13 2:21 ` hartleys
@ 2008-05-13 3:47 ` Hamish Moffatt
0 siblings, 0 replies; 13+ messages in thread
From: Hamish Moffatt @ 2008-05-13 3:47 UTC (permalink / raw)
To: buildroot
On Mon, May 12, 2008 at 10:21:25PM -0400, hartleys wrote:
> That's what I figured. Still haven't tried to build a new toolchain.
> That step scares me ;-)
Where'd you get your toolchain from? Was it not built by buildroot?
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-05-13 3:47 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-10 1:53 [Buildroot] httpd question hartleys
2008-05-10 4:48 ` Tony Borras
2008-05-12 16:15 ` hartleys
2008-05-12 16:54 ` Rex Ashbaugh
2008-05-12 17:26 ` hartleys
2008-05-10 7:59 ` Alexander Kriegisch
2008-05-12 16:01 ` hartleys
2008-05-12 16:50 ` hartleys
2008-05-13 0:45 ` Hamish Moffatt
2008-05-13 1:22 ` hartleys
2008-05-13 2:14 ` Hamish Moffatt
2008-05-13 2:21 ` hartleys
2008-05-13 3:47 ` Hamish Moffatt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox