Thank you!  Everything appears to be working as expected with this fix.

On Sun, Jul 5, 2015 at 1:57 PM, Arianna Avanzini <[email protected]> wrote:
> Il 05/07/2015 21:30, Dan Paulat ha scritto:
>>
>> I had no issues compiling ntopng from source per the README instructions.
>>
>
> Hi Dan,
>
>> Version:
>> v.2.0.150704 [Community Edition]
>> GIT rev: dev:9a1a7ecf4db4c2929e202fcc7558c68bc74b94a6:20150704
>>
>> System:
>> 4.0.5-200.fc21.x86_64 #1 SMP Mon Jun 8 16:25:02 UTC 2015 x86_64 x86_64
>> x86_64 GNU/Linux
>>
>> When running ntopng from the command-line with no arguments, or using
>> the below config file, from the installation directory
>> (/usr/local/ntopng-2.0), everything seems to work as expected, with no
>> errors.  However, when running outside the installation directory,
>> with a configuration file, I cannot seem to get ntopng to initialize.
>> I get the following error:
>>
>> [src/Ntop.cpp:194] ERROR: Invalid directory  specified
>>
>> Looking at the source, this seems to be related to the data directory.
>> As follows are the contents of /etc/ntopng/ntopng.conf:
>>
>> -G=/var/run/ntopng/ntopng.pid
>> --data-dir=/var/ntopng
>> --httpdocs-dir=/usr/local/ntopng-2.0/httpdocs
>> --scripts-dir=/usr/local/ntopng-2.0/scripts
>> --callbacks-dir=/usr/local/ntopng-2.0/scripts/callbacks
>> --daemon
>> -i=eth0
>>
>
> I have just pushed to the dev branch of the github repository a fix that
> should allow you to achieve such a configuration. Please do try the latest
> dev branch or wait for tomorrow's nightly.
> You will need to add the --install-dir parameter to your config file and
> specify the root folder where you have your ntopng binary and scripts (e.g.
> /home/user/ntopng), it is the very same directory you cloned from github.
> With that you should be able to run ntopng from outside the installation
> directory.
>
> Thanks,
> Arianna
>
>
>> The directory I believe might be causing issues:
>>
>> # ls -alZ /var/ntopng/
>> drwxrwxrwx. root root system_u:object_r:var_t:s0       .
>> drwxr-xr-x. root root system_u:object_r:var_t:s0       ..
>> drwxrwxrwx. root root system_u:object_r:var_t:s0       0
>> -rw-rw-rw-. root root system_u:object_r:var_t:s0       ntopng.log
>> # cat /var/ntopng/ntopng.log
>> 04/Jul/2015 14:05:05 [src/Ntop.cpp:194] ERROR: Invalid directory
>> specified
>>
>> It can obviously write to the directory (at least as root), and based
>> on permissions above, shouldn't have any issues writing as the default
>> user "nobody".  The selinux audit log didn't contain any denials, and
>> just as a sanity check, I temporarily set the selinux enforce mode to
>> permissive to no avail.
>>
>> Any suggestions to get this running are greatly appreciated.
>>
>> Thanks!
>> _______________________________________________
>> Ntop mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>
>
>
> --
> /*
>  * Arianna Avanzini
>  * [email protected]
>  * http://ava.webhop.me
>  */
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to