Guest?
 
Project
SubGit
Priority
Critical
Type
Bug
State
Fixed
Assignee
Semyon Vadishev
Subsystem
Translator Core
Affected versions
Miai EAP6 (build 1381)
Fix versions
1.0.0 (build 1696)
Fixed in build
No Fixed in build
  • Created by   Semyon Vadishev
    11 months ago (28 May 2012 19:55)
  • Updated by   Nikita Mekh
    5 months ago (18 Dec 2012 10:33)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
'tried it, but push failed. Was working with 1096 (debian/squeeze), any idea ?


[2012-05-28 09:31:12.921][pre-receive-hook][10] SubGit version 1.0.0-EAP ('Miai') build #1381
[2012-05-28 09:31:12.924][pre-receive-hook][10]
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.tmatesoft.translator.i.h.a(SourceFile:272)
at org.tmatesoft.translator.i.h.i(SourceFile:260)
at org.tmatesoft.translator.i.l.f(SourceFile:52)
at org.tmatesoft.translator.i.h.b_(SourceFile:87)
at org.tmatesoft.translator.SubGitHook.d(SourceFile:81)
at org.tmatesoft.translator.SubGitHook.a(SourceFile:52)
at org.tmatesoft.translator.SubGitHook.a(SourceFile:20)
at org.tmatesoft.translator.process.f.c(SourceFile:115)
at org.tmatesoft.translator.process.f.b(SourceFile:87)
at org.tmatesoft.translator.SubGitHook.main(SourceFile:25)
[2012-05-28 09:31:12.929][pre-receive-hook][10] Failed to execute pre-receive hook command
org.tmatesoft.translator.util.d:
at org.tmatesoft.translator.util.d.b(SourceFile:53)
at org.tmatesoft.translator.util.d.a(SourceFile:41)
at org.tmatesoft.translator.i.h.b_(SourceFile:108)
at org.tmatesoft.translator.SubGitHook.d(SourceFile:81)
at org.tmatesoft.translator.SubGitHook.a(SourceFile:52)
at org.tmatesoft.translator.SubGitHook.a(SourceFile:20)
at org.tmatesoft.translator.process.f.c(SourceFile:115)
at org.tmatesoft.translator.process.f.b(SourceFile:87)
at org.tmatesoft.translator.SubGitHook.main(SourceFile:25)
Caused by: java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.tmatesoft.translator.i.h.a(SourceFile:272)
at org.tmatesoft.translator.i.h.i(SourceFile:260)
at org.tmatesoft.translator.i.l.f(SourceFile:52)
at org.tmatesoft.translator.i.h.b_(SourceFile:87)
... 6 more
Comments (13)
 
History
 
Linked Issues (?)
 
Semyon Vadishev
  Semyon Vadishev
28 May 2012 20:18
11 months ago
Seems like JNA library is not available on classpath while hooks are running. Here are some reasons why that could happen:

  • Broken Debian package (dependencies are missing?);
  • Failed attempt to generate a 'fat' jar with all the libraries needed to run hooks and SubGit background process;
  • Failed upgrade from previous version resulted in invalid classpath definition.

In order to narrow down the reason could you please do the following:

  1. Try .zip distribution of SubGit, which is also available at http://subgit.com/download/
  2. Send us content of generated $GIT_REPOS/hooks/pre-receive and post-receive hooks
  3. Try to do clean upgrade:

$ subgit uninstall –purge $SVN_REPOS
$ mv $GIT_REPOS $GIT_REPOS_BACKUP
$ subgit install $SVN_REPOS

Does the latter resolve your problem?

Thanks in advance.
Semyon Vadishev
  Semyon Vadishev
28 May 2012 21:06
11 months ago
Please also try the interim build I've just uploaded — http://subgit.com/interim/, it tries to ignore the error for an early attempt to load Native.class. I wonder if the same error appears later when SubGit accesses file system with some JNA routines.
guest
  guest
31 May 2012 15:30
11 months ago
Hi, I have exactly the same problem on RHEL 6.1 with the 1381 zip. With a clean install. I checked the fat jar and it has the class in it. I tried 1386, and this is worse. The push just hangs.
Semyon Vadishev
  Semyon Vadishev
31 May 2012 16:14
11 months ago
Hello,

Please attach all the logs available at SVN_REPOS/subgit/logs directory for both 1381 & 1386 builds, if that's possible.

Does git push hang every time you send changes with build 1386? Try to do the following: adjust SVN_REPOS/conf/subgit.conf file by adding the option:

[license]
asyncCheck = false

And then run `subgit install SVN_REPOS` to enable it. Does that solve the problem with hanged push?

Thanks in advance.
Semyon Vadishev
  Semyon Vadishev
31 May 2012 18:09
11 months ago
Please try to use build #1392 available at http://subgit.com/interim/
guest
  guest
31 May 2012 19:41
11 months ago
[2012-05-31 18:36:50.857][pre-receive-hook][1] Initialized memory cache logger.
[2012-05-31 18:36:50.869][pre-receive-hook][1] SubGit version 1.0.0-EAP ('Miai') build #1381
[2012-05-31 18:36:50.870][pre-receive-hook][1] Posix: Non-JNA platform is chosen.
[2012-05-31 18:36:50.896][pre-receive-hook][1] Command name: pre-receive.
[2012-05-31 18:36:50.896][pre-receive-hook][1] Command argument: /home/git/svn/git/project.git.
[2012-05-31 18:36:50.897][pre-receive-hook][1] Initialized console logger.
[2012-05-31 18:36:50.897][pre-receive-hook][1] SubGit version 1.0.0-EAP ('Miai') build #1381
[2012-05-31 18:36:51.168][pre-receive-hook][1] Initialized file logger, logs directory is: '/home/git/svn/repos/subgit/logs'.
[2012-05-31 18:36:51.169][pre-receive-hook][1] SubGit version 1.0.0-EAP ('Miai') build #1381
[2012-05-31 18:36:51.172][pre-receive-hook][1] Could not initialize class com.sun.jna.Native
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:264)
 at org.tmatesoft.translator.i.h.a(SourceFile:272)
 at org.tmatesoft.translator.i.h.i(SourceFile:260)
 at org.tmatesoft.translator.i.l.f(SourceFile:52)
 at org.tmatesoft.translator.i.h.b_(SourceFile:87)
 at org.tmatesoft.translator.SubGitHook.d(SourceFile:81)
 at org.tmatesoft.translator.SubGitHook.a(SourceFile:52)
 at org.tmatesoft.translator.SubGitHook.a(SourceFile:20)
 at org.tmatesoft.translator.process.f.c(SourceFile:115)
 at org.tmatesoft.translator.process.f.b(SourceFile:87)
 at org.tmatesoft.translator.SubGitHook.main(SourceFile:25)
[2012-05-31 18:36:51.177][pre-receive-hook][1] Failed to execute pre-receive hook command
org.tmatesoft.translator.util.d: Could not initialize class com.sun.jna.Native
 at org.tmatesoft.translator.util.d.b(SourceFile:53)
 at org.tmatesoft.translator.util.d.b(SourceFile:53)
 at org.tmatesoft.translator.util.d.a(SourceFile:41)
 at org.tmatesoft.translator.i.h.b_(SourceFile:108)
 at org.tmatesoft.translator.SubGitHook.d(SourceFile:81)
 at org.tmatesoft.translator.SubGitHook.a(SourceFile:52)
 at org.tmatesoft.translator.SubGitHook.a(SourceFile:20)
 at org.tmatesoft.translator.process.f.c(SourceFile:115)
 at org.tmatesoft.translator.process.f.b(SourceFile:87)
 at org.tmatesoft.translator.SubGitHook.main(SourceFile:25)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:264)
 at org.tmatesoft.translator.i.h.a(SourceFile:272)
 at org.tmatesoft.translator.i.h.i(SourceFile:260)
 at org.tmatesoft.translator.i.l.f(SourceFile:52)
 at org.tmatesoft.translator.i.h.b_(SourceFile:87)
 ... 6 more
guest
  guest
31 May 2012 19:48
11 months ago
1392 seems to work
Semyon Vadishev
  Semyon Vadishev
31 May 2012 22:39
11 months ago
I've googled a bit and found my own comment on a similar problem — http://issues.tmatesoft.com/issue/SGT-423#comment=60-3676

Seems like hooks are run on behalf of a user with insufficient permissions to write into temporary directory. Currently SubGit checks whether temporary directory is writable on Windows machines. Seems like the same problem appears on Linux machines, too. So, I've prepared a new build #1393 that makes sure that temporary directory is writable while hooks are running on Linux.

Please download this build from http://subgit.com/interim/, thanks!
Semyon Vadishev
  Semyon Vadishev
18 Jun 2012 15:18
11 months ago
Thanks everyone involved, I'm closing the issue. In case someone hits this problem again feel free to reopen it.
Related Changes
Resolved Date
11 months ago (18 Jun 2012 15:18)
State
In ProgressFixed
Nikita Mekh
  Nikita Mekh
17 Dec 2012 14:54
5 months ago
Hello! I have the same problem with Stash subgit plugin on windows system. I'm trying to import svn project using web interface.
Message:
[ log file ] svn: Missing XML attribute: rev svn: REPORT of '/svn/repos/!svn/vcc/default': 500 Internal Server Error (http://xxx.xxx.xxx.xxx)


Log:
[2012-12-17 13:14:00.771][subgit][177] Initialized memory cache logger.
[2012-12-17 13:14:00.771][subgit][177] SubGit version 2.0.0-EAP ('Patrick' EAP) build #9999999
[2012-12-17 13:14:00.771][subgit][177] Adding 'D:\atlassian-stash-2.0.0\bin\bootstrap.jar' into fat jar
[2012-12-17 13:14:00.771][subgit][177] Adding 'D:\atlassian-stash-2.0.0\bin\tomcat-juli.jar' into fat jar
[2012-12-17 13:14:00.771][subgit][177] Adding 'D:\atlassian-stash-2.0.0\bin\tomcat-juli.jar' into fat jar
[2012-12-17 13:14:00.786][subgit][177] Fat jar test failed.
java.lang.ClassNotFoundException: org.tmatesoft.a.d
java.lang.ClassNotFoundException: org.tmatesoft.a.d
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:264)
 at org.tmatesoft.a.d.l.b(SourceFile:126)
 at org.tmatesoft.a.d.r.a(SourceFile:182)
 at org.tmatesoft.a.d.r.e(SourceFile:158)
 at org.tmatesoft.a.d.r.c(SourceFile:115)
 at org.tmatesoft.a.c.b.a.e(SourceFile:141)
 at org.tmatesoft.subgit.stash.web.admin.SgImportJob.configureRepository(SourceFile:219)
 at org.tmatesoft.subgit.stash.web.admin.SgImportJob.importRepository(SourceFile:177)
 at org.tmatesoft.subgit.stash.web.admin.SgImportJob.access$200(SourceFile:51)
 at org.tmatesoft.subgit.stash.web.admin.b.run(SourceFile:136)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)
[2012-12-17 13:14:00.786][subgit][177] com.sun.jna.Native
java.lang.ClassNotFoundException: com.sun.jna.Native
java.lang.ClassNotFoundException: com.sun.jna.Native
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
 at org.tmatesoft.a.d.r.a(SourceFile:199)
 at org.tmatesoft.a.d.r.e(SourceFile:159)
 at org.tmatesoft.a.d.r.c(SourceFile:115)
 at org.tmatesoft.a.c.b.a.e(SourceFile:141)
 at org.tmatesoft.subgit.stash.web.admin.SgImportJob.configureRepository(SourceFile:219)
 at org.tmatesoft.subgit.stash.web.admin.SgImportJob.importRepository(SourceFile:177)
 at org.tmatesoft.subgit.stash.web.admin.SgImportJob.access$200(SourceFile:51)
 at org.tmatesoft.subgit.stash.web.admin.b.run(SourceFile:136)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)
[2012-12-17 13:14:00.802][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key core.pathEncoding
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key svn.branches
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key svn.tags
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key svn.shelves
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key auth.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key auth.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key daemon.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key daemon.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key daemon.section.id
[2012-12-17 13:14:00.817][subgit][177] Can't find resource for bundle java.util.PropertyResourceBundle, key daemon.section.id
[2012-12-17 13:14:00.927][subgit][177] Initialized file logger, logs directory is: 'D:\Atlassian\ApplicationData\Stash\data\repositories\1\subgit\logs'.
[2012-12-17 13:14:00.927][subgit][177] SubGit version 2.0.0-EAP ('Patrick' EAP) build #9999999
[2012-12-17 13:14:01.005][subgit][177] Using Subversion configuration and credentials cache at: C:\Documents and Settings\Default User\Application Data\Subversion
[2012-12-17 13:14:01.177][subgit][177] Created installation report:
ErrorReport[description='Push rejected: SubGit installation is in progress.
Pushes will be allowed as soon as SubGit installation is completed.', warning=true, git enabled=false, svn enabled=true]
[2012-12-17 13:14:01.177][subgit][177] Using Subversion configuration and credentials cache at: C:\Documents and Settings\Default User\Application Data\Subversion
[2012-12-17 13:14:01.224][subgit][177] Using Subversion configuration and credentials cache at: C:\Documents and Settings\Default User\Application Data\Subversion
[2012-12-17 13:14:01.271][subgit][177] Using Subversion configuration and credentials cache at: C:\Documents and Settings\Default User\Application Data\Subversion
[2012-12-17 13:14:01.317][subgit][177] Using Subversion configuration and credentials cache at: C:\Documents and Settings\Default User\Application Data\Subversion
[2012-12-17 13:14:01.380][subgit][177] SubGit initial translation hooks installed.
[2012-12-17 13:14:01.380][subgit][177] Sync started for git location 'default'

The last message in log file:
[2012-12-17 13:14:28.286][subgit][177] fetched: hash = cc4178cb7e381e8adf4206f1111b0c8861e9c946, branch = refs/svn/root/trunk, revision = -1
[2012-12-17 13:14:28.380][subgit][177] SET_PATH '' 20167 not empty depth=infinity
[2012-12-17 13:14:28.380][subgit][177] SET_PATH 'trunk' -1 not empty depth=infinity
[2012-12-17 13:14:28.380][subgit][177] sendCopyFrom=true

r20167
M trunk/src/main/java/com/Helloworld.java
======
Alexander Kitaev
  Alexander Kitaev
17 Dec 2012 16:41
5 months ago
Hello Nikita,

Thank you for reporting this problem! From the log it looks like you experience different issue - we're trying to figure out how it could happen and will let you know as soon as the issue is fixed or if we'd need more information. Please track new issue for updates: http://issues.tmatesoft.com/issue/SGT-562

So, far what could help us to resolve the problem:

1) full translation log file, if possible;
2) if there is anything special about your repository configuration (for instance, do you have path-based authentication configured, may it happen that user on whose behalf import is ran does not have access to some of the paths)?

Thanks!
Alexander Kitaev
  Alexander Kitaev
17 Dec 2012 16:47
5 months ago
Nikita, one more possible reason for the issue you experience - is an interim server failure.
In that case resuming import might resolve the problem.
Nikita Mekh
  Nikita Mekh
18 Dec 2012 10:33
5 months ago
Hello Alexander! I added some more information to http://issues.tmatesoft.com/issue/SGT-562
Apply Command

Command Preview: