mbolli / nfsen-ng

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

Error creating rrd file: not writable #30

Closed benweltevrede closed 5 years ago

benweltevrede commented 5 years ago

Hello, I am trying to get nfsen-ng to work on Ubuntu 18.04 system. I followed the instructions but when I am trying to import nfdump files I get the message (in /var/log/syslog) nfsen-ng: Error creating /var/www/html/nfsen-ng/backend/datasources/data/1234.rrd: Not writable All the directories from /var/www down are owned by www-data and have rw privileges for www-data. What am I doing wrong?

Dona21 commented 5 years ago

Hi, Did you try to run import with a "normal" user ? Try the import command again with sudo or with root user directly and let me know

benweltevrede commented 5 years ago

Hi, Yes I tried with normal user. If I log on using root I get the error message: nfsen-ng: Was not able to find /var/www/html/nfsen-ng/backend/datasources/data/test_53.rrd (for all rrd files) It did create files, they are owned by root. files

Dona21 commented 5 years ago

Just checked our test system and files are owned by root too, so it should not be a problem. the user www-data needs a read permission on files (to display it in the nfsen-ng frontend) which it seems to have in your case. do you see the erorr message in the logs or in the nfsen-ng frontend ? does your "/var/www/html/nfsen-ng/backend/datasources/data/" directory have the execute pemission for "other" users ?

benweltevrede commented 5 years ago

Thanks for your fast replies! I see the error messages in /var/log/syslog. Yes. The /var/www/html/nfsen-ng/backend/datasources/data/" directory has execute privileges for everyone. (The directories above it have them as well,)

files2

Dona21 commented 5 years ago

you are welcome, my pleasure to help (if I can). did you get this error while trying to start the daemon ? if yes, did you use a normal user ?

benweltevrede commented 5 years ago

Actually I did not start a daemon - just wanted to load existing files (there is no nfcapd daemon running on this machine) But I started the daemon - no error messages: nfsen-ng: CLI: Starting daemon...

benweltevrede commented 5 years ago

Succes! Not sure what I did, but I do get data on the graphs.

Dona21 commented 5 years ago

in an attempt to furether help you, I:

it worked on my side so no clue

Dona21 commented 5 years ago

Oh, I did not see your message. If it works then good news, I close the issue. Have a good day

benweltevrede commented 5 years ago

Thanks for your help! Much appreciated. Ben

From: Dona21 [mailto:notifications@github.com] Sent: Friday, September 13, 2019 3:23 PM To: mbolli/nfsen-ng Cc: benweltevrede; Author Subject: Re: [mbolli/nfsen-ng] Error creating rrd file: not writable (#30)

Oh, I did not see your message. If it works then good news, I close the issue. Have a good day

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbolli/nfsen-ng/issues/30?email_source=notifications&email_token=AMPK6TXC6GGY45RCDP3FOYTQJOH2TA5CNFSM4IWNBDR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6U772Y#issuecomment-531234795, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMPK6TSDDKXY5F2RTEVWPEDQJOH2TANCNFSM4IWNBDRQ.