<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Ok, so that fixed the debug issue.  However when I run the following command<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">C:\Users\eric>curl -i "http://###.###.###.###:7557/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request" -X POST --data "{"name":"refreshObject", "objectName":""}"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I get the following response<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">curl: (52) Empty reply from server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and nothing is written to the debug except for the periodic informs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> Users <users-bounces@lists.genieacs.com> <b>On Behalf Of
</b>Dan Morphis<br>
<b>Sent:</b> Thursday, April 19, 2018 2:58 PM<br>
<b>To:</b> Community support for GenieACS users <users@lists.genieacs.com><br>
<b>Subject:</b> Re: API call failure<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Change <o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222">"DEBUG-1C497B-B2338%252D168-GMC170508001297" : true<o:p></o:p></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<o:p></o:p></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"><o:p> </o:p></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!<o:p></o:p></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"><o:p> </o:p></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<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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>> wrote:<o:p></o:p></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" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">{<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "MONGODB_CONNECTION_URL" : "mongodb://<a href="http://127.0.0.1/genieacs" target="_blank">127.0.0.1/genieacs</a>",<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "CWMP_INTERFACE" : "0.0.0.0",<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "CWMP_PORT" : 7547,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "CWMP_SSL" : false,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "NBI_INTERFACE" : "0.0.0.0",<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "NBI_PORT" : 7557,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "FS_INTERFACE" : "0.0.0.0",<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "FS_PORT" : 7567,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "FS_HOSTNAME" : "<a href="http://acs.example.com" target="_blank">acs.example.com</a>",<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  "DEBUG-1C497B-B2338%252D168-GMC170508001297" : true<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">}<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.com</a>>
<b>On Behalf Of </b>Dan Morphis<br>
<b>Sent:</b> Thursday, April 19, 2018 2:39 PM<o:p></o:p></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<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">You would need to post your entire config.json file for me to see where the issue might be.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-dan<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Thu, Apr 19, 2018 at 7:39 AM, <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a>> wrote:<o:p></o:p></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" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I added the following line to config.json, but after restarting I can no longer access the gui.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">"DEBUG-1C497B-B2338%252D168-GMC170508001297" : true,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Clearly my syntax is incorrect, but I’m not sure where.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> Users <<a href="mailto:users-bounces@lists.genieacs.com" target="_blank">users-bounces@lists.genieacs.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<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">-dan<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Wed, Apr 18, 2018 at 5:06 AM, <<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a>> wrote:<o:p></o:p></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" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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-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://###.###.###.###/devices/1C497B-B2338%252D168-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:23)\n    at emitNone (events.js:86:13)\n    at IncomingMessage.emit (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\n    at
 _combinedTickCallback (internal/process/next_tick.js:80:11)\n    at process._tickCallback (internal/process/next_tick.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>>
<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.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/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?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:23)\n    at emitNone (events.js:86:13)\n    at IncomingMessage.emit (events.js:188:7)\n    at endReadableNT (_stream_readable.js:975:12)\n    at
 _combinedTickCallback (internal/process/next_tick.js:80:11)\n    at process._tickCallback (internal/process/next_tick.js:104:9)"<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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.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/devices/1C497B-B2338%2D168-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: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.js:80:11)\n<br>
> at process._tickCallback (internal/process/next_tick.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>
> _______________________________________________<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/mailman/listinfo/users</a><br>
<br>
_______________________________________________<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/mailman/listinfo/users</a><br>
<br>
_______________________________________________<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/mailman/listinfo/users</a><br>
<br>
_______________________________________________<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/mailman/listinfo/users</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><br>
_______________________________________________<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/mailman/listinfo/users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<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" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>