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 1.2.1: Can't start with soft-linked repositories #513

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

gitblit 1.2.1: Can't start with soft-linked repositories #513

gitblit opened this issue Aug 12, 2015 · 4 comments

Comments

@gitblit
Copy link
Owner

@gitblit gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 217

I want to use gitblit just as (internal) repository viewer. For this, I just soft-linked
existing (readable) git repository into ${baseFolder}/git. 

Im using the war version with customized ${baseFolder}.

What steps will reproduce the problem?
1. Have some existing (bare,readable) git repositories at hand.
2. Soft-link to gitblit installation by 'ln -s <some_repos> ${baseFolder}/git
3. Start bitblit war in tomcat manager (or just restart tomcat).

What is the expected output? What do you see instead?
I expect to be able to use gitblit as repository viewer. 

But I can't even start it. I encounter the following in the logs of tomcat:
$ less localhost.2013-03-08.log
Mrz 08, 2013 1:37:01 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.gitblit.GitBlit
java.lang.NullPointerException
        at com.gitblit.GitBlit.addToCachedRepositoryList(GitBlit.java:1099)
        at com.gitblit.GitBlit.getRepositoryModel(GitBlit.java:1350)
        at com.gitblit.GitBlit.getRepositoryList(GitBlit.java:1203)
        at com.gitblit.GitBlit.configureContext(GitBlit.java:3065)
        at com.gitblit.GitBlit.contextInitialized(GitBlit.java:3258)
        at com.gitblit.GitBlit.contextInitialized(GitBlit.java:3196)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)


What version of the product are you using? On what operating system?
1.2.1 war version, debian squeeze, apache-tomcat-7.0.37

Reported by aannoaanno on 2013-03-08 12:48:43

@gitblit
Copy link
Owner Author

@gitblit gitblit commented Aug 12, 2015

This looks to be a regression in 1.2.x.  Since you are only interested in the viewer
features, try using 1.1.0.  Note, since 1.1.0 does not support the ${baseFolder} syntax
you must explicitly set all settings that currently rely on ${baseFolder}.

Reported by James.Moger on 2013-03-08 12:59:40

  • Status changed: Accepted
  • Labels added: Milestone-1.3.0

@gitblit
Copy link
Owner Author

@gitblit gitblit commented Aug 12, 2015

Fixed on master.
Thanks for the report!

Reported by James.Moger on 2013-03-29 15:15:39

  • Status changed: Queued

@gitblit
Copy link
Owner Author

@gitblit gitblit commented Aug 12, 2015

Fix or enhancement released in v1.3.0

Reported by James.Moger on 2013-07-14 16:52:58

  • Status changed: Fixed

@gitblit
Copy link
Owner Author

@gitblit gitblit commented Aug 12, 2015

I'm encountering the same issue on 1.6.0 using Tomcat 7.0.52.

I can remove both of the symbolic links, start tomcat, and then put the links back
in place/clear the cache after it starts and it will work.

Reported by jliedy on 2014-10-07 19:26:38

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix added this to the 1.3.0 milestone Dec 13, 2016
@flaix flaix added this to the 1.3.0 milestone Dec 13, 2016
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