mbolli / nfsen-ng

Responsive NetFlow visualizer built on top of nfdump tools.
Apache License 2.0
231 stars 43 forks source link

FrontEnd error: "General error: The requested URL was not found on this server" #60

Closed phila6 closed 4 years ago

phila6 commented 4 years ago

Hi,

This is a new install(and thank you for making this, very curios about NFsen updated fronteng). After install and starting the backend process, when opening frontend page I see an error: General error: The requested URL was not found on this server

Not sure where to go and how to troubleshoot.

Screen Shot 2020-08-18 at 2 15 59 PM

Thanks,

Dona21 commented 4 years ago

Hi,

Do you have something additional that could be used to help you ? Some log messages for both apache and nfsen-ng could be useful to help you somehow

phila6 commented 4 years ago

Hi,

There is nothing meaningful in apache logs. Where does nfsen-ng log to? And what should I set log level to?

Dona21 commented 4 years ago

Hi,

What OS is nfsen-ng running onto ? I tried to deploy nfsen-ng on two test servers and it works out of the box. I therefore assume that this comes from either an error in following the installation instructions, the missing configuration of settings.php or missing nfcapd data (nfsen-ng is only a visualizer, it wont do anything if you miss data).

(*) a common mistake that could lead to the capture you attached could be a wrong configuration of the apache configuration file. Double check that you have this for the directory "/var/www/":

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

instead of that

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>
mbolli commented 4 years ago

Closing this because of inactivity.

doneckglobus commented 1 year ago

Similar problem: Ubuntu 22.04

apache2.conf: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted

000-default.conf : ServerAdmin webmaster@localhost ServerName 192.168.76.133 DocumentRoot /var/www/html/nfsen-ng/frontend

nfdump process: nfcapd -D S 1 -w /var/nfdump/profiles_data/live/Bras/ -P /var/run/ntpd.pid -p 2055

settings.php.dist:

<?php /**

$nfsen_config = array( 'general' => array( 'ports' => array( 2055 ), 'sources' => array( 'Bras' ), 'db' => 'RRD', 'processor' => 'NfDump', ), 'frontend' => array( 'reload_interval' => 60, 'defaults' => array( 'view' => 'graphs', // graphs, flows, statistics 'graphs' => array( 'display' => 'sources', // sources, protocols, ports 'datatype' => 'flows', // flows, packets, bytes 'protocols' => array('any'), // any, tcp, udp, icmp, others (multiple possible if display=protocols) ), 'flows' => array( 'limit' => 50, ), 'statistics' => array( 'order_by' => 'bytes', ), ), ), 'nfdump' => array( 'binary' => '/usr/local/bin/nfdump', 'profiles-data' => '/var/nfdump/profiles-data', 'profile' => 'live', 'max-processes' => 1, // maximum number of concurrently running nfdump processes ), 'db' => array( 'Akumuli' => array( //'host' => 'localhost', //'port' => 8282, ), 'RRD' => array() ), 'log' => array( 'priority' => LOG_INFO, // LOG_DEBUG is very talkative! ) );


Аt startup cli.php start I get an error:

PHP Warning: Trying to access array offset on value of type null in /var/www/html/nfsen-ng/backend/common/debug.php on line 31

doneckglobus commented 1 year ago

image

doneckglobus commented 1 year ago

The program was compiled from sources

/var/nfdump/profiles_data/live/Bras/2023/03/24/ total 188 drwxr-xr-x 2 www-data www-data 4096 Mar 24 01:55 ./ drwxr-xr-x 3 www-data www-data 4096 Mar 24 01:50 ../ -rw-r--r-- 1 www-data www-data 34089 Mar 24 01:50 nfcapd.202303240145 -rw-r--r-- 1 www-data www-data 143721 Mar 24 01:55 nfcapd.202303240150

mbolli commented 1 year ago

@doneckglobus do you have apache mod_rewrite installed and enabled?

Dona21 commented 1 year ago

@doneckglobus not sure if related or not but in any case, you mentioned the file "settings.php.dist:" however, please note that this is not used. You should rename it "settings.php". Cheers

doneckglobus commented 1 year ago

@doneckglobus do you have apache mod_rewrite installed and enabled?

Yes, I did according to the instructions for Ubuntu 22.04

doneckglobus commented 1 year ago

@doneckglobus not sure if related or not but in any case, you mentioned the file "settings.php.dist:" however, please note that this is not used. You should rename it "settings.php". Cheers

It didn't help

doneckglobus commented 1 year ago

I solved the problem - an error to configure

doneckglobus commented 1 year ago

It is a pity, it is impossible to display graphs for one user