apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.08k stars 8.73k forks source link

启动失败,但是找不到日志 #6643

Closed shanhm1991 closed 2 days ago

shanhm1991 commented 2 days ago

怀疑启动失败了,但是这个提示的目录下并没有日志内容啊

xxx@Java:~/sys$ docker logs seata
/seata-server
apm-skywalking not enabled
JMX disabled
/usr/java/openjdk-17/bin/java  -Dlog.home=/root/logs/seata -server -Dloader.path=/seata-server/lib -Xmx2048m -Xms2048m -Xss640k -XX:SurvivorRatio=10 -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:MaxDirectMemorySize=1024m -XX:-OmitStackTraceInFastThrow -XX:-UseAdaptiveSizePolicy -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/root/logs/seata/java_heapdump.hprof -XX:+DisableExplicitGC -Xlog:gc*:file=/root/logs/seata/seata_gc.log:time,tags:filecount=10,filesize=102400 -Dio.netty.leakDetectionLevel=advanced -Dapp.name=seata-server -Dapp.pid=7 -Dapp.home=/seata-server -Dbasedir=/seata-server  -Dspring.config.additional-location=/seata-server/conf/ -Dspring.config.location=/seata-server/conf/application.yml -Dlogging.config=/seata-server/conf/logback-spring.xml -jar /seata-server/target/seata-server.jar  >> /dev/null 2>&1 &
seata-server is starting, you can check the /root/logs/seata/ *.log
funky-eyes commented 2 days ago

/usr/java/openjdk-17/bin/java -Dlog.home=/root/logs/seata -server -Dloader.path=/seata-server/lib -Xmx2048m -Xms2048m -Xss640k -XX:SurvivorRatio=10 -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:MaxDirectMemorySize=1024m -XX:-OmitStackTraceInFastThrow -XX:-UseAdaptiveSizePolicy -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/root/logs/seata/java_heapdump.hprof -XX:+DisableExplicitGC -Xlog:gc*:file=/root/logs/seata/seata_gc.log:time,tags:filecount=10,filesize=102400 -Dio.netty.leakDetectionLevel=advanced -Dapp.name=seata-server -Dapp.pid=7 -Dapp.home=/seata-server -Dbasedir=/seata-server -Dspring.config.additional-location=/seata-server/conf/ -Dspring.config.location=/seata-server/conf/application.yml -Dlogging.config=/seata-server/conf/logback-spring.xml -jar /seata-server/target/seata-server.jar 手动起一下看下错误日志 Start manually and check the error log

shanhm1991 commented 2 days ago

是目录问题,现在到了下一个问题,org.postgresql.util.PSQLException: ERROR: relation "distributed_lock" does not exist

而下载的建库脚本中没有这个表

shanhm1991 commented 2 days ago

启动问题是好了,感谢

funky-eyes commented 2 days ago

是目录问题,现在到了下一个问题,org.postgresql.util.PSQLException: ERROR: relation "distributed_lock" does not exist

而下载的建库脚本中没有这个表

https://github.com/apache/incubator-seata/blob/2.x/script/server/db/postgresql.sql