UI stops responding to HTTP requests

  • Platform information:
    • Hardware: AMD64/16GB/btrfs
    • OS: OpenHAB Alpine Build running on Docker 20.10.7 CE running on Ubuntu 20.04.2
    • Java Runtime Environment: Java 11 on alpine
    • openHAB version: 3.0.2 / 3.1.0-SNAPSHOT
  • Issue of the topic: After some (seemingly random) times the OpenHAB UI just doesn’t respond to HTTP requests anymore. When that happens all requests to the site eventually time out. The API is unaffected from this, I can continue to use the app. To resolve this it either waiting a long time (I can’t say how long, but when I look at it a few hours later it usually seems to work again) or by restarting the container. A reverse proxy is involved, although I don’t think it’s involved in this as long as there isn’t any special configuration needed, that I missed.
    Not sure if this is a know issue, but it really sounds like some weird edge case.
  • If logs where generated please post these here using code fences:
Logs (but probably not useful as all entries are from way before the freeze)
openhab_1  | Configuring OpenJDK 11 unlimited strength cryptography policy...
openhab_1  | + IFS='
openhab_1  | 	'
openhab_1  | + '[' unlimited = unlimited ']'
openhab_1  | + echo 'Configuring OpenJDK 11 unlimited strength cryptography policy...'
openhab_1  | + '[' 11 = 8 ']'
openhab_1  | + '[' 11 = 11 ']'
openhab_1  | + java_security_file=/usr/lib/jvm/default-jvm/conf/security/java.security
openhab_1  | + sed -i 's/^crypto.policy=limited/crypto.policy=unlimited/' /usr/lib/jvm/default-jvm/conf/security/java.security
openhab_1  | + rm -f /openhab/runtime/instances/instance.properties
openhab_1  | + rm -f /openhab/userdata/tmp/instances/instance.properties
openhab_1  | + NEW_USER_ID=147
openhab_1  | + NEW_GROUP_ID=154
openhab_1  | + echo 'Starting with openhab user id: 147 and group id: 154'
openhab_1  | Starting with openhab user id: 147 and group id: 154
openhab_1  | + id -u openhab
openhab_1  | + initialize_volume /openhab/conf /openhab/dist/conf
openhab_1  | + volume=/openhab/conf
openhab_1  | + source=/openhab/dist/conf
openhab_1  | ++ ls -A /openhab/conf
openhab_1  | + '[' -z 'html
openhab_1  | icons
openhab_1  | items
openhab_1  | persistence
openhab_1  | rules
openhab_1  | scripts
openhab_1  | services
openhab_1  | sitemaps
openhab_1  | sounds
openhab_1  | things
openhab_1  | transform' ']'
openhab_1  | + initialize_volume /openhab/userdata /openhab/dist/userdata
openhab_1  | + volume=/openhab/userdata
openhab_1  | + source=/openhab/dist/userdata
openhab_1  | ++ ls -A /openhab/userdata
openhab_1  | + '[' -z 'backup
openhab_1  | cache
openhab_1  | config
openhab_1  | etc
openhab_1  | jsondb
openhab_1  | logs
openhab_1  | secrets
openhab_1  | tmp' ']'
openhab_1  | ++ cmp /openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties
openhab_1  | + '[' '!' -z ']'
openhab_1  | + chown -R openhab:openhab /openhab
openhab_1  | + sync
openhab_1  | + '[' -d /etc/cont-init.d ']'
openhab_1  | + sync
openhab_1  | + '[' false == false ']'
openhab_1  | ++ IFS=' '
openhab_1  | ++ echo su-exec openhab tini -s ./start.sh
openhab_1  | + '[' 'su-exec openhab tini -s ./start.sh' == 'su-exec openhab tini -s ./start.sh' ']'
openhab_1  | + command=($@ server)
openhab_1  | + exec su-exec openhab tini -s ./start.sh server
openhab_1  | Launching the openHAB runtime...
openhab_1  | 00:30:31.019 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Berlin'.
openhab_1  | 00:30:31.031 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '51.825626379156944,8.433272838592531'.
openhab_1  | 00:30:31.032 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_DE'.
openhab_1  | 00:30:31.032 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Measurement system set to 'SI'.
openhab_1  | 00:30:33.351 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'jdbc.persist'
openhab_1  | 00:30:34.377 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
openhab_1  | 00:30:35.139 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080
openhab_1  | 00:30:35.477 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel
openhab_1  | 00:30:41.138 [INFO ] [e.automation.internal.RuleEngineImpl] - Rule engine started.

No abnormalities in CPU or Memory Usage either