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

Not so easy to read error message if repositories folder is not writeable #641

gitblit opened this issue Aug 12, 2015 · 2 comments


Copy link

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 345

What steps will reproduce the problem?
1. Don't allow gitblit user (or whatever user is running gitblit server) to write in
2. Try to create a new repository
3. Get an internal Server error in the webbrowser and find following messages in the
servers output:

INFO  create repository mygroup/myrepos.git
ERROR Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener
targeted at component [MarkupContainer [Component id = editForm]] threw an exception
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener
targeted at component [MarkupContainer [Component id = editForm]] threw an exception
        at org.apache.wicket.RequestListenerInterface.invoke(
        at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(
        at org.apache.wicket.RequestCycle.processEventsAndRespond(
        at org.apache.wicket.RequestCycle.step(
        at org.apache.wicket.RequestCycle.steps(
        at org.apache.wicket.RequestCycle.request(
        at org.apache.wicket.protocol.http.WicketFilter.doGet(
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
        at com.gitblit.EnforceAuthenticationFilter.doFilter(
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
        at org.eclipse.jetty.servlet.ServletHandler.doScope(
        at org.eclipse.jetty.server.session.SessionHandler.doScope(
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
        at org.eclipse.jetty.server.Server.handle(
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
        at org.eclipse.jetty.server.AbstractHttpConnection.content(
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(
        at org.eclipse.jetty.http.HttpParser.parseNext(
        at org.eclipse.jetty.http.HttpParser.parseAvailable(
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.wicket.RequestListenerInterface.invoke(
        ... 36 more
Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Creating directories
for /srv/gitblit/mygroup/myrepos.git failed
        at com.gitblit.utils.JGitUtils.createRepository(
        at com.gitblit.GitBlit.updateRepositoryModel(
        at com.gitblit.wicket.pages.EditRepositoryPage$2.onSubmit(
        at org.apache.wicket.markup.html.form.Form.delegateSubmit(
        at org.apache.wicket.markup.html.form.Form.process(
        at org.apache.wicket.markup.html.form.Form.onFormSubmitted(
        ... 41 more
Caused by: Creating directories for /srv/gitblit/mygroup/myrepos.git
        at org.eclipse.jgit.util.FileUtils.mkdirs(
        ... 47 more

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

A "nice" error message in the browser instructing me to check the filesystem permissions

What version of the product are you using? On what operating system?
current snapshot of the master branch (1.4.0-SNAPSHOT)

Reported by guenter.dressel on 2013-11-27 09:27:08

Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I added a write check on startup when using Gitblit as a repository server.

Reported by James.Moger on 2013-12-01 15:47:10

  • Status changed: Queued
  • Labels added: Milestone-1.4.0

Copy link
Collaborator Author

gitblit commented Aug 12, 2015

1.4.0 released.

Reported by James.Moger on 2014-03-09 18:06:21

  • Status changed: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants