Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Shreejan Shrestha
@shreejanshrestha
Can anybody help me clone fails with
09:19:53.081 [qtp6566818-9] ERROR g.c.servlet.GitAuthenticationFilter - error
org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: 2"" [50000-199]"; SQL statement:
ROLLBACK [50000-199]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:502)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
at org.h2.message.DbException.get(DbException.java:194)
at org.h2.engine.Database.throwLastBackgroundException(Database.java:2300)
at org.h2.engine.Database.commit(Database.java:2286)
at org.h2.engine.Session.rollback(Session.java:800)
at org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:49)
at org.h2.command.CommandContainer.update(CommandContainer.java:133)
at org.h2.command.Command.executeUpdate(Command.java:267)
at org.h2.jdbc.JdbcConnection.rollbackInternal(JdbcConnection.java:1603)
at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:563)
at com.zaxxer.hikari.pool.ProxyConnection.close(ProxyConnection.java:257)
at slick.jdbc.JdbcBackend$BaseSession.close(JdbcBackend.scala:508)
at com.github.takezoe.slick.blocking.BlockingJdbcProfile$BlockingAPI$BlockingDatabase.withSession(BlockingProfile.scala:202)
at gitbucket.core.servlet.GitAuthenticationFilter.defaultRepository(GitAuthenticationFilter.scala:98)
at gitbucket.core.servlet.GitAuthenticationFilter.$anonfun$doFilter$2(GitAuthenticationFilter.scala:54)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.Option.getOrElse(Option.scala:201)
at gitbucket.core.servlet.GitAuthenticationFilter.doFilter(GitAuthenticationFilter.scala:54)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
at gitbucket.core.servlet.TransactionFilter.doFilter(TransactionFilter.scala:28)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:173)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:501)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:272)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.
Naoki Takezoe
@takezoe
@shreejanshrestha How did you try to clone?
Shreejan Shrestha
@shreejanshrestha
@takezoe using windows powershell
Naoki Takezoe
@takezoe
I mean what command did you try?
command or authentication method
Shreejan Shrestha
@shreejanshrestha
@takezoe git clone https://<abc>.git
Naoki Takezoe
@takezoe
How did you configure your git authentication?
I need the easiest reproducible procedure from scratch.
Shreejan Shrestha
@shreejanshrestha
@takezoe I am fully unware whats the authentication method. I havent used any authentication method. But I do enter username and password.
@takezoe Sorry but I don't remember from when this problem started to happen.
Naoki Takezoe
@takezoe
Could you try git clone https://<user>:<password>@<abc>.git?
Shreejan Shrestha
@shreejanshrestha
@takezoe Same failure messege in termail, and almost same entries in log.
@takezoe This is not my work environment, so I could give you my database, if it could help you to analyze the problem.
Naoki Takezoe
@takezoe
Hmm... I've never seen such an error when clone from GitBucket. It looks like GitBucket fails to parse Authorization header, but not sure.
By the way, which version of git do you use? You can see it by git version.
Shreejan Shrestha
@shreejanshrestha
@takezoe
git version 2.28.0.windows.1 → クライアント
git version 2.26.2 → サーバ
Shreejan Shrestha
@shreejanshrestha
@takezoe さん、ありがとうございます。ちょっと用事が出ましたので離れます。
@takezoe さん、何か情報が欲しいときに連絡ください。
Naoki Takezoe
@takezoe
Hmm... I tested git clone with git 2.28 on Mac, but I didn't see such error on GitBucket side. Unfortunately, I can't test on Windows and PowerShell. Is there anyone who has suffered this error?
SIkebe
@SIkebe
image.png
That does not repro on my machine.
  • Windows 10 2004
  • Powershell 5
  • GitBucket v4.34.0
  • git version 2.28.0.windows.1
Shreejan Shrestha
@shreejanshrestha
@takezoe I think this problem is related to data.mv.db thing, but its just a guess. I tried with clean data.mv.db it worked without any authentication failure. Will move data to this new gitbucket instance.
@SIkebe Thank you for trying.
Naoki Takezoe
@takezoe
@shreejanshrestha I guessed your password contained :, but if it didn't reproduced in the clean environment, my guess was wrong. Anyway, I'm happy to hear that your issue was solved.
David Kanekanian
@davidk-bild
hello. My gitbucket is not connecting from other machine on the network. THe website works on localhost but not on the server's IP address
it also works on the server's IP (192.168.100.120) on the web browser of the server, but on another computer in the network it does not receive
image.png
after waiting a while it loaded some basic text but the actual repo cloning is not working
jfpman
@jfpman
hi. I checked the documentation regarding configuration opportunities.
While command line options and environment variables are described sufficiently I found nearly nothing about a config file.
Maybe I overlooked smthg ?
according the sources I would guess that it must be gitbucket.conf maybe located in '.gitbucket'-directory but I could not find confirmational information nor smthg about syntax and keywords
Naoki Takezoe
@takezoe
@jfpman Normally, gitbucket.conf is generated by GitBucket system automatically. As long as GitBucket is working properly, you don't need to modify this file by hand. But if the base url is missconfigured, you may need to fix it by modfying this file by hand.
westleyTwain
@westleyTwain
how do I get over the 3MiB upload limit? I'm hosting on a raspberry pi and installed as per the wiki, if that helps.
SIkebe
@SIkebe
@westleyTwain You can use CLI option (java -jar gitbucket.war --max_file_size=[MAX_FILE_SIZE]) or environmental variable(GITBUCKET_MAXFILESIZE) to configure upper limit for file uploading.
https://github.com/gitbucket/gitbucket/wiki/Basic-configurations#cli-options
westleyTwain
@westleyTwain
so I put the option on the relevant line in /etc/systemd/system/gitbucket.service as follows:
ExecStart=/usr/bin/java -Xms128m -Xmx256m -jar gitbucket.war --max_file_size=1073741824
(should be 1 GB) and it still won't let me upload anything bigger than 3MiB, even after restarting the pi.
huh. I guess I just had to restart it a second time?? anyway, it's working now. Thanks, @SIkebe !
westleyTwain
@westleyTwain
I'm back... I put a wrong address into the BaseURL box, and now, when I go back to the address with the IP address in it, there's no CSS, and when I clear the box and hit save, nothing changes. Where can I find this manually and/or return it to how it was?
SIkebe
@SIkebe
image.png
@westleyTwain You can edit base_url in {GITBUCKET_HOME}/gitbucket.conf file manually.
westleyTwain
@westleyTwain
thanks!
Jerry
@solvingj
Hi @takezoe and @onukura , hope you're doing well. I have two requests. First, If it's not too much trouble, a docker release tag to correspond with every GIT release tag would be great. It looks like you were doing them, and then stopped. There was probably a reason, but I see you also switched to GH Actions, so maybe you could start doing that again. Second, Is there any ETA for the next minor version release? I'll be using the nightly for now because it implements the webhook API, but I'd like to change to gitbucket/gitbucket:4.35
Jerry
@solvingj
1 reply
Naoki Takezoe
@takezoe
My current plan is releasing the next version by the end of this year.
Naoki Takezoe
@takezoe
Yeah. It would be nice if we can automate creating docker release tag. As you mentioned, we've migrated our docker build to GitHub Actions for a daily build. We need to revisit our GitHub Actions configuration.
onukura
@onukura
@takezoe what does "automate creating docker release" means?
Currently GitHub Actions of gitbucket/gitbucket-docker also works with trigger "push to master" and "tag".
But if it means creating docker release automatically once new tag show up on gitbucket/gitbucket repository, it is not automated yet.
Naoki Takezoe
@takezoe
I think @solvingj is saying about creating docker tag from GitHub tag like gitbucket/gitbucket:4.29.0 previously we were doing on DockerHub.
https://hub.docker.com/layers/gitbucket/gitbucket/4.29.0/images/sha256-0c1b51d4f8c650c6f24d16272a0065dbd41c304db3524b36a30b680cc39cf6ab?context=explore
Jerry
@solvingj
Yes, suggestion was that if new tag is pushed , then make new docker image release from it
onukura
@onukura
ah got it. so it is not automated for now.
To release image with tag we now need to edit gitbucker/gitbucket-docker/Dockerfile and push after gitbucket.war file released on gitbucket/gitbucket repository.
onukura
@onukura
If we automate to release with tag push, we might need to keep Docker file on gitbucket/gitbucket repo. or directry build in GitHub Actions workflow.