Skip to content

Node-locked license activation fails on Ubuntu 24.04 (uid 1000) #165

@raverydavis

Description

@raverydavis

Note: I'm doing this from Ubuntu 24.04 using uid 1000 guid 1000

For https://github.com/WolframResearch/AgentTools/blob/main/docs/docker.md#option-2-node-locked-license-free

Activate once interactively:

docker run -it --rm --entrypoint wolframscript \
  -v ./Licensing:/home/wolframengine/.WolframEngine/Licensing \
  ghcr.io/wolframresearch/mcpserver:latest

The licensing info was not in that directory, it complains:

A file system error occurred while trying to write the password file "/usr/local/Wolfram/WolframEngine/14.3/Configuration/Licensing/mathpass". You can still run Wolfram Language 14.3.0 Engine, but you will have to reenter your password the next time you start Wolfram Language 14.3.0 Engine.

I had to do this instead: docker run -it --rm --entrypoint bash ghcr.io/wolframresearch/mcpserver:latest

in container run: /usr/local/Wolfram/WolframEngine/14.3/Executables/wolfram

Then it gives you a mathpass:

Mathematica 14.3.0 Kernel for Linux x86 (64-bit)
Copyright 1988-2025 Wolfram Research, Inc.

Mathematica 14.3.0 Kernel cannot find a valid password.

For automatic Web Activation enter your activation key
(enter return to skip Web Activation): mykey
Detected locale "C" with character encoding "UTF-8", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.

Automatic Web Activation received a password.

Creating password file entry in:
/home/wolframengine/.Mathematica/Licensing/mathpass

Then copy file /home/wolframengine/.Mathematica/Licensing/mathpass to ./Licensing/ on the host

docker run -it --rm --entrypoint wolframscript -v ./Licensing:/home/wolframengine/.WolframEngine/Licensing ghcr.io/wolframresearch/mcpserver:latest
Wolfram Language 14.3.0 Engine for Linux x86 (64-bit)
Copyright 1988-2025 Wolfram Research, Inc.

In[1]:= 1+1

Out[1]= 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions