Open maverick229 opened 11 years ago
1.does anyone have any ideas on what could be the reason for the error and how to overcome?
Did you install Native Git? What version do you have installed?
2.any tips to debug this?
There is a debug feature you can turn on listed in the README under the troubleshooting section:
https://github.com/onepremise/gReview/blob/master/README.md
3.Does a gerrit have to be in a particular state to run git log?
Not sure what your'e referring to here. Gerrit does have to be online and reachable via ssh port 29418. Are you checking out on windows or unix?
Did you install Native Git? What version do you have installed? [Ans]1.8
2.any tips to debug this? There is a debug feature you can turn on listed in the README under the troubleshooting section:
https://github.com/onepremise/gReview/blob/master/README.md [ans]turned this on
3.Does a gerrit have to be in a particular state to run git log? Not sure what your'e referring to here. Gerrit does have to be online and reachable via ssh port 29418. Are you checking out on windows or unix? [ans]let me explain my questions clearly...when a gerrit is submitted it will be in "review" state but the command "git log" command the plugin is running will work only after the gerrit state is changed to "merged" so that will have show up in the commit log....so my question is greview plugin expecting the gerrit to be merged so that it shows up in commit log ,only then the git log will log..
Checkout keeps failing for me..gerrit is perfectly online,we are checking it out on linux,one issue could be I see the checkout starts immediately before creating the local repository?could this be a problem with the plug-in?any other inputs
simple 18-Dec-2012 05:51:39 Starting task 'source code checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 18-Dec-2012 05:51:39 Updating source code to revision: f9501a8daeb1586522f2cec9361ba884b638e9cc simple 18-Dec-2012 05:51:40 Fetching 'refs/heads/' from 'ssh://test@review-android.quicinc.com:29418/platform/vendor/test-proprietary/wlan'. Will try to do a shallow fetch. simple 18-Dec-2012 05:51:40 Warning: Permanently added '[127.0.0.1]:34212' (RSA) to the list of known hosts. simple 18-Dec-2012 05:51:47 Checking out revision f9501a8daeb1586522f2cec9361ba884b638e9cc. error 18-Dec-2012 05:51:47 Checkout to revision f9501a8daeb1586522f2cec9361ba884b638e9cc has failed. simple 18-Dec-2012 05:51:47 Warning: failed to checkout source code to directory '/local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/QWbuild-buildCI0-JOB1/vendor/test/proprietary/\wlan', trying to recover... simple 18-Dec-2012 05:51:47 Cleaned source directory '/local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/QWbuild-buildCI0-JOB1/vendor/test/proprietary/\wlan'... simple 18-Dec-2012 05:51:47 Creating local git repository in '/local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/QWbuild-buildCI0-JOB1/vendor/test/proprietary/\wlan/.git'. simple 18-Dec-2012 05:51:47 Initialized empty Git repository in /local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/QWbuild-buildCI0-JOB1/vendor/test/proprietary/\wlan/.git/ simple 18-Dec-2012 05:51:48 Fetching 'refs/heads/' from 'ssh://test@review-android.quicinc.com:29418/platform/vendor/test-proprietary/wlan'. simple 18-Dec-2012 05:51:48 Warning: Permanently added '[127.0.0.1]:34212' (RSA) to the list of known hosts.
On Mon, Dec 17, 2012 at 2:06 PM, Jason Huntley notifications@github.comwrote:
1.does anyone have any ideas on what could be the reason for the error and how to overcome?
Did you install Native Git? What version do you have installed?
2.any tips to debug this?
There is a debug feature you can turn on listed in the README under the troubleshooting section:
https://github.com/onepremise/gReview/blob/master/README.md
3.Does a gerrit have to be in a particular state to run git log?
Not sure what your'e referring to here. Gerrit does have to be online and reachable via ssh port 29418. Are you checking out on windows or unix?
— Reply to this email directly or view it on GitHubhttps://github.com/onepremise/gReview/issues/24#issuecomment-11463939.
Our automation is running the following command to sync a gerrit and running into following error,I went through the datbase ,lot instances where this error was seen but couldnt get any substantial information
1.does anyone have any ideas on what could be the reason for the error and how to overcome?
2.any tips to debug this?
3.Does a gerrit have to be in a particular state to run git log?
15-Dec-2012 22:01:21 Fetching to source directory '/local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/JOB1' completed, proceeding with checkout... 15-Dec-2012 22:01:21 Checking out revision e57fa792e434a146da732a50a370ff0f9272f5d2. 15-Dec-2012 22:01:21 Checkout to revision e57fa792e434a146da732a50a370ff0f9272f5d2 has failed. 15-Dec-2012 22:01:21 Error occurred while running Task '(3)'. This build will fail. Caused by: 15-Dec-2012 22:01:21 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Checkout to revision e57fa792e434a146da732a50a370ff0f9272f5d2 has failed.command /usr/bin/git log -1 --format=%d --decorate=full e57fa792e434a146da732a50a370ff0f9272f5d2 failed with code 128. Working directory was [/local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/QCAWBIT-BITCI-JOB1]., stderr: 15-Dec-2012 22:01:21 fatal: bad object e57fa792e434a146da732a50a370ff0f9272f5d2 15-Dec-2012 22:01:21 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:109) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:181) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:69) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:69) 15-Dec-2012 22:01:21 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)