more upload issues - CmisConstraintException: Conflict

660 views
Skip to first unread message

Wim Coetzee

unread,
Jul 16, 2013, 8:07:55 AM7/16/13
to cmis...@googlegroups.com
Hello

I am having a problem with a new install of CMISSync.

When I add a new file to my local folder, I get the following in the log:

2013-07-16 13:54:33,531 [4] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - Uploading file absent on repository: C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf
2013-07-16 13:54:33,531 [4] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - Uploading: C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf
2013-07-16 13:54:53,218 [4] FATAL CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - Upload failed: C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf DotCMIS.Exceptions.CmisConstraintException: Conflict
   at DotCMIS.Binding.AtomPub.AbstractAtomPubService.Post(UrlBuilder url, String contentType, Output writer)
   at DotCMIS.Binding.AtomPub.ObjectService.CreateDocument(String repositoryId, IProperties properties, String folderId, IContentStream contentStream, Nullable`1 versioningState, IList`1 policies, IAcl addAces, IAcl removeAces, IExtensionsData extension)
   at DotCMIS.Client.Impl.Session.CreateDocument(IDictionary`2 properties, IObjectId folderId, IContentStream contentStream, Nullable`1 versioningState, IList`1 policies, IList`1 addAces, IList`1 removeAces)
   at DotCMIS.Client.Impl.Folder.CreateDocument(IDictionary`2 properties, IContentStream contentStream, Nullable`1 versioningState, IList`1 policies, IList`1 addAces, IList`1 removeAces, IOperationContext context)
   at DotCMIS.Client.Impl.Folder.CreateDocument(IDictionary`2 properties, IContentStream contentStream, Nullable`1 versioningState)
   at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.UploadFile(String filePath, IFolder remoteFolder)

Any ideas?

The searches I've done point to something about versioning, but this has worked previously from another machine to the same repository & setup.

I also have a few feature requests, where can I post these?
  • "View log" link on the taskbar icon does not point to the correct location if it's non-standard.
  • Modifying the XML config <folders>    <folder>      <path> tag causes the program to crash if the <path> tag is non-standard.
Thanks again for a great app.

Nicolas Raoul

unread,
Jul 16, 2013, 8:13:58 AM7/16/13
to cmis...@googlegroups.com
Hello Witz,

What is the product name and version of your repository?

If it is Alfresco, do you have any rule configured for this folder, or
anything similar?

Could you please create 3 different reports at this URL?
https://github.com/nicolas-raoul/CmisSync/issues

Thanks a lot for your feedback!
Nicolas Raoul
Aegif
> --
> You received this message because you are subscribed to the Google Groups
> "CmisSync" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cmissync+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Wim Coetzee

unread,
Jul 16, 2013, 8:19:26 AM7/16/13
to cmis...@googlegroups.com
I am using Alfresco 4.2 C Community.
There is a rule set on the parent's parent to send an email alert if anything new arrives.

Does this have an impact?


You received this message because you are subscribed to a topic in the Google Groups "CmisSync" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cmissync/xphSoxr7zBI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cmissync+u...@googlegroups.com.

Nicolas Raoul

unread,
Jul 16, 2013, 8:33:58 AM7/16/13
to cmis...@googlegroups.com
The rule should not have any negative impact.
Does it work when you upload the file via FTP instead of CmisSync? (as
the same user)

Nicolas Raoul
Aegif

Wim Coetzee

unread,
Jul 16, 2013, 9:02:37 AM7/16/13
to cmis...@googlegroups.com
I've never tried FTP and doubt that it is enabled.

Will try to enable it and post here.

Thanks,

Nicolas Raoul

unread,
Jul 16, 2013, 9:15:11 AM7/16/13
to cmis...@googlegroups.com
You can also try via web upload (Alfresco Share or Alfresco Explorer),
I suggested FTP because it sounds closer (file transfer only).

Nicolas Raoul
Aegif

Wim Coetzee

unread,
Jul 16, 2013, 9:35:13 AM7/16/13
to cmis...@googlegroups.com
Drag & Drop upload in Chrome worked OK.

Alerts were sent successfully(rules executed).

This happens in the log:
2013-07-16 15:32:31,203 [5] INFO  CmisSync.Lib.Cmis.Database [(null)] - Checksum of C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf has changed from  to 56A48FAA473D85B5E8CAE7027AAF95A10C73E3FB
2013-07-16 15:32:31,203 [5] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - Uploading file update on repository: C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf
2013-07-16 15:32:31,203 [5] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - # Updating C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf
2013-07-16 15:33:33,515 [5] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - ## Updating C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf
2013-07-16 15:33:33,515 [5] DEBUG CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - before SetContentStream
2013-07-16 15:33:47,718 [5] DEBUG CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - after SetContentStream
2013-07-16 15:33:47,718 [5] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - ## Updated C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf
2013-07-16 15:33:47,921 [5] INFO  CmisSync.Lib.Sync.CmisRepo+SynchronizedFolder [(null)] - # Updated C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf




Wim Coetzee

unread,
Jul 16, 2013, 9:44:12 AM7/16/13
to cmis...@googlegroups.com
It seems to be looping and uploading the same file over & over, this entry appears every time:

2013-07-16 15:40:58,500 [5] INFO  CmisSync.Lib.Cmis.Database [(null)] - Checksum of C:\Documents and Settings\Back Office\CmisSync\Suppliers-scans\XXX Barcodes.pdf has changed from  to 56A48FAA473D85B5E8CAE7027AAF95A10C73E3FB

Is it supposed to have "from to" with no value?

Thanks!

Nicolas Raoul

unread,
Jul 16, 2013, 9:57:46 PM7/16/13
to cmis...@googlegroups.com
That's strange, indeed.
Could you please create a new issue at
https://github.com/nicolas-raoul/CmisSync/issues and gather all the
information you gave about this problem?
Thanks a lot!
Nicolas Raoul
Aegif

Nicolas Raoul

unread,
Jul 17, 2013, 2:15:22 AM7/17/13
to cmis...@googlegroups.com
I think I reproduced the problem!
I created an issue for it: https://github.com/nicolas-raoul/CmisSync/issues/221
Does it describe your problem well?
Feel free to add more information there.
Does the same problem appears with previous versions of CmisSync?

Thanks for your feedback!
Nicolas Raoul
Aegif

Wim Coetzee

unread,
Jul 17, 2013, 2:45:32 AM7/17/13
to cmis...@googlegroups.com
It looks about the same as my problem, yes.  But I'm running Windows XP
I haven't tried older versions of CMISSync, and will only be able to do it tomorrow (it's on a client site)

Will try an old version tomorrow.

Nicolas Raoul

unread,
Jul 17, 2013, 5:09:28 AM7/17/13
to cmis...@googlegroups.com
Could you please try 0.4.28?
I believe it might fix the problem.
Cheers!
Nicolas Raoul
Aegif

yannick...@gmail.com

unread,
Jul 17, 2013, 1:13:48 PM7/17/13
to cmis...@googlegroups.com
Nicolas,

I received also this error in 0.4.25. I'm just update to 0.4.28. After this release, CMISSync crash when launching with this debug log

2013-07-17 19:08:08,468 [1] INFO  CmisSync.Program [(null)] - Starting.
2013-07-17 19:08:08,500 [1] INFO  CmisSync.SetupController [(null)] - Entering constructor.
2013-07-17 19:08:08,500 [1] INFO  CmisSync.SetupController [(null)] - Exiting constructor.
2013-07-17 19:08:08,656 [1] INFO  CmisSync.Setup [(null)] - Entering constructor.
2013-07-17 19:08:08,656 [1] INFO  CmisSync.Setup [(null)] - Exiting constructor.

Could you see this error?
Yannick

yannick...@gmail.com

unread,
Jul 17, 2013, 3:35:48 PM7/17/13
to cmis...@googlegroups.com
After many month of silence, I'm just commit a solution to fix the "Conflict Error".
If file not exist, VersionState was state to none. I set it to major to solve. It's working on my Alfresco CE 4.2c.

Wim Coetzee

unread,
Jul 18, 2013, 4:47:53 AM7/18/13
to cmis...@googlegroups.com

Yay! I tried 0.4.28 and it works! Thanks!

On 17 Jul 2013 21:35, <yannick...@gmail.com> wrote:
After many month of silence, I'm just commit a solution to fix the "Conflict Error".
If file not exist, VersionState was state to none. I set it to major to solve. It's working on my Alfresco CE 4.2c.

--

Nicolas Raoul

unread,
Jul 18, 2013, 4:56:41 AM7/18/13
to cmis...@googlegroups.com
Hi Wim,

Thanks for the feedback!
It seems that 0.4.28 has a problem with uploading to Alfresco, so I
suggest using 0.4.29 instead.

Thanks for using CmisSync!
Nicolas Raoul
Aegif
> You received this message because you are subscribed to the Google Groups
> "CmisSync" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages