Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
SIkebe
@SIkebe

I tried this Dockerfile

FROM adoptopenjdk/openjdk8-openj9

LABEL maintainer="Naoki Takezoe <takezoe [at] gmail.com>"

ADD https://github.com/gitbucket/gitbucket/releases/download/4.35.3/gitbucket.war /opt/gitbucket.war

RUN ln -s /gitbucket /root/.gitbucket

VOLUME /gitbucket

# Port for web page and Port for SSH access to git repository (Optional)
EXPOSE 8080 29418

CMD ["sh", "-c", "java -jar /opt/gitbucket.war"]

The output has similar warnings, however I can sign-in without any problem.

2021-05-14 14:56:25.404:INFO::main: Logging initialized @190ms to org.eclipse.jetty.util.log.StdErrLog
2021-05-14 14:56:25.579:WARN:oejsh.ContextHandler:main: Empty contextPath
2021-05-14 14:56:25.589:INFO:oejs.Server:main: jetty-9.4.32.v20200930; built: 2020-09-30T16:16:37.804Z; git: de97d26f7bd222a0e16831e353d702a7a422f711; jvm 1.8.0_292-b10
2021-05-14 14:56:27.808:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2021-05-14 14:56:28.116:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2021-05-14 14:56:28.116:INFO:oejs.session:main: No SessionScavenger set, using defaults
2021-05-14 14:56:28.119:INFO:oejs.session:main: node0 Scavenging every 600000ms
14:56:28.752 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
14:56:29.078 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
14:56:29.112 [main] WARN  slick.util.AsyncExecutor - Having maxConnection > maxThreads can result in deadlocks if transactions 
or database locks are used.
14:56:29.160 [main] INFO  g.core.servlet.InitializeListener - Check version
14:56:29.161 [main] INFO  g.core.servlet.InitializeListener - Start schema update
14:56:30.657 [main] WARN  l.servicelocator.ServiceLocator - Can not use class liquibase.parser.core.yaml.YamlChangeLogParser as a Liquibase service because org.yaml.snakeyaml.constructor.BaseConstructor is not in the classpath
14:56:30.662 [main] WARN  l.servicelocator.ServiceLocator - Can not use class liquibase.parser.core.json.JsonChangeLogParser as a Liquibase service because org.yaml.snakeyaml.constructor.BaseConstructor is not in the classpath
14:56:33.634 [main] INFO  g.core.servlet.InitializeListener - Extract bundled plugins...
14:56:33.665 [main] INFO  g.core.servlet.InitializeListener - Extract to /root/.gitbucket/plugins/gitbucket-notifications-plugin-1.10.0.jar
14:56:33.668 [main] INFO  g.core.servlet.InitializeListener - Extract to /root/.gitbucket/plugins/gitbucket-gist-plugin-4.20.0.jar
14:56:33.669 [main] INFO  g.core.servlet.InitializeListener - Extract to /root/.gitbucket/plugins/gitbucket-emoji-plugin-4.6.0.jar
14:56:33.681 [main] INFO  g.core.servlet.InitializeListener - Extract to /root/.gitbucket/plugins/gitbucket-pages-plugin-1.9.0.jar
14:56:33.682 [main] INFO  g.core.servlet.InitializeListener - Initialize plugins
14:56:33.763 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-gist-plugin-4.20.0.jar
14:56:34.225 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-emoji-plugin-4.6.0.jar
14:56:34.244 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-notifications-plugin-1.10.0.jar
14:56:34.458 [main] INFO  gitbucket.core.plugin.PluginRegistry - Initialize gitbucket-pages-plugin-1.9.0.jar
14:56:34.562 [Thread-13] INFO  g.core.plugin.PluginWatchThread - Start PluginWatchThread: /root/.gitbucket/plugins
14:56:34.577 [main] INFO  o.scalatra.servlet.ScalatraListener - The cycle class name from the config: ScalatraBootstrap        
14:56:34.583 [main] INFO  o.scalatra.servlet.ScalatraListener - Initializing life cycle class: ScalatraBootstrap
2021-05-14 14:56:35.614:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@-1fa19c1f{/,file:///gitbucket/tmp/webapp/,AVAILABLE}{file:/opt/gitbucket.war}
2021-05-14 14:56:35.639:INFO:oejs.AbstractConnector:main: Started ServerConnector@97ed655{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}  
2021-05-14 14:56:35.647:INFO:oejs.Server:main: Started @10437ms
@lbdyck Could you post the whole bootstrap logs?
xogium
@xogium
are there ways to make gitbucket not eat a ton of memory without making it impossible to run correctly ? I tried the -Xmx setting of jvm
but it ended up running out of memory in its own jvm instead
I run 2 instances of gitbucket, and they each end up consuming over 6 gb of ram each day
my only solution is to restart them daily with a systemd timer
which isn't so great so
I mean, I have 24 gb of ram, but its no reason for java to eat half of it ! :D
Lionel B. Dyck
@lbdyck
image.png
@SIkebe Here is my startup with a copy of the startup script. Now when I login using root and click system admin or add user it prompts me again to login.
Lionel B. Dyck
@lbdyck

@SIkebe I decided to start clean and now here is what I'm seeing at startup:

SPLBD:/u/splbd/work/gitbucket: >./rungb
2021-05-14 08:17:41.934:INFO::main: Logging initialized @8407ms to org.eclipse.jetty.util.log.StdErrLog
2021-05-14 08:17:45.095:WARN:oejsh.ContextHandler:main: Empty contextPath
2021-05-14 08:17:45.207:INFO:oejs.Server:main: jetty-9.4.32.v20200930; built: 2020-09-30T16:16:37.804Z; git: de97d26f7bd222a0e16831e353d702a7a422f711; jvm 8.0.6.7 - pmz6480sr6fp7-20200312_01(SR6 FP7)
2021-05-14 08:18:52.219:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2021-05-14 08:19:10.035:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2021-05-14 08:19:10.067:INFO:oejs.session:main: No SessionScavenger set, using defaults
2021-05-14 08:19:10.198:INFO:oejs.session:main: node0 Scavenging every 660000ms
08:19:31.399 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
08:19:42.755 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
08:19:43.458 [main] WARN slick.util.AsyncExecutor - Having maxConnection > maxThreads can result in deadlocks if transactions or database locks are used.
08:19:44.390 [main] INFO g.core.servlet.InitializeListener - Check version
08:19:44.397 [main] INFO g.core.servlet.InitializeListener - Start schema update
08:20:34.593 [main] WARN l.servicelocator.ServiceLocator - Can not use class liquibase.parser.core.yaml.YamlChangeLogParser as a Liquibase service because org.yaml.snakeyaml.constructor.BaseConstructor is not in the classpath
08:20:34.705 [main] WARN l.servicelocator.ServiceLocator - Can not use class liquibase.parser.core.json.JsonChangeLogParser as a Liquibase service because org.yaml.snakeyaml.constructor.BaseConstructor is not in the classpath

SIkebe
@SIkebe

when I login using root and click system admin or add user it prompts me again to login.

Hmm, it's weird...

Lionel B. Dyck
@lbdyck
@SIkebe I'm wondering if it is because of the missing classes
Does gitbucket use its own implementation of git or does it use what's on the system?
SIkebe
@SIkebe

As I said above, it's working on my machine even though there are messages about missing classes...

Does gitbucket use its own implementation of git or does it use what's on the system?

GitBucket uses jgit embedded in its war

Lionel B. Dyck
@lbdyck
ty
the 'fix' for the logon issue is to add --save-sessions to the java command.
Lionel B. Dyck
@lbdyck
spoke too soon - the fix didn't last
correction the correct add to the java command is --save_sessions (not a dash)
and it still fails :( - back to the drawing board
Jambang J
@jiopolm
Hello,how to deploy gitbucket on heroku,without any errors
1 reply
Help me please
Juan Pablo Noreña
@juanpanore
hello, can I block repositories's creation ?
1 reply
huntersan9
@huntersan9
Hello, kind of new to the program, however, had a question about the wiki repo for the projects. If I edit the wiki pages on the browser and put [[Account]] to make a link to another wiki page named Account, it works and makes a clickable link. But, if I clone the WIKI repo for my project (project.wiki.git) and put [[Account]], I get [[Account]] without and link. Am I doing something wrong here or is this a bug?
3 replies
xogium
@xogium
hello there Takezoe
xogium
@xogium
can we think of the snippets as a sort of pastebin/gist equivalent ? Also are there ways to pastebin from command line or not yet ?
3 replies
xogium
@xogium
oh
damn
I was hoping to use it as my own mini self-hosted pastebin :D
yeah, sure would be
Steve B
@steveb85
Hey guys, i had gitbucket working fine, and then added myphpadmin to my system. I have a few databases on the system, and everything else worked, but gitbucket returned 503, in the logs it said it couldn’t connect to the db because it was in use. I changed my database.conf file to use the root login for mysql and then everything went perfectly. I am happy to keep it this way, but was curious if a) there is advice against using the root login on the database.conf or b) there is some reason behind this that i can change.
4 replies
demon101
@demon101
Hi folks! what mobile app I can use with gitbucket? I need simple access to tickets: add, write comment, close.
1 reply
Steve B
@steveb85
@demon101 working copy is great.
xogium
@xogium
hello guys :)
Naoki Takezoe
@takezoe
@xogium Hi, I was checking new messages in this room.
xogium
@xogium
heh I figured so :) I just like saying hi from time to time, with nothing more behind it
Naoki Takezoe
@takezoe
:smile:
xogium
@xogium
except that maybe I really enjoy gitbucket :D
Naoki Takezoe
@takezoe
Good to hear that!
dsdphh
@dsdphh
Hi all,
I encountered again the same problem again (see Issue: fix TLS/SSL LDAP under IBM JVM #2472): After installing some IBM Java PTFs the ssl providers name is changed (it is very unusual that this happens but it did). Could you add another switch case for the provider "IBMJSSE2, class: com.ibm.jsse2.be$d", maybe before checking the ibm ssl provider jsse?
Is it an option to add the ssl provider as a parameter to the gitbucket.conf to be specified by the admin so the provider lookup code could be dropped?
Best Regards
emeraldium
@emeraldium
hi all, we suddenly started getting 404 when trying to reach /gitbucket.
we have tomcat over iis
in win 2016 server
worked fine' no changes were made
any ideas?
Steve B
@steveb85
i found that the password type in the mysql db is crucial, using mysql native fized all my db conection errors
Naoki Takezoe
@takezoe
@dsdphh Sure. We can add a new provider name. Would you send a pul request? If no, I will do that, but will ask you for a review.

Is it an option to add the ssl provider as a parameter to the gitbucket.conf to be specified by the admin so the provider lookup code could be dropped?

It's might be better to specify by a system property or an environment variable.

Naoki Takezoe
@takezoe
@emeraldium It's really difficult to say something from that information. I think you should check whether requests are reaching Tomcat / GitBucket first.
@steveb85 Sorry for my late response. That makes sense. I've experienced that too but I don't remember in details... Rather, it might have been MariaDB...