Comments (28)
Hi, it was because of a different user access issue. Thanks for helping me out. I am closing this issue.
from rtc2gitcli.
Which version of eclipse did you use?
Looks like a jgit issue.
from rtc2gitcli.
@himmakam I guess I got the same issue. How did you solve it?
from rtc2gitcli.
@himmakam - Could you please let me know that how did you resolve this issue, I am also getting the similar kind of issue.
Please let me know if anyone here knows the resolution.
Thank you.
from rtc2gitcli.
@sushil2github - When you run the configuration in eclipse, you need to pass parameters. In addition to that, you also need to give the sandbox location below that. By default it is C://System/Win32 as far as I remember. Change that to some location in C drive. And before you run it, also make sure you load your target workspace in that location ( You will get a "location is not shared - exception if you don't load ). After that you can run it.
from rtc2gitcli.
Hi @sarathkrishna2018 ,
First of all, I am running the command in Command console i.e. cmd window, because, I was getting error 'Unknown subcommand' while running it in Eclipse configuration.
I guess, passing parameters you mean, putting values for migration.properties, source and destination workspaces, etc in that command, is it correct ?
Now if I am running the command from cmd, then where and how to give the sandbox location, which you are talking about ?
Before running the "scm migrate-to-git" command, I have run the "scm load" command which is mentioned in the link 'https://github.com/rtcTo/rtc2gitcli#usage'. This command has loaded the target workspace to my sandbox(I had given D:/ drive location at that time.) So are you talking about the same sandbox location ?
from rtc2gitcli.
@sushil2github - From what I understood, you've successfully loaded your target workspace to your D drive location. Now there is a piece of code in the tool which sets your sandbox to ( xxxxx.getUserDir()), which is NOT your D drive. There is where it's going wrong. The sandbox the code considers and the places where u loaded your target workspace should be same. I made it sure by changing the 'lanch configuration' the tool comes with. I don't know how it can be done through CMD. In the launch config, you can give the arguments in argument box. But the sandbox location can also be set. It basically asked u to browse to the location ( where u loaded the workspace ). Contact me on Facebook ( Sharath Madrox ) if you cannot understand what I said. I'll be happy to send you few screenshots which can explain what I'm trying to tell.
from rtc2gitcli.
@sarathkrishna2018 - Got your point however I don't know how to achieve it using command prompt. Thank you for giving your facebook details, will connect with you. Please let me know the time you are available at.
from rtc2gitcli.
@sushil2github I'm available today.. You can ping me up at anytime.. :)
from rtc2gitcli.
@sarathkrishna2018 - Sorry, couldn't connect with you that day. Will try to connect with you tomorrow in the evening. Let me know if you are available.
from rtc2gitcli.
@sarathkrishna2018 ,
Could you please let me know one thing about the actual migration command below -
"scm migrate-to-git -r -u -P -m <migration.properties> <SOURCE_WORKSPACE> <TARGET_WORKSPACE>"
What would be the values for -
uri - ?
SOURCE_WORKSPACE - ?
TARGET_WORKSPACE - ?
uri is for local git repository ? SOURCE_WORKSPACE which I loaded to my local sandbox ? TARGET_WORKSPACE is final git repository where I have to migrate the target workspace ?
Thank you.
from rtc2gitcli.
@sarathkrishna2018 ,
Got values for my above question.
from rtc2gitcli.
Is it fine now? Because I think you've got the entire concept wrong.. it doesn't actually push to github.. it only converts the RTC Repository ( SOURCE_WORKSPACE) to a git repository which u can push later.. TARGET_WORKSPACE is used by the tool to capture history.. it's not related to github... And the URI is the URL of your RTC..
from rtc2gitcli.
I know this, however as you know I got stuck at the actual migration command and facing exceptions, which is mentioned by himmakam in his first comment.
Right now I am looking for its solution. I know that at the end once actual migration is successfull, then I have to push to Git repository.
Himmakam has resolved this issue however, has not mentioned the resolution. He has just mentioned that it was a 'different user access issue', do you know what does it mean ?
from rtc2gitcli.
I literally got the same exception. The only thing I did to make it work was, setting sandbox to the folder where you loaded the TARGET_WORKSPACE. This solved the issue. But I did it through eclipse. May be, try running the tool in the folder where you loaded the TARGET_WORKSPACE itself??
from rtc2gitcli.
Ok, will try to run. One question, do we have to make any changes in the 'migration.properties' file or we have to give its path as it is without any changes while running the actual command ?
from rtc2gitcli.
I don't remember exactly.. i guess I didn't change anything except giving it rtc username n password ( not sure ) and I uncommented one line to convert baselines into tags ( sure )... Except these, no changes were made.. one thing is for sure, this issue IS NOT RELATED to migration.properties
from rtc2gitcli.
Ok. As you said, I ran the actual command in the sandbox location and Got the below output.
[2018-07-26 23:46:20] ********** BASELINE INFOS **********
[2018-07-26 23:46:20] Start migration of tags.
[2018-07-26 23:46:29] Start migration of Tag [HEAD] [1/1]
[2018-07-26 23:46:29] Migration of tag [HEAD] [1/1] took [0] s
[2018-07-26 23:46:29] Migration took [28] s
I don't know what happened at this point ?
from rtc2gitcli.
1 .git folder is created at the sandbox location after running the actual migration command.
from rtc2gitcli.
I don't think it worked. It just ran, but I don't think it created the files required. I think. Just check for git log
from rtc2gitcli.
This structure is created under .git folder
from rtc2gitcli.
and I don't see anything important under this Logs folder
from rtc2gitcli.
Yeah that's how .girl looks anyway inside.. go to the sandbox folder and do a 'git log' and see if you find any logs.. because I don't think it captured anything, it simply ran without error I guess
from rtc2gitcli.
I ran the log, and it printed as below -
D:\Migration>git log
commit 0e4a91a03cdfa2ed51223832394706e69fdfe90a
Author: RTC 2 git [email protected]
Date: Thu Jul 26 18:16:21 2018 +0000
Initial commit
from rtc2gitcli.
It didn't work. Tomorrow, may be I'll try working this thing out with CMD.. meanwhile may be you can try using eclipse unless it cant be used for some reasons
from rtc2gitcli.
If you can use eclipse, may be contact me on Facebook or WhatsApp, so that I can help easily.
from rtc2gitcli.
Okk, sure and will let you know the output. Is it because of RTC version ? I am using 5.0.2 RTC version.
from rtc2gitcli.
Sure, will contact you tomorrow.
Thank you.
from rtc2gitcli.
Related Issues (20)
- where to update the git repo link HOT 1
- Migration command was successful but cant see any changesets. HOT 11
- Error on importing rtc2gitcli project into eclipse. HOT 2
- How to include the changesets of the source workspace? HOT 1
- Problem with scm load -r <uri> -u <username> -P <password> <TARGET_WORKSPACE> HOT 7
- Errors with "Add" on migration (folder / file conflicts) HOT 1
- When directory/folder name modified in one of changeset, it gets deleted from Target Folder. HOT 1
- JGitInternalException - Exception caught during execution of add command HOT 2
- Query on zip file migration HOT 2
- SVN history is not captured HOT 6
- How to migrate multiple streams HOT 1
- Can this plugin be used on linux machine? HOT 2
- Can i migrate rtc commit history HOT 1
- Wrong implementation of format properties HOT 2
- maven plugin connector error HOT 6
- Commit message display issue after migration HOT 1
- "mvn clean install" throws error HOT 1
- NullPointerException while fetching history from RTC
- Project Working HOT 3
- Unable to connect to Github repository HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtc2gitcli.