Laura Posted July 16, 2014 Report Share Posted July 16, 2014 Hi. My team uses git with Stash and SourceTree at the moment, but I'd like to try Plastic SCM client to be used instead of SourceTree, with git as a server (purely for better user experience). I understand that I cannot use git directly as a server, but even GitSync might be useful. The problem I ran into is that I fail to get source from Git into Plastic using GitSync. I have created local Plastic server and connect using AD authorization. I created the workspace and the main branch has the same name as the main branch on git. I try to Sync using https protocol, passing in git credentials, which are same as my AD account(my name without domain + password). The error I get says "An item with the same key has already been added." (see the screenshot attached). Am I doing something wrong here? Thank you. Link to comment Share on other sites More sharing options...
manu Posted July 16, 2014 Report Share Posted July 16, 2014 Hello Laura! first of all, can you please tell me the Plastic SCM version you are using to run the GitSync? If it's not one of the latest 5.0 or 5.4 please upgrade and try it again, we recently fixed a similar issue and I want to be sure you are using it. (or not) If you are using the latest can you please enable the cm log (http://www.plasticscm.com/infocenter/technical-articles/kb-enabling-logging-for-plastic-scm-part-i.aspx) and retry the operation using the command line? You can reach me at mlucio at codicesoftware dot com in order to send me the log files. Link to comment Share on other sites More sharing options...
jsa@ihpostal.dk Posted February 13, 2015 Report Share Posted February 13, 2015 I have stumbled upon a similar issue - with the same error message: An item with the same key has already been added I am running this command: cm sync IHCore git git@server:IHCore.git git@server:IHCore.git is a fresh init'ed empty Git repo. All git-sync attributes for IHCore was deleted beforehand (using the Plastic GUI). The client log has this information: 2015-02-13 14:52:48,965 INFO 2628 cm - STARTING CLIENT 2015-02-13 14:52:49,118 DEBUG 2628 ClientConfig - Time loading client.conf (C:\Users\jsa\AppData\Local\plastic4\client.conf) 125 ms 2015-02-13 14:52:49,277 DEBUG 2628 UserInfo - Time retrieving CurrentUser 31 ms 2015-02-13 14:52:49,312 INFO 2628 BufferPool - [sinkcompressionPool] BufferPool created with 5.00 Mb size and 5 max buffers 2015-02-13 14:52:49,313 INFO 2628 BufferPool - [uncompressionPool] BufferPool created with 5.00 Mb size and 5 max buffers 2015-02-13 14:52:49,363 DEBUG 2628 Channel - Create connection to plastic://ihp_pegasus.imagehouse.dk:8084 took 15 ms 2015-02-13 14:52:49,383 DEBUG 2628 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,383 DEBUG 2628 BufferPool - SinkcompressionPool [1] buffers allocated 2015-02-13 14:52:49,385 DEBUG 2628 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,385 DEBUG 2628 BufferPool - UncompressionPool [1] buffers allocated 2015-02-13 14:52:49,389 INFO 2628 Serialization - Uncompressed 511 bytes in 798 bytes. Time: 0 ms. 2015-02-13 14:52:49,390 DEBUG 2628 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,397 DEBUG 2628 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,398 DEBUG 2628 ClientSink - | GetRepositoryInfo | proc 63 | 1 | 11472136 2015-02-13 14:52:49,407 DEBUG 2628 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,407 DEBUG 2628 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,407 INFO 2628 Serialization - Uncompressed 603 bytes in 936 bytes. Time: 0 ms. 2015-02-13 14:52:49,407 DEBUG 2628 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,407 DEBUG 2628 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,407 DEBUG 2628 ClientSink - | GetMainBranch | proc 0 | 1 | 11545864 2015-02-13 14:52:49,429 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,429 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,429 INFO 1036 Serialization - Uncompressed 602 bytes in 960 bytes. Time: 0 ms. 2015-02-13 14:52:49,429 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,429 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,429 DEBUG 1036 ClientSink - | GetChangesetInfo | proc 0 | 4 | 11627784 2015-02-13 14:52:49,437 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,437 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,437 INFO 1036 Serialization - Uncompressed 544 bytes in 867 bytes. Time: 0 ms. 2015-02-13 14:52:49,437 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,437 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,437 DEBUG 1036 ClientSink - | GetAttributeInfoByName | proc 0 | 4 | 11676936 2015-02-13 14:52:49,440 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,440 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,440 INFO 1036 Serialization - Uncompressed 389 bytes in 708 bytes. Time: 0 ms. 2015-02-13 14:52:49,440 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,442 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,442 DEBUG 1036 ClientSink - | GetAttributeRealizationForObjects | proc 0 | 4 | 11783432 2015-02-13 14:52:49,480 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,480 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,480 INFO 1036 Serialization - Uncompressed 603 bytes in 936 bytes. Time: 0 ms. 2015-02-13 14:52:49,480 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,482 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,482 DEBUG 1036 ClientSink - | GetMainBranch | proc 15 | 4 | 11886616 2015-02-13 14:52:49,497 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,497 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,497 INFO 1036 Serialization - Uncompressed 3138 bytes in 6347 bytes. Time: 0 ms. 2015-02-13 14:52:49,497 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,498 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,498 DEBUG 1036 ClientSink - | GetBranchList | proc 16 | 4 | 12058648 2015-02-13 14:52:49,502 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,502 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,502 INFO 1036 Serialization - Uncompressed 275 bytes in 382 bytes. Time: 0 ms. 2015-02-13 14:52:49,502 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,502 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,502 DEBUG 1036 ClientSink - | GetMarkerList | proc 0 | 4 | 12099608 2015-02-13 14:52:49,522 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,522 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,522 INFO 1036 Serialization - Uncompressed 4061 bytes in 7663 bytes. Time: 0 ms. 2015-02-13 14:52:49,522 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,523 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,523 DEBUG 1036 ClientSink - | GetChangesetsInfo | proc 0 | 4 | 12345368 2015-02-13 14:52:49,537 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:49,537 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:49,537 INFO 1036 Serialization - Uncompressed 391 bytes in 708 bytes. Time: 0 ms. 2015-02-13 14:52:49,537 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:49,537 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:49,537 DEBUG 1036 ClientSink - | GetAttributeRealizationForObjects | proc 16 | 4 | 12386328 2015-02-13 14:52:53,825 DEBUG 1036 sync-perf - CallBack LookupRequest, time: 0; calls: 0 2015-02-13 14:52:53,825 DEBUG 1036 sync-perf - CallBack RequestCommits, time: 0; calls: 0 2015-02-13 14:52:53,925 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:53,925 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:53,925 INFO 1036 Serialization - Uncompressed 3179 bytes in 6389 bytes. Time: 0 ms. 2015-02-13 14:52:53,925 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:53,926 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:53,926 DEBUG 1036 ClientSink - | ExecuteSimpleQuery | proc 15 | 4 | 17049064 2015-02-13 14:52:53,944 DEBUG 1036 BufferPool - -> Entering with name SinkcompressionPool (5) 2015-02-13 14:52:53,944 DEBUG 1036 BufferPool - -> Entering with name UncompressionPool (5) 2015-02-13 14:52:53,944 INFO 1036 Serialization - Uncompressed 392 bytes in 708 bytes. Time: 0 ms. 2015-02-13 14:52:53,945 DEBUG 1036 BufferPool - <- Releasing with name SinkcompressionPool (4) 2015-02-13 14:52:53,945 DEBUG 1036 BufferPool - <- Releasing with name UncompressionPool (4) 2015-02-13 14:52:53,945 DEBUG 1036 ClientSink - | GetAttributeRealizationForObjects | proc 16 | 4 | 17094544 2015-02-13 14:52:54,026 ERROR 2628 sync - Sysc error: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at ma.a(String A_0, BranchInfo A_1) at ma.a(BranchInfo A_0) at ma.a(IList`1 A_0, IList`1 A_1) at cg.a(IList`1 A_0) at cg.g() at og.a(Boolean A_0) at og.b(Boolean A_0) 2015-02-13 14:52:54,045 ERROR 2628 cm - Plastic client version: 5.4.16.644 2015-02-13 14:52:54,046 ERROR 2628 cm - An item with the same key has already been added. 2015-02-13 14:52:54,046 DEBUG 2628 cm - An item with the same key has already been added. at kw.o() at kw.a(lq A_0) at kw.c(b A_0) at w1.c(String[] A_0) The server log looks like this: 2015-02-13 14:52:38,563 (null) NT AUTHORITY\SYSTEM at (null) INFO Channel - conn 10173. Tcp transport error. Connection closed 2015-02-13 14:52:49,788 00000000-0000-0000-0000-000000000000 NT AUTHORITY\SYSTEM at JSA-LAPTOP INFO Operations - Get repository info IHCore 2015-02-13 14:52:49,789 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 749|rect: 0|sentb: 525|sendt: 0|prt: 0|th: 3|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetRepositoryInfo 2015-02-13 14:52:49,822 00000000-0000-0000-0000-000000000000 NT AUTHORITY\SYSTEM at JSA-LAPTOP INFO Operations - Get main branch info for repository 32 2015-02-13 14:52:49,824 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 594|rect: 0|sentb: 617|sendt: 0|prt: 0|th: 25|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetMainBranch 2015-02-13 14:52:49,846 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 949|rect: 0|sentb: 616|sendt: 0|prt: 0|th: 26|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetChangesetInfo 2015-02-13 14:52:49,854 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 620|rect: 0|sentb: 558|sendt: 0|prt: 0|th: 6|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetAttributeInfoByName 2015-02-13 14:52:49,857 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 1155|rect: 0|sentb: 403|sendt: 0|prt: 0|th: 3|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetAttributeRealizationForObjects 2015-02-13 14:52:49,896 00000000-0000-0000-0000-000000000000 NT AUTHORITY\SYSTEM at JSA-LAPTOP INFO Operations - Get main branch info for repository 32 2015-02-13 14:52:49,898 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 594|rect: 0|sentb: 617|sendt: 0|prt: 0|th: 25|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetMainBranch 2015-02-13 14:52:49,911 00000000-0000-0000-0000-000000000000 NT AUTHORITY\SYSTEM at JSA-LAPTOP INFO Operations - Get branch list for repository 32 2015-02-13 14:52:49,914 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 594|rect: 0|sentb: 3152|sendt: 0|prt: 0|th: 26|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetBranchList 2015-02-13 14:52:49,918 00000000-0000-0000-0000-000000000000 NT AUTHORITY\SYSTEM at JSA-LAPTOP INFO Operations - Get label list for repository Id 32 2015-02-13 14:52:49,919 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 594|rect: 0|sentb: 289|sendt: 0|prt: 0|th: 6|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetMarkerList 2015-02-13 14:52:49,938 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 1502|rect: 0|sentb: 4075|sendt: 0|prt: 0|th: 3|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetChangesetsInfo 2015-02-13 14:52:49,953 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 1580|rect: 0|sentb: 405|sendt: 0|prt: 0|th: 25|dest: 0|mt: 0|sert: 0|zip: 0| 192.168.1.201|GetAttributeRealizationForObjects 2015-02-13 14:52:50,068 (null) NT AUTHORITY\SYSTEM at (null) INFO Channel - conn 10181. Tcp transport error. Connection closed 2015-02-13 14:52:54,330 00000000-0000-0000-0000-000000000000 NT AUTHORITY\SYSTEM at JSA-LAPTOP INFO Operations - Execute simple query for repository 32 2015-02-13 14:52:54,343 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 1288|rect: 0|sentb: 3193|sendt: 0|prt: 16|th: 26|dest: 0|mt: 16|sert: 0|zip: 0| 192.168.1.201|ExecuteSimpleQuery 2015-02-13 14:52:54,363 NT AUTHORITY\SYSTEM at INFO ChannelCall - recb: 1836|rect: 0|sentb: 406|sendt: 0|prt: 15|th: 6|dest: 0|mt: 15|sert: 0|zip: 0| 192.168.1.201|GetAttributeRealizationForObjects 2015-02-13 14:52:54,496 (null) NT AUTHORITY\SYSTEM at (null) INFO Channel - conn 10182. Tcp transport error. Connection closed Link to comment Share on other sites More sharing options...
manu Posted February 16, 2015 Report Share Posted February 16, 2015 Hello, is there any way you can share the git repository with us? Without the git repo is very difficult to fix the issue. If it's not possible to share with us the data you can fast-export the git repository without data, only scm history. support at codicesoftware dot com If you send us the repo we'll try to find time to fix it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.