[developers] www script in the logon distribution

Alexandre Rademaker arademaker at gmail.com
Tue Oct 20 05:42:43 CEST 2020


Hi Stephan,


Using only the --erg I got:

user at acb050b97030:~/logon$ ./www --erg
/home/user/logon/bin/logon: line 94: /home/user/logon/franz/linux.x86.64/alisp: No such file or directory
^C

It looks like it is trying to compile the code and looking for the allegro lisp interpreter. So I started with

$ ./www --binary --debug --erg --port 9080

Everything inside my docker image. The docker redirects the 9080 to the host port. But in the host the request to localhost:9080/logon does not work. Even inside the docker image, in another shell, I get 

$ wget http://localhost:9080/logon
--2020-10-20 03:41:17--  http://localhost:9080/logon
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:9080... failed: Connection refused.
Connecting to localhost (localhost)|::1|:9080... failed: Cannot assign requested address.
Retrying.


After many messages, I see 

...
[t40005] reading `/home/user/logon/lingo/erg/pet/english.set'... including `/home/user/logon/lingo/erg/pet/common.set'... including
`/home/user/logon/lingo/erg/pet/global.set'... including `/home/user/logon/lingo/erg/pet/repp.set'... including `/home/user/logon/li
ngo/erg/pet/mrs.set'... loading `/home/user/logon/lingo/erg/english.grm'
[t40002] (ERG (1214)) reading ME model `/home/user/logon/lingo/erg/redwoods.mem'... [3643349 features]
[t40005] (ERG (1214)) reading ME model `/home/user/logon/lingo/erg/redwoods.mem'... [3643349 features]
[t40004] (ERG (1214)) reading ME model `/home/user/logon/lingo/erg/redwoods.mem'... [3643349 features]
[t40003] (ERG (1214)) reading ME model `/home/user/logon/lingo/erg/redwoods.mem'... [3643349 features]


But I don’t have the REPL, it looks like this reading of ME model didn’t finish. Using 

$ ./www --binary --debug -—terg --port 9080

I got

set-coding-system(): activated UTF8.
;   Loading /home/user/logon/lingo/terg/Version.lsp
;   Loading /home/user/logon/lingo/terg/lkb/globals.lsp
;   Loading /home/user/logon/lingo/terg/lkb/user-fns.lsp
;   Loading /home/user/logon/lingo/terg/lkb/checkpaths.lsp
;   Loading /home/user/logon/lingo/terg/lkb/patches.lsp

Reading in type file fundamentals
Reading in type file tmt
Reading in type file lextypes
Syntax error: . expected and not found in N_-_C_LE at position 226346
Inserting .
Error:
"" should not be a string

Restart actions (select using :continue):
 0: retry the load of /home/user/logon/lingo/terg/lkb/script
 1: skip loading /home/user/logon/lingo/terg/lkb/script
 2: Return to Top Level (an "abort" restart).
 3: Abort entirely from this (lisp) process.

[changing package from "TSDB" to "LKB"]
[1] LKB(7):

Any idea?

Best,
Alexandre


> On 6 Aug 2020, at 05:04, Stephan Oepen <oe at ifi.uio.no> wrote:
> 
> hi again, alexandre:
> 
>> For some reason, the www script in the logon distribution does not start the webserver. Using the `--debug` option, I don't have any additional information in the log file (actually, the script didn't mention the debug anywhere). I am following all instructions from http://moin.delph-in.net/LogonOnline. In particular, pvmd3 is running without any error in the startup. I don't see any *.pvm file in the /tmp. The script bin/logon starts LKB and the [incr TSDB()] normally. I have used `—cat` to save a lisp file and load it manually in the ACL REPL, no error too. Any idea?
> 
> i am slowly catching up to DELPH-IN email, with apologies for the long
> turn-around!
> 
> is the above still a current problem?  is this within your container,
> or does it also occur on a 'regular' linux box?
> 
> to debug further, note that the 'www' script sets things up so that
> you can interact with the running lisp image once initialization is
> complete, i.e. just type into the lisp prompt, e.g. to inspect the
> state of AllegroServe.
> 
> when you observe that the web server is not started, does that mean it
> does not even bind to its port?  when running with the standard
> '--erg' option, i would expect the following to work (and return the
> dynamically generated top-level page):
> 
> wget http://localhost:8100/logon
> 
> best wishes, oe




More information about the developers mailing list