mbolli / nfsen-ng

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

why not #29

Closed BEncounter closed 4 years ago

BEncounter commented 5 years ago

Got 503 - Service unavailable. NfDump: Internal error. stat() error '/var/nfdump/profiles_data/live/source1/2019/07/31/nfcapd.201907310405': Permission denied

Dona21 commented 5 years ago

Hi,

Probably some issues with files or folders permissions. Try to execute this command and post back the result :

ls -la /var/nfdump/profiles_data/live/source1/2019/07/31/

fernandezteran commented 4 years ago

Hi, sorry for revive this issue but i have the same problem and don't find any sollution.

I'm pretty sure that i have the right permissions in my nfcapd files. Any idea?

Kind reggards.

Dona21 commented 4 years ago

Hi @fernandezteran ,

Which operating system?

Please share the output of the command you are running and the subsequent error message(s).

Any useful syslog messages related to this matter could also help.

Kind regards

perceival commented 2 years ago

Looks like problem with selinux. You need to import following type enforcement file:

module nfsen 1.0;

require {
        type init_t;
        type httpd_t;
}

#============= httpd_t ==============

allow httpd_t var_t:file { getattr read };
allow httpd_t var_t:file open;

#============= init_t ==============

allow init_t httpd_sys_content_t:file { open read unlink };
allow init_t httpd_sys_content_t:file ioctl;