Hello,
MATLAB Connector now stores the user credentials secured using the system keychain. There are a few things that could have gone wrong, which might have caused the above problem.
- MATLAB Connector tries to connect to the system keychain, if that fails the credentials are not persisted.
- If we connect, the system keychain might be locked, and a pop-up should ask the user to unlock the keychain. This is a system pop-up (we don't control it), and it might appear in a different screen if the user has many screens (e.g., using VNC).
- If we get access to the keychain, we use that to read an encrypted file located in
~/.MATLABConnector/<hostname>/services/credentials
- If that files got corrupted, we won't be able to read/write the credentials.
About this error, it is normal.
00000004 2021-02-11 11:29:47 0x00007f7bf4626700 agent::mathworkscredentials E Failed to read token from config
MATLAB try to read a credential from the old system and update it to the new system. If there's not credentials in the old system you would see this message. This is not an actual error.
You can try the following thing to resolve the issue.
the easiest is to remove the
~/.MATLABConnector/<hostname>/services/credentials,
and try again.
If that fails, the next step would be checking the system keychain, this can be done using the Seahorse software (which should ship with Ubuntu). For using Seahorse, please refer to this link. In the default keychain (usualy called Login), there should be an entry called MathWorks Key. If there no such entry that means we couldn't communicate with the system keychain.Also, while in seahorse, it would be useful to know the name of the default keychain and whether it's locked of not (a little lock symbol next to the keychain name), if there's only one MathWorks Key entry, or many. If there are many entries, its a flag about the problem.
Hope it helps