<i id='uMVt0'><tr id='uMVt0'><dt id='uMVt0'><q id='uMVt0'><span id='uMVt0'><b id='uMVt0'><form id='uMVt0'><ins id='uMVt0'></ins><ul id='uMVt0'></ul><sub id='uMVt0'></sub></form><legend id='uMVt0'></legend><bdo id='uMVt0'><pre id='uMVt0'><center id='uMVt0'></center></pre></bdo></b><th id='uMVt0'></th></span></q></dt></tr></i><div id='uMVt0'><tfoot id='uMVt0'></tfoot><dl id='uMVt0'><fieldset id='uMVt0'></fieldset></dl></div>

      <small id='uMVt0'></small><noframes id='uMVt0'>

      • <bdo id='uMVt0'></bdo><ul id='uMVt0'></ul>
        <legend id='uMVt0'><style id='uMVt0'><dir id='uMVt0'><q id='uMVt0'></q></dir></style></legend>
      1. <tfoot id='uMVt0'></tfoot>

        WSO2 Governance Registry 锁定错误

        时间:2024-05-10
      2. <legend id='tIMI2'><style id='tIMI2'><dir id='tIMI2'><q id='tIMI2'></q></dir></style></legend>
      3. <i id='tIMI2'><tr id='tIMI2'><dt id='tIMI2'><q id='tIMI2'><span id='tIMI2'><b id='tIMI2'><form id='tIMI2'><ins id='tIMI2'></ins><ul id='tIMI2'></ul><sub id='tIMI2'></sub></form><legend id='tIMI2'></legend><bdo id='tIMI2'><pre id='tIMI2'><center id='tIMI2'></center></pre></bdo></b><th id='tIMI2'></th></span></q></dt></tr></i><div id='tIMI2'><tfoot id='tIMI2'></tfoot><dl id='tIMI2'><fieldset id='tIMI2'></fieldset></dl></div>
        <tfoot id='tIMI2'></tfoot>

        <small id='tIMI2'></small><noframes id='tIMI2'>

            <tbody id='tIMI2'></tbody>

              <bdo id='tIMI2'></bdo><ul id='tIMI2'></ul>
                  本文介绍了WSO2 Governance Registry 锁定错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  安装 WSO2 Governance Registry 并启动它后,我在 wso2carbon.log 中收到以下错误:

                  After installation of WSO2 Governance Registry and starting it I get the following errors in wso2carbon.log:

                  TID: [0] [Greg] [2014-01-08 10:39:08,625]  WARN {java.util.prefs.FileSystemPreferences} -  Could not lock System prefs.Unix error code 0. {java.util.prefs.FileSystemPreferences}
                  TID: [0] [Greg] [2014-01-08 10:39:08,625]  WARN {java.util.prefs.FileSystemPreferences} -  Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. {java.util.prefs.FileSystemPreferences}
                  

                  这些错误每 30 秒重复一次.不幸的是,日志没有指定它试图锁定哪个文件.

                  These errors get repeated every 30s. Unfortunately the log does not specify which file it's trying to lock.

                  我尝试使用 find/opt/wso2 -type f -exec lsof {} ; 查找文件系统上的所有文件,并对其进行排他锁.|grep W 但我找不到任何东西.我还尝试通过 WSO2 GR 源代码进行搜索,但没有找到对这个错误的引用.WSO2 Jira 上报告了一个错误 (https://wso2.org/jira/browse/REGISTRY-1863),但这也无济于事.

                  I tried finding all files on the filesystem with exclusive locks on them using find /opt/wso2 -type f -exec lsof {} ; | grep W but I couldn't find any. Also I tried grepping through the WSO2 GR source code, but no where I could find a reference to this error. There is a bug reported on the WSO2 Jira (https://wso2.org/jira/browse/REGISTRY-1863), but that wasn't helpful either.

                  谁能指出我正确的方向或提供任何线索以获取更多信息?

                  Can anyone point me in the right direction or give any clues as to where to get more information?

                  推荐答案

                  我们发现这是Java安装手册中的一个bug.JVM 似乎需要对 /etc/.java/.systemPrefs 目录的写访问权限,以非 root 用户身份运行时无法访问该目录,请参阅:http://bugs.java.com/view_bug.do?bug_id=4838770

                  We found that this is a bug in the Java installation manual. It seems the 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

                  我通过使用

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

                  该文件仍然可以由 root 写入(因为 root 可以写入任何文件),但如果您需要多个用户能够写入该文件,您也可以使用以下方法设置文件 ACL:

                  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
                  

                  这篇关于WSO2 Governance Registry 锁定错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SSL-Connection 导致 javax.net.ssl.SSLException:证书中的主机名不匹配(WSO2 下一篇:WSO2 api 管理器不传播多部分表单数据的内容类型标头

                  相关文章

                • <legend id='WJVFE'><style id='WJVFE'><dir id='WJVFE'><q id='WJVFE'></q></dir></style></legend>

                    <small id='WJVFE'></small><noframes id='WJVFE'>

                        <bdo id='WJVFE'></bdo><ul id='WJVFE'></ul>
                      <i id='WJVFE'><tr id='WJVFE'><dt id='WJVFE'><q id='WJVFE'><span id='WJVFE'><b id='WJVFE'><form id='WJVFE'><ins id='WJVFE'></ins><ul id='WJVFE'></ul><sub id='WJVFE'></sub></form><legend id='WJVFE'></legend><bdo id='WJVFE'><pre id='WJVFE'><center id='WJVFE'></center></pre></bdo></b><th id='WJVFE'></th></span></q></dt></tr></i><div id='WJVFE'><tfoot id='WJVFE'></tfoot><dl id='WJVFE'><fieldset id='WJVFE'></fieldset></dl></div>
                    1. <tfoot id='WJVFE'></tfoot>