Wrong IP bind

Dan Morphis dan at milkcarton.com
Mon Jun 1 13:35:14 EDT 2015


Did you restart the gui? Because it looks like the GUI is still trying to
connect on the wrong IP.

On Mon, Jun 1, 2015 at 5:46 AM, Fabien Bazille <fab.baz22 at gmail.com> wrote:

> It's half fixed now ;). I had the feelings during a long time that my
> scripts was not correct and that was that, it called genieacs's services at
> the root  and that was the command who are in the /usr/bin are called and
> not those who are in genieacs/bin.
> Last little things i modified the
> genieacs-gui/config/environment/developement.erb for the host adress API
> instead of localhost or 0.0.0.0 and when I tried to go on the web interface
> it tell me:
> Errno::ECONNREFUSED in HomeController#index
> Connection refused - connect(2) for "0.0.0.0" port 7557
>
>
> 2015-06-01 15:39 GMT+02:00 Dan Morphis <dan at milkcarton.com>:
>
>> config.json overrides what is in config.js (which is built from
>> config.coffee).
>>
>> -dan
>>
>> On May 31, 2015, at 11:58 PM, Fabien Bazille <fab.baz22 at gmail.com> wrote:
>>
>> How to be sure when i start GenieACS it takes the correct config files ?
>> I have the feelings that he didn't take any configuration files anymore.
>> my config.coffe:
>>
>>
>> path = require 'path'
>> common = require './common'
>>
>> options = {
>>   CONFIG_DIR : {type : 'string', default : 'config'},
>>   MONGODB_CONNECTION_URL : {type : 'string', default : 'mongodb://
>> 127.0.0.1/genieacs'},
>>   REDIS_PORT : {type : 'int', default : 6379},
>>   REDIS_HOST : {type : 'string', default : '192.168.2.175'},
>>   REDIS_DB : {type : 'int', default : 0},
>>
>>   CWMP_WORKER_PROCESSES : {type : 'int', default : 4},
>>   CWMP_PORT : {type : 'int', default : 7547},
>>   CWMP_INTERFACE : {type : 'string', default : '192.168.2.175'},
>>   CWMP_SSL : {type : 'bool', default : false},
>>
>>   NBI_WORKER_PROCESSES : {type : 'int', default : 2},
>>   NBI_PORT : {type : 'int', default : 7557},
>>   NBI_INTERFACE : {type : 'string', default : '192.168.2.175'},
>>   NBI_SSL : {type : 'bool', default : false},
>>
>>   FS_WORKER_PROCESSES : {type : 'int', default : 2},
>>   FS_PORT : {type : 'int', default : 7567},
>>   FS_INTERFACE : {type : 'string', default : '192.168.2.175'},
>>   FS_SSL : {type : 'bool', default : false},
>>   FS_IP : {type : 'string', default : '192.168.2.175'},
>> ....
>>
>> my config.json:
>>
>> {
>>   "MONGODB_CONNECTION_URL" : "mongodb://127.0.0.1/genieacs",
>>   "REDIS_PORT" : "6379",
>>   "REDIS_HOST" : "192.168.2.175",
>>   "CWMP_INTERFACE" : "192.168.2.175",
>>   "CWMP_PORT" : 7547,
>>   "CWMP_SSL" : false,
>>   "NBI_INTERFACE" : "192.168.2.175",
>>   "NBI_PORT" : 7557,
>>   "FS_INTERFACE" : "192.168.2.175",
>>   "FS_PORT" : 7567,
>>   "FS_IP" : "192.168.2.175",
>>   "LOG_INFORMS" : true,
>>   "DEBUG" : false
>> }
>>
>>
>> And yes i restart the services with the scripts genieacs-stop.sh and
>> genieacs-start.sh
>>
>> 2015-06-01 9:18 GMT+02:00 Fabien Bazille <fab.baz22 at gmail.com>:
>>
>>> I just remove the last comma after DEBUG and it's the services are
>>> working but all on 0.0.0.0 and not on the IP I bind, that's annoying mostly
>>> with the fie server who bind a local IP, but not on the same network.
>>>
>>> 2015-05-29 17:46 GMT+02:00 Dan Morphis <dan at milkcarton.com>:
>>>
>>>> npm compile doesn't compile the config.json file, it compiles the
>>>> *.coffee files into the corresponding .js file.
>>>>
>>>> Your config.json file doesn't look valid. Try removing the last comma ("DEBUG"
>>>> : false,). Depending on how strict the parser is, trailing commas aren't
>>>> allowed in the JSON spec. http://stackoverflow.com/a/201856/70235
>>>>
>>>> On Fri, May 29, 2015 at 12:16 AM, Fabien Bazille <fab.baz22 at gmail.com>
>>>> wrote:
>>>>
>>>>> Yes Dan I restarted it with the script "./genieacs-start.sh" after a
>>>>> stop.
>>>>> I don't understand why, if I had a syntax probleme the npm run compile
>>>>> should notice me and all the genieacs services I binded
>>>>> on my local IP adress (192.168.2.175) are listening on 0.0.0.0
>>>>> I'm completely lost, i searched for everything with that wrong IP bind
>>>>> and i find nothing.
>>>>> And the other services (nbi, cwmp) are listening on 0.0.0.0 (That can
>>>>> cause security issues)
>>>>>
>>>>> Regards,
>>>>>
>>>>> Fabien B
>>>>>
>>>>> 2015-05-28 18:40 GMT+02:00 Dan Morphis <dan at milkcarton.com>:
>>>>>
>>>>>> Did you restart the genie processes after changing the config.json
>>>>>> file?
>>>>>>
>>>>>> -dan
>>>>>>
>>>>>> On Thu, May 28, 2015 at 5:33 AM, Fabien Bazille <fab.baz22 at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>> I'm performing an issue when i wanna push a configuration file on a
>>>>>>> device, the FS bind the old IP, and not mine, I don't know why because my
>>>>>>> genieacs's config seems ok.
>>>>>>>
>>>>>>> Take a look at my config.json:
>>>>>>> {
>>>>>>>   "MONGODB_CONNECTION_URL" : "mongodb://127.0.0.1/genieacs",
>>>>>>>   "REDIS_PORT" : "6379",
>>>>>>>   "REDIS_HOST" : "192.168.2.175",
>>>>>>>   "CWMP_INTERFACE" : "192.168.2.175",
>>>>>>>   "CWMP_PORT" : 7547,
>>>>>>>   "CWMP_SSL" : false,
>>>>>>>   "NBI_INTERFACE" : "192.168.2.175",
>>>>>>>   "NBI_PORT" : 7557,
>>>>>>>   "FS_INTERFACE" : "192.168.2.175",
>>>>>>>   "FS_PORT" : 7567,
>>>>>>>   "FS_IP" : "192.168.2.175",
>>>>>>>   "LOG_INFORMS" : true,
>>>>>>>   "DEBUG" : false,
>>>>>>> }
>>>>>>>
>>>>>>> The capture tell to the CPE a wrong IP and then the device reject it.
>>>>>>> When I perform a change in the config file I do a "npm run compile"
>>>>>>> If you have any idea of what is happening.
>>>>>>>
>>>>>>> PS: I use the script genieacs-start.sh at my home directory and the
>>>>>>> folder genieacs and genieacs-gui are both on the home directory too.
>>>>>>>
>>>>>>> Best regards,
>>>>>>>
>>>>>>> Fabien B
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users at lists.genieacs.com
>>>>>>> http://lists.genieacs.com/mailman/listinfo/users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at lists.genieacs.com
>>>>>> http://lists.genieacs.com/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.genieacs.com
>>>>> http://lists.genieacs.com/mailman/listinfo/users
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.genieacs.com
>>>> http://lists.genieacs.com/mailman/listinfo/users
>>>>
>>>>
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150601/eacab7e2/attachment.html>


More information about the Users mailing list