MCP connection error

1,445 views
Skip to first unread message

Jordan Bass

unread,
Mar 11, 2011, 4:29:47 PM3/11/11
to archivematica
Hello,

I'm getting the following message "Error trying to connect to MCP
server. Trying again…" in the Archivematica Dashboard when the Micro-
Service is trying to assign file UUIDs and checksums. Any idea what I
may have done here?

Jordan.

Jesús García Crespo

unread,
Mar 11, 2011, 4:55:07 PM3/11/11
to archiv...@googlegroups.com, Jordan Bass, Joseph Perry
Hi Jordan,

This error message is result of MCPClient stopped working. I don't know exactly where to find the log details for this service, but I think that Joseph can send us more details on this point. I guess that the log messages will help us to discover what is happening.

Regards,
 
--
Jesús García Crespo,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056

Evelyn McLellan

unread,
Mar 11, 2011, 5:20:46 PM3/11/11
to archivematica
Hi Jordan,

You'll need to shut down and restart Archivematica. Once you've done
that, can you see if you get the same error again? Thanks.

Evelyn

On Mar 11, 1:55 pm, Jesús García Crespo <je...@artefactual.com> wrote:
> Hi Jordan,
>

Jordan Bass

unread,
Mar 11, 2011, 5:26:54 PM3/11/11
to archiv...@googlegroups.com
Hello Evelyn,
 
I've found that this error message only comes up with a specific SIP. Every other SIP I've put through has worked fine.

--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To post to this group, send email to archiv...@googlegroups.com.
To unsubscribe from this group, send email to archivematic...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/archivematica?hl=en.




--
Jordan Bass
Archivist
Faculty of Medicine Archives
University of Manitoba
Rm 331- Brodie Centre
Neil John Maclean Health Sciences Library
770 Bannatyne Avenue
Winnipeg, Manitoba R3E 0W3
Ph. (204) 977-5600 

Evelyn McLellan

unread,
Mar 11, 2011, 5:28:46 PM3/11/11
to archivematica
That's interesting. What's in the SIP?

On Mar 11, 2:26 pm, Jordan Bass <lesliejo...@gmail.com> wrote:
> Hello Evelyn,
>
> I've found that this error message only comes up with a specific SIP. Every
> other SIP I've put through has worked fine.
>
> Ph. (204) 977-5600- Hide quoted text -
>
> - Show quoted text -

Elinor Robinson

unread,
Mar 15, 2011, 10:31:05 AM3/15/11
to archivematica
I'm having the same problem, it occurred both today and yesterday, and
with different SIPs (although they both came from the same source,
i.e. my memory stick). It happens at the same point as Jordan, with
the UUID and checksum assignation. I've used Archivematica with no
problems before. Any idea what's up?

Ellie

Evelyn McLellan

unread,
Mar 15, 2011, 12:52:15 PM3/15/11
to archivematica
Hi Ellie,

Without knowing what's in the SIPs it's hard to pinpoint what the
problem might be. Could you either describe the contents or email me
the SIP(s)? Please send them to epmclellan[AT]gmail[DOT]com. Thanks.

Evelyn McLellan
Systems Archivist
Artefactual Systems Inc.

berwin22

unread,
Mar 15, 2011, 4:30:02 PM3/15/11
to archivematica
This sounds like Issue 471: Archivematica freezes when processing
files with apostrophe in filename
http://code.google.com/p/archivematica/issues/detail?id=471

Are there any special charactors in the file names of the objects?

Joseph

Elinor Robinson

unread,
Mar 16, 2011, 10:17:10 AM3/16/11
to archivematica
Hi,

Yes there are apostrophes! Is this something that's likely to be
fixed, or do we just need to follow certain practices when renaming
the SIP? On a related note, is there a reason why the SIP needs to be
renamed? I'm keen to preserve original folder names so I need to be
sure that we're documenting the original name somewhere if they do
need to be renamed.

Thanks,

Ellie

On Mar 15, 8:30 pm, berwin22 <berwi...@gmail.com> wrote:
> This sounds like Issue 471:     Archivematica freezes when processing
> files with apostrophe in filenamehttp://code.google.com/p/archivematica/issues/detail?id=471

Sarah Romkey

unread,
Mar 16, 2011, 12:18:56 PM3/16/11
to archivematica
I'm also having the same problem. Our email is down this morning but
once it is back up I will email you and describe the SIP. I checked
for unusual characters in the file and folder names and that doesn't
seem to be the issue (unless spaces or dashes are a problem). It's now
unable to receive any more SIPs.

Cheers,

Sarah

Peter Van Garderen

unread,
Mar 16, 2011, 2:26:27 PM3/16/11
to archiv...@googlegroups.com
FYI: 'rename' was always intended to be a temporary workaround; keep in mind
Archivematica is still only an alpha release in active development :-)

Obviously renaming a SIP to start processing is not desirable behaviour. We've
identified a fix for this as a high priority for the 0.7.1 release:
http://code.google.com/p/archivematica/issues/detail?id=482

The preferred fix is to have Archivematica processing just start when a SIP is
moved/copied to receiveSIP. In case we cannot get that working satisfactorily
(its more complicated than it may seem which is why we had a work-around to
begin with), we'll go to having a 'processSIP' script that can be triggered from
within the receiveSIP folder.

Cheers,

--peter


On 03/16/2011 11:09 AM, Evelyn McLellan wrote:
> Hi Elinor,
>
> The aphostrophe issue has already been fixed in our development
> environment and the fix will be incorporated into the next release of
> Archivematica (0.7.1, scheduled for May). Regarding the renaming
> issue, we are working on a fix for that too since we know it's not
> good to have to change the folder name. In Archivematica 0.7.1 there
> will be a script which automatically processes the SIP without
> renaming.
>
> Evelyn

Evelyn McLellan

unread,
Mar 16, 2011, 2:09:30 PM3/16/11
to archivematica
Hi Elinor,

The aphostrophe issue has already been fixed in our development
environment and the fix will be incorporated into the next release of
Archivematica (0.7.1, scheduled for May). Regarding the renaming
issue, we are working on a fix for that too since we know it's not
good to have to change the folder name. In Archivematica 0.7.1 there
will be a script which automatically processes the SIP without
renaming.

Evelyn

jos...@artefactual.com

unread,
Mar 16, 2011, 11:59:24 AM3/16/11
to archivematica
Issue 471: "Archivematica freezes when processing files with
apostrophe in filename" has a status of developer noted as fixed for
the 0.7.1 release, QA/testers have yet to verify, but I think it's
highly likely it will be fixed in the next release.
The fix itself is a relatively straight forward change to the code:
[file]/usr/lib/archivematica/MCPServer/MCPloggingSQL.py
http://code.google.com/p/archivematica/source/diff?spec=svn1232&r=1232&format=side&path=/trunk/src/MCPServer/lib/MCPloggingSQL.py
I believe the change would be safe to make to your 0.7 sources.

In relation to the renaming the SIP, I've opened Issue 482: Receive
SIP watch directory behavior. - Rename move etc.
http://code.google.com/p/archivematica/issues/detail?id=482
"On a related note, is there a reason why the SIP needs to be
renamed?" The short answer is no, if the SIP is *moved* into the
receiveSIP directory on the local machine, but as you can tell from
the issue, there is a little more under the skin to the behavior
around that.
Remember - archivematica 0.7 by default is set to create a backup of
the SIP.

I hope that answers your questions,
please let me know if anything needs clarification.

Joseph

Elinor Robinson

unread,
Mar 17, 2011, 10:00:23 AM3/17/11
to archivematica
Great, thanks for the info everyone! :)

On Mar 16, 3:59 pm, "jos...@artefactual.com" <jos...@artefactual.com>
wrote:
> Issue 471: "Archivematica freezes when processing files with
> apostrophe in filename" has a status of developer noted as fixed for
> the 0.7.1 release, QA/testers have yet to verify, but I think it's
> highly likely it will be fixed in the next release.
> The fix itself is a relatively straight forward change to the code:
> [file]/usr/lib/archivematica/MCPServer/MCPloggingSQL.pyhttp://code.google.com/p/archivematica/source/diff?spec=svn1232&r=123...
> I believe the change would be safe to make to your 0.7 sources.
>
> In relation to the renaming the SIP, I've opened Issue 482:     Receive
> SIP watch directory behavior. - Rename move etc.http://code.google.com/p/archivematica/issues/detail?id=482

Jordan Bass

unread,
Apr 1, 2011, 10:06:38 AM4/1/11
to archivematica
Hello,

I'm trying to edit this script but when I try to save it I get the
message "Can't open file to write".

J.

On Mar 16, 10:59 am, "jos...@artefactual.com" <jos...@artefactual.com>
wrote:
> Issue 471: "Archivematica freezes when processing files with
> apostrophe in filename" has a status of developer noted as fixed for
> the 0.7.1 release, QA/testers have yet to verify, but I think it's
> highly likely it will be fixed in the next release.
> The fix itself is a relatively straight forward change to the code:
> [file]/usr/lib/archivematica/MCPServer/MCPloggingSQL.pyhttp://code.google.com/p/archivematica/source/diff?spec=svn1232&r=123...
> I believe the change would be safe to make to your 0.7 sources.
>
> In relation to the renaming the SIP, I've opened Issue 482:     Receive
> SIP watch directory behavior. - Rename move etc.http://code.google.com/p/archivematica/issues/detail?id=482

berwin22

unread,
Apr 1, 2011, 10:51:45 AM4/1/11
to archivematica
Sounds like a permissions on the file.
Try on the command line:
sudo mousepad /usr/lib/archivematica/MCPServer/MCPloggingSQL.py

Joseph

Jordan Bass

unread,
Apr 20, 2011, 12:30:42 PM4/20/11
to archivematica
Hello Joseph,

I've edited the script but I'm getting the "error trying to connect to
MCP server. Trying again..." message in the Dashboard. I've tried to
shutdown and restart Archivematica but the error still occurs. Any
ideas?

Jordan.
> > > Joseph- Hide quoted text -

jos...@artefactual.com

unread,
Apr 21, 2011, 2:12:56 PM4/21/11
to archivematica
Hi Jordan,
Nothing in particular is coming to mind, and without the logs it's
almost impossible to guess. Unfortunately the 0.7 MCP daemons didn't
log.
The only similar thing I can think of is the problems with Unicode
characters http://code.google.com/p/archivematica/issues/detail?id=382
.
When is that error in the dashboard appearing? If it's before "assign
file UUIDs and checksums," then I think something might have gone
wrong in the edit, possibly spacing. Archivematica uses four spaces
per indent(no tab characters).

Joseph
> > - Show quoted text -- Hide quoted text -

Austin

unread,
Apr 21, 2011, 2:32:42 PM4/21/11
to archiv...@googlegroups.com
Hi Jordan,
You can add server logging by editing the
/etc/init/archivematica-mcp-server.conf file, and restarting xubuntu.

first, Open a terminal.
then enter the following command(this will open a text editor)
sudo mousepad /etc/init/archivematica-mcp-server.conf

find the following line(last line),
exec /usr/bin/runArchivematicaMCPServer.sh

and append '>> /tmp/mcpserver.log 2>&1' so that it looks like,
exec /usr/bin/runArchivematicaMCPServer.sh >> /tmp/mcpserver.log 2>&1

save the file and exit.

then restart archivematica(xubuntu)
sudo reboot

post reboot server logs should be available at /tmp/mcpserver.log
mousepad /tmp/mcpserver.log

if this works please send us the output so we can further debug

cheers
-austin

Joseph Perry

unread,
May 11, 2011, 3:10:28 PM5/11/11
to archiv...@googlegroups.com, Peter Van Garderen, Evelyn McLellan
Hi Jordan,
I was hoping you could provide us with a sample ram file to help us
test/resolve issue 353.
http://code.google.com/p/archivematica/issues/detail?id=353

Joseph

Reply all
Reply to author
Forward
0 new messages