### Hints

Collection of Hints while exploring.
Change Ownership from Root to Pi for the openHAB folder structure
This is a must as it enables to make changes as user Pi which is the default login user.
$sudo chown -hR pi:pi /opt/openhab
After doing so, new or changes to items, rules etc. can then be made as user Pi via (for example) WinSCP with an external editor.
Log File usage
When making changes or new to items, rules, sitemap etc. review the openhab logfile /open/openhab/logs/openhab.log with an external editor.
Via (for example) WinSCP with UltraEdit.
Entry example:
2016-03-19 09:52:20.826 [INFO ] [c.internal.ModelRepositoryImpl] - Refreshing model 'weatherdata.rules'
Error Message "uriFragment failed" in openhab.log
If a message like this occurs:
resolution of uriFragment 'xtextLink_::0.2.0.2.0.1.2.7::0::/1' failed.
Then the root cause is currently not known.
But think it has to do
a) with using same variablenames (f.e. for counters) in different rules files.
In addition if a variable name has the same name as an item, then this could also cause issues when using f.e. postUpdate.
Therefor have made sure using unique variablenames covering rules files and items.
b) missing addon binding. For example when using TinkerForge 2 bindings are required:
org.openhab.action.tinkerforge-1.8.1.jar, org.openhab.binding.tinkerforge-1.8.1.jar
(Status 20160318 - Info might change or issue has been resolved).
Fix:
Looked for several option, where this one worked:
• stop openhab (f.e. $sudo /etc/init.d/openhab stop)
• remove all rules from the rules folder (store these in a temp dir)
• make sure using unique variablenames in rules files and items.
• start openhab (f.e. $sudo /etc/init.d/openhab start)
• copy rule by rule whilst checking the log openhab.log
• make sure all required bindings are in the openhab addons folder.
Delete the Log Files
To delete the log files from the Log Folder (like /opt/openhab/logs)
• stop openhab (f.e. $sudo /etc/init.d/openhab stop)
• delete all the files with extension log from the log folder (rm *.log)
• start openhab (f.e. $sudo /etc/init.d/openhab start)

Changed: , Category: WebApps openHAB, File: T6C228M1678.htm, ID: 1678