-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Unable to start HTTP server #2
Comments
Additional Info: This issue happens only on a VM. Ntopng starts fine on physical box. |
Hi, thanks for the report. Could you provide some more details about the VM setup? E.g. network configuration. Thanks, |
Hi Arianna [paasusr@ucf2b-docs-psr0427-ms1 ~]$ ifconfig lo Link encap:Local Loopback Please let me know what other info is reqd. OS version is mentioned in the bug. |
@chris4269 you seem to be starting ntopng as a non-privileged user. Have you tried starting it as superuser (e.g. sudo ./ntopng)? |
Any chance to provide SSH access to your box to debug the issue locally? |
What Linux distribution are you using exactly ? Please use the GIT code as we have made fixes in the past days (you said you are using the SVN code) |
We cannot support you if you use an old code version. Please update to github and try again |
@chris4269 ntopng 1.2.1 is a really old version. Could you please clone this repo and try it? Or just grab some nightly build from the repo. |
Question: The issue @chris4269 is facing seems to be different from what I have reported. In my case I ran ntopng as root and specifying the interface did not help. The error message is different also. Perhaps it needs to be tracked as a new bug? The version I used was |
@atin001 Probably you should, but still, from the log you reported it seems you are not using the very latest code. Could you please try with the latest github code and, if you still see the error, file a new issue? Thanks. |
Like I have said we cannot support you unless you give access to your box where we can reproduce the bug. |
@chris4269, please do try to install the latest ntopng. It is version 1.99 and you can download it from this very same repo. Version 1.2.1 is very old. |
@chris4269 you can git clone version 1.99 from https://github.com/ntop/ntopng.git |
@chris4269, use git (available for all Linux distributions as a package) and do |
@chris4269 after you have installed all dependencies, prior to do ./configure, you have to git clone https://github.com/ntop/nDPI.git and compile it. |
ERROR: Unable to start HTTP server (IPv4) on ports 3000 sudo ./ntopng |
i'ts ok I just discovered Raspbian (August image) has no IPv6 enabled by default. To solve this, I used "sudo nano /etc/modules", added "ipv6" at the end, and rebooted. |
@chris4269 commit b72bba5 should add a workaround which should allow you to now use ntopng even with IPv6 disabled |
Add local networks alias configuration
Fixes Thread 15 "TrPoolWorker" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffc9df4700 (LWP 314)] 0x000000000047e743 in Mac::incnDPIStats (this=0x7fff7a30a080, when=1572439200, ndpi_category=NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, sent_packets=0, sent_bytes=0, sent_goodput_bytes=0, rcvd_packets=1, rcvd_bytes=60, rcvd_goodput_bytes=2) at /home/deri/ntopng/include/Mac.h:140 140 stats->incnDPIStats(when, ndpi_category, sent_packets, sent_bytes, sent_goodput_bytes, (gdb) bt #0 0x000000000047e743 in Mac::incnDPIStats (this=0x7fff7a30a080, when=1572439200, ndpi_category=NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, sent_packets=0, sent_bytes=0, sent_goodput_bytes=0, rcvd_packets=1, rcvd_bytes=60, rcvd_goodput_bytes=2) at /home/deri/ntopng/include/Mac.h:140 #1 0x00000000004715b0 in Flow::periodic_stats_update (this=0x7ffee7685d50, user_data=0x7fffc9df3880, quick=true) at src/Flow.cpp:1154 #2 0x000000000048a175 in host_flow_update_stats (node=0x7ffee7685d50, user_data=0x7fffc9df3880, matched=0x7fffc9df37db) at src/NetworkInterface.cpp:2647 #3 0x00000000004596f4 in GenericHash::walk (this=0x4ab5ee0, begin_slot=0x7fffc9df387c, walk_all=true, walker=0x48a119 <host_flow_update_stats(GenericHashEntry*, void*, bool*)>, user_data=0x7fffc9df3880) at src/GenericHash.cpp:192 #4 0x000000000048365c in NetworkInterface::walker (this=0x113a570, begin_slot=0x7fffc9df387c, walk_all=true, wtype=walker_flows, walker=0x48a119 <host_flow_update_stats(GenericHashEntry*, void*, bool*)>, user_data=0x7fffc9df3880) at src/NetworkInterface.cpp:859 #5 0x000000000048a4e2 in NetworkInterface::periodicStatsUpdate (this=0x113a570) at src/NetworkInterface.cpp:2739 #6 0x00000000004cb574 in ntop_periodic_stats_update (vm=0x7fff91cf4e48) at src/LuaEngine.cpp:5891 #7 0x0000000000589a04 in luaD_precall () #8 0x0000000000595025 in luaV_execute () #9 0x0000000000589ccf in luaD_call () #10 0x0000000000589d21 in luaD_callnoyield () #11 0x000000000058913f in luaD_rawrunprotected () #12 0x000000000058a03d in luaD_pcall () #13 0x000000000058746f in lua_pcallk () #14 0x000000000053f280 in LuaHandler::luaL_dofileM (this=0x7fff90d5bb00, execute=true) at pro/LuaHandler.cpp:32 #15 0x00000000004d866f in __ntop_lua_handlefile (L=0x7fff91cf4e48, script_path=0x7fff8c0008e0 "/home/deri/ntopng/scripts/callbacks/interface/stats_update.lua", ex=true) at src/LuaEngine.cpp:10107 #16 0x00000000004d99ae in LuaEngine::run_script (this=0x7fff9076c530, script_path=0x7fff8c0008e0 "/home/deri/ntopng/scripts/callbacks/interface/stats_update.lua", iface=0x113a570, load_only=false) at src/LuaEngine.cpp:11095 #17 0x00000000004aa6c5 in ThreadedActivity::runScript (this=0xae03410, script_path=0x7fff8c0008e0 "/home/deri/ntopng/scripts/callbacks/interface/stats_update.lua", iface=0x113a570) at src/ThreadedActivity.cpp:232 #18 0x00000000004e435c in ThreadPool::run (this=0xacc4620) at src/ThreadPool.cpp:100 #19 0x00000000004e3f3f in doRun (ptr=0xacc4620) at src/ThreadPool.cpp:31 #20 0x00007ffff65bd6ba in start_thread (arg=0x7fffc9df4700) at pthread_create.c:333 #21 0x00007ffff490941d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 (gdb) f 140 #0 0x0000000000000000 in ?? () (gdb) f 0 #0 0x000000000047e743 in Mac::incnDPIStats (this=0x7fff7a30a080, when=1572439200, ndpi_category=NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, sent_packets=0, sent_bytes=0, sent_goodput_bytes=0, rcvd_packets=1, rcvd_bytes=60, rcvd_goodput_bytes=2) at /home/deri/ntopng/include/Mac.h:140 140 stats->incnDPIStats(when, ndpi_category, sent_packets, sent_bytes, sent_goodput_bytes, (gdb) p stats $1 = (MacStats *) 0x0
Leak trace: Direct leak of 14 byte(s) in 1 object(s) allocated from: #0 0x564eb47ef589 in strdup (/home/emanuele/src/ntopng/ntopng+0x15a589) #1 0x564eb4ad5d85 in ZMQParserInterface::parsePENNtopField(ParsedFlow*, unsigned int, ParsedValue*) const /home/emanuele/src/ntopng/src/ZMQParserInterface.cpp:556:25 #2 0x564eb4adae10 in ZMQParserInterface::parseSingleTLVFlow(ndpi_serializer*, unsigned char) /home/emanuele/src/ntopng/src/ZMQParserInterface.cpp:1237:14 #3 0x564eb4adbd3e in ZMQParserInterface::parseTLVFlow(char const*, int, unsigned char, void*) /home/emanuele/src/ntopng/src/ZMQParserInterface.cpp:1423:8 #4 0x564eb4ad06a1 in ZMQCollectorInterface::collect_flows() /home/emanuele/src/ntopng/src/ZMQCollectorInterface.cpp:421:38 #5 0x564eb4ad105f in packetPollLoop(void*) /home/emanuele/src/ntopng/src/ZMQCollectorInterface.cpp:469:10 #6 0x7fc0b4a0b46e in start_thread (/usr/lib/libpthread.so.0+0x946e)
Ignore ntopng build files.
I have installed ntopng and redis server successfully on one of my VMs
Not able to start ntopng. The error that I am facing is as follows
[root@ucf2b-docs-psr0427-ms1 bin]# ./ntopng
30/Apr/2015 10:48:53 [Ntop.cpp:779] Setting local networks to 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,127.0.0.0/8,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32,127.0.0.0/8
30/Apr/2015 10:48:53 [Redis.cpp:93] Successfully connected to Redis 127.0.0.1:6379@0
30/Apr/2015 10:48:54 [main.cpp:201] ERROR: Startup error: missing super-user privileges ? (I am already running as su!)
[root@ucf2b-docs-psr0427-ms1 bin]# ./ntopng -i eth0
30/Apr/2015 10:48:57 [Ntop.cpp:779] Setting local networks to 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,127.0.0.0/8,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32,127.0.0.0/8
30/Apr/2015 10:48:57 [Redis.cpp:93] Successfully connected to Redis 127.0.0.1:6379@0
30/Apr/2015 10:48:57 [PcapInterface.cpp:81] Reading packets from interface eth0...
30/Apr/2015 10:48:57 [Ntop.cpp:1027] Registered interface view eth0 [id: 0]
30/Apr/2015 10:48:57 [Ntop.cpp:997] Registered interface eth0 [id: 0]
30/Apr/2015 10:48:57 [Utils.cpp:277] User changed to nobody
30/Apr/2015 10:48:57 [main.cpp:227] PID stored in file /var/tmp/ntopng.pid
30/Apr/2015 10:48:57 [HTTPserver.cpp:449] HTTPS Disabled: missing SSL certificate /usr/local/share/ntopng/httpdocs/ssl/ntopng-cert.pem
30/Apr/2015 10:48:57 [HTTPserver.cpp:451] Please read https://svn.ntop.org/svn/ntop/trunk/ntopng/README.SSL if you want to enable SSL.
30/Apr/2015 10:48:57 [HTTPserver.cpp:486] ERROR: Unable to start HTTP server (IPv4) on ports 3000 (no su error now!)
Confirmed that 3000 port is not in use
[root@ucf2b-docs-psr0427-ms1 bin]# netstat -nap|grep 3000
[root@ucf2b-docs-psr0427-ms1 bin]#
Tried to start it on a different port just in case
[root@ucf2b-docs-psr0427-ms1 bin]# ./ntopng -i eth0 -w 25436
30/Apr/2015 10:58:15 [Ntop.cpp:779] Setting local networks to 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,127.0.0.0/8,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32,127.0.0.0/8
30/Apr/2015 10:58:15 [Redis.cpp:93] Successfully connected to Redis 127.0.0.1:6379@0
30/Apr/2015 10:58:15 [PcapInterface.cpp:81] Reading packets from interface eth0...
30/Apr/2015 10:58:15 [Ntop.cpp:1027] Registered interface view eth0 [id: 0]
30/Apr/2015 10:58:15 [Ntop.cpp:997] Registered interface eth0 [id: 0]
30/Apr/2015 10:58:15 [Utils.cpp:277] User changed to nobody
30/Apr/2015 10:58:15 [main.cpp:227] PID stored in file /var/tmp/ntopng.pid
30/Apr/2015 10:58:15 [HTTPserver.cpp:449] HTTPS Disabled: missing SSL certificate /usr/local/share/ntopng/httpdocs/ssl/ntopng-cert.pem
30/Apr/2015 10:58:15 [HTTPserver.cpp:451] Please read https://svn.ntop.org/svn/ntop/trunk/ntopng/README.SSL if you want to enable SSL.
30/Apr/2015 10:58:15 [HTTPserver.cpp:486] ERROR: Unable to start HTTP server (IPv4) on ports 25436
Enabled SSL and tried to start it
[root@ucf2b-docs-psr0427-ms1 bin]# ./ntopng -i eth0 -w 25436 -s
30/Apr/2015 10:58:19 [Ntop.cpp:779] Setting local networks to 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,127.0.0.0/8,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32,127.0.0.0/8
30/Apr/2015 10:58:19 [Redis.cpp:93] Successfully connected to Redis 127.0.0.1:6379@0
30/Apr/2015 10:58:19 [PcapInterface.cpp:81] Reading packets from interface eth0...
30/Apr/2015 10:58:19 [Ntop.cpp:1027] Registered interface view eth0 [id: 0]
30/Apr/2015 10:58:19 [Ntop.cpp:997] Registered interface eth0 [id: 0]
30/Apr/2015 10:58:19 [main.cpp:227] PID stored in file /var/tmp/ntopng.pid
30/Apr/2015 10:58:19 [HTTPserver.cpp:486] ERROR: Unable to start HTTP server (IPv4) on ports 25436,3001s
Checked /var/log/messages and /var/tmp/ntopng to see if there are any logs but couldn’t find anything relevant.
The text was updated successfully, but these errors were encountered: