open-lambda icon indicating copy to clipboard operation
open-lambda copied to clipboard

I did not run the worker successfully

Open ynyang1 opened this issue 1 year ago • 1 comments

:/home/download/open-lambda-main# ./ol worker up -d No OpenLambda instance is running. No further actions are needed. Starting worker in /home/download/open-lambda-main/default-ol and waiting until it's ready. PID: 586598 Port: 5000 Log File: /home/download/open-lambda-main/default-ol/worker.out 2024/07/23 18:00:48.372704 worker process 586598 does not a appear to be running, check worker.out

The work.out is listed as below:

No OpenLambda instance is running. No further actions are needed. 2024/07/23 18:00:44.433171 Saved PID 586586 to file /home/download/open-lambda-main/default-ol/worker/worker.pid 2024/07/23 18:00:44.433218 Starting new lambda server 2024/07/23 18:00:44.433226 Storage dir at /home/download/open-lambda-main/default-ol/worker/code 2024/07/23 18:00:44.433241 Storage dir at /home/download/open-lambda-main/default-ol/worker/scratch 2024/07/23 18:00:44.433257 Creating SandboxPool 2024/07/23 18:00:44.433279 create /sys/fs/cgroup/default-ol-sandboxes [CGROUP POOL default-ol-sandboxes] 2024/07/23 18:00:44.433290 Cleanup Lambda Manager due to error: Mkdir /sys/fs/cgroup/default-ol-sandboxes: read-only file system 2024/07/23 18:00:44.433313 Request Profiling (cumulative seconds): 2024/07/23 18:00:44.433318 LambdaFunc.Invoke: 0.000 2024/07/23 18:00:44.433324 LambdaInstance-WaitSandbox: 0.000 2024/07/23 18:00:44.433327 LambdaInstance-WaitSandbox-Unpause: 0.000 2024/07/23 18:00:44.433331 LambdaInstance-WaitSandbox-NoImportCache: 0.000 2024/07/23 18:00:44.433336 ImportCache.Create: 0.000 2024/07/23 18:00:44.433342 ImportCache.root.Lookup: 0.000 2024/07/23 18:00:44.433345 ImportCache.createChildSandboxFromNode: 0.000 2024/07/23 18:00:44.433348 ImportCache.getSandboxInNode: 0.000 2024/07/23 18:00:44.433350 ImportCache.createChildSandboxFromNode:childSandboxPool.Create: 0.000 2024/07/23 18:00:44.433352 ImportCache.putSandboxInNode: 0.000 2024/07/23 18:00:44.433354 ImportCache.putSandboxInNode:Lock: 0.000 2024/07/23 18:00:44.433356 ImportCache.putSandboxInNode:Pause: 0.000 2024/07/23 18:00:44.433358 LambdaInstance-ServeRequests: 0.000 2024/07/23 18:00:44.433367 LambdaInstance-RoundTrip: 0.000 2024/07/23 18:00:44.433402 Mkdir /sys/fs/cgroup/default-ol-sandboxes: read-only file system

What's wrong with me?

ynyang1 avatar Jul 23 '24 10:07 ynyang1

Pay attention to "Mkdir /sys/fs/cgroup/default-ol-sandboxes: read-only file system". Make sure you run OpenLambda on ubuntu 22.04, not 20.04.

check output of mount | grep cgroup2, you should see rw permission in cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate,memory_recursiveprot)

ShockYoungCHN avatar Aug 21 '24 12:08 ShockYoungCHN