trampgeek / jobe

jobe is a server that runs small programming jobs in a variety of programming languages
MIT License
111 stars 80 forks source link

shm_put_var(): Not enough shared memory left #84

Open menghuanpy opened 1 day ago

menghuanpy commented 1 day ago

I run python3 simpletest.py,

languages supported as: [["c","14.2.0"],["cpp","14.2.0"],["java","21.0.5"],["nodejs","20.16.0"],["octave","9.2.0"],["pascal","3.2.2"],["php","8.3.11"],["python3","3.12.7"]]

but runs with errors as 500.

check log messages, got: CRITICAL - 2024-11-21 01:24:48 --> ErrorException: shm_put_var(): Not enough shared memory left

My server has 4GB memory. What is the problem?

trampgeek commented 1 day ago

Does your Linux system have the System V Semaphone and shared-memory functions compiled in? To quote from the Jobe install instructions:

Jobe runs only on Linux, which must have the Apache web server installed and running. PHP must have been compiled with the System V Semaphone and shared-memory functions enabled (see here), but that's the norm. Access Control Lists (ACLs) must be enabled; they normally are but if the /home/jobe directory lands up on a mounted volume, you may need to explicitly enable ACLs in the mount command or in /etc/fstab. The Python3 and the C development system must also be installed.