toverainc / willow-application-server

Willow Application Server
Apache License 2.0
19 stars 9 forks source link

WAS container with main label fails to start #52

Closed ashishpandey closed 10 months ago

ashishpandey commented 10 months ago

I didn't have this problem before, but have recently started to see a startup failure on WAS container

image: ghcr.io/toverainc/willow-application-server:main

error:

  File "/app/api.py", line 207, in <module>
    app.mount("/admin", StaticFiles(directory="static/admin", html=True), name="admin")
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/starlette/staticfiles.py", line 57, in __init__
    raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory 'static/admin' does not exist

I have looked into the container, and it does seem there is nothing under static

╰─> docker run -it --rm ghcr.io/toverainc/willow-application-server:main /bin/bash
root@a6369e58506e:/app# ls -al static/
total 8
drwxr-xr-x 2 root root 4096 Oct 26 17:58 .
drwxr-xr-x 1 root root 4096 Oct 26 17:59 ..
-rw-r--r-- 1 root root    0 Oct 26 17:58 .keep
ashishpandey commented 10 months ago

seems there was a change, switching to latest tag fixes it

leaving here for anyone else running into this, and closing the issue