[Bese-devel] Re: ucw setup - a newbie question

Alec Segal alecsegal at gmail.com
Fri Mar 31 22:38:33 UTC 2006


Thank you. I loaded ucw/src/backend/httpd.lisp after

(ucw:create-server :backend '(:httpd    :host "127.0.0.1" :port 8080)
                         ;; '(:mod-lisp :host "127.0.0.1" :port 3001)
                         ;; '(:araneida :host "127.0.0.1" :port 8080)
                         ;; '(:aserve   :host "127.0.0.1" :port 8080)
                   :applications (list
it.bese.ucw-user::*example-application*
                                       ucw::*admin-application*)
                   :inspect-components nil
                   :log-root-directory (make-pathname :name nil :type nil
                                                      :directory (append
(pathname-directory *load-truename*)

(list :up "logs"))
                                                      :defaults
*load-truename*)
                   :log-level +info+
                   :start-p t)

and everything worked.

Alec


On 3/31/06, Marco Baringer <mb at bese.it> wrote:
>
> "Alec Segal" <alecsegal at gmail.com> writes:
>
> > Just  have ucw set up and trying to get any response from it. No luck
> with any
> > backend.
> > I use the latest sources from darcs ucw_dev.
> >
> > SBCL 0.9.8
> >
> > ucw.log (lisp was restarted every time):
> >
> > (+INFO+ 3352746404 IT.BESE.UCW::UCW-LOGGER "Starting up standard server
> #
> > <STANDARD-SERVER MULTITHREAD-HTTPD-BACKEND 2 {B2F6149}>.")
> > (+INFO+ 3352751202 IT.BESE.UCW::UCW-LOGGER "Starting up standard server
> #
> > <STANDARD-SERVER ARANEIDA-BACKEND 2 {B342C09}>.")
> > (+INFO+ 3352752177 IT.BESE.UCW::UCW-LOGGER "Starting up standard server
> #
> > <STANDARD-SERVER MULTITHREAD-MOD-LISP-BACKEND 2 {B3D1249}>.")
> >
> > As soon as I try to connect with through http, I get an error in the
> > ucw-backend.log:
> >
> > (+ERROR+ 3352743688 IT.BESE.UCW::UCW.BACKEND "Error in worker loop: #
> > <UNDEFINED-FUNCTION READ-REQUEST {BDD2D29}>.")
> > (+ERROR+ 3352743688 IT.BESE.UCW::UCW.BACKEND "Worker thread #
> > <IT.BESE.UCW::HTTPD-WORKER {BD3D6B9}> reported #<UNDEFINED-FUNCTION
> > READ-REQUEST {BDD2D29}>.")
> >
> > (+INFO+ 3352751202 IT.BESE.UCW::UCW.BACKEND "Starting up ARANEIDA
> backend #
> > <ARANEIDA-BACKEND {C1C37C1}> on http://127.0.0.1:8080/")
> > (+ERROR+ 3352754733 IT.BESE.UCW::UCW.BACKEND "Error in worker loop: #
> > <UNDEFINED-FUNCTION READ-REQUEST {A746601}>.")
> > (+ERROR+ 3352755066 IT.BESE.UCW::UCW.BACKEND "Error in worker loop: #
> > <UNDEFINED-FUNCTION READ-REQUEST {C67BF11}>.")
>
> this is strange, the read-reuest function is defined in
> ucw/src/backend/common.lisp. if you load common.lisp from the repl
> (before sending a reuest to ucw) things sohuld work perfectly. you're
> not the first person to run into this problem but i am, unfgortunetly,
> unable to reproduce it. :(
>
> > For some reason httpd-worker-loop/handle in multithread-httpd.lisp does
> not
> > have read-request and make-response functions defined (though they are
> in the
> > httpd.lisp). I am less clear what is going on with other backends.
> > IMHO ucwctl needs to be fixed (the value for :backend must be a list):
> > ...
> >                   $EVAL "(ucw:create-server :backend '(:$BACKEND
> >                                              :host \"$HOST\"
> >                                              :port $PORT)
>
> luca's recent (yestrday) patch to ucwctl et al. fixs this.
>
> --
> -Marco
> Ring the bells that still can ring.
> Forget the perfect offering.
> There is a crack in everything.
> That's how the light gets in.
>         -Leonard Cohen
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060331/0810afa3/attachment.html>


More information about the bese-devel mailing list