Hello,
I’m currently experiencing 2 problems with deletions and moving pages. The problem does not occur everywhere but on a few pages.
-
When I want to delete a page it doesn’t want to delete it. I don’t have any errors that appear in the tomcat logs. However it tells me on the interface that the page has been deleted by returning “Done” at the end.
How I can debug this prolem ? I think it’s still a problem with the file attachment…
-
Some pages have been created with a template that contains attachments. If we use this template to create a new page it copies the attachments to it. The problem is that they don’t exist in the page but they are well referenced. I then tried to delete them but it returns me an error that the attachment is impossible to delete.
So I can’t move the page and I get an error like this one:
Error number 3002 in 3: The attachment [Attachment xwiki:Operations.Procedure.Gestion des contentieux.WebHome@2686x2686.jpg] (file /opt/xwiki/storage/xwiki/%4Fperations/%50rocedure/%47estion des contentieux/%57eb%48ome/~this/attachments/2686x2686.jpg/2686x2686.jpg) could not be found in the filesystem attachment store.
I must have several pages that have this problem. How can I solve it and also how can I identify the pages that have this problem?
Informations:
xwiki version: 10.11.9
database: postgres
Best regards,
When you are advanced user (can be set in your user profile) you get a detailed log of what happen during delete/rename and you should see an error in there.
I’m already an advanced user, but nothing appears when deleting the page.
And the page is already present.
I was sure there was a log in delete but maybe that’s only in rename then.
Doesn’t anyone have any idea how to solve these problems?
The (delete) job logs are saved in the configured permanent directory. If you know the job id (as seen from the screenshot) then you could check the job log for any error messages.
Did you try to look at the log you get when you use rename ?
I just found the file and there’s an OOM from the heap:
Caused by:
java.lang.OutOfMemoryError
Java heap space
I will increase the memory used and re-test for page deletion.
Thank you.
Concerning the renaming of the pages that doesn’t work I had already been able to recover the error directly during the process.
Error number 3002 in 3: The attachment [Attachment xwiki:Operations.Procedure.Gestion des contentieux.WebHome@2686x2686.jpg] (file /opt/xwiki/storage/xwiki/%4Fperations/%50rocedure/%47estion des contentieux/%57eb%48ome/~this/attachments/2686x2686.jpg/2686x2686.jpg) could not be found in the filesystem attachment store.
But here is an extract of the job file with the error a bit more complete:
Summary
</org.xwiki.model.reference.DocumentReference> </argumentArray> <throwable class="com.xpn.xwiki.XWikiException"> <detailMessage>Error number 3002 in 3: The attachment [Attachment xwiki:Operations.Procedure.Gestion des contentieux.WebHome@2686x2686.jpg] (file /opt/xwiki/storage/xwiki/%4Fperations/%50rocedure/%47estion des contentieux/%57eb%48ome/~this/attachments/2686x2686.jpg/2686x2686.jpg) could not be found in the filesystem attachment store.</detailMessage> <stackTrace> <trace>org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore.loadAttachmentContent(FilesystemAttachmentStore.java:214)</trace> <trace>com.xpn.xwiki.doc.XWikiAttachment.loadAttachmentContent(XWikiAttachment.java:1071)</trace> <trace>com.xpn.xwiki.doc.XWikiDocument.loadAttachments(XWikiDocument.java:4218)</trace> <trace>com.xpn.xwiki.doc.XWikiDocument.copyDocument(XWikiDocument.java:6755)</trace> <trace>com.xpn.xwiki.XWiki.copyDocument(XWiki.java:4424)</trace> <trace>org.xwiki.refactoring.internal.DefaultModelBridge.copy(DefaultModelBridge.java:168)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.move(AbstractCopyOrMoveJob.java:256)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.maybeMove(AbstractCopyOrMoveJob.java:230)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob$1.visit(AbstractCopyOrMoveJob.java:194)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob$1.visit(AbstractCopyOrMoveJob.java:189)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractEntityJob.visitDocumentNodes(AbstractEntityJob.java:280)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractEntityJob.visitDocumentAncestorStep(AbstractEntityJob.java:313)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractEntityJob.visitDocumentAncestor(AbstractEntityJob.java:298)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractEntityJob.visitDocumentNodes(AbstractEntityJob.java:278)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractEntityJob.visitDocuments(AbstractEntityJob.java:263)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:188)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:159)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:139)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.process(AbstractCopyOrMoveJob.java:115)</trace> <trace>org.xwiki.refactoring.internal.job.RenameJob.process(RenameJob.java:57)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractEntityJobWithChecks.runInternal(AbstractEntityJobWithChecks.java:89)</trace> <trace>org.xwiki.refactoring.internal.job.AbstractCopyOrMoveJob.runInternal(AbstractCopyOrMoveJob.java:72)</trace> <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236)</trace> <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:213)</trace> <trace>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)</trace> <trace>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)</trace> <trace>java.lang.Thread.run(Thread.java:748)</trace> </stackTrace> </throwable> </org.xwiki.logging.event.LogEvent> <org.xwiki.logging.event.EndLogEvent>
As I said when I try to delete the attachment that doesn’t exist anymore I get an error message telling me that it’s impossible to delete it.
After increasing the JAVA memory, page deletion worked.
I still have the page move with its attachment that doesn’t work. How can I delete attachments that no longer exist?
1 Like