Re: Getting http to work
It worked! I switched my ext_addr to my 192.168.60.129, manually ran /usr/sbin/httpd rather than "rcctl" or "/etc/rc.d/httpd start", did a ps -ax and saw httpd server running. Rebooted the machine, the httpd daemon came back up automatically. Switched the ext_addr to "*" rebooted, the httpd server still came up as running. Very strange. On Sun, Feb 26, 2017 at 8:50 AM, Vijay Sankar wrote: > Oops, don't know what happened to my config that I added below. Sorry > about that. > > Anyways, the only thing I recall was that I used the real server name > instead of "default" and it worked and I have not touched the configuration > since then :) > > Vijay > > Quoting Vijay Sankar : > >> Hi, >> >> Can you try using the name of the server instead of "default"? >> >> I sort of recall something like this from a couple of years ago but it > has >> run without any problems for me. >> >> For example, I had "default" instead of the server's name and it did not >> work. Once I changed to the following, there were no issues and it has > run >> like this since >> >> vault.lab.foretell.ca$ ls -l >> > /etc/httpd.conf                                 >>  >> -rw-r--r-- 1 root wheel 558 Dec 28 2015 /etc/httpd.conf >> >> vault.lab.foretell.ca$ more >> > /etc/httpd.conf                                  >>  >> prefork 2 >> chroot "/home/distros" >>           server "vault.lab.foretell.ca" { >>                listen on * > port 80 >>                directory > auto index >>                } >> >>           types { >>                   >> text/css               >> css >>                   > text/html              >> html htm >>                   >> text/txt               >> txt >>                   > image/gif              >> gif >>                   > image/jpeg             >> jpeg jpg >>                   > image/png              >> png >>                   > application/javascript js >>                   > application/xml        xml >>           } >> >> Hope this helps, >> >> Vijay >> >> Quoting Monah Baki : >> >>> # netstat -na -f inet | grep LISTEN >>> tcp     0   0 127.0.0.1.25  >     *.*   >> >>        >>> LISTEN >>> tcp     0   0 *.22   >        *.*  >> >>         >>> LISTEN >>> # httpd -dv >>> startup >>> parent: send server: Can't assign requested address >>> # logger exiting, pid 24061 >>> server exiting, pid 96224 >>> server exiting, pid 68259 >>> server exiting, pid 94930 >>> >>> It's a fresh install so I wasn't expecting any ports listening. Even >>> if I changed to port 8080 same issue. >>> >>> Thanks >>> >>> On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry >>> wrote: Monah Baki writes: > # httpd -dnv > configuration OK > > # rcctl - start httpd > doing _rc_parse_conf > doing _rc_quirks > httpd_flags empty, using default >< > doing _rc_parse_conf /var/run/rc.d/httpd > doing _rc_quirks > doing rc_check > httpd > doing rc_pre > configuration OK > doing rc_start > doing _rc_wait start > doing rc_check > doing _rc_write_runfile > (ok) > > # /etc/rc.d/httpd start > httpd(ok) > > cat /var/log/messages > > Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign > requested address > Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign > requested address > > vi httpd.conf > > # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ > > # > # Macros > # > ext_addr="*" > > # > # Global Options > # > # prefork 3 > > # > # Servers > # > > # A minimal default server > server "default" { >     listen on $ext_addr port 80 > } > > Thanks > > On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues >> >> wrote: >> # rcctl - start httpd >> This command should give you some details on what isn't working. >> If not, you can try `# httpd -nvv` to check your config and `# httpd >> -d` to run httpd directly. >> >> 2017-02-25 21:20 GMT+01:00 Monah Baki : >>> Changing to ext_addr="*" >>> >>> # /etc/rc.d/httpd start >>> httpd(failed) >>> >>> Nothing shows up in /var/log/messages >>> >>> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry >>> wrote: Monah Baki writes: > Hi all, > > Installed a fresh install of OpenBSD 6.0 on VMWare workstation and > wanted to ru
Re: Getting http to work
Oops, don't know what happened to my config that I added below. Sorry about that. Anyways, the only thing I recall was that I used the real server name instead of "default" and it worked and I have not touched the configuration since then :) Vijay Quoting Vijay Sankar : > Hi, > > Can you try using the name of the server instead of "default"? > > I sort of recall something like this from a couple of years ago but it has > run without any problems for me. > > For example, I had "default" instead of the server's name and it did not > work. Once I changed to the following, there were no issues and it has run > like thisÃÂ since > > vault.lab.foretell.ca$ ls -l > /etc/httpd.confÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > ÃÂ > -rw-r--r--ÃÂ 1 rootÃÂ wheelÃÂ 558 Dec 28ÃÂ 2015 /etc/httpd.conf > > vault.lab.foretell.ca$ more > /etc/httpd.confÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > ÃÂ > prefork 2 > chroot "/home/distros" > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ server "vault.lab.foretell.ca" { > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ listen on * port 80 > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ directory auto index > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ } > > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ types { > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > text/cssÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > css > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ text/htmlÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > html htm > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > text/txtÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > txt > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ image/gifÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > gif > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ image/jpegÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > jpeg jpg > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ image/pngÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ > png > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ application/javascriptÃÂ js > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ application/xmlÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ xml > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ } > > Hope this helps, > > Vijay > > Quoting Monah Baki : > >> # netstat -na -f inet | grep LISTEN >> tcpÃÂ ÃÂ ÃÂ ÃÂ ÃÂ 0ÃÂ ÃÂ ÃÂ 0ÃÂ 127.0.0.1.25ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ *.*ÃÂ ÃÂ ÃÂ > > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ >> LISTEN >> tcpÃÂ ÃÂ ÃÂ ÃÂ ÃÂ 0ÃÂ ÃÂ ÃÂ 0ÃÂ *.22ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ *.*ÃÂ ÃÂ > > ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ >> LISTEN >> # httpd -dv >> startup >> parent: send server: Can't assign requested address >> # logger exiting, pid 24061 >> server exiting, pid 96224 >> server exiting, pid 68259 >> server exiting, pid 94930 >> >> It's a fresh install so I wasn't expecting any ports listening. Even >> if I changed to port 8080 same issue. >> >> Thanks >> >> On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry >> wrote: >>> Monah Baki writes: >>> # httpd -dnv configuration OK #ÃÂ rcctl - start httpd doing _rc_parse_conf doing _rc_quirks httpd_flags empty, using default >< doing _rc_parse_conf /var/run/rc.d/httpd doing _rc_quirks doing rc_check httpd doing rc_pre configuration OK doing rc_start doing _rc_wait start doing rc_check doing _rc_write_runfile (ok) # /etc/rc.d/httpd start httpd(ok) cat /var/log/messages Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign requested address Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign requested address vi httpd.conf # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ # # Macros # ext_addr="*" # # Global Options # # prefork 3 # # Servers # # A minimal default server server "default" { ÃÂ ÃÂ ÃÂ ÃÂ listen on $ext_addr port 80 } Thanks On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues > > wrote: > # rcctl - start httpd > This command should give you some details on what isn't working. > If not, you can try `# httpd -nvv` to check your config and `# httpd > -d` to run httpd directly. > > 2017-02-25 21:20 GMT+01:00 Monah Baki : >> Changing to ext_addr="*" >> >> # /etc/rc.d/httpd
Re: Getting http to work
Hi, Can you try using the name of the server instead of "default"? I sort of recall something like this from a couple of years ago but it has run without any problems for me. For example, I had "default" instead of the server's name and it did not work. Once I changed to the following, there were no issues and it has run like this since vault.lab.foretell.ca$ ls -l /etc/httpd.conf                                  -rw-r--r-- 1 root wheel 558 Dec 28 2015 /etc/httpd.conf vault.lab.foretell.ca$ more /etc/httpd.conf                                   prefork 2 chroot "/home/distros"           server "vault.lab.foretell.ca" {                listen on * port 80                directory auto index                }           types {                   text/css               css                   text/html              html htm                   text/txt               txt                   image/gif              gif                   image/jpeg             jpeg jpg                   image/png              png                   application/javascript js                   application/xml        xml           } Hope this helps, Vijay Quoting Monah Baki : > # netstat -na -f inet | grep LISTEN > tcp     0   0 127.0.0.1.25      *.*          > LISTEN > tcp     0   0 *.22          *.*          > LISTEN > # httpd -dv > startup > parent: send server: Can't assign requested address > # logger exiting, pid 24061 > server exiting, pid 96224 > server exiting, pid 68259 > server exiting, pid 94930 > > It's a fresh install so I wasn't expecting any ports listening. Even > if I changed to port 8080 same issue. > > Thanks > > On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry > wrote: >> Monah Baki writes: >> >>> # httpd -dnv >>> configuration OK >>> >>> # rcctl - start httpd >>> doing _rc_parse_conf >>> doing _rc_quirks >>> httpd_flags empty, using default >< >>> doing _rc_parse_conf /var/run/rc.d/httpd >>> doing _rc_quirks >>> doing rc_check >>> httpd >>> doing rc_pre >>> configuration OK >>> doing rc_start >>> doing _rc_wait start >>> doing rc_check >>> doing _rc_write_runfile >>> (ok) >>> >>> # /etc/rc.d/httpd start >>> httpd(ok) >>> >>> cat /var/log/messages >>> >>> Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign >>> requested address >>> Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign >>> requested address >>> >>> vi httpd.conf >>> >>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >>> >>> # >>> # Macros >>> # >>> ext_addr="*" >>> >>> # >>> # Global Options >>> # >>> # prefork 3 >>> >>> # >>> # Servers >>> # >>> >>> # A minimal default server >>> server "default" { >>>     listen on $ext_addr port 80 >>> } >>> >>> Thanks >>> >>> On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues wrote: # rcctl - start httpd This command should give you some details on what isn't working. If not, you can try `# httpd -nvv` to check your config and `# httpd -d` to run httpd directly. 2017-02-25 21:20 GMT+01:00 Monah Baki : > Changing to ext_addr="*" > > # /etc/rc.d/httpd start > httpd(failed) > > Nothing shows up in /var/log/messages > > On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry > wrote: >> Monah Baki writes: >> >>> Hi all, >>> >>> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and >>> wanted to run default webserver. >>> >>> In the messages logs I find the following error: >>> >>> httpd[23792]: parent: send server: Can't assign requested address >>> >>> em0: flags=8843 mtu 1500 >>>     lladdr 00:0c:29:b3:81:f8 >>>     index 1 priority 0 llprio 3 >>>     groups: egress >>>     media: Ethernet autoselect (1000baseT full-duplex,master) >>>     status: active >>>     inet 192.168.60.129 netmask 0xff00 broadcast >>> 192.168.60.255 >>> >>> In my httpd.conf all I changed was the "ext_addr" Macro, >>> everything else as is. >>> >>> $ cat /etc/httpd.conf >>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >>> >>> # >>> # Macros >>> # >>> ext_addr="192.168.60.129" >>> # A minimal default server >>> server "default" { >>>     listen on $ext_addr port 80 >>> } >>> >>> Thank you >>> Monah >> >> Did you try >> >>    ext_addr="*"
Re: Getting http to work
I installed a fresh copy of 5.9 and still having the same issue. Still seeing parent: send server: Can't assign requested address in /var/log/messages. Thanks On Sat, Feb 25, 2017 at 10:27 PM, Kevin Gerrard wrote: > OpenBSD 6.0 > I had this happen to me a few days ago. I set httpd.conf up to use "*" at > first just to cut down on hiccups. When I had it up and working with php, > and mariadb I changed "*" to"192.168.3.254" and restarted > httpd.conf. It did not work, even after a reboot. So I put the "*" back in > just so I could go populate mariadb 10 and php 7. After reading these > emails today it made me remember that, and so I logged into it and changed > it back to the "192.168.3.254" instead of "*", and restarted httpd. I > thought I was going to reproduce the hiccup but instead the dadgum thing > worked!!! > > No problems here at all but I did want to say for whatever reason it was, > this exact anomaly did happen to me once also, however upon trying to > reproduce it I could not. > > The only thing I can think of is that I "might" not have rebooted? I really > doubt that is it but a lot on my mind lately and it could easily have been. > > Kevin Gerrard > > -Original Message- > From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of > Currell Berry > Sent: Saturday, February 25, 2017 5:32 PM > To: Monah Baki > Cc: ludovic coues; openbsd-misc > Subject: Re: Getting http to work > > Monah Baki writes: > >> # httpd -dnv >> configuration OK >> >> # rcctl - start httpd >> doing _rc_parse_conf >> doing _rc_quirks >> httpd_flags empty, using default >< >> doing _rc_parse_conf /var/run/rc.d/httpd doing _rc_quirks doing >> rc_check httpd doing rc_pre configuration OK doing rc_start doing >> _rc_wait start doing rc_check doing _rc_write_runfile >> (ok) >> >> # /etc/rc.d/httpd start >> httpd(ok) >> >> cat /var/log/messages >> >> Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign >> requested address Feb 25 15:36:06 nebula httpd[14026]: parent: send >> server: Can't assign requested address >> >> >> vi httpd.conf >> >> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >> >> # >> # Macros >> # >> ext_addr="*" >> >> # >> # Global Options >> # >> # prefork 3 >> >> # >> # Servers >> # >> >> # A minimal default server >> server "default" { >> listen on $ext_addr port 80 >> } >> >> >> >> Thanks >> >> >> On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues wrote: >>> # rcctl - start httpd >>> This command should give you some details on what isn't working. >>> If not, you can try `# httpd -nvv` to check your config and `# httpd >>> -d` to run httpd directly. >>> >>> 2017-02-25 21:20 GMT+01:00 Monah Baki : >>>> Changing to ext_addr="*" >>>> >>>> >>>> # /etc/rc.d/httpd start >>>> httpd(failed) >>>> >>>> Nothing shows up in /var/log/messages >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry > wrote: >>>>> >>>>> Monah Baki writes: >>>>> >>>>>> Hi all, >>>>>> >>>>>> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and >>>>>> wanted to run default webserver. >>>>>> >>>>>> In the messages logs I find the following error: >>>>>> >>>>>> httpd[23792]: parent: send server: Can't assign requested address >>>>>> >>>>>> >>>>>> em0: flags=8843 mtu 1500 >>>>>> lladdr 00:0c:29:b3:81:f8 >>>>>> index 1 priority 0 llprio 3 >>>>>> groups: egress >>>>>> media: Ethernet autoselect (1000baseT full-duplex,master) >>>>>> status: active >>>>>> inet 192.168.60.129 netmask 0xff00 broadcast >>>>>> 192.168.60.255 >>>>>> >>>>>> In my httpd.conf all I changed was the "ext_addr" Macro, everything > else as is. >>>>>> >>>>>> $ cat /etc/httpd.conf >>>>>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >>>>>> >>>>>> # >>>>>> # Macros >>>>>> # >>>>>> ext_addr="192.168.60.129" >>>>>> # A minimal default server >>>>>> server "default" { >>>>>> listen on $ext_addr port 80 } >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Thank you >>>>>> Monah >>>>> >>>>> Did you try >>>>> >>>>> ext_addr="*" >>>>> >>>>> yet? >>>>> >>>>> Does it report the same error with that in place? >>>>> >>>>> -- Currell >>>> >>> >>> >>> >>> -- >>> >>> Cordialement, Coues Ludovic >>> +336 148 743 42 > > Some ideas: > You might have an instance of httpd running in the background stopping a > new one from binding to the port. > > Run the following commands and examine the output to check what could be > there > > # netstat -na -f inet | grep LISTEN > # ps ax > > Kill all running instances of httpd, or anything else that is binding to > port 80. > > Once you've done that, try starting httpd in no-fork mode and see what > it says: > > # httpd -dv > > If it still doesn't work, try a different port (change 80 to for > instance). > > -- Currell
Re: Getting http to work
OpenBSD 6.0 I had this happen to me a few days ago. I set httpd.conf up to use "*" at first just to cut down on hiccups. When I had it up and working with php, and mariadb I changed "*" to"192.168.3.254" and restarted httpd.conf. It did not work, even after a reboot. So I put the "*" back in just so I could go populate mariadb 10 and php 7. After reading these emails today it made me remember that, and so I logged into it and changed it back to the "192.168.3.254" instead of "*", and restarted httpd. I thought I was going to reproduce the hiccup but instead the dadgum thing worked!!! No problems here at all but I did want to say for whatever reason it was, this exact anomaly did happen to me once also, however upon trying to reproduce it I could not. The only thing I can think of is that I "might" not have rebooted? I really doubt that is it but a lot on my mind lately and it could easily have been. Kevin Gerrard -Original Message- From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Currell Berry Sent: Saturday, February 25, 2017 5:32 PM To: Monah Baki Cc: ludovic coues; openbsd-misc Subject: Re: Getting http to work Monah Baki writes: > # httpd -dnv > configuration OK > > # rcctl - start httpd > doing _rc_parse_conf > doing _rc_quirks > httpd_flags empty, using default >< > doing _rc_parse_conf /var/run/rc.d/httpd doing _rc_quirks doing > rc_check httpd doing rc_pre configuration OK doing rc_start doing > _rc_wait start doing rc_check doing _rc_write_runfile > (ok) > > # /etc/rc.d/httpd start > httpd(ok) > > cat /var/log/messages > > Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign > requested address Feb 25 15:36:06 nebula httpd[14026]: parent: send > server: Can't assign requested address > > > vi httpd.conf > > # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ > > # > # Macros > # > ext_addr="*" > > # > # Global Options > # > # prefork 3 > > # > # Servers > # > > # A minimal default server > server "default" { > listen on $ext_addr port 80 > } > > > > Thanks > > > On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues wrote: >> # rcctl - start httpd >> This command should give you some details on what isn't working. >> If not, you can try `# httpd -nvv` to check your config and `# httpd >> -d` to run httpd directly. >> >> 2017-02-25 21:20 GMT+01:00 Monah Baki : >>> Changing to ext_addr="*" >>> >>> >>> # /etc/rc.d/httpd start >>> httpd(failed) >>> >>> Nothing shows up in /var/log/messages >>> >>> >>> >>> >>> >>> >>> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry wrote: >>>> >>>> Monah Baki writes: >>>> >>>>> Hi all, >>>>> >>>>> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and >>>>> wanted to run default webserver. >>>>> >>>>> In the messages logs I find the following error: >>>>> >>>>> httpd[23792]: parent: send server: Can't assign requested address >>>>> >>>>> >>>>> em0: flags=8843 mtu 1500 >>>>> lladdr 00:0c:29:b3:81:f8 >>>>> index 1 priority 0 llprio 3 >>>>> groups: egress >>>>> media: Ethernet autoselect (1000baseT full-duplex,master) >>>>> status: active >>>>> inet 192.168.60.129 netmask 0xff00 broadcast >>>>> 192.168.60.255 >>>>> >>>>> In my httpd.conf all I changed was the "ext_addr" Macro, everything else as is. >>>>> >>>>> $ cat /etc/httpd.conf >>>>> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >>>>> >>>>> # >>>>> # Macros >>>>> # >>>>> ext_addr="192.168.60.129" >>>>> # A minimal default server >>>>> server "default" { >>>>> listen on $ext_addr port 80 } >>>>> >>>>> >>>>> >>>>> >>>>> Thank you >>>>> Monah >>>> >>>> Did you try >>>> >>>> ext_addr="*" >>>> >>>> yet? >>>> >>>> Does it report the same error with that in place? >>>> >>>> -- Currell >>> >> >> >> >> -- >> >> Cordialement, Coues Ludovic >> +336 148 743 42 Some ideas: You might have an instance of httpd running in the background stopping a new one from binding to the port. Run the following commands and examine the output to check what could be there # netstat -na -f inet | grep LISTEN # ps ax Kill all running instances of httpd, or anything else that is binding to port 80. Once you've done that, try starting httpd in no-fork mode and see what it says: # httpd -dv If it still doesn't work, try a different port (change 80 to for instance). -- Currell
Re: Getting http to work
# netstat -na -f inet | grep LISTEN tcp 0 0 127.0.0.1.25 *.*LISTEN tcp 0 0 *.22 *.*LISTEN # httpd -dv startup parent: send server: Can't assign requested address # logger exiting, pid 24061 server exiting, pid 96224 server exiting, pid 68259 server exiting, pid 94930 It's a fresh install so I wasn't expecting any ports listening. Even if I changed to port 8080 same issue. Thanks On Sat, Feb 25, 2017 at 6:31 PM, Currell Berry wrote: > > Monah Baki writes: > >> # httpd -dnv >> configuration OK >> >> # rcctl - start httpd >> doing _rc_parse_conf >> doing _rc_quirks >> httpd_flags empty, using default >< >> doing _rc_parse_conf /var/run/rc.d/httpd >> doing _rc_quirks >> doing rc_check >> httpd >> doing rc_pre >> configuration OK >> doing rc_start >> doing _rc_wait start >> doing rc_check >> doing _rc_write_runfile >> (ok) >> >> # /etc/rc.d/httpd start >> httpd(ok) >> >> cat /var/log/messages >> >> Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign >> requested address >> Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign >> requested address >> >> >> vi httpd.conf >> >> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >> >> # >> # Macros >> # >> ext_addr="*" >> >> # >> # Global Options >> # >> # prefork 3 >> >> # >> # Servers >> # >> >> # A minimal default server >> server "default" { >> listen on $ext_addr port 80 >> } >> >> >> >> Thanks >> >> >> On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues wrote: >>> # rcctl - start httpd >>> This command should give you some details on what isn't working. >>> If not, you can try `# httpd -nvv` to check your config and `# httpd >>> -d` to run httpd directly. >>> >>> 2017-02-25 21:20 GMT+01:00 Monah Baki : Changing to ext_addr="*" # /etc/rc.d/httpd start httpd(failed) Nothing shows up in /var/log/messages On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry wrote: > > Monah Baki writes: > >> Hi all, >> >> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and >> wanted to run default webserver. >> >> In the messages logs I find the following error: >> >> httpd[23792]: parent: send server: Can't assign requested address >> >> >> em0: flags=8843 mtu 1500 >> lladdr 00:0c:29:b3:81:f8 >> index 1 priority 0 llprio 3 >> groups: egress >> media: Ethernet autoselect (1000baseT full-duplex,master) >> status: active >> inet 192.168.60.129 netmask 0xff00 broadcast 192.168.60.255 >> >> In my httpd.conf all I changed was the "ext_addr" Macro, everything else >> as is. >> >> $ cat /etc/httpd.conf >> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >> >> # >> # Macros >> # >> ext_addr="192.168.60.129" >> # A minimal default server >> server "default" { >> listen on $ext_addr port 80 >> } >> >> >> >> >> Thank you >> Monah > > Did you try > > ext_addr="*" > > yet? > > Does it report the same error with that in place? > > -- Currell >>> >>> >>> >>> -- >>> >>> Cordialement, Coues Ludovic >>> +336 148 743 42 > > Some ideas: > You might have an instance of httpd running in the background stopping a > new one from binding to the port. > > Run the following commands and examine the output to check what could be there > > # netstat -na -f inet | grep LISTEN > # ps ax > > Kill all running instances of httpd, or anything else that is binding to > port 80. > > Once you've done that, try starting httpd in no-fork mode and see what > it says: > > # httpd -dv > > If it still doesn't work, try a different port (change 80 to for > instance). > > -- Currell
Re: Getting http to work
Monah Baki writes: > # httpd -dnv > configuration OK > > # rcctl - start httpd > doing _rc_parse_conf > doing _rc_quirks > httpd_flags empty, using default >< > doing _rc_parse_conf /var/run/rc.d/httpd > doing _rc_quirks > doing rc_check > httpd > doing rc_pre > configuration OK > doing rc_start > doing _rc_wait start > doing rc_check > doing _rc_write_runfile > (ok) > > # /etc/rc.d/httpd start > httpd(ok) > > cat /var/log/messages > > Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign > requested address > Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign > requested address > > > vi httpd.conf > > # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ > > # > # Macros > # > ext_addr="*" > > # > # Global Options > # > # prefork 3 > > # > # Servers > # > > # A minimal default server > server "default" { > listen on $ext_addr port 80 > } > > > > Thanks > > > On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues wrote: >> # rcctl - start httpd >> This command should give you some details on what isn't working. >> If not, you can try `# httpd -nvv` to check your config and `# httpd >> -d` to run httpd directly. >> >> 2017-02-25 21:20 GMT+01:00 Monah Baki : >>> Changing to ext_addr="*" >>> >>> >>> # /etc/rc.d/httpd start >>> httpd(failed) >>> >>> Nothing shows up in /var/log/messages >>> >>> >>> >>> >>> >>> >>> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry >>> wrote: Monah Baki writes: > Hi all, > > Installed a fresh install of OpenBSD 6.0 on VMWare workstation and > wanted to run default webserver. > > In the messages logs I find the following error: > > httpd[23792]: parent: send server: Can't assign requested address > > > em0: flags=8843 mtu 1500 > lladdr 00:0c:29:b3:81:f8 > index 1 priority 0 llprio 3 > groups: egress > media: Ethernet autoselect (1000baseT full-duplex,master) > status: active > inet 192.168.60.129 netmask 0xff00 broadcast 192.168.60.255 > > In my httpd.conf all I changed was the "ext_addr" Macro, everything else > as is. > > $ cat /etc/httpd.conf > # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ > > # > # Macros > # > ext_addr="192.168.60.129" > # A minimal default server > server "default" { > listen on $ext_addr port 80 > } > > > > > Thank you > Monah Did you try ext_addr="*" yet? Does it report the same error with that in place? -- Currell >>> >> >> >> >> -- >> >> Cordialement, Coues Ludovic >> +336 148 743 42 Some ideas: You might have an instance of httpd running in the background stopping a new one from binding to the port. Run the following commands and examine the output to check what could be there # netstat -na -f inet | grep LISTEN # ps ax Kill all running instances of httpd, or anything else that is binding to port 80. Once you've done that, try starting httpd in no-fork mode and see what it says: # httpd -dv If it still doesn't work, try a different port (change 80 to for instance). -- Currell
Re: Getting http to work
# httpd -dnv configuration OK # rcctl - start httpd doing _rc_parse_conf doing _rc_quirks httpd_flags empty, using default >< doing _rc_parse_conf /var/run/rc.d/httpd doing _rc_quirks doing rc_check httpd doing rc_pre configuration OK doing rc_start doing _rc_wait start doing rc_check doing _rc_write_runfile (ok) # /etc/rc.d/httpd start httpd(ok) cat /var/log/messages Feb 25 15:35:22 nebula httpd[94632]: parent: send server: Can't assign requested address Feb 25 15:36:06 nebula httpd[14026]: parent: send server: Can't assign requested address vi httpd.conf # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ # # Macros # ext_addr="*" # # Global Options # # prefork 3 # # Servers # # A minimal default server server "default" { listen on $ext_addr port 80 } Thanks On Sat, Feb 25, 2017 at 3:27 PM, ludovic coues wrote: > # rcctl - start httpd > This command should give you some details on what isn't working. > If not, you can try `# httpd -nvv` to check your config and `# httpd > -d` to run httpd directly. > > 2017-02-25 21:20 GMT+01:00 Monah Baki : >> Changing to ext_addr="*" >> >> >> # /etc/rc.d/httpd start >> httpd(failed) >> >> Nothing shows up in /var/log/messages >> >> >> >> >> >> >> On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry >> wrote: >>> >>> Monah Baki writes: >>> Hi all, Installed a fresh install of OpenBSD 6.0 on VMWare workstation and wanted to run default webserver. In the messages logs I find the following error: httpd[23792]: parent: send server: Can't assign requested address em0: flags=8843 mtu 1500 lladdr 00:0c:29:b3:81:f8 index 1 priority 0 llprio 3 groups: egress media: Ethernet autoselect (1000baseT full-duplex,master) status: active inet 192.168.60.129 netmask 0xff00 broadcast 192.168.60.255 In my httpd.conf all I changed was the "ext_addr" Macro, everything else as is. $ cat /etc/httpd.conf # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ # # Macros # ext_addr="192.168.60.129" # A minimal default server server "default" { listen on $ext_addr port 80 } Thank you Monah >>> >>> Did you try >>> >>> ext_addr="*" >>> >>> yet? >>> >>> Does it report the same error with that in place? >>> >>> -- Currell >> > > > > -- > > Cordialement, Coues Ludovic > +336 148 743 42
Re: Getting http to work
Changing to ext_addr="*" # /etc/rc.d/httpd start httpd(failed) Nothing shows up in /var/log/messages On Sat, Feb 25, 2017 at 12:00 PM, Currell Berry wrote: > > Monah Baki writes: > >> Hi all, >> >> Installed a fresh install of OpenBSD 6.0 on VMWare workstation and >> wanted to run default webserver. >> >> In the messages logs I find the following error: >> >> httpd[23792]: parent: send server: Can't assign requested address >> >> >> em0: flags=8843 mtu 1500 >> lladdr 00:0c:29:b3:81:f8 >> index 1 priority 0 llprio 3 >> groups: egress >> media: Ethernet autoselect (1000baseT full-duplex,master) >> status: active >> inet 192.168.60.129 netmask 0xff00 broadcast 192.168.60.255 >> >> In my httpd.conf all I changed was the "ext_addr" Macro, everything else as >> is. >> >> $ cat /etc/httpd.conf >> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ >> >> # >> # Macros >> # >> ext_addr="192.168.60.129" >> # A minimal default server >> server "default" { >> listen on $ext_addr port 80 >> } >> >> >> >> >> Thank you >> Monah > > Did you try > > ext_addr="*" > > yet? > > Does it report the same error with that in place? > > -- Currell
Re: Getting http to work
Monah Baki writes: > Hi all, > > Installed a fresh install of OpenBSD 6.0 on VMWare workstation and > wanted to run default webserver. > > In the messages logs I find the following error: > > httpd[23792]: parent: send server: Can't assign requested address > > > em0: flags=8843 mtu 1500 > lladdr 00:0c:29:b3:81:f8 > index 1 priority 0 llprio 3 > groups: egress > media: Ethernet autoselect (1000baseT full-duplex,master) > status: active > inet 192.168.60.129 netmask 0xff00 broadcast 192.168.60.255 > > In my httpd.conf all I changed was the "ext_addr" Macro, everything else as > is. > > $ cat /etc/httpd.conf > # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ > > # > # Macros > # > ext_addr="192.168.60.129" > # A minimal default server > server "default" { > listen on $ext_addr port 80 > } > > > > > Thank you > Monah Did you try ext_addr="*" yet? Does it report the same error with that in place? -- Currell
Getting http to work
Hi all, Installed a fresh install of OpenBSD 6.0 on VMWare workstation and wanted to run default webserver. In the messages logs I find the following error: httpd[23792]: parent: send server: Can't assign requested address em0: flags=8843 mtu 1500 lladdr 00:0c:29:b3:81:f8 index 1 priority 0 llprio 3 groups: egress media: Ethernet autoselect (1000baseT full-duplex,master) status: active inet 192.168.60.129 netmask 0xff00 broadcast 192.168.60.255 In my httpd.conf all I changed was the "ext_addr" Macro, everything else as is. $ cat /etc/httpd.conf # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $ # # Macros # ext_addr="192.168.60.129" # A minimal default server server "default" { listen on $ext_addr port 80 } Thank you Monah