Code Monkey home page Code Monkey logo

Comments (28)

himmakam avatar himmakam commented on July 29, 2024 1

Hi, it was because of a different user access issue. Thanks for helping me out. I am closing this issue.

from rtc2gitcli.

WtfJoke avatar WtfJoke commented on July 29, 2024

Which version of eclipse did you use?
Looks like a jgit issue.

from rtc2gitcli.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

@himmakam I guess I got the same issue. How did you solve it?

from rtc2gitcli.

sushil2github avatar sushil2github commented on July 29, 2024

@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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

@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.

sushil2github avatar sushil2github commented on July 29, 2024

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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

@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.

sushil2github avatar sushil2github commented on July 29, 2024

@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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

@sushil2github I'm available today.. You can ping me up at anytime.. :)

from rtc2gitcli.

sushil2github avatar sushil2github commented on July 29, 2024

@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.

sushil2github avatar sushil2github commented on July 29, 2024

@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.

sushil2github avatar sushil2github commented on July 29, 2024

@sarathkrishna2018 ,
Got values for my above question.

from rtc2gitcli.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

1 .git folder is created at the sandbox location after running the actual migration command.

from rtc2gitcli.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

This structure is created under .git folder
image

from rtc2gitcli.

sushil2github avatar sushil2github commented on July 29, 2024

and I don't see anything important under this Logs folder

from rtc2gitcli.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

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.

sarathkrishna2018 avatar sarathkrishna2018 commented on July 29, 2024

If you can use eclipse, may be contact me on Facebook or WhatsApp, so that I can help easily.

from rtc2gitcli.

sushil2github avatar sushil2github commented on July 29, 2024

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.

sushil2github avatar sushil2github commented on July 29, 2024

Sure, will contact you tomorrow.
Thank you.

from rtc2gitcli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.