Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Warning Error in WSO2 for every 30 seconds

Tags:

wso2-iot

[date time, 804] [Iot - Core] WARN - FileSystemPreferences Could not lock System prefs. Unix error code 0.

[date time, 805] [Iot - Core] WARN - FileSystemPreferences Couldn't Flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

like image 384
Vishwanath Avatar asked Oct 17 '25 00:10

Vishwanath


1 Answers

This is a JVM related issue. JVM needs write access to the /etc/.java/.systemPrefs directory, which it cannot access when run as a non-root user, see: http://bugs.java.com/view_bug.do?bug_id=4838770

Try changing ownership of the /etc/.java/.systemPrefs directory to the current user [eg. wso2:wso2] using

sudo chown -R wso2:wso2 /etc/.java/.systemPrefs

The file will still be writable by root (as root can write to any file), but if you need multiple users to be able to write to this file you might set up a file ACL as well using:

sudo setfacl -R -m u:wso2:rw /etc/.java/.systemPrefs

Copied from here

like image 128
Govinnage Rasika Perera Avatar answered Oct 19 '25 13:10

Govinnage Rasika Perera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!