-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Docker build #440
Fix Docker build #440
Conversation
Addresses frandallfarmer#437. NodeSource has reinstated the deprecated installer scripts, but the NodeSource repo doesn't contain a packge for npm, and the CentOS package for npm conflicts with the NodeSource nodejs. Updated to use the nsolid package directly. Also updated the habibots Dockerfile to use the latest node 18 image. Debian Bookworm transitioned the netcat package from one that installed netcat-openbsd to a "virtual package" which doesn't specify a preferred version. Changed it to specify netcat-openbsd explicitly.
I can confirm this has been tested in WSL2 with Docker Desktop and the neohabitat image now successfully builds and stands up. It still needs testing on other configs but this seems good. I'm having an unrelated issue where I can't login with a pre-existing avatar, hatch a new avatar or log a bot inworld: neohabitat-neohabitat-1 | error: Unable to find last Region context-hatchery for User: user-stu. Setting to Turf undefined.
neohabitat-neohabitat-1 | debug: Sending 'entercontext' to undefined on behalf of the Habitat client.
neohabitat-neohabitat-1 | debug: Processing Client message for Client 172.18.0.4:53734 (unknown): {"to":"session","op":"entercontext","user":"user-stu"}
neohabitat-neohabitat-1 | - 2024/01/27 03:57:08.019 MSG comm-cli : TCP(2) -> {"to":"session","op":"entercontext","user":"user-stu"}
neohabitat-neohabitat-1 | - 2024/01/27 03:57:08.078 ERR comm (RoutingActor.processMessage:RoutingActor.java:74) exception in message handler
neohabitat-neohabitat-1 | +-vvvv--
neohabitat-neohabitat-1 | + org.elkoserver.foundation.json.JSONInvocationException: expected parameter 'context' missing
neohabitat-neohabitat-1 | + org.elkoserver.foundation.json.Invoker.apply(Invoker.java:142)
neohabitat-neohabitat-1 | + org.elkoserver.foundation.json.MethodInvoker.handle(MethodInvoker.java:77)
neohabitat-neohabitat-1 | + org.elkoserver.foundation.json.MessageDispatcher.dispatchMessage(MessageDispatcher.java:170)
neohabitat-neohabitat-1 | + org.elkoserver.foundation.actor.RefTable.dispatchMessage(RefTable.java:183)
neohabitat-neohabitat-1 | + org.elkoserver.foundation.actor.RoutingActor.processMessage(RoutingActor.java:68)
neohabitat-neohabitat-1 | + org.elkoserver.foundation.net.ConnectionBase$MessageHandlerThunk.run(ConnectionBase.java:100)
neohabitat-neohabitat-1 | + org.elkoserver.foundation.run.Runner.run(Runner.java:215)
neohabitat-neohabitat-1 | + java.lang.Thread.run(Thread.java:750)
neohabitat-neohabitat-1 | +-^^^^--
neohabitat-neohabitat-1 |
neohabitat-neohabitat-1 | - 2024/01/27 03:57:08.124 WRN comm (RoutingActor.processMessage:RoutingActor.java:83) error handling message: org.elkoserver.foundation.json.JSONInvocationException: expected parameter 'context' missing
neohabitat-neohabitat-1 | - 2024/01/27 03:57:08.135 MSG comm-cli : TCP(2) <- {"to":"error", "op":"debug", "msg":"error handling message: org.elkoserver.foundation.json.JSONInvocationException: expected parameter 'context' missing"}
neohabitat-neohabitat-1 | debug: Processing Server message for Client 172.18.0.4:53734 (unknown): {"to":"error","op":"debug","msg":"error handling message: org.elkoserver.foundation.json.JSONInvocationException: expected parameter 'context' missing"}
neohabitat-neohabitat-1 | debug: server (5) -> {"to":"error","op":"debug","msg":"error handling message: org.elkoserver.foundation.json.JSONInvocationException: expected parameter 'context' missing"}
neohabitat-neohabitat-1 | warn: Message from server headed to binary client not yet converted. IGNORED:``` |
RE: the problem I had in my previous comment, for some reason the object database hadn't built at all. After SSH'ing into the neohabitat container and running |
The test .js scripts no longer function with this PR:
JS package stuff is sensitive. I think code changes will be required to update packages to the latest supported. |
Hmm, it seems to run for me inside the container I changed, although the help text for
|
Addresses #437.
NodeSource has reinstated the deprecated installer scripts, but the NodeSource repo doesn't contain a packge for npm, and the CentOS package for npm conflicts with the NodeSource nodejs. Updated to use the nsolid package directly.
Also updated the habibots Dockerfile to use the latest node 18 image. Debian Bookworm transitioned the netcat package from one that installed netcat-openbsd to a "virtual package" which doesn't specify a preferred version. Changed it to specify netcat-openbsd explicitly.