# Docker on Mac: Unable to connect to Scylla API server: java.net.ConnectException: Connection refused (Connection refused)

**URL:** <https://forum.scylladb.com/t/docker-on-mac-unable-to-connect-to-scylla-api-server-java-net-connectexception-connection-refused-connection-refused/1375>\
**Category:** ScyllaDB\
**Tags:** troubleshooting, macos, docker\
**Created:** [March 13, 2024, 11:35am UTC](https://forum.scylladb.com/t/docker-on-mac-unable-to-connect-to-scylla-api-server-java-net-connectexception-connection-refused-connection-refused/1375 "2024-03-13T11:35:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/guy/32/9_2.png) [@Guy](https://forum.scylladb.com/u/Guy)\
**Post date:** [March 13, 2024, 11:35am UTC](https://forum.scylladb.com/t/docker-on-mac-unable-to-connect-to-scylla-api-server-java-net-connectexception-connection-refused-connection-refused/1375/1 "2024-03-13T11:35:53Z")

</div>

> [@](#):
>
> [**Originally from the User Slack**](https://scylladb-users.slack.com/)
> 
> ![Joep](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/35f1e3f5bbbfce54c6fa0b7bffb29ad8ff8b776f.png) **@Joep:** Hi all. Trying to follow [https://iot.scylladb.com/stable/getting-started.html](https://iot.scylladb.com/stable/getting-started.html) and when trying to do step 3 of Deploy, running into an issue I don’t know what to do with. Anyone might know what’s up and how to resolve?
> 
> ```auto
> docker exec -it carepet-scylla1 nodetool version
> nodetool: Unable to connect to Scylla API server: java.net.ConnectException: Connection refused (Connection refused)
> See 'nodetool help' or 'nodetool help <command>'
> 
> ```
> 
> > Getting Started with CarePet: A sample IoT App | ScyllaDB Docs
> 
> Seems to run now by making this change to the docker-compose. Had to dig through the Scylla logs to find out it was in some stuck state on start-up. Pretty weird. My Docker has 10 Cores available, not sure what Scylla expects by default
> 
> ![Guy](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/c3526ba4b34ff18302ea8d05feac40e4524d4577.png) **@Guy:** Thanks for reporting, @Attila_Toth. Do you have any ideas?
> 
> ![Attila_Toth](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/1859780f5ba4cc4fbab20493a31c2f6955284a98.jpeg) **@Attila_Toth:** Hi @Joep! Are you using Mac? Also you can share any Docker logs?
> 
> ![Joep](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/35f1e3f5bbbfce54c6fa0b7bffb29ad8ff8b776f.png) **@Joep:** Windows. Just cloned the directory, opened up Docker (default settings), docker-compose, erroring. This doesn’t happen for you locally? 🤔
> 
> ![Attila_Toth](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/1859780f5ba4cc4fbab20493a31c2f6955284a98.jpeg) **@Attila_Toth:** This is a known issue. I’m aware of a fix for Linux (increase `fs.aio-max-nr`), and [Mac](https://github.com/scylladb/scylladb/issues/16806#issuecomment-1910270371). Not sure about windows. I see you already came up with a fix yourself, you could also try adding `--reactor-backend=epoll` to your docker compose file [as described here](https://github.com/scylladb/scylladb/issues/16806) not sure it works on Windows though
