How to fix an error that the 'MATLAB Vault is unavailable' when using the commands listSecrets or setSecret?
32 ビュー (過去 30 日間)
古いコメントを表示
I use the MATLAB vault functions to store secrets like logins, passwords, etc in MATLAB 2024a.
It had been working perfectly fine for several months, but suddenly whenever I call any functions like listSecrets, getSecret, setSecret I get this error:
Unable to call 'listSecrets'. The MATLAB Vault is unavailable.
I have tried the following with no luck:
- restarting MATLAB
- restarting my PC
- re-installing MATLAB
I got this error once before, but after restarting MATLAB it went away. But now, no amount of restarting MATLAB has been able to fix it.
Is there a way to fix this error?
3 件のコメント
Steven Lord
2025 年 1 月 29 日
Did something change about your license (switched from one license to another?), your MATLAB installation (installed an update?), or your computer (installed or uninstalled an update, change of hardware, etc.?) between the last time that listSecrets worked and the first time that it indicated the vault was unavailable?
採用された回答
Leepakshi
2025 年 1 月 31 日
Hi Brooke,
Same issue has happened with me once, and changing the version of MathworksServiceHost fixed the issue for me.
The reason for this error can be different depending on MATLAB, MathworksServiceHost or even the OS on your machine.
Some quick workarounds are:
1. Are there mutiple instances of MathworksServiceHost processes running on user system? If so ensure only single process instance is being started.
2. Is the running MathworksServiceHost process an older verion and not latest, if so uninstall it and install latest one.
You can refer the document below to correct your Mathworks Service Host:
If the issue is still not resolved, you can contact MATLAB Help desk using the link below:
Hope this will work for you!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!