GithubHelp home page GithubHelp logo

Not run with Postgresql 16 about gitbucket HOT 6 OPEN

hrupin avatar hrupin commented on June 18, 2024
Not run with Postgresql 16

from gitbucket.

Comments (6)

takezoe avatar takezoe commented on June 18, 2024

Is this everything you see?

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
22:46:39.142 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
22:46:39.180 [main] WARN c.z.hikari.util.DriverDataSource - Registered driver with driverClassName=org.postgresql.Driver2 was not found, trying direct instantiation.
22:46:41.534 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
22:46:41.697 [main] INFO g.core.servlet.InitializeListener - Check version
22:46:41.698 [main] INFO g.core.servlet.InitializeListener - Start schema update

from gitbucket.

hrupin avatar hrupin commented on June 18, 2024

yes

version 4.39.0 - started and connection is happening

from gitbucket.

takezoe avatar takezoe commented on June 18, 2024

WARN message is not a problem. HikariCP just couldn't find a JDBC driver in the list of known JDBC drivers as GitBucket uses a custom JDBC driver. If GitBucket cannot actually fail to connect the database, you must see some error messages.

from gitbucket.

hrupin avatar hrupin commented on June 18, 2024

understood thanks

from gitbucket.

takezoe avatar takezoe commented on June 18, 2024

So, could you elaborate your situation if you have still issues, or can we close this issue?

Your meant that your GitBucket stopped working after that message?

from gitbucket.

sunnyone avatar sunnyone commented on June 18, 2024

The same issue occured on my environment (Ubuntu 24.04, openjdk-21, postgresql-16)

In conclusion, a permission to the public schema is required on postgresql >= 15.
(cf. https://dev.to/dm8ry/postgresql-version-15-error-permission-denied-for-schema-public-2b7 )

$ psql -Upostgres gitbucket
psql (16.2 (Ubuntu 16.2-1ubuntu4))
Type "help" for help.

gitbucket=# GRANT ALL ON SCHEMA public TO gitbucket_user;
GRANT

It might be helpful if gitbucket outputs logs when the migration fails.

Logs

$ sudo -ugitbucket /usr/bin/java -jar /opt/gitbucket/gitbucket.war --gitbucket.home=/srv/gitbucket --port=8083 
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
13:15:56.481 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
13:15:56.487 [main] WARN  c.z.hikari.util.DriverDataSource - Registered driver with driverClassName=org.postgresql.Driver2 was not found, trying direct instantiation.
13:15:56.851 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
13:15:56.867 [main] INFO  g.core.servlet.InitializeListener - Check version
13:15:56.867 [main] INFO  g.core.servlet.InitializeListener - Start schema update

The process does not output any logs after above logs, but it's still alive.

postgresql-16-main.log says permission denied.

2024-05-04 13:15:56.887 UTC [57734] gitbucket_user@gitbucket ERROR:  permission denied for schema public at character 14
2024-05-04 13:15:56.887 UTC [57734] gitbucket_user@gitbucket STATEMENT:  CREATE TABLE VERSIONS (MODULE_ID VARCHAR(100) NOT NULL PRIMARY KEY, VERSION VARCHAR(100) NOT NULL)

from gitbucket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.