I was not able to reproduce the issue on an Ubuntu server,
probably there has been an issue during the node modules installation.
Let me know if it happen again, and in case can you please add the
"npm-debug.log" file?
Thanks
Teo
On Tue, Aug 9, 2016 at 9:42 PM, Kspviswa Github <ksp...@gm...>
wrote:
> Great. Installing browser-sync did helped. Thanks a lot :-)
>
> kspviswa-onos@kspviswa-UbuntuBox:~/onos/web/gui/src/main/webapp$ npm start
>
> > onos-gui@1.0.0 start /home/kspviswa-onos/onos/web/gui/src/main/webapp
> > parallelshell "npm run dev-server" "npm run bs"
>
>
> > onos-gui@1.0.0 dev-server /home/kspviswa-onos/onos/web/
> gui/src/main/webapp
> > node dev_server.js
>
>
> > onos-gui@1.0.0 bs /home/kspviswa-onos/onos/web/gui/src/main/webapp
> > browser-sync start --config bs-config.js
>
> Dev server is up and listening on http://localhost: 8182
> [BS] Proxying: http://localhost:8181
> [BS] Access URLs:
> --------------------------------------
> Local: http://localhost:3000
> External: http://192.168.0.114:3000
> --------------------------------------
> UI: http://localhost:3002
> UI External: http://192.168.0.114:3002
> --------------------------------------
> [BS] Watching files...
>
>
> On Wed, Aug 10, 2016 at 12:23 AM, Matteo Scandolo <te...@on...> wrote:
>
>> Hello Viswa,
>> thanks for dedicating some time in testing this.
>>
>> It looks strange to me that "browser-sync" is not available on your
>> system as it is listed a dependency in the package.json
>> <https://github.com/opennetworkinglab/onos/blob/master/web/gui/src/main/webapp/package.json#L17> so
>> it should be installed with "npm install". Did you noticed any error
>> message while performing that command?
>>
>> Anyway a fix for that will be to execute "npm install -g browser-sync"
>> (depending on your system configuration it can require sudo).
>>
>> I'll try to replicate this bug on an ubuntu system, I'll keep you posted,
>> but let me know if the above command fix the issue for you.
>>
>> Teo
>>
>> On Tue, Aug 9, 2016 at 10:52 AM, Simon Hunt <si...@on...> wrote:
>>
>>> Looks like the main cause of the error is:
>>>
>>> *sh: 1: browser-sync: not found*
>>>
>>>
>>> *Teo*, do you have any thoughts on how to correct this?
>>>
>>> ~Simon
>>>
>>>
>>> On Sun, Aug 7, 2016 at 9:46 AM, Kspviswa Github <
>>> ksp...@gm...> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm trying to start the Onos UI development server as per the
>>>> readme.txt.
>>>>
>>>> Installed Node JS in Ubuntu 14.1 and executed following command
>>>>
>>>> > npm install
>>>> > npm start
>>>>
>>>> I'm hitting the following error, when I attempt to start development
>>>> server. Any help on how to proceed is highly appreciated.
>>>>
>>>> kspviswa-onos@kspviswa-UbuntuBox:~/onos/web/gui/src/main/webapp$ npm
>>>> start
>>>>
>>>> > onos-gui@1.0.0 start /home/kspviswa-onos/onos/web/gui/src/main/webapp
>>>> > parallelshell "npm run dev-server" "npm run bs"
>>>>
>>>>
>>>> > onos-gui@1.0.0 dev-server /home/kspviswa-onos/onos/web/g
>>>> ui/src/main/webapp
>>>> > node dev_server.js
>>>>
>>>>
>>>> > onos-gui@1.0.0 bs /home/kspviswa-onos/onos/web/gui/src/main/webapp
>>>> > browser-sync start --config bs-config.js
>>>>
>>>> sh: 1: browser-sync: not found
>>>>
>>>> npm ERR! Linux 3.13.0-61-generic
>>>> npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "bs"
>>>> npm ERR! node v0.10.46
>>>> npm ERR! npm v2.15.1
>>>> npm ERR! file sh
>>>> npm ERR! code ELIFECYCLE
>>>> npm ERR! errno ENOENT
>>>> npm ERR! syscall spawn
>>>> npm ERR! onos-gui@1.0.0 bs: `browser-sync start --config bs-config.js`
>>>> npm ERR! spawn ENOENT
>>>> npm ERR!
>>>> npm ERR! Failed at the onos-gui@1.0.0 bs script 'browser-sync start
>>>> --config bs-config.js'.
>>>> npm ERR! This is most likely a problem with the onos-gui package,
>>>> npm ERR! not with npm itself.
>>>> npm ERR! Tell the author that this fails on your system:
>>>> npm ERR! browser-sync start --config bs-config.js
>>>> npm ERR! You can get information on how to open an issue for this
>>>> project with:
>>>> npm ERR! npm bugs onos-gui
>>>> npm ERR! Or if that isn't available, you can get their info via:
>>>> npm ERR!
>>>> npm ERR! npm owner ls onos-gui
>>>> npm ERR! There is likely additional logging output above.
>>>>
>>>> npm ERR! Please include the following file with any support request:
>>>> npm ERR! /home/kspviswa-onos/onos/web/g
>>>> ui/src/main/webapp/npm-debug.log
>>>>
>>>> npm ERR! Linux 3.13.0-61-generic
>>>> npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
>>>> npm ERR! node v0.10.46
>>>> npm ERR! npm v2.15.1
>>>> npm ERR! code ELIFECYCLE
>>>> npm ERR! onos-gui@1.0.0 start: `parallelshell "npm run dev-server"
>>>> "npm run bs"`
>>>> npm ERR! Exit status 1
>>>> npm ERR!
>>>> npm ERR! Failed at the onos-gui@1.0.0 start script 'parallelshell "npm
>>>> run dev-server" "npm run bs"'.
>>>> npm ERR! This is most likely a problem with the onos-gui package,
>>>> npm ERR! not with npm itself.
>>>> npm ERR! Tell the author that this fails on your system:
>>>> npm ERR! parallelshell "npm run dev-server" "npm run bs"
>>>> npm ERR! You can get information on how to open an issue for this
>>>> project with:
>>>> npm ERR! npm bugs onos-gui
>>>> npm ERR! Or if that isn't available, you can get their info via:
>>>> npm ERR!
>>>> npm ERR! npm owner ls onos-gui
>>>> npm ERR! There is likely additional logging output above.
>>>>
>>>> npm ERR! Please include the following file with any support request:
>>>> npm ERR! /home/kspviswa-onos/onos/web/g
>>>> ui/src/main/webapp/npm-debug.log
>>>> kspviswa-onos@kspviswa-UbuntuBox:~/onos/web/gui/src/main/webapp$
>>>> events.js:72
>>>> throw er; // Unhandled 'error' event
>>>> ^
>>>> Error: listen EADDRINUSE
>>>> at errnoException (net.js:905:11)
>>>> at Server._listen2 (net.js:1043:14)
>>>> at listen (net.js:1065:10)
>>>> at Server.listen (net.js:1139:5)
>>>> at httpProxyInit (/home/kspviswa-onos/onos/web/
>>>> gui/src/main/webapp/dev_server.js:24:10)
>>>> at Object.<anonymous> (/home/kspviswa-onos/onos/web/
>>>> gui/src/main/webapp/dev_server.js:29:1)
>>>> at Module._compile (module.js:456:26)
>>>> at Object.Module._extensions..js (module.js:474:10)
>>>> at Module.load (module.js:356:32)
>>>> at Function.Module._load (module.js:312:12)
>>>>
>>>>
>>>> BR,
>>>> Viswa
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "ONOS Developers" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to ono...@on....
>>>> To post to this group, send email to ono...@on....
>>>> Visit this group at https://groups.google.com/a/on
>>>> osproject.org/group/onos-dev/.
>>>> To view this discussion on the web visit https://groups.google.com/a/on
>>>> osproject.org/d/msgid/onos-dev/CAKxSjg12hNGRujr_qbs8KvBYBkJq
>>>> d6hpacBc9edZAksVYxkLAQ%40mail.gmail.com
>>>> <https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/CAKxSjg12hNGRujr_qbs8KvBYBkJqd6hpacBc9edZAksVYxkLAQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>
>>
>> --
>> Matteo Scandolo
>> --
>> ON.Lab
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ONOS Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ono...@on....
>> To post to this group, send email to ono...@on....
>> Visit this group at https://groups.google.com/a/on
>> osproject.org/group/onos-dev/.
>> To view this discussion on the web visit https://groups.google.com/a/on
>> osproject.org/d/msgid/onos-dev/CABiwp8DpwGhCbA_%3DkwSYpLRsAB
>> EzGQ87u%3D_tdVpWtDGdkdC6ew%40mail.gmail.com
>> <https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/CABiwp8DpwGhCbA_%3DkwSYpLRsABEzGQ87u%3D_tdVpWtDGdkdC6ew%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
--
Matteo Scandolo
--
ON.Lab
|