<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CP agent cache behavior in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362541#M51219</link>
    <description>&lt;P&gt;I have reach out, thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 11:33:15 GMT</pubDate>
    <dc:creator>NicolasHon</dc:creator>
    <dc:date>2025-01-27T11:33:15Z</dc:date>
    <item>
      <title>CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362535#M51213</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;This issue has been detect and solved, so I post it here to let you know about this and share my experience:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Caching behavior&lt;/B&gt;&lt;/P&gt;&lt;P&gt;There is a behavior that can cause trouble with the&amp;nbsp;cache&amp;nbsp;and show up errors in the log file (log file location is: "C:\Program Files\CyberArk\ApplicationPasswordProvider\Logs\APPConsole.log")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's assume that we retrieved an account with parameters "safe" and "username". At the time of the initial request,&amp;nbsp;it&amp;nbsp;was the only occurrence of this username in that safe, so everything worked like a charm and the agent cached this account locally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, after some times, we onboarded other accounts, with the same username, in the same safe. These accounts have been onboarded for other needs and on other addresses. Of course, the request that we use on the CP has been adapted to include the address, otherwise we'd got the error that too many accounts exists with the same attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, the next time that the agent will try to refresh the&amp;nbsp;cache, he will get an error that too many accounts exists with the same attributes. This is due to the fact that the CP will do a request to refresh the&amp;nbsp;cache&amp;nbsp;entries with same parameters than the initial request. So in that case, using "safe" and "username" for the first entry that he cached (even if we modified the call afterwards) - but, as we added some accounts with same username in the same safe, we got now the error for this account because the address was not part of the initial request.&lt;/P&gt;&lt;P&gt;So now in the&amp;nbsp;cache, we have a first entry with "safe" and "username" (that make the error), and a others with "safe", "username", and "address" (that work perfectly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way of getting ride of this error is to cleanup the&amp;nbsp;cache. Then, the next time that the new request is used to retrieve the account,&amp;nbsp;it&amp;nbsp;will be cached the right way - including the address and avoiding any errors in logs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Cache clean-up&lt;/B&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Stop the “CyberArk&amp;nbsp;Application&amp;nbsp;Password Provider”&amp;nbsp;service&lt;/LI&gt;&lt;LI&gt;Delete the file “C:\Program Files\CyberArk\ApplicationPasswordProvider\Cache\appprovider_cache.dat”&lt;/LI&gt;&lt;LI&gt;Start the “CyberArk&amp;nbsp;Application&amp;nbsp;Password Provider”&amp;nbsp;service&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that this will help some of you in case that you got the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 07:22:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362535#M51213</guid>
      <dc:creator>NicolasHon</dc:creator>
      <dc:date>2025-01-07T07:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362536#M51214</link>
      <description>&lt;P&gt;Hey @Nicolas Honsberger​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very interesting write up! thanks for sharing this. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 14:07:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362536#M51214</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-01-07T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362537#M51215</link>
      <description>&lt;P&gt;Thank you for your positive feedback @Matt Jennison​, much appreciated&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I wasn't sure if it was the good place to post that, feel free to move it if needed.&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 07:05:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362537#M51215</guid>
      <dc:creator>NicolasHon</dc:creator>
      <dc:date>2025-01-09T07:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362538#M51216</link>
      <description>&lt;P&gt;If you'd like we can work together to get this into a knowledge article that is accessible via our search engine. We would credit you as the author, similar to other articles and blogs that we've got. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is something you'd like to work on with me reach out to Community@Cyberark.com and we'll get started!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 14:51:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362538#M51216</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-01-09T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362539#M51217</link>
      <description>&lt;P&gt;Would love to know the exact error messages that you got &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Great KB anyways!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:33:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362539#M51217</guid>
      <dc:creator>JPersson</dc:creator>
      <dc:date>2025-01-09T18:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362540#M51218</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your comment and sorry for the late answer.&lt;/P&gt;&lt;P&gt;The full part of log regarding that issue is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[dd/mm/aaaa | hh:mm:ss] | &amp;nbsp;:: &amp;nbsp;| APPAP032I Main parameters file [main_appprovider.conf.Win.13.00] was loaded successfully&lt;/P&gt;&lt;P&gt;[dd/mm/aaaa | hh:mm:ss] | &amp;nbsp;:: &amp;nbsp;| APPAP258I Supported addresses for this provider [IP_ADDRESS;SERVER_NAME;&lt;A alt="http://GDC04957.swatchgroup.net" href="http://GDC04957.swatchgroup.net" target="_blank"&gt;S&lt;/A&gt;ERVER_NAME_FQDN]&lt;/P&gt;&lt;P&gt;[dd/mm/aaaa | hh:mm:ss] | &amp;nbsp;:: &amp;nbsp;| APPAP341I Found cache encryption key in cache safe for Credential Provider user Prov_SERVER_NAME&lt;/P&gt;&lt;P&gt;[dd/mm/aaaa | hh:mm:ss] | &amp;nbsp;:: &amp;nbsp;| APPAP035I Application Password Provider [Prov_SERVER_NAME] on machine [IP_ADDRESS] version [13.0.0.6] is up [AAM mode] and working with Vault [VAULT_IP_ADDRESS]&lt;/P&gt;&lt;P&gt;&lt;B&gt;[dd/mm/aaaa | hh:mm:ss] | &amp;nbsp;:: &amp;nbsp;| APPAP251E Too many password objects matching query [Folder=root;safe=SAFE_NAME;Username=USERNAME;] were found. The system will use the password that is already in the cache. However, this is state is not valid and must be fixed. See trace log for more information) (Diagnostic Info: 1)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 10:28:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362540#M51218</guid>
      <dc:creator>NicolasHon</dc:creator>
      <dc:date>2025-01-27T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: CP agent cache behavior</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362541#M51219</link>
      <description>&lt;P&gt;I have reach out, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 11:33:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/cp-agent-cache-behavior/m-p/1362541#M51219</guid>
      <dc:creator>NicolasHon</dc:creator>
      <dc:date>2025-01-27T11:33:15Z</dc:date>
    </item>
  </channel>
</rss>

