Setup Master Key ERROR

Hello,

I’m trying to use the REST proxy on the BIG-IQ system to request a BIG-IP device as follows:

<span># Parameters for the requests<br></span>headers = {<br>    <span>'X-F5-Auth-Token'</span>: <span>f'</span><span>{</span>token<span>}</span><span>'</span><span>,<br></span>    <span>'Content-Type'</span>: <span>'application/json'<br></span>}<br><br><span>#Request to use the REST proxy on the BIG-IQ system<br></span><span>try</span>:<br>    url_pro = <span>"https://" </span>+ ip + <span>"/mgmt/shared/resolver/device-groups/cm-bigip-allBigIpDevices/devices/4ad12733-95ea-47b0-a562-dd6ac6da5adc/rest-proxy/mgmt/tm/sys/file/ssl-cert/f5-ca-bundle.crt?options=-hidden&$select=cachePath"<br></span>    response_pro = requests.get(url_pro<span>, </span><span>headers</span>=headers<span>, </span><span>verify</span>=<span>False</span>)<br>    json_response_pro = response_pro.json()<br>    <span>print</span>(<span>"</span><span>\033</span><span>[93m" </span>+ <span>"Response to the request to use the REST proxy on the BIG-IQ system: "</span>)<br>    <span>print</span>(<span>"</span><span>\033</span><span>[93m" </span>+ json.dumps(json_response_pro<span>, </span><span>indent</span>=<span>2</span>))<br><br><span>except </span>requests.exceptions.RequestException <span>as </span>e:<br>    <span>raise </span><span>SystemExit</span>(<span>"</span><span>\033</span><span>[91m" </span>+ <span>"The REST proxy on the BIG-IQ system is NOT working because...   " </span>+ <span>str</span>(e)) 

Everything was working fine until I got this message:  “Unable to decrypt an item because the Master Key has not been configured on this system. Please setup the Master Key via the setup UI before proceeding.”

I don’t know how to fix it, does anybody know? Why is this happening?

Thanks in advance!

Hey  @dani_salvado  - were you able to figure it out? I’ve sent this thread to a colleague to see if they can offer some help.

Hi  @dani_salvado  I’m looking into this

Hi  @dani_salvado  I think this may be due to the master passphrase no longer matching. I found an instance where it was due to a corrupt upgrade. It was suggested to roll back and re-run the upgrade.

Or, if a new install, you may need to consider backing up the config, reinstalling to a new partition and reloading the config.

This is based off some support cases I saw so you might consider filing a ticket to determine your best course of action.