"NO APPEND failed" message when migrating mails

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
tkrag@mostlyharmless.dk
Posts: 2
Joined: Fri Sep 12, 2014 10:10 pm

"NO APPEND failed" message when migrating mails

Postby tkrag@mostlyharmless.dk » Sun May 28, 2006 9:55 am

Hi,
We're currently trying to migrate all of aour mails from an existing Groupwise (linux) system to a newly installed trial edition of Zimbra NE.
We are using imapsync to move mails via IMAP from one server to another. Unfortunately when running imapsync, we get failures on as much as 2/3's of the mails fro a given account, all failing with:
Couldn't append msg #32 (Subject:XXXXXXX) to folder ZZZZ/yyyyy: Error trying to append: 1320 NO APPEND failed
If I rerun imapsync on the same account it manages to copy some more of the mails, but still fails on some. For one account, I had to run the same imapsync script about 10 times, and that left a couple of mails that were impossible to copy. We get the same behaviour when trying to drag-and-drop mails from one imap account on one server to an account on zimbra, as soon as we take more than 3-5 mails in a single operation, so this error seems to be independent of the imapsync programme.
The server is running on CentOS
The only error messages I get in zimbra.log seem to be these:
[QUOTE]######################################

2006-05-28 16:50:08,482 WARN [LmtpServer-58] [] ParsedMessage - Parse error on MIME part 1 (text/plain, Message-ID: )

com.zimbra.cs.mime.MimeHandlerException: cannot extract text

at com.zimbra.cs.mime.handler.DefaultHandler.getContentImpl(DefaultHandler.java:92)

at com.zimbra.cs.mime.MimeHandler.getContent(MimeHandler.java:254)

at com.zimbra.cs.mime.ParsedMessage.analyzePart(ParsedMessage.java:589)

at com.zimbra.cs.mime.ParsedMessage.analyzeMessage(ParsedMessage.java:508)

at com.zimbra.cs.mime.ParsedMessage.analyze(ParsedMessage.java:252)

at com.zimbra.cs.lmtpserver.ZimbraLmtpBackend.deliverMessageToLocalMailboxes(ZimbraLmtpBackend.java:235)

at com.zimbra.cs.lmtpserver.ZimbraLmtpBackend.deliver(ZimbraLmtpBackend.java:121)

at com.zimbra.cs.lmtpserver.LmtpHandler.doDATA(LmtpHandler.java:420)

at com.zimbra.cs.lmtpserver.LmtpHandler.processCommand(LmtpHandler.java:197)

at com.zimbra.cs.tcpserver.ProtocolHandler.processConnection(ProtocolHandler.java:231)

at com.zimbra.cs.tcpserver.ProtocolHandler.run(ProtocolHandler.java:198)

at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Thread.java:595)

Caused by: com.zimbra.cs.convert.ConversionException: Error loading shared library kvfilter.

at com.zimbra.cs.convert.TransformationClient.extract(TransformationClient.java:179)

at com.zimbra.cs.convert.SocketTransformationStub.doExtract(SocketTransformationStub.java:99)

at com.zimbra.cs.convert.SocketTransformationStub.extract(SocketTransformationStub.java:158)

at com.zimbra.cs.mime.handler.DefaultHandler.getContentImpl(DefaultHandler.java:85)

######################################
[/QUOTE]
but I am unsure if they are in any way related.
Any tips would be most welcome, as this could easily become a show-stopper to our migration plans.
cheers
/tomas


14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

"NO APPEND failed" message when migrating mails

Postby 14319KevinH » Mon May 29, 2006 10:45 am

Your missing a lib or two. Search on kvfilter or see the answer at the end of this thread.
http://www.zimbra.com/forums/showthread.php?t=3053&highlight=kvfilter
TvL
Posts: 3
Joined: Fri Sep 12, 2014 10:18 pm

"NO APPEND failed" message when migrating mails

Postby TvL » Thu Oct 12, 2006 4:56 am

Hi, I also have the "NO APPEND" problem.

I've read I had to install 'compat-libstdc++', but a apt-cache search compat-libstdc++ doesn't give me any results.
I have also read things about kvfilter, but I have no clue what that is.
Could you guys please give me any advice on what to do?
These are some lines from /opt/zimbra/log/zimbra.log:

(I've replaced my valid domain with 'mydomain.local')
2006-10-12 13:45:11,248 INFO  [ImapSSLServer-13] [ip=127.0.0.1;name=admin@mydomain.local;] FileBlobStore - deleting blob 1322 in mailbox 2

2006-10-12 13:45:11,249 WARN [ImapSSLServer-13] [ip=127.0.0.1;name=admin@mydomain.local;] imap - APPEND failed

com.zimbra.cs.service.ServiceException: system failure: indexMessage caught IOException

at com.zimbra.cs.service.ServiceException.FAILURE(ServiceException.java:174)

at com.zimbra.cs.index.Indexer.indexMessage(Indexer.java:161)

at com.zimbra.cs.mailbox.Message.reindex(Message.java:439)

at com.zimbra.cs.mailbox.Mailbox.endTransaction(Mailbox.java:4303)

at com.zimbra.cs.mailbox.Mailbox.addMessageInternal(Mailbox.java:3262)

at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:3042)

at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:3020)

at com.zimbra.cs.imap.ImapAppendOperation.callback(ImapAppendOperation.java:114)

at com.zimbra.cs.operation.Operation.schedule(Operation.java:190)

at com.zimbra.cs.imap.ImapHandler.doAPPEND(ImapHandler.java:1160)

at com.zimbra.cs.imap.ImapHandler.executeRequest(ImapHandler.java:342)

at com.zimbra.cs.imap.ImapHandler.processCommand(ImapHandler.java:227)

at com.zimbra.cs.tcpserver.ProtocolHandler.processConnection(ProtocolHandler.java:231)

at com.zimbra.cs.tcpserver.ProtocolHandler.run(ProtocolHandler.java:198)

at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Thread.java:595)

Caused by: java.io.IOException: Could not create index /opt/zimbra/index/0/2/index/0 (directory already exists)

at com.zimbra.cs.index.MailboxIndex.openIndexWriter(MailboxIndex.java:906)

at com.zimbra.cs.index.MailboxIndex.addDocument(MailboxIndex.java:349)

at com.zimbra.cs.index.Indexer.addDocument(Indexer.java:354)

at com.zimbra.cs.index.Indexer.addDocument(Indexer.java:324)

at com.zimbra.cs.index.Indexer.indexMessage(Indexer.java:156)

... 14 more

Caused by: java.io.FileNotFoundException: /opt/zimbra/index/0/2/index/0/segments (Permission denied)

at java.io.RandomAccessFile.open(Native Method)

at java.io.RandomAccessFile.(RandomAccessFile.java:212)

at org.apache.lucene.store.FSInputStream$Descriptor.(FSDirectory.java:376)

at org.apache.lucene.store.FSInputStream.(FSDirectory.java:405)

at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)

at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)

at org.apache.lucene.index.IndexWriter$1.doBody(IndexWriter.java:233)

at org.apache.lucene.store.Lock$With.run(Lock.java:109)

at org.apache.lucene.index.IndexWriter.(IndexWriter.java:228)

at org.apache.lucene.index.IndexWriter.(IndexWriter.java:173)

at com.zimbra.cs.index.MailboxIndex.openIndexWriter(MailboxIndex.java:887)

... 18 more

2006-10-12 13:45:11,263 INFO [ImapSSLServer-13] [] ProtocolHandler - Handler exiting normally

2006-10-12 13:45:50,857 INFO [IndexWritersSweeper] [] MailboxIndex - open index writers sweep: before=1, closed=1, after=0 (0ms)

2006-10-12 13:48:43,797 INFO [ImapSSLServer-5] [ip=10.10.1.50;name=admin@mydomain.local;] cache - Initializing folder and tag caches for mailbox 2

zimbra:~#

dkarp
Elite member
Elite member
Posts: 1410
Joined: Fri Sep 12, 2014 9:52 pm

"NO APPEND failed" message when migrating mails

Postby dkarp » Thu Oct 12, 2006 9:40 am

TvL, you have a permissions problem:
Caused by: java.io.FileNotFoundException: /opt/zimbra/index/0/2/index/0/segments (Permission denied)
Search the forums for the script that'll fix that...
TvL
Posts: 3
Joined: Fri Sep 12, 2014 10:18 pm

"NO APPEND failed" message when migrating mails

Postby TvL » Thu Oct 12, 2006 10:17 am

You are right!!!
I was using imapsync and cancelled with CTRL+C.

The segments file was owned by "root root".

I have no clue why.

I have changed the owner to zimbra:zimbra and it seems OK now...
raj2569
Posts: 20
Joined: Fri Sep 12, 2014 9:55 pm

"NO APPEND failed" message when migrating mails

Postby raj2569 » Thu Oct 12, 2006 2:17 pm

Are you using Debian ?
raj
TvL
Posts: 3
Joined: Fri Sep 12, 2014 10:18 pm

"NO APPEND failed" message when migrating mails

Postby TvL » Thu Oct 12, 2006 2:30 pm

Yes I do...
Forgot to mention that... sorry...

This is a known problem?
drwho18
Advanced member
Advanced member
Posts: 60
Joined: Fri Sep 12, 2014 10:33 pm

"NO APPEND failed" message when migrating mails

Postby drwho18 » Fri May 18, 2007 8:20 am

This bug appears to still be an issue with 4.5.5. I can crash zimbra by Ctrl-C'ing during the imapsync process, stopping the services with zmcontrol, fixing permissions and restarting seems to fix the issue. However killed imap commands shouldn't be able to crash zimbra.
phoenix
Ambassador
Ambassador
Posts: 26624
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

"NO APPEND failed" message when migrating mails

Postby phoenix » Fri May 18, 2007 8:25 am

[quote user="drwho18"]This bug appears to still be an issue with 4.5.5. I can crash zimbra by Ctrl-C'ing during the imapsync process, stopping the services with zmcontrol, fixing permissions and restarting seems to fix the issue. However killed imap commands shouldn't be able to crash zimbra.[/QUOTE]Are you using Debian as well? If you are, this is a Debian Kernel bug and nothing to do with Zimbra.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 14 guests