synchrony / smsn

Semantic Synchrony. An experiment in cognitive and sensory augmentation.
Other
180 stars 15 forks source link

"no route to host" #74

Open hmltn-0 opened 2 days ago

hmltn-0 commented 2 days ago

I believe I followed the set-up instructions.

  1. Installed Docker
  2. Created a smsn folder
  3. Did the docker pull command
  4. Used the process ID to open a bash shell and start emacs
  5. Do the Emacs command M-x smsn

The screen turned blue, but it says C-c n is not recognized, and I think it gave me an error message:

Screenshot 2024-11-28 at 2 56 44 PM

Is this an error?

JeffreyBenjaminBrown commented 2 days ago

The screenshot you attached is a broken link for me. Could you paste the text of all the shell commands you ran?

Do the usual modifier keys work in Emacs for you outside of smsn-mode? For instance if you type C-u 8 a, do you end up typing 8 copies of the character a?

When you say the screen turned blue, do yout mean the Windows blue screen of death, or that Emacs turned blue?

hmltn-0 commented 2 days ago

Thanks. I fixed the image upload.

I meant Emacs turned blue, as the install instructions said - "if the screen turns blue, it's working". I'm on Mac.

Here is some of what I've entered in the shell:

> docker pull jeffreybbrown/smsn-emacs-too

Using default tag: latest
latest: Pulling from jeffreybbrown/smsn-emacs-too
Digest: sha256:be61eaf53c99640f96f7357323ef26175c6c9c6ac0fe1f4fa9e88f4f93e6d8cc
Status: Image is up to date for jeffreybbrown/smsn-emacs-too:latest
docker.io/jeffreybbrown/smsn-emacs-too:latest
What's next:
    View a summary of image vulnerabilities and recommendations → docker scout quickview jeffreybbrown/smsn-emacs-too

> docker run -it -v .:/mnt/smsn-data jeffreybbrown/smsn-emacs-too

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
HOSTNAME=e2c51d26f2d5
TERM=xterm
LC_ALL=en_US.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
LANG=en_US.UTF-8
SHLVL=1
HOME=/root
LANGUAGE=en_US:en
_=/usr/bin/env
Using host 172.17.0.2
[INFO] GremlinServer - 
         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
[INFO] GremlinServer - Configuring Gremlin Server from conf/gremlin-server-smsn.yaml
[INFO] GraphManager - Graph [graph] was successfully configured via [conf/neo4j.properties].
[INFO] ServerGremlinExecutor - Initialized Gremlin thread pool.  Threads in pool named with pattern gremlin-*
[INFO] ScriptEngines - Loaded smsn ScriptEngine
[INFO] ScriptEngines - Loaded gremlin-groovy ScriptEngine
INFO: Fri Nov 29 15:27:24 UTC 2024: net.fortytwo.smsn.SemanticSynchrony loadYamlFromDefaultLocation: using default Semantic Synchrony configuration
INFO: Fri Nov 29 15:27:24 UTC 2024: net.fortytwo.smsn.server.SmSnScriptEngine readAsYaml: added configuration
INFO: Fri Nov 29 15:27:24 UTC 2024: net.fortytwo.smsn.server.Action getBrain: instantiating Extend-o-Brain with base graph neo4jgraph[Community [/mnt/smsn-data/neo4j]]
INFO: Fri Nov 29 15:27:24 UTC 2024: net.fortytwo.smsn.server.Action handleRequest: completed NoAction action in 1 ms
[WARN] GremlinExecutor - Initialization script conf/smsn.yaml did not return a Map - no global bindings specified
[INFO] GremlinExecutor - Initialized smsn ScriptEngine with conf/smsn.yaml
[INFO] GremlinExecutor - Initialized gremlin-groovy ScriptEngine with scripts/empty-sample.groovy
[INFO] ServerGremlinExecutor - Initialized GremlinExecutor and configured ScriptEngines.
INFO: Fri Nov 29 15:27:25 UTC 2024: net.fortytwo.smsn.server.Action handleRequest: completed NoAction action in 1 ms
[INFO] ServerGremlinExecutor - A GraphTraversalSource is now bound to [g] with graphtraversalsource[neo4jgraph[Community [/mnt/smsn-data/neo4j]], standard]
[INFO] OpLoader - Adding the standard OpProcessor.
[INFO] OpLoader - Adding the control OpProcessor.
[INFO] OpLoader - Adding the session OpProcessor.
[INFO] OpLoader - Adding the traversal OpProcessor.
[INFO] TraversalOpProcessor - Initialized cache for TraversalOpProcessor with size 1000 and expiration time of 600000 ms
[INFO] GremlinServer - Executing start up LifeCycleHook
[INFO] Logger$info - Executed once at startup of Gremlin Server.
[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0
[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo-lite with org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0
[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo-stringd with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0
[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0
[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v2.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0
[INFO] AbstractChannelizer - Configured application/json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0
[INFO] GremlinServer$1 - Gremlin Server configured with worker thread pool of 1, gremlin pool of 8 and boss thread pool of 1.
[INFO] GremlinServer$1 - Channel started at port 8182.

Maybe it's because I'm new to Emacs. I think I wasn't able to do normal commands like Ctrl-x Ctrl-f because I was in the "mini buffer" where some Lisp debugging info is. I exited taht with Ctrl-g I think, then I could open a new file and Ctrl-u 8 a worked, for example.

But Emacs is still in split screen, and I can't close one of the buffers with Ctrl-0 or Ctrl-1, and SemSyn commands like Ctrl-c n are not recognized.

Screenshot 2024-11-29 at 8 39 40 AM
JeffreyBenjaminBrown commented 2 days ago

Cool, this is progress.

The error message in the right pane of your first uploaded image indicates that Emacs is not finding Gremlin. (Notice how each line ends in a dollar sign? That's to indicate it continues scrolling off the page. To wrap those lines you can run M-x to-tr, which expands to toggle-truncate-lines. In some modes the default is to wrap; in other modes, not to.)

Gremlin controls the graph, and Emacs is the frontend for it. Are you running Emacs from within the docker container, or from outside of it?

It's been a couple years since I used SmSn myself, but I love the project and want you to be able to use it, so I'll try to get it running myself soon and compare notes.

JeffreyBenjaminBrown commented 2 days ago

C-c n should create a new node if smsn-mode is running. That it doesn't suggests that it isn't. Do you still get the no route to host error shown in the second pane of your first upload? The output you showed from Gremlin, ending with started at port 8182, indicates that Gremlin is indeed running.

JeffreyBenjaminBrown commented 2 days ago

Cool, this is progress.

The error message in the right pane of your first uploaded image indicates that Emacs is not finding Gremlin. (Notice how each line ends in a dollar sign? That's to indicate it continues scrolling off the page. To wrap those lines you can run M-x to-tr, which expands to toggle-truncate-lines. In some modes the default is to wrap; in other modes, not to.)

Gremlin controls the graph, and Emacs is the frontend for it. Are you running Emacs from within the docker container, or from outside of it?

C-c n should create a new node if smsn-mode is running. That it doesn't suggests that it isn't. Do you still get the no route to host error shown in the second pane of your first upload? The output you showed from Gremlin, ending with started at port 8182, indicates that Gremlin is indeed running.

Sometimes Docker gives permission problems as a result of having a different uid and gid than the host system. From within Bash in the Docker container, if you touch a file and then view it using ls -l from the host system (outside of Docker), does it have the same user and group name as a file you create from the host system?

It's been a couple years since I used SmSn myself, but I love the project and want you to be able to use it, so I'll try to get it running myself soon and compare notes.