# Jupter swarm deployment

**URL:** <https://discourse.jupyter.org/t/jupter-swarm-deployment/7214>\
**Category:** JupyterHub\
**Tags:** help-wanted\
**Created:** [December 19, 2020, 8:40pm UTC](https://discourse.jupyter.org/t/jupter-swarm-deployment/7214 "2020-12-19T20:40:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonydev-ops](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/tonydev-ops/32/3291_2.png) [@tonydev-ops](https://discourse.jupyter.org/u/tonydev-ops)\
**Post date:** [December 19, 2020, 8:40pm UTC](https://discourse.jupyter.org/t/jupter-swarm-deployment/7214/1 "2020-12-19T20:40:50Z")

</div>

Hi am running Jupter in docker swarm and service does not created as below

```auto
# docker service create --name myjupyter --publish 8000:8000 jupyterhub/jupyterhub
6t59ut2anca57452smcc1roy9
overall progress: 1 out of 1 tasks 
1/1: running [==================================================>] 
verify: Service converged 

```

- here is one container logs

```auto
root@master:~# docker logs myjupyterhub.1.dce9j6vule625ue13akuctutv
[I 2020-12-19 20:24:22.250 JupyterHub app:2349] Running JupyterHub version 1.3.0
[I 2020-12-19 20:24:22.251 JupyterHub app:2379] Using Authenticator: jupyterhub.auth.PAMAuthenticator-1.3.0
[I 2020-12-19 20:24:22.251 JupyterHub app:2379] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-1.3.0
[I 2020-12-19 20:24:22.252 JupyterHub app:2379] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.3.0
[I 2020-12-19 20:24:22.270 JupyterHub app:1465] Writing cookie_secret to /srv/jupyterhub/jupyterhub_cookie_secret
[I 2020-12-19 20:24:22.311 alembic.runtime.migration migration:155] Context impl SQLiteImpl.
[I 2020-12-19 20:24:22.311 alembic.runtime.migration migration:158] Will assume non-transactional DDL.
[I 2020-12-19 20:24:22.330 alembic.runtime.migration migration:517] Running stamp_revision -> 4dc2d5a8c53c
[I 2020-12-19 20:24:22.536 JupyterHub proxy:460] Generating new CONFIGPROXY_AUTH_TOKEN
[W 2020-12-19 20:24:22.538 JupyterHub app:1695] No admin users, admin interface will be unavailable.
[W 2020-12-19 20:24:22.539 JupyterHub app:1696] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2020-12-19 20:24:22.539 JupyterHub app:1725] Not using allowed_users. Any authenticated user will be allowed.
[I 2020-12-19 20:24:22.624 JupyterHub app:2416] Initialized 0 spawners in 0.004 seconds
[W 2020-12-19 20:24:22.630 JupyterHub proxy:662] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2020-12-19 20:24:22.631 JupyterHub proxy:666] Starting proxy @ http://:8000
[E 2020-12-19 20:24:22.644 JupyterHub utils:80] Unexpected error connecting to 1e25b39cd231:8000 [Errno -2] Name or service not known
[E 2020-12-19 20:24:22.837 JupyterHub utils:80] Unexpected error connecting to 1e25b39cd231:8000 [Errno -2] Name or service not known
[E 2020-12-19 20:24:22.998 JupyterHub utils:80] Unexpected error connecting to 1e25b39cd231:8000 [Errno -2] Name or service not known
20:24:23.380 [ConfigProxy] info: Proxying http://*:8000 to (no default)
20:24:23.383 [ConfigProxy] info: Proxy API at http://127.0.0.1:8001/api/routes
[E 2020-12-19 20:24:23.624 JupyterHub utils:80] Unexpected error connecting to 1e25b39cd231:8000 [Errno -2] Name or service not known
[E 2020-12-19 20:24:23.626 JupyterHub utils:80] Unexpected error connecting to 1e25b39cd231:8000 [Errno -2] Name or service not known
[E 2020-12-19 20:24:23.643 JupyterHub utils:80] Unexpected error connecting to 1e25b39cd231:8000 [Errno -2] Name or service not known

```

---

<div class="post-metadata">

**Author:** ![markperri](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/markperri/32/2187_2.png) [@markperri](https://discourse.jupyter.org/u/markperri)\
**Post date:** [December 20, 2020, 5:37pm UTC](https://discourse.jupyter.org/t/jupter-swarm-deployment/7214/2 "2020-12-20T17:37:48Z")

</div>

Your hub, proxy, and db all have to be on the same net. Otherwise the hub can’t connect to the proxy which is probably what’s happening. Try deploying from docker-compose instead.
