Comments (7)
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.
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.
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.
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.
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.
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.
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)
- compiling scheme atomese HOT 1
- Possible erroneous behavior of BindLink HOT 6
- Pattern matcher fails on a query involving disjunction of virtual clauses HOT 6
- SchemeEval run smoothly on x64 and i386 but it crashes on armv7-a HOT 58
- Compile *.scm files and install the *.go files HOT 2
- Compile error on persist-file.scm HOT 2
- Python import error when atomspace module is not loaded before a module with custom Atom types HOT 2
- sparse pattern query does not allow nested spare terms.
- sparse query pattern performance
- Android port issues
- IdenticalLink fails to find all permutations.
- Re-implement PostgresStorageNode to work like RocksStoragenode
- glob interval not supporting disjoint unions HOT 7
- FloatValue Example gives exception HOT 2
- Update README: package cmake3 is missing in Ubuntu 22.10 repository but package cmake is there HOT 1
- Another FloatValue example HOT 4
- Atomspace build broken for ubuntu with ocaml installed. HOT 4
- Broken python bindings HOT 10
- Suggestion: Table of Contents for ram-cpu.pdf HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atomspace.