Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
no problem, glad to help in any way I can
Hi there, I have a gitbucket installation running on 4.24.0. (released 30 Apr 2018). Can I directly upgrade to the current version (4.35.3 - 14 Jan 2021) or do I need to follow some upgrade path?
Naoki Takezoe
@towbi Yes, you can upgrade to 4.35.3 directly. Basically, GitBucket can be upgraded from any versions to newer versions, but I strongly recommend to take a backup before upgrading.
Naoki Takezoe
@flyingone Granular access control is one missing feature in GitBucket because it's originally designed for small software development teams. I think that system-wide design is necessary rather than implementing security requirements one by one in order to make a consistent and flexible access control mechanism. If I remember correctly, we already have an issue for that on GitHub. Maybe adding your requirements to that issue would be helpful to consider the design of the next generation of access control mechanism on GitBucket.
Naoki Takezoe
Hmm, but I cannot find the existing issue... Creating a new issue is fine. When I find the existing one, we can merge them. :bow:
Thanks Naoki .. please find issues gitbucket/gitbucket#2687
1 reply
Shreejan Shrestha


Actually, #544 has been reported by Windows users many times in the past, but I'm still not sure how to solve it. Also, I don' have a Window environment now, so I cannot look into this issue. Can anyone who uses GitBucket on Windows help?

I could delete without error using following patch. How do think about it?

diff --git a/src/main/scala/gitbucket/core/service/RepositoryService.scala b/src/main/scala/gitbucket/core/service/RepositoryService.scala
index 831820eac3c78e784eb980125a25b0d3f2c8d7e6..9fd325232449f0772b1c7a70a6c6756c28eeb943 100644
--- a/src/main/scala/gitbucket/core/service/RepositoryService.scala
+++ b/src/main/scala/gitbucket/core/service/RepositoryService.scala
@@ -14,6 +14,7 @@ import org.apache.commons.io.FileUtils
 import org.eclipse.jgit.api.Git
 import org.eclipse.jgit.lib.{Repository => _, _}
 import scala.util.Using
+import java.io.{File, FileNotFoundException, IOException}

 trait RepositoryService {
   self: AccountService =>
@@ -233,14 +234,23 @@ trait RepositoryService {

+  def deleteRecursively(f: File): Boolean = {
+    if (f.isDirectory) f.listFiles match {
+      case files: Array[File] => files.foreach(deleteRecursively)
+      case null               =>
+    }
+    f.delete()
+  }
   def deleteRepository(repository: Repository)(implicit s: Session): Unit = {
     LockUtil.lock(s"${repository.userName}/${repository.repositoryName}") {
       deleteRepositoryOnModel(repository.userName, repository.repositoryName)

-      FileUtils.deleteDirectory(getRepositoryDir(repository.userName, repository.repositoryName))
-      FileUtils.deleteDirectory(getWikiRepositoryDir(repository.userName, repository.repositoryName))
-      FileUtils.deleteDirectory(getTemporaryDir(repository.userName, repository.repositoryName))
-      FileUtils.deleteDirectory(getRepositoryFilesDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getRepositoryDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getWikiRepositoryDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getTemporaryDir(repository.userName, repository.repositoryName))
+      deleteRecursively(getRepositoryFilesDir(repository.userName, repository.repositoryName))

       // Call hooks
       PluginRegistry().getRepositoryHooks.foreach(_.deleted(repository.userName, repository.repositoryName))
6 replies
HI All, How can i migrate the gitbucket repo's to bitbucket?
1 reply
When using docker, I had problems with db migration when updating from 4.34.0 (tag gitbucket/gitbucket:4) to 4.35.3. Reverting back to 4.34.0 working well. Hope to be supported. よろしくお願いします。
6 replies
hi Takezoe ! Was wondering if you or anyone here saw my question about the radio buttons for role of collaborators or group members… is this some kind of bug for everyone or is it just accessibility related ?
the fact that after selecting one for a member then clicking apply changes, the choice I picked doesn't seem to be displayed in any way
all the buttons are unselected when the page comes up the next time
Naoki Takezoe
@xogium Can you confirm whether the selected permission is actually applied?
hello Takezoe :) yes the perms are applied it appears, it's just not visible somehow…
Naoki Takezoe
Hmm, I see. That's weird.
Hi There, I have Gitbucket that's running 4.15.0 version and the database which it is using is Psql(9.6) . Can i directly upgrade it to the latest Version ( 4.35.3) ? Is the new version compatible with the Psql(9.6) version ?
Naoki Takezoe
@rajeshrocky Basically, it's possible, but I strongly recommend taking a backup of your data before upgrading.
Thanks @takezoe , i would do that.
@takezoe , Are there any database schemas that i need to change during the upgrade process ?
Naoki Takezoe
No, GitBucket will automatically update your database schema if necessary.
Got it, Thank you @takezoe
Sahil Sardana
Hello @takezoe hope you are doing well. I was able to fix the LDAP issue and now I am having issue with copying the data.mv.db directory from the backup .gitbucket directory. I copied all other files & directories. As soon as I update the data.mv.db I start getting below error: [localhost-startStop-1] ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "COMMIT_COMMENT" not found; SQL statement:
at org.h2.message.DbException.getJdbcSQLException(DbException.java:451)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
at org.h2.message.DbException.get(DbException.java:205)
at org.h2.message.DbException.get(DbException.java:181)
at org.h2.command.ddl.AlterTableAddConstraint.tryUpdate(AlterTableAddConstraint.java:108)
at org.h2.command.ddl.AlterTableAddConstraint.update(AlterTableAddConstraint.java:78)
at org.h2.engine.MetaRecord.execute(MetaRecord.java:60)
at org.h2.engine.Database.open(Database.java:842)
3 replies
is it possible to have a fully dark theme for each colour?
3 replies
Just wanted to note, after my Mar 08 2019 13:35 post, that there is a https://github.com/onukura/gitbucket-mathjax-plugin which works fine for Latex-style equations in Markdown on Gitbucket.
1 reply
I want a github clone for fb hacking ... Anyone have ???
Hi All, I have Ungraded my Gitbucket from 4.15 to the newest version 4.35.3 in my development environment but i am not able to login to the UI using the root credentials, Can anyone let me know where there is any location on the gitbucket server where i can find the admin credentials?
1 reply
Hi All, I am upgrading the gitbucket 4.15 to 4.35.3. But i did found a document that has scala version 2.13 compatabile for 4.35.3. But when i check for 4.15 the compatbaile version is 2.12. So if i upgrade the gitbucket to the latest 4.35.3 will it a problem ? because i have the scala of 2.12. Or esle do i need to upgrade the Scala first and then upgrade the gitbucket version? if yes can someone help me in upgrading the scala as i don't see a document on scala. Thanks!
Naoki Takezoe
@dumpaliaravind You don't need to upgrade your Scala installation. The recent versions of GitBucket is built with Scala 2.13, but it doesn't use your Scala installation at runtime. GitBucket requires only Java installation to run.
1 reply
Naoki Takezoe
Does anyone have options or feedbacks about basic authentication support in GitBucket? Please comment on this pull request if you have anything: gitbucket/gitbucket#2713
Josh Curtiss
Has anyone tried integrating GitBucket with Sentry (on-premise) using its GitHub Enterprise integration? I just installee Sentry and will be wanting to integrate with GB.
Douglas Jones
Hi, I am trying to get GitBucket setup on a Ubuntu 20.02 system. I installed GitBucket, NGINX and MySQL 8. I was able to get the admin web pack of GitBucket, from a remote PC but not from the console on the Linux box. I read somewhere that GitBucket does not work with MySQL 8, so I removed MySQL 8 and installed MySQL 5.7. Somewhere something got crossed up as I cannot reach the GitBucket admin web page from either the console or a remote PC. Can someone tell me what is controlling access to GitBucket?
Sebastian K.
Hey everyone! I'm getting a 404 on the content area (repository listing index) after a fresh install. Network analysis shows me it's thrown by browsing-context.js:1166. Any ideas as to why this is happening or how to trace down the cause?
1 reply
Douglas Jones
GitBucket GitBucket GitBucket
Toggle navigation
Find a repository
Pull requests
New repository
New group
Your profile
Account settings
System administration
Sign out
Recently updated repositories
Find a repository
News feed
Pull requests
1 hour ago
@jones_d jones_d created jones_d/sample
2 days ago
@root root created Div_8_Devs/RAMON-LOCATE
I just just dropped the 4.35.3 version of gitbucket onto my server. Now the admin web p[age is not HTML but looks like just some links? What happened?
Douglas Jones

When I look at the web page source I see a lot of messages like this:

GET http://abt33.rsint.net/gitbucket/assets/vendors/bootstrap-datetimepicker-4.17.44/css/bootstrap-datetimepicker.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:18 GET http://abt33.rsint.net/gitbucket/assets/vendors/bootstrap-3.4.1/css/bootstrap.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:17 GET http://abt33.rsint.net/gitbucket/assets/vendors/google-fonts/css/source-sans-pro.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:22 GET http://abt33.rsint.net/gitbucket/assets/vendors/color-themes-for-google-code-prettify/github-v2.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:21 GET http://abt33.rsint.net/gitbucket/assets/vendors/colorpicker/css/bootstrap-colorpicker.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:19 GET http://abt33.rsint.net/gitbucket/assets/vendors/octicons-4.4.0/octicons.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:24 GET http://abt33.rsint.net/gitbucket/assets/vendors/AdminLTE-2.4.2/css/AdminLTE.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:28 GET http://abt33.rsint.net/gitbucket/assets/vendors/jquery-ui/jquery-ui.structure.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:26 GET http://abt33.rsint.net/gitbucket/assets/vendors/font-awesome-4.7.0/css/font-awesome.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:27 GET http://abt33.rsint.net/gitbucket/assets/vendors/jquery-ui/jquery-ui.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:23 GET http://abt33.rsint.net/gitbucket/assets/vendors/facebox/facebox.css?20210412170827 net::ERR_ABORTED 404 (Not Found)
abt33.rsint.net/:25 GET http://abt33.rsint.net/gitbucket/assets/vendors/AdminLTE-2.4.2/css/skins/skin-blue.min.css?20210412170827 net::ERR_ABORTED 404 (Not Found)

2 replies
Hi All, After upgrading gitbucket to 4.35.3 webhooks are not working. And I see this error. Can someone please help me understand this issue?
And this is the error I am seeing in the logs:
Naoki Takezoe
@dumpaliaravind I'm not yet 100% sure though, looks like a bug in 4.35.3. Could you create an issue on GitHub?
2 replies
There are plugins for viewers. Is it also possible to use a plugin as editor?
is it possible to convert an existing repository into a mirror with the plugin that allows creating mirrors ? I have a project that's moved on github but still would like a mirror on gitbucket, but don't want to recreate the whole thing. I mean, I'll do it if I have to, but I'd prefer not
久野 浩

When I select a project on the gitbucket-web-menu,
I get a WARN message "Usage of the artifact cache2k-all is deprecated, please update your dependencies."
Why, and What to do?

Version: gitbucket-4.35.3

OS: Ubuntu20.04LTS on Windows10 WSL


$ java -jar $HOME/install/gitbucket.war
2021-05-12 12:06:42.281:INFO::main: Logging initialized @483ms to org.eclipse.jetty.util.log.StdErrLog
2021-05-12 12:06:42.391:WARN:oejsh.ContextHandler:main: Empty contextPath
2021-05-12 12:06:42.397:INFO:oejs.Server:main: jetty-9.4.32.v20200930; built: 2020-09-30T16:16:37.804Z; git: de97d26f7bd222a0e16831e353d702a7a422f711; jvm 11.0.10+9-Ubuntu-0ubuntu1.20.04
2021-05-12 12:06:47.289:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2021-05-12 12:06:47.524:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2021-05-12 12:06:47.525:INFO:oejs.session:main: No SessionScavenger set, using defaults
2021-05-12 12:06:47.528:INFO:oejs.session:main: node0 Scavenging every 600000ms
12:06:47.917 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
12:06:48.186 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
12:06:48.203 [main] WARN  slick.util.AsyncExecutor - Having maxConnection > maxThreads can result in deadlocks if transactions or database locks are used.
12:06:48.214 [main] INFO  g.core.servlet.InitializeListener - Check version
12:06:48.214 [main] INFO  g.core.servlet.InitializeListener - Start schema update
12:06:48.256 [main] INFO  g.core.servlet.InitializeListener - Extract bundled plugins...
12:06:48.298 [main] INFO  g.core.servlet.InitializeListener - Extract to /home/hkuno/.gitbucket/plugins/gitbucket-notifications-plugin-1.10.0.jar
12:06:48.311 [main] INFO  g.core.servlet.InitializeListener - Extract to /home/hkuno/.gitbucket/plugins/gitbucket-gist-plugin-4.20.0.jar
12:06:48.319 [main] INFO  g.core.servlet.InitializeListener - Extract to /home/hkuno/.gitbucket/plugins/gitbucket-emoji-plugin-4.6.0.jar
12:06:48.335 [main] INFO  g.core.servlet.InitializeListener - Extract to /home/hkuno/.gitbucket/plugins/gitbucket-pages-plugin-1.9.0.jar
12:06:48.337 [main] INFO  g.core.servlet.InitializeListener - Initialize plugins
12:06:48.414 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-gist-plugin-4.20.0.jar
12:06:48.699 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-emoji-plugin-4.6.0.jar
12:06:48.724 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-notifications-plugin-1.10.0.jar
12:06:48.764 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-pages-plugin-1.9.0.jar
12:06:48.795 [main] INFO  o.scalatra.servlet.ScalatraListener - The cycle class name from the config: ScalatraBootstrap
12:06:48.796 [Thread-9] INFO  g.core.plugin.PluginWatchThread - Start PluginWatchThread: /home/hkuno/.gitbucket/plugins
12:06:48.800 [main] INFO  o.scalatra.servlet.ScalatraListener - Initializing life cycle class: ScalatraBootstrap
2021-05-12 12:06:49.274:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@4ee5b2d9{/,file:///home/hkuno/.gitbucket/tmp/webapp/,AVAILABLE}{file:/home/hkuno/install/gitbucket.war}
2021-05-12 12:06:49.301:INFO:oejs.AbstractConnector:main: Started ServerConnector@6073f712{HTTP/1.1, (http/1.1)}{}
2021-05-12 12:06:49.303:INFO:oejs.Server:main: Started @7524ms
12:07:33.194 [qtp2052001577-12] INFO  o.c.core.Cache2kCoreProviderImpl - cache2k starting. version=1.2.4.Final
12:07:33.280 [qtp2052001577-12] WARN  o.c.e.a.WarnAboutCache2kAllUsage - Usage of the artifact cache2k-all is deprecated, please update your dependencies. See: https://cache2k.org/docs/latest/user-guide.html#getting-started
Tech Founder
hi, just checking I installed gitbucket awhile back (4.x.x) and have not upgraded it for quite sometimes. I'm looking for upgrade document. Does anyone know where it is ?
There's no version-specific guidance. Just stop GitBucket, replace the gitbucket.war, and restart.
Remember you backup your data before upgrade. It's very likely that DB migration will occur.
Please refer these xml files about migration details