<div dir="ltr"><div><div><div>Seemingly the issue has resolved itself? <br></div>The only thing I did differently this time was not go into the provision after I changed my external script. <br><br></div>I really have no idea anymore.... I'll update if I can ever find a cause, or a more concrete way of reproducing the issue.<br><br></div>Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 2:20 PM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I wish I could help you there. I have not encountered this issue. Just 2 days ago I edited an ext script in prod (well, copied from dev) and didn't have any issues with caching. Not real sure whats going on with your setup. <span class="HOEnZb"><font color="#888888"><div><br></div><div>-dan</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 11:17 AM, Ralf Sawazki <span dir="ltr"><<a href="mailto:rsawazki@gobcn.ca" target="_blank">rsawazki@gobcn.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Here's a better explanation of the issue:<br><br></div>I create a provision, in this provision it calls an external script, passing 2 args, serial and mac.<br><br></div>My external script, simply takes the two args it got, and returns them in the callback within this structure: result = {username: arg[0], password: arg[1]}. So it would return the "result" object<br><br></div>Now the provision takes that result object, and sets the pppoe username to result.username, and password to result.password.<br></div><div><br></div><div>All of the above works fine.<br></div><div><br></div><div>The issue begins when I try to edit my external script. If I make a change, let's say, rather then return result as it is above, I return some string literals: result = {username: "user", password: "pass"}.<br><br></div><div>Now when the provision runs, it will NOT set the pppoe username and password to "user" and "pass", it will set them to the arguments passed in from the provision: arg[0], and arg[1], so the serial and mac address.<br><br></div><div>In this situation, it would seem that my external script is being cached the first time the provision is run.<br><br></div><div>I can resolve this issue by renaming my external script with each change, and changing the ext() function to target the new filename.<br><br></div><div>So, to me, it looks like either GenieACS, or Node.js is caching my external script based off of the timestamp of the GenieACS provision, and not checking the timestamp of the external script.<br><br></div><div>Hope that helps.<br></div></div><div class="m_3571340025679333990HOEnZb"><div class="m_3571340025679333990h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 1:56 PM, Ralf Sawazki <span dir="ltr"><<a href="mailto:rsawazki@gobcn.ca" target="_blank">rsawazki@gobcn.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Because when I make changes to my script, those changes aren't reflected in what is actually happening. I was changing the name for testing purposes. Because even when I changed the name, so theoretically genieacs shouldn't be able to find it, genieacs wouldn't show any faults saying the file is not found, it would keep running the script as if I had never changed the name<br></div><div class="m_3571340025679333990m_3619554787841989169HOEnZb"><div class="m_3571340025679333990m_3619554787841989169h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 1:40 PM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm not sure I understand your issue. If you are making changes to your ext script, why are you copying the file to _bak? Why not just edit the one file?<span class="m_3571340025679333990m_3619554787841989169m_8694485954211786672HOEnZb"><font color="#888888"><div><br></div><div>-dan</div></font></span></div><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672HOEnZb"><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 9:56 AM, Ralf Sawazki <span dir="ltr"><<a href="mailto:rsawazki@gobcn.ca" target="_blank">rsawazki@gobcn.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Alright, that fixed it. But I believe i'm still having a caching issue.<br><br></div><div>When I'm using the external script, no matter what changes I make to it, it will always run an older version of it that doesn't exist.<br><br></div><div>If my genieacs provision says:<br>let test = ext("getPPPoE","b", serial, mac);<br><br></div><div>and I change the name of the file getPPPoE to getPPPoE_BAK for example, the provision will keep running and not show any faults.<br><br></div><div>Now, If i change my genieacs provision to say:<br>let test = ext("getPPPoE_BAK","b", serial, mac);<br><br></div><div>It will start running my new script with no issue.<br><br></div><div>So is the solution to rename my file everytime I make a change, and reflect that rename in the file name in the provision?<br><br></div><div>If, in the first situation where the provision is running a script that doesn't exist, I manually change the username in the router, the provision will no longer update the username.<br><br></div><div>Thanks for the help<br></div></div><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112HOEnZb"><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 27, 2017 at 6:15 PM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">restart the cwmp. </div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840h5">On Thu, Jul 27, 2017 at 11:40 AM, Ralf Sawazki <span dir="ltr"><<a href="mailto:rsawazki@gobcn.ca" target="_blank">rsawazki@gobcn.ca</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840h5"><div dir="ltr"><div>Update:<br><br></div>I tried to rename my external script so that the provision couldn't find it, and it is still swapping between those two values.<br></div><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840m_4369495661677803128HOEnZb"><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840m_4369495661677803128h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 27, 2017 at 2:18 PM, Ralf Sawazki <span dir="ltr"><<a href="mailto:rsawazki@gobcn.ca" target="_blank">rsawazki@gobcn.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello all,<br><br><a href="http://imgur.com/a/BtB3U" target="_blank">Images</a><br><br></div>The images above show what I see.<br><br></div>The situation is that due to caching, seemingly, genieacs is alternating between my current external script, and an older version that no longer exists. I have the tr069 periodic inform interval at 5 seconds for testing atm, and every 5 seconds, it swaps between the expected information of the serial and mac, and the old output of literally arg[0] and arg[1].<br><br></div>I'm completely stumped as to what's going on.<span class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840m_4369495661677803128m_1535387602368768965HOEnZb"><font color="#888888"><br><div><div><div><div>-- <br><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840m_4369495661677803128m_1535387602368768965m_5544221424335604915gmail_signature"><div dir="ltr"><div><div dir="ltr">Ralf Sawazki<br><div><div dir="ltr"><div><div><div><a href="tel:%28204%29%20594-2566" value="+12045942566" target="_blank">1 (204) 594-2567</a><br></div>Broadband Communications North Inc. <br></div>26-30 Fort Street <br></div>Winnipeg. MB<br>R3C 1C4</div></div></div></div></div></div>
</div></div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840m_4369495661677803128m_1535387602368768965gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ralf Sawazki<br><div><div dir="ltr"><div><div><div><a href="tel:%28204%29%20594-2566" value="+12045942566" target="_blank">1 (204) 594-2567</a><br></div>Broadband Communications North Inc. <br></div>26-30 Fort Street <br></div>Winnipeg. MB<br>R3C 1C4</div></div></div></div></div></div>
</div>
</div></div><br></div></div>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672m_-8188267314370374112m_1572288539453969840gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ralf Sawazki<br><div><div dir="ltr"><div><div><div><a href="tel:%28204%29%20594-2566" value="+12045942566" target="_blank">1 (204) 594-2567</a><br></div>Broadband Communications North Inc. <br></div>26-30 Fort Street <br></div>Winnipeg. MB<br>R3C 1C4</div></div></div></div></div></div>
</div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="m_3571340025679333990m_3619554787841989169m_8694485954211786672gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ralf Sawazki<br><div><div dir="ltr"><div><div><div><a href="tel:%28204%29%20594-2566" value="+12045942566" target="_blank">1 (204) 594-2567</a><br></div>Broadband Communications North Inc. <br></div>26-30 Fort Street <br></div>Winnipeg. MB<br>R3C 1C4</div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="m_3571340025679333990m_3619554787841989169gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ralf Sawazki<br><div><div dir="ltr"><div><div><div><a href="tel:%28204%29%20594-2566" value="+12045942566" target="_blank">1 (204) 594-2567</a><br></div>Broadband Communications North Inc. <br></div>26-30 Fort Street <br></div>Winnipeg. MB<br>R3C 1C4</div></div></div></div></div></div>
</div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Ralf Sawazki<br><div><div dir="ltr"><div><div><div><a href="tel:%28204%29%20594-2566" value="+12045942566" target="_blank">1 (204) 594-2567</a><br></div>Broadband Communications North Inc. <br></div>26-30 Fort Street <br></div>Winnipeg. MB<br>R3C 1C4</div></div></div></div></div></div>
</div>