[Bese-devel] ucw setup - a newbie question

Alec Segal alecsegal at gmail.com
Fri Mar 31 01:39:19 UTC 2006


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}>.")

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)
...
Starting ucw trough the ucwtl I am getting exactly the same error.

What is the url to access admin and demo scripts?
I was trying http://127.0.0.1/index.ucw and http://127.0.0.1/admin/index.ucw,
amd just plain http://127.0.0.1
but everything resulted in the errors I was trying to describe earlier.

I set
UCW-USER> (setf *debug-on-error* t)
Here is the sldb trace with the httpd backend:



The function IT.BESE.UCW::READ-REQUEST is undefined.
   [Condition of type UNDEFINED-FUNCTION]

Restarts:
  0: [KILL-WORKER] Kill this worker.
  1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "an httpd worker 1"
{C1C36E9}>)

Backtrace:
  0: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT
(T)) #<unused argument> #<unused argument> #<FUNCTION (LAMBDA NIL)
{B3F0F2D}>)
  1: (SWANK::CALL-WITH-BINDINGS ((*PRINT-PRETTY*) (*PRINT-LEVEL* . 4)
(*PRINT-LENGTH* . 10) (*PRINT-CIRCLE* . T) (*PRINT-READABLY*)
(*PRINT-PPRINT-DISPATCH* . #<SB-PRETTY:PPRINT-DISPATCH-TABLE {AD32771}>)
(*PRINT-GENSYM* . T) (*PRINT-BASE* . 10) (*PRINT-RADIX*) (*PRINT-ARRAY* . T)
...) #<FUNCTION (LAMBDA NIL) {B3F0EED}>)
  2: (SWANK::DEBUG-IN-EMACS #<UNDEFINED-FUNCTION READ-REQUEST {A746601}>)
  3: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T))
#<unused argument> #<unused argument> #<FUNCTION SWANK:SWANK-DEBUGGER-HOOK>
#<CLOSURE (LAMBDA NIL) {A74D8E5}>)
  4: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {A9EB609}>
#<CLOSURE (LAMBDA NIL) {A74D8F5}>)
  5: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {A9EB609}> #<CLOSURE
(LAMBDA NIL) {A74D8E5}>)
  6: ((FLET IT.BESE.UCW::ABORT-WORKER) #<UNDEFINED-FUNCTION READ-REQUEST
{A746601}>)
  7: ((FLET IT.BESE.UCW::ABORT-WORKER) #<UNDEFINED-FUNCTION READ-REQUEST
{A746601}>)
  8: (SIGNAL #<UNDEFINED-FUNCTION READ-REQUEST {A746601}>)
  9: (ERROR UNDEFINED-FUNCTION)
 10: (SB-KERNEL::UNDEFINED-FUN-ERROR-HANDLER #<unavailable argument>
#.(SB-SYS:INT-SAP #XB73307EC) #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP
#XB73304F0 :TYPE (* (SB-ALIEN:STRUCT SB-VM::OS-CONTEXT-T-STRUCT))> (14))
 11: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #XB73304F0) #<unavailable
argument>)
 12: ("foreign function: call_into_lisp")
 13: ("foreign function: funcall2")
 14: ("foreign function: interrupt_internal_error")
 15: ("foreign function: sigtrap_handler")
 16: ("foreign function: #x8052FF9")
 17: ("bogus stack frame")
 18: (IT.BESE.UCW::HTTPD-WORKER-LOOP/HANDLE
#<IT.BESE.UCW::HTTPD-WORKER{C1C0B01}> #<MULTITHREAD-MOD-LISP-BACKEND
{BF95FD9}> #<
IT.BESE.UCW::PENDING-REQUEST {A706AD1}>)
      Locals:
        SB-DEBUG::ARG-0 = #<IT.BESE.UCW::HTTPD-WORKER {C1C0B01}>
        SB-DEBUG::ARG-1 = #<MULTITHREAD-MOD-LISP-BACKEND {BF95FD9}>
        SB-DEBUG::ARG-2 = #<IT.BESE.UCW::PENDING-REQUEST {A706AD1}>
 19: (IT.BESE.UCW::HTTPD-WORKER-LOOP #<IT.BESE.UCW::HTTPD-WORKER {C1C0B01}>)
 20: ((LAMBDA NIL))
 21: ("foreign function: call_into_lisp")
 22: ("foreign function: funcall0")
 23: ("foreign function: new_thread_trampoline")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20060330/5e473f19/attachment.html>


More information about the bese-devel mailing list