apache / apache/incubator-seata

logs/seata_gc.log No such file or directory

Open
#3,534 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

- [x ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.

### Ⅰ. Issue Description
配置完seata1.4.0版本,启动报错,如下
[0.003s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:E:\seata1.4.0\bin\\../logs/seata_gc.log instead.
[0.003s][error ][logging] Error opening log file 'E:\seata1.4.0\bin\\../logs/seata_gc.log': No such file or directory
[0.003s][error ][logging] Initialization of output 'file=E:\seata1.4.0\bin\\../logs/seata_gc.log' using options '(null)' failed.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

### Ⅱ. Describe what happened

seata启动后需要记录日志文件,文件夹是 ${seata_home}/logs/, 但打包好的seata-server-1.4.0.zip中没有logs文件夹,需要手动创建,才能正常运行

### Ⅲ. Describe what you expected to happen

打包项目中添加logs文件夹,zip包解压后配置即可正常运行

### Ⅳ. How to reproduce it (as minimally and precisely as possible)

1. 配置seata-server-1.4.0.zip
2. 在cmd中启动 ${seata_home}bin/seata-server.bat
3. 显示报错,增加logs文件夹后,正常运行

### Ⅴ. Anything else we need to know?

### Ⅵ. Environment:

- JDK version : 1.8
- OS : windows7
- Others:

Contributor guide

Open the contributing guide

Research direction

Inspect the packaging configuration for the seata-server-1.4.0 ZIP and the Windows startup entry point, seata-server.bat. Reproduce the failure by extracting the archive on Windows 7 and starting it from cmd; done when the packaged archive includes logs and starts without the missing-directory error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.