Error connecting to MCP server

201 views
Skip to first unread message

Rachel Leach

unread,
Aug 10, 2021, 3:20:28 PM8/10/21
to archivematica
Hi, 

I used the manual install instructions (which are great, by the way!) to install the newest Archivematica release on Ubuntu 18.04. I have the dashboard and the storage service running on the same server. Everything went smoothly, but I hit a snag connecting the storage service. 

On the top right of my dashboard, I see "Error trying to connect to MCP server. Trying again..." 

The MCP server is running, but when I run "systemctl status archivematica-mcp-server', I see the following error: 

archivematica-mcp-server.service - Archivematica MCPServer

   Loaded: loaded (/lib/systemd/system/archivematica-mcp-server.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2021-08-10 19:04:30 UTC; 2min 7s ago

  Process: 25452 ExecStart=/usr/share/archivematica/virtualenvs/archivematica/bin/python /usr/lib/archivematica/MCPServer/archivematicaMCP.py (code=exited, status=1/FAILURE)

 Main PID: 25452 (code=exited, status=1/FAILURE)


Aug 10 19:04:29 archivematica python[25452]:     workflow = load_workflow()

Aug 10 19:04:29 archivematica python[25452]:   File "/usr/lib/archivematica/MCPServer/server/workflow.py", line 252, in load_workflow

Aug 10 19:04:29 archivematica python[25452]:     return load(workflow_file)

Aug 10 19:04:29 archivematica python[25452]:   File "/usr/lib/archivematica/MCPServer/server/workflow.py", line 240, in load

Aug 10 19:04:29 archivematica python[25452]:     blob = fp.read()  # Read once, used twice.

Aug 10 19:04:29 archivematica python[25452]:   File "/usr/share/archivematica/virtualenvs/archivematica/lib/python3.6/encodings/ascii.py", line 26, in decode

Aug 10 19:04:29 archivematica python[25452]:     return codecs.ascii_decode(input, self.errors)[0]

Aug 10 19:04:29 archivematica python[25452]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 122: ordinal not in range(128)

Aug 10 19:04:30 archivematica systemd[1]: archivematica-mcp-server.service: Main process exited, code=exited, status=1/FAILURE

Aug 10 19:04:30 archivematica systemd[1]: archivematica-mcp-server.service: Failed with result 'exit-code'.

Any advice on how to get these connected? Thank you!

Rachel Leach

unread,
Aug 13, 2021, 2:45:02 PM8/13/21
to archivematica
In case anyone else runs into this issue, I was able to resolve it by installing additional language packs for my region and then resetting my locale. 

Tatiana Canelhas

unread,
Feb 4, 2022, 7:37:28 AM2/4/22
to archivematica
Hi, I got the same problem, the UBUNTU 18 server I am using was installed in Brazilian Portuguese.

And what I did was:
By installing MCPServer and Dashboard, I got the warning: "setlocale: LC_ALL: cannot change locale (en_US.UTF-8)"

So, followed the instructions here, but instead of doing it for Portuguese, I did for English.

1.Type:
locale -a

--> Notice it didn´t listed "en_US.UTF-8"

2. Then type:
sudo nano /etc/locale.gen

-->find the line "en_US.UTF-8", =delete the "#" in front of it (uncomment) and save it.

3. Type:
sudo locale-gen

4. Then type again:
locale -a

--> Notice the "en_US.UTF-8" listed

Hope that helps.
Reply all
Reply to author
Forward
0 new messages