AI-Planning / planning-as-a-service

The newly improved planner (and more) in the cloud.
Apache License 2.0
30 stars 7 forks source link

use error : no job control in this shell\n/root/.planutils/packages/downward/run: line 3: 26 Segmentation fault singularity run -e $ #45

Closed kk-Aye closed 1 year ago

kk-Aye commented 1 year ago

I use VM about Ubuntu20 and docker build method. After i make it successfully, i try to solve PDDL in vscode, but it report this error. I do not understand why this is.

haz commented 1 year ago

Are you running the docker in --privileged mode?

kk-Aye commented 1 year ago

Are you running the docker in --privileged mode?

I check the modes of the four docker containers running using the [docker inspect --format='{{.hostconfig.privileged}}'] command, where server_web_1 and server_worker_1 are true. server_monitor_1 and server_redis_1 are false.

haz commented 1 year ago

Hrmz...must be something else internally. I'd suggest perhaps running the planutils lightweight server instead: https://github.com/AI-Planning/planutils/tree/main/environments/server

kk-Aye commented 1 year ago

Thank you, I will try.

kk-Aye commented 1 year ago

Hrmz...must be something else internally. I'd suggest perhaps running the planutils lightweight server instead: https://github.com/AI-Planning/planutils/tree/main/environments/server

I'm sorry, after i installed the planutils lightweight server, I don't know how can i use it (/(ㄒoㄒ)/~~). I cant't find the bash file for lama or other solver in my host machine, can it only be used in docker?

haz commented 1 year ago

The server script is set up that way, ya. You don't have access to docker to run it?

kk-Aye commented 1 year ago

The server script is set up that way, ya. You don't have access to docker to run it?

No, I‘m sorry i didn't make that clear. docker service is running, but i want to use vscode'PDDL plugin, Using 'localhost:5001/package/optic/solve' as planning engine but it failed and prompt "socket hang up".

image image

haz commented 1 year ago

Can you post what the browser shows for localhost:5001/packages and localhost:5001/package/optic?

kk-Aye commented 1 year ago

Sorry, I was busy with another project before, so I didn't reply in time. About this question, result is can't. When I post data to localhost:5001/packages or localhost:5001/package/optic, they return no response. I now think that these failures may be due to the network configuration of my virtual machine. I previously successfully deployed and used the project on WLS(ubuntu20). I'll try to figure out what the network setting differences are between these two approaches. Or this can solve the problem.

Can you post what the browser shows for localhost:5001/packages and localhost:5001/package/optic?

haz commented 1 year ago

If heading to those URL's is giving nothing, then the server isn't even accessible. Either not running properly, or network issues as you hypothesized. My money's on the network config for your machine too ;).

kk-Aye commented 1 year ago

If heading to those URL's is giving nothing, then the server isn't even accessible. Either not running properly, or network issues as you hypothesized. My money's on the network config for your machine too ;).

Thank you for your suggestion, but I‘m sorry, I don't understand what you mean by the last sentence. Why? X﹏X

haz commented 1 year ago

I don't understand what you mean by the last sentence. Why?

Oh, just meant that my first hunch would be something funny going on with the port mapping (it's usually what breaks first when running servers via docker).

haz commented 1 year ago

Any update on this, @kk-Aye ?

kk-Aye commented 1 year ago

Any update on this, @kk-Aye ?

I'm sorry. I'm busy writing papers and exams afterwards. Virtual machine configuration is not progressing. I will continue the configuration under the virtual machine after the paper is passed. If you need, I can close this issue, and then I will open the issue when I make some progress.

haz commented 1 year ago

Ya, let's close for now -- we're in the midst of launching the webserver equivalent (being demo'd at the ICAPS conference this summer), so that might make the issue a non-starter anyway. Hope the exams go well!