Page 1 of 3

Afanasy Statistics

Posted: Mon Feb 03, 2020 3:26 pm
by vdobrv
Hello

I have some problems collecting statistics from Athanasius
I did everything according to the instructions. Athanasius works
Database connected
Added PSQL and apache, in apache I registered the path to the cgru/afanasy/statistics/index.html
But when I open the link, I get lines of red code
What am I doing wrong?

OS Ubuntu 18.04
Afanasy 2.3.1
Afanasy, PSQL, Apache - one server

Re: Afanasy Statistics

Posted: Mon Feb 03, 2020 3:47 pm
by vdobrv
WARNING: SERVER ADDRESS ID - I changed the server address to ip, but this removed only the inscription about an unassigned ip

Re: Afanasy Statistics

Posted: Mon Feb 03, 2020 4:04 pm
by timurhai
Hi.
Have you installed libapache2-mod-php and php-pgsql?
(And restarted apache2?)

Re: Afanasy Statistics

Posted: Mon Feb 03, 2020 4:13 pm
by vdobrv
AAAAAAA

it was necessary to write just php, and I wrote from the instructions php5
Now I read that there is no php5, there is now php7
I did it, it worked, thanks a lot!

And another question, where does the statistics come from, from which file or folder?

Re: Afanasy Statistics

Posted: Mon Feb 03, 2020 4:58 pm
by timurhai
It work now on php7.

Statistics pushes Afserver to PSQL database.

Re: Afanasy Statistics

Posted: Mon Feb 03, 2020 5:28 pm
by vdobrv
OK, But where is the data on the afserver, which then goes to the DB?

Re: Afanasy Statistics

Posted: Tue Feb 04, 2020 9:16 am
by timurhai
Hi.
Afserver pushes data(a row) into DB on some event (task start, stop, job deletion, etc.).

Re: Afanasy Statistics

Posted: Tue Feb 04, 2020 2:15 pm
by vdobrv
Hi
Today I launched three tasks, they were completed, but there is no information about them in the statistics
Tell me, what could I miss?

Re: Afanasy Statistics

Posted: Tue Feb 04, 2020 2:16 pm
by vdobrv
In the database itself, rows and columns are created

Re: Afanasy Statistics

Posted: Tue Feb 04, 2020 2:34 pm
by timurhai
Try to see server logs (afserver process output).
And firefox (web browser) console for errors.