<div dir="ltr">Don't refresh "", that doesn't really work right in v1.1, refresh a specific instance.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 19, 2018 at 11:41 AM, Eric Whalen <span dir="ltr"><<a href="mailto:ewhalen@xtremeinternet.biz" target="_blank">ewhalen@xtremeinternet.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_8004814975848248730WordSection1">
<p class="MsoNormal">Ok, so that fixed the debug issue.  However when I run the following command<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">C:\Users\eric>curl -i "http://###.###.###.###:7557/<wbr>devices/1C497B%2DB2338%2D168%<wbr>2DGMC170508001297/tasks?<wbr>connection_request" -X POST --data "{"name":"refreshObject", "objectName":""}"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I get the following response<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">curl: (52) Empty reply from server<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">and nothing is written to the debug except for the periodic informs.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span class=""><b>From:</b> Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>> <b>On Behalf Of
</b>Dan Morphis<br>
</span><b>Sent:</b> Thursday, April 19, 2018 2:58 PM</p><div><div class="h5"><br>
<b>To:</b> Community support for GenieACS users <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br>
<b>Subject:</b> Re: API call failure<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Change <u></u><u></u></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">"DEBUG-1C497B-B2338%252D168-<wbr>GMC170508001297" : true<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"> to just:<br>
"DEBUG" true<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">The old method of being able to debug just one config isn't supported anymore I believe. If you are in a production environment, turn debug off ASAP or you will fill your disk with logs!<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;word-spacing:0px">
<span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">-dan<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Apr 19, 2018 at 10:56 AM, <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">The issue accessing the GUI after the config change was the result of a typo.  However, I do not see anything written to the /opt/genieacs/debug folder.  Below is my config.  Thanks
 for the help.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">{<u></u><u></u></p>
<p class="MsoNormal">  "MONGODB_CONNECTION_URL" : "mongodb://<a href="http://127.0.0.1/genieacs" target="_blank">127.0.0.1/genieacs</a>"<wbr>,<u></u><u></u></p>
<p class="MsoNormal">  "CWMP_INTERFACE" : "0.0.0.0",<u></u><u></u></p>
<p class="MsoNormal">  "CWMP_PORT" : 7547,<u></u><u></u></p>
<p class="MsoNormal">  "CWMP_SSL" : false,<u></u><u></u></p>
<p class="MsoNormal">  "NBI_INTERFACE" : "0.0.0.0",<u></u><u></u></p>
<p class="MsoNormal">  "NBI_PORT" : 7557,<u></u><u></u></p>
<p class="MsoNormal">  "FS_INTERFACE" : "0.0.0.0",<u></u><u></u></p>
<p class="MsoNormal">  "FS_PORT" : 7567,<u></u><u></u></p>
<p class="MsoNormal">  "FS_HOSTNAME" : "<a href="http://acs.example.com" target="_blank">acs.example.com</a>",<u></u><u></u></p>
<p class="MsoNormal">  "DEBUG-1C497B-B2338%252D168-<wbr>GMC170508001297" : true<u></u><u></u></p>
<p class="MsoNormal">}<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>From:</b> Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>>
<b>On Behalf Of </b>Dan Morphis<br>
<b>Sent:</b> Thursday, April 19, 2018 2:39 PM<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>To:</b> Community support for GenieACS users <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br>
<b>Subject:</b> Re: API call failure<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">You would need to post your entire config.json file for me to see where the issue might be.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">-dan<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Thu, Apr 19, 2018 at 7:39 AM, <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">I added the following line to config.json, but after restarting I can no longer access the gui.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">"DEBUG-1C497B-B2338%252D168-<wbr>GMC170508001297" : true,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Clearly my syntax is incorrect, but I’m not sure where.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b>From:</b> Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>>
<b>On Behalf Of </b>Dan Morphis<br>
<b>Sent:</b> Wednesday, April 18, 2018 1:26 PM<br>
<b>To:</b> Community support for GenieACS users <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br>
<b>Subject:</b> Re: API call failure<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">From the error message it would appear the CPE is sending bad data. Enable debugging and look in the debug folder for the acs id.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">-dan<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Wed, Apr 18, 2018 at 5:06 AM, <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal">To add a little more detail...<br>
<br>
The Device OUI is 1C497B<br>
The  Product Class is B2338-168<br>
The Serial # is GMC170508001297<br>
The GUI displays the Device as 1C497B-B2338%2D168-<wbr>GMC170508001297<br>
The device URL in the GUI is <a href="http://#%23%23.%23%23%23.%23%23%23.%23%23%23/devices/1C497B-B2338%252D168-GMC170508001297" target="_blank">
http://###.###.###.###/<wbr>devices/1C497B-B2338%252D168-<wbr>GMC170508001297</a><br>
<br>
The Device ID is different in the URL than the GUI display which I assume is due to URL encoding.  If that is the case, why does that url not work in my connection request?  See error below...<br>
<br>
Apr 15 11:15:18 ip-###-###-###-### genieacs-nbi[1192]: 2018-04-15T16:15:18.016Z [ERROR] Uncaught exception; pid=1655 exceptionName="SyntaxError" exceptionMessage="Unexpected token % in JSON at position 0" exceptionStack="SyntaxError: Unexpected token % in JSON
 at position 0\n    at JSON.parse (<anonymous>)\n    at IncomingMessage.<anonymous> (/opt/genieacs/lib/nbi.js:384:<wbr>23)\n    at emitNone (events.js:86:13)\n    at IncomingMessage.emit (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\<wbr>n    at
 _combinedTickCallback (internal/process/next_tick.<wbr>js:80:11)\n    at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<br>
<br>
Any help would be greatly appreciated as I need to get this working before I can launch in a live environment.<br>
<br>
Thank you in advance!<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a> <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><wbr>>
<br>
Sent: Wednesday, April 18, 2018 7:01 AM<br>
To: 'Community support for GenieACS users' <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br>
Subject: RE: API call failure<br>
<br>
Does anyone have any thoughts on this issue?<br>
<br>
Thank you.<br>
<br>
-----Original Message-----<br>
From: Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>> On Behalf Of
<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a><br>
Sent: Sunday, April 15, 2018 12:17 PM<br>
To: 'Community support for GenieACS users' <<a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a>><br>
Subject: RE: API call failure<br>
<br>
Oliver, <br>
<br>
I updated the connection url to<br>
<a href="http://35.171.217.31:7557/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request" target="_blank">http://35.171.217.31:7557/<wbr>devices/1C497B%2DB2338%2D168%<wbr>2DGMC170508001297/tasks?<wbr>connection_request</a><br>
<br>
I still receive the following error...<br>
<br>
Apr 15 11:15:18 ip-###-###-###-### genieacs-nbi[1192]: 2018-04-15T16:15:18.016Z [ERROR] Uncaught exception; pid=1655 exceptionName="SyntaxError" exceptionMessage="Unexpected token % in JSON at position 0" exceptionStack="SyntaxError: Unexpected token % in JSON
 at position 0\n    at JSON.parse (<anonymous>)\n    at IncomingMessage.<anonymous> (/opt/genieacs/lib/nbi.js:384:<wbr>23)\n    at emitNone (events.js:86:13)\n    at IncomingMessage.emit (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\<wbr>n    at
 _combinedTickCallback (internal/process/next_tick.<wbr>js:80:11)\n    at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
Any thoughts?<br>
Thanks<br>
<br>
-----Original Message-----<br>
From: Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.<wbr>com</a>> On Behalf Of Oliver Kraitschy<br>
Sent: Monday, March 26, 2018 8:51 AM<br>
To: <a href="mailto:users@lists.genieacs.com" target="_blank">users@lists.genieacs.com</a><br>
Subject: Re: API call failure<br>
<br>
Hello Eric,<br>
<br>
the url you're using is not fully url-encoded. You need to encode the hyphens ('-') as well.<br>
<br>
Greetings,<br>
Oliver<br>
<br>
Am 26.03.2018 14:37, schrieb <a href="mailto:eric@aisling-technologies.com" target="_blank">
eric@aisling-technologies.com</a>:<br>
> I am attempting to use Google's Postman to test my API calls to <br>
> GenieACS, but my lack of experience is causing me issues.  I am trying <br>
> to do the following;<br>
> <br>
> <a href="http://35.171.217.31:7557/devices/1C497B-B2338%2D168-GMC170508001297/t" target="_blank">
http://35.171.217.31:7557/<wbr>devices/1C497B-B2338%2D168-<wbr>GMC170508001297/t</a><br>
> asks?connection_request<br>
> <br>
> {"name":"refreshObject", "objectName":""}<br>
> <br>
> Which generates the following log messages…<br>
> <br>
> Mar 26 12:24:39 ip-###-##-##-## genieacs-nbi[1167]:<br>
> 2018-03-26T12:24:39.562Z [ERROR] Uncaught exception; pid=7258 <br>
> exceptionName="SyntaxError" exceptionMessage="Unexpected token % in <br>
> JSON at position 0" exceptionStack="SyntaxError: Unexpected token % in<br>
> JSON at position 0\n    at JSON.parse (<anonymous>)\n    at<br>
> IncomingMessage.<anonymous> (/opt/genieacs/lib/nbi.js:384:<wbr>23)\n    at<br>
> emitNone (events.js:86:13)\n    at IncomingMessage.emit<br>
> (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\n<br>
>    at _combinedTickCallback (internal/process/next_tick.<wbr>js:80:11)\n<br>
> at process._tickCallback (internal/process/next_tick.<wbr>js:104:9)"<br>
> <br>
> Mar 26 12:25:09 ip-###-##-##-## genieacs-nbi[1167]:<br>
> 2018-03-26T12:25:09.569Z [ERROR] Worker died; pid=7258 exitCode=1<br>
> <br>
> Mar 26 12:25:09 ip-###-##-##-## genieacs-nbi[1167]:<br>
> 2018-03-26T12:25:09.864Z [INFO] Worker listening; pid=7400 <br>
> address="0.0.0.0" port=7557<br>
> <br>
> Any guidance would be greatly appreciated.<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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></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></div>