# Panel server does not load

**URL:** <https://discourse.holoviz.org/t/panel-server-does-not-load/4036>\
**Category:** Panel\
**Created:** [August 2, 2022, 11:13am UTC](https://discourse.holoviz.org/t/panel-server-does-not-load/4036 "2022-08-02T11:13:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmet](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahmet/32/757_2.png) [@Ahmet](https://discourse.holoviz.org/u/Ahmet)\
**Post date:** [August 2, 2022, 11:13am UTC](https://discourse.holoviz.org/t/panel-server-does-not-load/4036/1 "2022-08-02T11:13:27Z")

</div>

Hi,  
My browser says these:

bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587 Error: Model ‘panel.models.markup.HTML’ does not exist. This could be due to a widget or a custom model not being registered before first usage.  
at \_.get (bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:166:1015)  
at E.\_instantiate\_object (bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:165:4956)  
at E.\_instantiate\_references\_json (bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:165:5144)  
at E.from\_json (bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:165:8794)  
at d.\_repull\_session\_doc (bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587:2847)  
\_repull\_session\_doc @ bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587  
await in \_repull\_session\_doc (async)  
\_awaiting\_ack\_handler @ bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587  
\_current\_handler @ bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587  
\_on\_message @ bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587  
socket.onmessage @ bokeh.min.js?v=3c61e952b808bb7e346ce828a565a5f23aaf7708d034fa9d0906403813355d45bb4e8d8b0b23a93f032c76831d4f0221846f28699c7f5147caa62e0d31668314:587

Do you have an idea why these errors occur?

---

<div class="post-metadata">

**Author:** ![nghenzi](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/nghenzi/32/378_2.png) [@nghenzi](https://discourse.holoviz.org/u/nghenzi)\
**Post date:** [August 3, 2022, 12:29am UTC](https://discourse.holoviz.org/t/panel-server-does-not-load/4036/2 "2022-08-03T00:29:31Z")

</div>

if you are using bokeh and panel with flask, fastapi or another framework, this error usually happens because you do not import panel in the python module where you pull the session. Panel has a custom bokeh HTML model, which it needs to be imported for bokeh understands it. `Model ‘panel.models.markup.HTML’ does not exist. This could be due to a widget or a custom model not being registered before the first usage.`

If you give more detail about the code you are using, and how you are running it, you can obtain more help. It is difficult to give an opinion without understanding what you are specifically doing

---

<div class="post-metadata">

**Author:** ![Ahmet](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahmet/32/757_2.png) [@Ahmet](https://discourse.holoviz.org/u/Ahmet)\
**Post date:** [August 3, 2022, 7:19am UTC](https://discourse.holoviz.org/t/panel-server-does-not-load/4036/3 "2022-08-03T07:19:26Z")

</div>

Thank you  
I try to build the app as a Docker container.  
here is the related part of Dockerfile

```auto
# Python packages from conda
RUN conda install -y \
    python \
    pillow \
    bokeh \
    param \
    holoviews \
    hvplot \
    panel \
    colorcet \
    datashader \
    geopandas

RUN pip install pyarrow
RUN pip install spatialpandas

```

it gives :  
console.trace() Error: Model ‘panel.models.location.Location’ does not exist. This could be due to a widget or a custom model not being registered before first usage.

---

<div class="post-metadata">

**Author:** ![nghenzi](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/nghenzi/32/378_2.png) [@nghenzi](https://discourse.holoviz.org/u/nghenzi)\
**Post date:** [August 3, 2022, 7:32am UTC](https://discourse.holoviz.org/t/panel-server-does-not-load/4036/4 "2022-08-03T07:32:23Z")

</div>

Hi, it should be easier to help with all the details. A [minimum, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) with all the code and config files needed
