[Bug] start-hugegraph.sh reports "Port 8080 already used" when port appears free?
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 636
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 14
Description
### Bug Type (问题类型)
server status (启动/运行异常)
### Before submit
- [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
### Environment (环境信息)
- Server Version: 1.5.0 (Apache Release Version)
- OS: 16 G RAM, Ubuntu 24.04.2 LTS
### Expected & Actual behavior (期望与实际表现)
```terminal
apache-hugegraph-server-incubating-1.5.0/bin$ ./start-hugegraph.sh
The port 8080 has already been used
apache-hugegraph-server-incubating-1.5.0/bin$ sudo lsof -i :8080
apache-hugegraph-server-incubating-1.5.0/bin$ ./start-hugegraph.sh
Starting HugeGraphServer in daemon mode...
Connecting to HugeGraphServer (http://0.0.0.0:8080/graphs)...OK
Started [pid 44430]
```
Problem Description:
- After a server crash or being killed forcefully
- Running ./start-hugegraph.sh to start the server fails with the error "Port 8080 has already been used".
- However, checking with lsof -i :8080 confirms that port 8080 is not actually being listened on by any process.
- Sometimes, simply re-running the start script works.
Contributor guide
Assessment
This issue has not been assessed yet.