Maxima not connecting with Stack

Maxima not connecting with Stack

дэргэд Stuart Jones -
Хариу нийтлэлийн тоо: 6

So I found another thread from 2015 with the same issue, but as far as I can tell, those issues don't fix my problem.


So I've set up a new site with Stack and Maxima (version 5.41) and clisp (version 2.39) and it works for about 24 hours, before stopping and giving the following error:


*** - UNIX error 13 (EACCES): Permission denied
Break 1 [4]> 
*** - SYSTEM::READ-EVAL-PRINT: variable LOAD has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of LOAD.
STORE-VALUE    :R2      Input a new value for LOAD.
ABORT          :R3      Abort debug loop
Break 2 [5]> 
*** - READ from
       #<INPUT CONCATENATED-STREAM #<INPUT STRING-INPUT-STREAM>
         #<IO TWO-WAY-STREAM
           #<INPUT UNBUFFERED FILE-STREAM CHARACTER #P"/dev/fd/0" @4>
           #<OUTPUT UNBUFFERED FILE-STREAM CHARACTER #P"/dev/fd/1">>>
      : there is no package with name "CAB"
The following restarts are available:
ABORT          :R1      Abort debug loop
ABORT          :R2      Abort debug loop
Break 3 [6]> 
*** - SYSTEM::READ-EVAL-PRINT: variable QUIT has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of QUIT.
STORE-VALUE    :R2      Input a new value for QUIT.
ABORT          :R3      Abort debug loop
ABORT          :R4      Abort debug loop
ABORT          :R5      Abort debug loop
Break 4 [7]>  The CAS timed out. ] ] ] ]
unpack_raw_result: no STACKSTART returned. Data returned was: 
*** - UNIX error 13 (EACCES): Permission denied
Break 1 [4]> 
*** - SYSTEM::READ-EVAL-PRINT: variable LOAD has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of LOAD.
STORE-VALUE    :R2      Input a new value for LOAD.
ABORT          :R3      Abort debug loop
Break 2 [5]> 
*** - READ from
       #<INPUT CONCATENATED-STREAM #<INPUT STRING-INPUT-STREAM>
         #<IO TWO-WAY-STREAM
           #<INPUT UNBUFFERED FILE-STREAM CHARACTER #P"/dev/fd/0" @4>
           #<OUTPUT UNBUFFERED FILE-STREAM CHARACTER #P"/dev/fd/1">>>
      : there is no package with name "CAB"
The following restarts are available:
ABORT          :R1      Abort debug loop
ABORT          :R2      Abort debug loop
Break 3 [6]> 
*** - SYSTEM::READ-EVAL-PRINT: variable QUIT has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of QUIT.
STORE-VALUE    :R2      Input a new value for QUIT.
ABORT          :R3      Abort debug loop
ABORT          :R4      Abort debug loop
ABORT          :R5      Abort debug loop
Break 4 [7]>  The CAS timed out. ] ] ] ]]]]]
I'm not sure where a permissions error would be a problem, could someone point me out where this may be an issue? I'm not very savvy on the programming side of things, fyi. 


Үнэлгээний дундаж: -
Stuart Jones-н хариуд

Re: Maxima not connecting with Stack

дэргэд Stuart Jones -

By the way, if it helps, when I try to run maximalocal.mac from the CLI, I get:


stackmaxima.mac not found in file_search_maxima,file_search_lisp.



By the way, LISP is version 2.49, not 2.39. I made a typo earlier. Also, I'm on CentOS.

Stuart Jones-н хариуд

Re: Maxima not connecting with Stack

дэргэд Christopher Sangwin -
Particularly helpful Moodlers зураг Plugin developers зураг

Stuart,

So, Maxima cannot connect to the PHP scripts.

It looks like a file permission problem.  CentOS has causes problems for years.  Sorry, I know this is no comfort to you.  The authors of this thread: https://moodle.org/mod/forum/discuss.php?d=270956 have been very helpful in the past, and may still be using CentOS.

Chris

Christopher Sangwin-н хариуд

Re: Maxima not connecting with Stack

дэргэд Tim Hunt -
Core developers зураг Documentation writers зураг Particularly helpful Moodlers зураг Peer reviewers зураг Plugin developers зураг

Well, either file permissions, or SELinux.

Tim Hunt-н хариуд

Re: Maxima not connecting with Stack

дэргэд Stuart Jones -

SE Linux is disabled, it says. I'm using WHm/cPanel, and apparently SELinux doesn't work well with them.


I'm guessing there's not any good advice that can be given about the PHP scripts not working with maxima? I'm not super tech savvy, so I don't know what to do. 


Ie, what files need what permissions? Or is it not as easy as that?

Stuart Jones-н хариуд

Re: Maxima not connecting with Stack

дэргэд Stuart Jones -

So I've figured out that running stackmaxima.mac from within Maxima works, but running maximalocal.mac (which loads stackmaxima) doesn't work and gives the error message I mention above. Dunno if this helps.