Documentation menu

Help

Troubleshooting

Each problem below has its own link. They are the ones people actually run into when installing a server and connecting an assistant; if yours is not here, the status and the logs of the service usually say what is wrong.

First checks

sudo memex status
systemctl status memex
journalctl -u memex -n 100

memex status shows the version, the state of the service, the address of the instance and the update state. The journal shows why a start failed.

The install command prints nothing and installs nothing

Cause. The command was typed with a lowercase l: curl -fsSl. The capital L is the option that follows redirects. Without it, curl receives a redirect, prints nothing because of -s, and the shell at the other end of the pipe has nothing to run.

Fix. Use -fsSL, with a capital L. Copy the command rather than retyping it:

curl -fsSL https://raw.githubusercontent.com/mlafraise/memex/main/install.sh | sh

The certificate request fails because the DNS record is not in place

Symptom. In domain mode, the installer reports that the domain does not point to this server, or the certificate request fails. Let’s Encrypt checks the domain from the internet: it can only issue a certificate once the name resolves to the public address of your server and ports 80 and 443 are reachable.

During the installation. Create the A record (and AAAA if the server has an IPv6 address) at your DNS provider, wait for it to be visible, then choose Check again. If you choose Continue without HTTPS for now, the instance is installed and answers over plain HTTP.

Afterwards. Once the record is in place, check it, request the certificate, then tell Memex its new address:

dig +short brain.example.com        # must print the public address of the server
sudo certbot --nginx -d brain.example.com
sudo memex config set public_url https://brain.example.com --restart

The last step matters: without it the site answers over HTTPS while Memex still announces an http:// address, which causes the next problem. The certbot command is the one for nginx; with Apache use --apache. Running sudo memex install again with the same domain is the other way to finish: it keeps the data. Details: Install with your own domain.

"You do not have permission to do this" (403) when authorising an AI

Symptom. You connect an assistant, the consent screen opens, and approving it answers "You do not have permission to do this".

Cause. The public_url setting still says http:// while you reach the site over https://. Memex compares the origin of the request with its own address; they differ, so the request is refused. This typically happens when HTTPS was added after the installation.

Fix. Set public_url to the HTTPS address, restart, then connect the assistant again:

sudo memex config get public_url
sudo memex config set public_url https://brain.example.com --restart

In the AI client, remove the Memex connector and add it again with https://brain.example.com/mcp, then approve the consent screen. See Configuration.

The address changed after a restart (quick tunnel)

Cause. In quick-tunnel mode the public address is a random trycloudflare.com name that changes every time the server restarts, including after an update.

Fix. Read the new address with sudo memex status, give it to the people who use the instance, and in each AI client remove the connector and add it again with the new address. For an address that never changes, switch to a permanent tunnel or a domain with sudo memex install: see Install through a Cloudflare tunnel.

claude.ai cannot connect to an instance on a local network

Cause. For claude.ai the requests come from Anthropic’s servers, not from your browser. An instance reachable only on your local network, or only on localhost, cannot be reached from there.

Fix. Make the instance reachable from the internet over HTTPS, with a domain or a tunnel: see Access modes.

The assistant says semantic search is unavailable

Cause. Semantic search is off by default on a self-hosted server; the semantic_search tool then answers with an error telling the assistant to use search.

Fix. Install the model: sudo memex model install. See Semantic search.

Memex says it cannot update itself

Cause. The directory of the program is not writable by the service, usually because Memex was not installed with the installer. The auto mode then behaves like notify.

Fix. Run sudo memex update, or run the installer again. See Updates.

macOS or Windows refuses to open the desktop app

The desktop builds are not signed yet, so macOS says the developer cannot be verified and Windows SmartScreen says it protected your PC. The way through each warning is on Desktop app.

Still stuck

Search or open an issue on the issue tracker, with the output of sudo memex status and the relevant lines of the journal. Remove addresses and tokens first. The product documentation is in the docs folder of the repository.