尝试使用钱包时出错"Failed to lock" 通过 jdbc 连接到预言机



我在应用服务器上安装了一个应用程序,该应用程序使用SSL和钱包连接到Oracle数据库19。一切正常

然后我克隆了我的应用服务器,并在克隆上运行了相同的应用程序。它无法连接,同时产生以下错误:

SQLException: encountered a problem with the Secret Store. 
Check the wallet location for the presence of an open wallet (cwallet.sso) and ensure that this wallet contains the correct credentials using the mkstore utility: 
java.io.IOException: Failed to lock... 
attempt 1: java.io.FileNotFoundException: /home/ubuntu/wallets/mywallet/ewallet.p12.lck (Permission denied) 
attempt 2: java.io.FileNotFoundException: /tmp/pki_data717030271.lck (No such file or directory) 
  • 我已经检查了ewallet.p12文件。LCK -文件存在和我的应用程序用户可以读/写
  • 我已经检查了文件/tmp/pki_data717030271。LCK -这个文件不存在,但它存在在一切正常的原始服务器上也不存在

这里有什么问题,如何解决?

解决了。只需要删除ewallet.p12.lck文件。

我猜这是某种锁机制的一部分,它在一个服务器上正常工作,但不能复制到另一个服务器。