dosubot[bot] commented on issue #29913:
URL: https://github.com/apache/superset/issues/29913#issuecomment-2282367333
<!-- Greeting -->
Hello, @mkRui! I'm here to help you with any bugs, questions, or
contributions you have for the repository. Let me know how I can assist you!
<!-- Answer -->
The `ECONNREFUSED` error indicates that the connection attempt to
`localhost:9000` was actively refused, likely because there is no server
listening on that port or another service is already using it. Additionally,
the `ERR_SERVER_ALREADY_LISTEN` error suggests that the `server.listen()`
method was called while a server was already active on that port.
To resolve this issue, follow these steps:
1. **Check for Running Instances**: Ensure that no other instances of the
server are running on port 9000. Use the following command to check if the port
is in use:
```bash
lsof -i :9000
```
If a process is using the port, terminate it using the `kill` command
with the process ID (PID) obtained from the previous step:
```bash
kill -9 <PID>
```
2. **Change the Port**: If terminating the process is not an option, you can
change the port Superset uses. Modify the `docker-compose.yaml` file or the
relevant configuration to use a different port:
```yaml
superset:
ports:
- 9001:9000 # Change the host port to 9001
```
3. **Restart Superset**: Restart the Superset service to apply the changes:
```bash
docker compose up
```
4. **Verify Configuration Files**: Ensure that the configuration files
(`config.json`, `nginx.conf`, `docker-compose.yml`) are correctly set up to
match the port settings. Misconfigurations in these files can also lead to
connection issues
<sup>[[1]](https://github.com/apache/superset/blob/master/docker/superset-websocket/config.json)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/docker/nginx/nginx.conf)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/docker-compose.yml)</sup>.
By following these steps, you should be able to resolve the port conflict
and get the proxy functioning properly.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]