Issues in startup after upgrade or clear cache

Hi all,

when I perform an upgrade (openhabian here), or after a clear cache, I see this type of log:

2019-02-05 17:26:07.807 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:07.809 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:07.830 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:07.831 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:07.837 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:07.846 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:08.359 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:08.361 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:08.804 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:08.806 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:09.428 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:09.431 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:10.524 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 390570f6-06bc-432e-8ece-d7b4650740b6, base URL = http://localhost:8080)
2019-02-05 17:26:10.650 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:10.652 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:10.653 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:10.654 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:10.656 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:10.663 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.823 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:11.824 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.826 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:11.827 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.828 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:11.829 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.867 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:11.867 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.867 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:11.868 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.868 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:11.868 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:11.869 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:11.869 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:11.985 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:11.986 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:11.988 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:11.989 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.069 [INFO ] [ternal.dhcp.DHCPPacketListenerServer] - DHCP request packet listener online
2019-02-05 17:26:12.082 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.083 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.084 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.084 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.084 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.085 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.085 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.085 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.086 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.086 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.123 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.139 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.140 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.140 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.141 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.141 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.142 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.142 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.208 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.209 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.219 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.220 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.221 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.233 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.242 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.243 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.244 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.271 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.299 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.300 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.325 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.325 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.326 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.326 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.327 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.327 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.328 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.328 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.329 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.329 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.329 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.330 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.399 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.399 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.494 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.501 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.504 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.554 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.555 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.555 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.556 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.556 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.557 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.557 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.558 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type REGEX
2019-02-05 17:26:12.558 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'REGEX' is unavailable
2019-02-05 17:26:12.559 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.613 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.614 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.614 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.615 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.615 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.615 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.615 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.616 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.616 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.616 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.616 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.655 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.656 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.671 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.690 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.691 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.692 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.697 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.697 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.705 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.709 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.711 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.749 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.750 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.751 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.752 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.753 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.786 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.787 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.788 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.789 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.790 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.806 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.807 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.830 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable
2019-02-05 17:26:12.831 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type JSONPATH
2019-02-05 17:26:12.831 [WARN ] [ab.binding.http.internal.HttpBinding] - Couldn't transform response because transformationService of type 'JSONPATH' is unavailable

But I’ve already installed from a while all transformation services via PaperUI.

Any suggestion how to solve it?

thanks
Andrea

If it’s just after an upgrade you’ve got to wait some minutes so openHAB has time to download all additional bindings, persistence … but in the meantime your rules are fired, so these messages

2 Likes

Well in facts I’ve modified my startup script in order to download the rules after 3 minutes … so it would not be the case.

Here my /etc/systemd/system/openhab2.service.d/override.conf:

[Service]
ExecStartPre=-/bin/bash -c '/usr/bin/find ${OPENHAB_CONF} -name "*.rules" -exec /usr/bin/rename.ul .rules .rules_away {} \\;'
ExecStartPre=-/bin/bash -c '/usr/bin/find ${OPENHAB_CONF} -name "*.script" -exec /usr/bin/rename.ul .script .script_away {} \\;'
ExecStartPost=/bin/sleep 240
ExecStartPost=-/bin/bash -c '/usr/bin/find ${OPENHAB_CONF} -name "*.script_away" -exec /usr/bin/rename.ul .script_away .script {} \\;'
ExecStartPost=-/bin/bash -c '/usr/bin/find ${OPENHAB_CONF} -name "*.rules_away" -exec /usr/bin/rename.ul .rules_away .rules {} \\;'
TimeoutStartSec=360

On the other hand, if I perform a restart, this issue disappear. Only if I upgrade my distro, or if I clear the cache then perform a start, I see this log.

After clearing the cache or upgrading (which clears the cache for you) you need to wait longer than 240 seconds for OH to download all your add-ons, install them, and then initialize them.

1 Like

It’s something we hope it will be improved in the future.

In the meantime, it’s not a big deal …

Thanks for clarification. I was thinking my fault or misconfig.

Andrea