Giter Club home page Giter Club logo

Comments (7)

linas avatar linas commented on July 23, 2024

Offtopic, last night I cleaned up the opencog/docker git repo, and updated all containers to run Ubuntu 22.04 .. so just FYI. I updated the README too, and removed the old cruft.

from atomspace.

linas avatar linas commented on July 23, 2024

OK, here is what I think happened. On the cogserver side, the persist-rocks module was not loaded, either because you forgot or there was some other error that caused it not to load. As a result, the cast in line 107 fails.

I'm now setting up a more user-friendly error message. (The Proxy stuff is brand-new, its beta code. Glitches won't be surprising.) In the meanwhile you should double-check that persist-rocks is loaded.

And I think I see how that happened: you say:

by using a docker compose file to start the cogserver

and the cogserver container probably did not load the persist-rocks module. Just FYI, there are more than several dozen different modules, in various states of working or disrepair, and the cogserver does not attempt to load any of them. So you have to make sure you load the ones you want.

There are two ways to do this. One is to start /usr/bin/cogserver and telnet into it and then do the (use-modules (opencog foobar)) as needed. Yuck.

The better way is to set up a shell script: something like this (... next post, this post is too long)

from atomspace.

linas avatar linas commented on July 23, 2024

Here's an example cogserver shell script:
https://github.com/opencog/docker/blob/master/opencog/atomspace/scripts/cogserver.scm

Copy that, edit as desired. Its a script, so if you chmod ugo+x on it, you can just say ./my-cogserver-starter.scm and the file magic of #! /usr/bin/env -S guile should just work.

Note BTW, how the cogserver is started: towards the end, it says #:web 0 This parameter says "do not start websockets". I've found that my web browser is attempting to connect to the websockets server every 10 seconds, and then closing the connection. I don't know if this is hostile or malware or some weird firefox bug or what, but I don't like it. The /tmp/cogserver.log file fills up with warnings. Since you're not using websockets, just turn it off.

from atomspace.

sikefield3 avatar sikefield3 commented on July 23, 2024

OK, here is what I think happened. On the cogserver side, the persist-rocks module was not loaded, either because you forgot or there was some other error that caused it not to load. As a result, the cast in line 107 fails.

Oops my bad !
For some reason, I wasn't able to start the container with the guile script, so I did it directly.

from atomspace.

linas avatar linas commented on July 23, 2024

If you are/were using the cogserver container from the opencog/docker git repo ... I just removed that yesterday. It is no more. If you want to keep doing this, use the atomspace container, I placed a copy of that cogserver.scm file so that is shows up in the home directory. That's the best way to start the thing.

from atomspace.

sikefield3 avatar sikefield3 commented on July 23, 2024

I'm going to try your script. Thanks!
So far, I was using my own docker/yaml files, to get more familiar with docker.

from atomspace.

linas avatar linas commented on July 23, 2024

I was using my own docker/yaml files, to get more familiar with docker.

That's a good idea. I've been using lxc, I like lxc.

I'm going to close this issue, seems like there's nothing left to do.

from atomspace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.