Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitBlit v1.6.1 doesn't start with sym links in RepositorySubfolders #837

Closed
gitblit opened this issue Aug 12, 2015 · 2 comments
Closed

GitBlit v1.6.1 doesn't start with sym links in RepositorySubfolders #837

gitblit opened this issue Aug 12, 2015 · 2 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 541

What steps will reproduce the problem?
1.Set in gitblit.properties git.repositoriesFolder = /path/gitblit_links
1a. and git.searchRepositoriesSubfolders = true
1b. and git.searchRecursionDepth = -1

2./path/gitblit_links contains a set of folders like GroupA, GroupB & GroupC
3. GroupA, GroupB & GroupC contain the bare repos, which are sym links, like this:
ls -l /path/gitblit_links/*

/path/gitblit_links/GroupA:
total 0
lrwxrwxrwx 1 user grp 53 May 13  2014 RepoA.git -> /realPath/repositories/GroupA/RepoA.git
lrwxrwxrwx 1 user grp 53 May 13  2014 RepoB.git -> /realPath/repositories/GroupA/RepoB.git

/path/gitblit_links/GroupB:
lrwxrwxrwx 1 u1gitcld elsgit 43 Jul  8 07:35 RepoC.git -> /realPath/repositories/GroupB/RepoC.git
lrwxrwxrwx 1 u1gitcld elsgit 42 Aug  4 11:10 RepoD.git -> /realPath/repositories/GroupB/RepoD.git

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

I expect Tomcat to start.  Instead, I see the following error on startup:
2014-12-22 15:09:35 [INFO ] ----[com.gitblit.manager.IRepositoryManager]----
2014-12-22 15:09:35 [INFO ] Repositories folder : /path/gitblit_links
2014-12-22 15:09:35 [INFO ] Lucene will process indexed branches every 2 minutes.
2014-12-22 15:09:35 [INFO ] Garbage Collector (GC) is disabled.
2014-12-22 15:09:35 [INFO ] Mirror service is disabled.
2014-12-22 15:09:35 [INFO ] Alias UTF-9 & UTF-18 encodings as UTF-8 in JGit
2014-12-22 15:09:35 [INFO ] Preparing 14 day commit cache. please wait...
Dec 22, 2014 3:09:36 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.gitblit.servlet.GitblitContext
java.lang.NullPointerException

What version of the product are you using? On what operating system?
v1.6.2 (War distribution)
apache-tomcat-7.0.42
64 bit Oracle JDK jdk1.7.0_40
Red Hat 4.1.2-52

Please provide any additional information below.
Perhaps, related to Issue 
Worked fine with ver 1.5.1 (although with different gitblit.properties, of course).
 In this case, I went ahead and modified the new gitblit.properties (as opposed to
copying forward the one that worked in 1.5.1).
Starts just fine with the default value (of course, there are no repos)

Reported by sonia.shepherd@elsevier.com on 2014-12-22 20:33:32

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Sorry for the confusion -- Subject title says 1.6.1, but it is actually v 1.6.2.

Reported by sonia.shepherd@elsevier.com on 2014-12-22 20:37:12

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Also -- I wrote Perhaps related to Issue, but didn't provide the #.  This appears similar
to issue #807.  

Reported by sonia.shepherd@elsevier.com on 2014-12-23 16:17:56

@flaix flaix modified the milestone: 1.9.0 Jan 18, 2017
@flaix flaix closed this as completed in d52dfc2 Jun 10, 2019
@flaix flaix added Status-Fixed Status-Obsolete Issue has been obsoleted by code changes or become irrelevant or stale and removed Status-New labels Jun 10, 2019
@flaix flaix removed the Status-Obsolete Issue has been obsoleted by code changes or become irrelevant or stale label Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants