chrissanders / FlowBAT

Network Flow Basic Analysis Tool
GNU Affero General Public License v3.0
112 stars 26 forks source link

Error Installing on Ubuntu 16.04 LTS #20

Closed arobinsongit closed 6 years ago

arobinsongit commented 8 years ago

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04 LTS Release: 16.04 Codename: xenial

./install_flowbat_ubuntu.sh: line 141: npm: command not found To manually start, stop, or check status of FlowBAT: sudo service flowbat [start/stop/status]

Attempting startup. Check http://127.0.0.1:1800. Failed to start flowbat.service: Unit flowbat.service not found.

Logfiles attached logfile.txt silkinstall.log.txt silkonabox.sh.txt install_flowbat_ubuntu.sh.txt

automayt commented 8 years ago

This is due to a number of changes from ubuntu 14.04 to 16.04 including but not limited to the nodejs implementation and the change from upstart. Will try to get a new installer for 16.04.

kmneill01 commented 8 years ago

Any progress on this issue? Having the same problem with install on latest version of Linux Mint

automayt commented 8 years ago

This issue should be fixed soon, but nothing yet. It will require a different install process currently, so I'm working to streamline that.

On Sep 7, 2016 5:13 PM, "kmneill01" notifications@github.com wrote:

Any progress on this issue? Having the same problem with install on latest version of Linux Mint

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chrissanders/FlowBAT/issues/20#issuecomment-245421271, or mute the thread https://github.com/notifications/unsubscribe-auth/AEN11pdZ_i0yJ0kC8qjZokG4Zpwequksks5qnykSgaJpZM4IZjPC .

MrMxyzptlk commented 7 years ago

Ha, I was all excited...almost done with the install...and then...same error as above. I'm running Mint 18.1, I guess you have to create something for systemd?

Can I manually start it?

automayt commented 7 years ago

Yes, and a symlink for node->nodejs basically. Ubuntu16.04 compatibility is next on the update list. As far as manual starts go, you can either run "sudo service flowbat start" (on 14.04) or node /pathtoflowbatdirectoryhere/private/bundle/main.js. In 16.04 and above you might have to specify nodejs instead of just node.

Dasutin commented 7 years ago

I was able to get it working by using nvm to backport the version of node to 0.10.48.

I also created a systemd service "flowbat.service" in /etc/systemd/system

[Unit]
Description = Starting FlowBAT
After = network.target
[Service]
ExecStart = node /pathtoflowbatdirectoryhere/private/bundle/main.js
[Install]
WantedBy = multi-user.target

Then enable the new service and start it: systemctl enable flowbat.service systemctl start flowbat.service

automayt commented 7 years ago

Thanks for the heads up!

cdnvballer99 commented 7 years ago

Hi, do you have any working installer for Ubuntu 16.04.1 LTS ? I just tried the installation for 1st time, and failed -- proceeded to try to get node.js installed, nvm, and tried the last section posted by Dasutin --

output looks like this: sudo service flowbat status ● flowbat.service - Starting FlowBAT Loaded: loaded (/etc/systemd/system/flowbat.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2017-03-03 14:06:27 PST; 11min ago Main PID: 12083 (code=exited, status=8)

Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at packages/accounts-base/accountscommon.js:141:1 Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at /usr/local/FlowBAT/private/bundle/programs/server/packages/accounts-base.js:243:4 Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at /usr/local/FlowBAT/private/bundle/programs/server/packages/accounts-base.js:1659:3 Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at /usr/local/FlowBAT/private/bundle/programs/server/boot.js:222:10 Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at Array.forEach (native) Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at Function..each._.forEach (/usr/local/FlowBAT/private/bundle/programs/server/node_modules/underscore/underscore.js:79:11) Mar 03 14:06:27 ubuntu-netsrv02 node[12083]: at /usr/local/FlowBAT/private/bundle/programs/server/boot.js:117:5 Mar 03 14:06:27 ubuntu-netsrv02 systemd[1]: flowbat.service: Main process exited, code=exited, status=8/n/a Mar 03 14:06:27 ubuntu-netsrv02 systemd[1]: flowbat.service: Unit entered failed state. Mar 03 14:06:27 ubuntu-netsrv02 systemd[1]: flowbat.service: Failed with result 'exit-code'.

norman25 commented 7 years ago

hum not workin in ubuntu 16.04 lts. next try which ubuntu 14.04 lts and again not works.

root@ubuntu:/home# ./install_flowbat_ubuntu.sh It looks like mongod is running, which could be indicative that you have a meteor app running. Are you sure you want to continue the install of FlowBAT? [y/n] y

Checking installed packages...

Checking for nodejs...

Checking for meteor... ./install_flowbat_ubuntu.sh: line 141: npm: command not found To manually start, stop, or check status of FlowBAT: sudo service flowbat [start/stop/status]

Attempting startup. Check http://127.0.0.1:1800. service flowbat status flowbat stop/waiting

Ondjultomte commented 7 years ago

Any updates here ? I want to get flowbat up and running

chrissanders commented 7 years ago

None yet. This has been on the back burner, but Jason is working on this and we're hoping to have it resolved in the next couple of weeks.

Ondjultomte commented 7 years ago

Is there a high possibility that it will be ready in oct.? Or is it more likely the end of the year?

Dasutin commented 7 years ago

I wrote up some instructions on what worked for me to get FlowBAT installed on Ubuntu 16.04 LTS. This should technically work on later versions of Ubuntu. If I have time I'll see about modifying the install script.

https://gist.github.com/Dasutin/643764bd8069ebf7063c7a9bc7f87893

Ondjultomte commented 7 years ago

I followed your isntructions but fibers install fails. trying to figurethat out now.

npm install fibers /

fibers@2.0.0 install /root/FlowBAT/node_modules/fibers node build.js || nodejs build.js

module.js:328 throw err; ^

Error: Cannot find module '/root/FlowBAT/node_modules/fibers/build.js' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3 module.js:328 throw err; ^

Error: Cannot find module '/root/FlowBAT/node_modules/fibers/build.js' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3 npm ERR! Linux 4.4.0-96-generic npm ERR! argv "/root/.nvm/v0.10.48/bin/node" "/root/.nvm/v0.10.48/bin/npm" "install" "fibers" npm ERR! node v0.10.48 npm ERR! npm v2.15.1 npm ERR! code ELIFECYCLE

npm ERR! fibers@2.0.0 install: node build.js || nodejs build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fibers@2.0.0 install script 'node build.js || nodejs build.js'. npm ERR! This is most likely a problem with the fibers package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build.js || nodejs build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs fibers npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls fibers npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/FlowBAT/npm-debug.log

FlickeringIRoam commented 6 years ago

The pull request here: https://github.com/chrissanders/FlowBAT/pull/28/commits/478430e3f5b746b52ab436e65f55d425ff94fd01 to force meteor to a specific version also fixes the fibers issue on ubuntu 16.04.