My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3539: Error Delete Plugin
6 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sina.tad...@gmail.com, Aug 30, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:

What steps will reproduce the problem?
1. Connect to tuleap as administrator 
2. Go to git section -> settings button -> gerrit tab 
3. Disconnect from gerrit section -> Select "Also delete project on gerrit"
4. Generate error in logs/error_log

What is the expected output? What do you see instead?

ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in DELETE /a/projects/tggitest%2FTGGITest
java.nio.file.FileSystemException: /srv/gitRepos/tggitest -> /srv/gitRepos/tggitest/TGGITest.1440922387678.deleted: Invalid argument
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:396)
        at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262)
        at java.nio.file.Files.move(Files.java:1395)
        at com.googlesource.gerrit.plugins.deleteproject.fs.FilesystemDeleteHandler.moveToTrash(FilesystemDeleteHandler.java:144)
        at com.googlesource.gerrit.plugins.deleteproject.fs.FilesystemDeleteHandler.deleteGitRepository(FilesystemDeleteHandler.java:112)
        at com.googlesource.gerrit.plugins.deleteproject.fs.FilesystemDeleteHandler.delete(FilesystemDeleteHandler.java:79)
        at com.googlesource.gerrit.plugins.deleteproject.DeleteProject.doDelete(DeleteProject.java:150)
        at com.googlesource.gerrit.plugins.deleteproject.DeleteProject.apply(DeleteProject.java:104)
        at com.googlesource.gerrit.plugins.deleteproject.DeleteProject.apply(DeleteProject.java:49)
        at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:322)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)


Please provide any additional information below.

Aug 30, 2015
#1 sina.tad...@gmail.com
gerrit version 2.11.3 
Aug 30, 2015
Project Member #2 david.pu...@sonymobile.com
This looks more like an issue with tuleap than gerrit itself.
Aug 30, 2015
#3 sina.tad...@gmail.com
I have been tested delete plugin from ssh then as a result do nothing.
version: delete-plugin-2.11.1
Sep 15, 2015
#4 cezarius...@gmail.com
> This looks more like an issue with tuleap than gerrit itself.

No, it isn't. I have the same problem with a clean Gerrit standalone installation:

[2015-09-15 09:17:55,096] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in POST /projects/sdm%2Fsdm-hybrid/deleteproject~delete
java.nio.file.FileSystemException: /var/lib/gerrit2/git/sdm -> /var/lib/gerrit2/git/sdm/sdm-hybrid.1442301475095.deleted: Invalid argument

Gerrit 2.11.3
deleteproject v2.11.3

Sep 15, 2015
#5 christia...@selerityfinancial.com
This issue should be fixed by (the meanwhile merged):

  https://gerrit-review.googlesource.com/#/c/70542/
Sep 16, 2015
#6 WekTor...@gmail.com
This didn't solve problem for me...
Sep 16, 2015
#7 i.d.rath...@gmail.com
What version of the delete-project plugin are you using?
Sep 16, 2015
#8 WekTor...@gmail.com
I have Gerrit 2.11.3 and deleteproject 2.11.3
Sep 16, 2015
#9 i.d.rath...@gmail.com
As you only listed the version number and not the commit hash, I assume that
you're running a too old delete-project plugin. The fix only got merged yesterday (2015-09-15).

You can try running a nightly deleteproject jar which has the fix included. For example:

http://builds.quelltextlich.at/gerrit/nightly/stable-2.11/2015-09-16/delete-project.jar

has the fix included (it is built from commit 9eb4988b).
Sep 16, 2015
#10 WekTor...@gmail.com
You are right, I was running an old plugin... Sorry about that, now it works! Thank`s!
Sep 16, 2015
#11 miguel.h...@gmail.com
I've tried 9eb4988b build, and now I'm getting another error:  {"preserve":false,"force":true} com.google.gwtorm.server.OrmConcurrencyException: Concurrent modification detected
Sign in to add a comment

Powered by Google Project Hosting