Afanasy Statistics

Installation and configuration.
vdobrv
Posts: 16
Joined: Thu May 03, 2018 2:28 pm

Afanasy Statistics

Post by vdobrv » Mon Feb 03, 2020 3:26 pm

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
Attachments
aferror11.jpg
aferror11.jpg (130.85 KiB) Viewed 253 times
aferror.jpg
aferror.jpg (54.59 KiB) Viewed 253 times

vdobrv
Posts: 16
Joined: Thu May 03, 2018 2:28 pm

Re: Afanasy Statistics

Post by vdobrv » Mon Feb 03, 2020 3:47 pm

WARNING: SERVER ADDRESS ID - I changed the server address to ip, but this removed only the inscription about an unassigned ip

User avatar
timurhai
Site Admin
Posts: 546
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afanasy Statistics

Post by timurhai » Mon Feb 03, 2020 4:04 pm

Hi.
Have you installed libapache2-mod-php and php-pgsql?
(And restarted apache2?)
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

vdobrv
Posts: 16
Joined: Thu May 03, 2018 2:28 pm

Re: Afanasy Statistics

Post by vdobrv » Mon Feb 03, 2020 4:13 pm

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?

User avatar
timurhai
Site Admin
Posts: 546
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afanasy Statistics

Post by timurhai » Mon Feb 03, 2020 4:58 pm

It work now on php7.

Statistics pushes Afserver to PSQL database.
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

vdobrv
Posts: 16
Joined: Thu May 03, 2018 2:28 pm

Re: Afanasy Statistics

Post by vdobrv » Mon Feb 03, 2020 5:28 pm

OK, But where is the data on the afserver, which then goes to the DB?

User avatar
timurhai
Site Admin
Posts: 546
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afanasy Statistics

Post by timurhai » Tue Feb 04, 2020 9:16 am

Hi.
Afserver pushes data(a row) into DB on some event (task start, stop, job deletion, etc.).
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

vdobrv
Posts: 16
Joined: Thu May 03, 2018 2:28 pm

Re: Afanasy Statistics

Post by vdobrv » Tue Feb 04, 2020 2:15 pm

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?
Attachments
Annotation 2020-02-04 170749.jpg
Annotation 2020-02-04 170749.jpg (141.75 KiB) Viewed 193 times
Annotation 2020-02-04 170748.jpg
Annotation 2020-02-04 170748.jpg (136.29 KiB) Viewed 193 times

vdobrv
Posts: 16
Joined: Thu May 03, 2018 2:28 pm

Re: Afanasy Statistics

Post by vdobrv » Tue Feb 04, 2020 2:16 pm

In the database itself, rows and columns are created
Attachments
Annotation 2020-02-04 171213.jpg
Annotation 2020-02-04 171213.jpg (116.77 KiB) Viewed 192 times
Annotation 2020-02-04 171212.jpg
Annotation 2020-02-04 171212.jpg (107.24 KiB) Viewed 192 times

User avatar
timurhai
Site Admin
Posts: 546
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afanasy Statistics

Post by timurhai » Tue Feb 04, 2020 2:34 pm

Try to see server logs (afserver process output).
And firefox (web browser) console for errors.
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests