Code Monkey home page Code Monkey logo

Comments (2)

creditket avatar creditket commented on June 19, 2024

also

docker pull b3log/symphony 
docker run --detach --name sym --network=host \
    --env RUNTIME_DB="MYSQL" \
    --env JDBC_USERNAME="root" \
    --env JDBC_PASSWORD="123456" \
    --env JDBC_DRIVER="com.mysql.cj.jdbc.Driver" \
    --env JDBC_URL="jdbc:mysql://127.0.0.1:3306/symphony?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC" \
    b3log/symphony --listen_port=8080 --server_scheme=http --server_host=localhost --server_port=

when

mysql -u root -p
Enter password: 123456
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.1.0 Homebrew

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

But

[ERROR]-[2024-02-08 13:00:23]-[org.b3log.latke.repository.jdbc.util.JdbcRepositories:281]: Creates table [symphony_emotion] error
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

[ERROR]-[2024-02-08 13:00:24]-[org.b3log.latke.repository.jdbc.JdbcRepository:650]: Failed to initialize JDBC transaction
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

[ERROR]-[2024-02-08 13:00:24]-[org.b3log.symphony.service.InitMgmtService:690]: Initializes Sym failed
java.lang.IllegalStateException: Begin a transaction failed

	at org.b3log.latke.repository.jdbc.JdbcRepository.beginTransaction(JdbcRepository.java:652) ~[latke-core-3.4.30.jar:?]
	at org.b3log.latke.repository.AbstractRepository.beginTransaction(AbstractRepository.java:160) ~[latke-core-3.4.30.jar:?]
	at org.b3log.symphony.service.InitMgmtService.initSym(InitMgmtService.java:250) [sym/:?]
	at org.b3log.symphony.service.InitMgmtService_$$_jvst571_9b._d5initSym(InitMgmtService_$$_jvst571_9b.java) [sym/:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:108) [latke-core-3.4.30.jar:?]
	at org.b3log.symphony.service.InitMgmtService_$$_jvst571_9b.initSym(InitMgmtService_$$_jvst571_9b.java) [sym/:?]
	at org.b3log.symphony.Server.main(Server.java:170) [sym/:?]

from symphony.

88250 avatar 88250 commented on June 19, 2024

建议排查一下数据卷挂载是否正确。

from symphony.

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.