Forum

REPORT ERRORS
 
Notifications
Retirer tout

REPORT ERRORS

22 Posts
3 Utilisateurs
0 Reactions
7,235 Vu
(@michelca)
Posts: 23
Active Member
Début du sujet
 
[#7672]

Hi, good day!

I have some problems with reports and KPI's of ProjeQtOr.
There are some reports and KPI's that show this error....  

Does anyone know why it is displayed?

Thanks!
 


 
Posté : 05/08/2021 8:27 pm
(@michelca)
Posts: 23
Active Member
Début du sujet
 

Hi good day!

Yesterday I presented some problems with the reports and KPI's of ProjeQtOr, after making some changes in the temporary directory for the reports and document root (These are in the global settings) the error stopped appearing but now the detail is The image does not appear, only the icon that is missing is displayed.Reviewing, we have realized that when we run the report, if it is sent at the time the report is run but in the records it marks a very different time, in the same way if we review the Log file (in platform management) in the Execution of the report shows a totally different time and therefore does not find the images.

Is there any configuration that needs to be done?

I attach the image and the text that is shown in the Log file.

2021-08-06 09:24:16.581 ===== TRACE ===== NEW CONNECTED USER 'admin' (using remember me feature)2021-08-06 11:03:53.275 ** ERROR ** [V9.1.2] ERROR **2021-08-06 11:03:53.275 ** ERROR ** [V9.1.2] on file '/var/www/html/external/pChart2/class/pImage.class.php' at line (164)2021-08-06 11:03:53.275 ** ERROR ***** [V9.1.2] cause = imagepng(/var/log/projeqtor/documents/files/report/user1_globalCostPlanning_20210806_110353_1.png): failed to open stream: No such file or directory

Thanks!


 
Posté : 06/08/2021 2:49 am
(@babynus)
Posts: 14952
Membre Admin
 

the php user (www-data or apache) must have write rights to directory /var/log/projeqtor/documents/files/report/ 


 
Posté : 09/08/2021 3:20 pm
(@michelca)
Posts: 23
Active Member
Début du sujet
 

Do these permissions have to be given from a confirmation within ProjeQtOr? that is, from global settings or something like that?


 
Posté : 11/08/2021 8:28 pm
(@babynus)
Posts: 14952
Membre Admin
 

No, it is access rights on the system.


 
Posté : 12/08/2021 7:29 pm
(@michelca)
Posts: 23
Active Member
Début du sujet
 

Thanks for your comments. 

Were given write rights but still the image does not appear, we try using another browser but the problem is the same.

In brower inspector  we saw the URL of the imagen and the file name are the same, but i cant see the image.

I think its because the URL point to the file path "/var/log..../user.....jpg" and not to an http address

Is it necessary to make another additional configuration to be able to display the image?

I attach the image.

URL in the browser: src="/var/log/projeqtor/files/report/user1_globalCostPlanning_20210817_123116_1.png"


 
Posté : 18/08/2021 2:46 am
(@babynus)
Posts: 14952
Membre Admin
 

It's because you changed the path to reports (in global parameters / system)
You must define a location "in the web root" so that apache can serve it to users.


 
Posté : 18/08/2021 6:14 pm
(@michelca)
Posts: 23
Active Member
Début du sujet
 

Thanks for your help and comments. 

We did the last comment, but it still shows error, I attach the following images.

In this first image you can see where the "documente root" is located.
 

In the second image you can see that "document root" has the permissions
 

But in this third image you can see the specific new path for the folders, and as you can see, all have the permissions and ownership.
 

If the folders were created, the directories were placed inside "document root", why does it say it has no permissions when you can see that it does?

Also I attach one image of the error in the reports and the last log
 

2021-08-24 13:09:34.988 ** ERROR ** [V9.1.2] on file '/var/www/html/external/pChart2/class/pImage.class.php' at line (164)
2021-08-24 13:09:34.988 ** ERROR ** [V9.1.2] cause = imagepng(/var/www/html/files/report/user1_globalCostPlanning_20210824_130934_1.png): failed to open stream: Permission denied


 
Posté : 25/08/2021 12:51 am
(@babynus)
Posts: 14952
Membre Admin
 

Strange... if user that runs PHP is apache, it should work.
(this is default php user for RedHat-like distros, such as Centos)

Try and chmod 777 the directory report for testing.
 


 
Posté : 25/08/2021 11:42 am
(@sd_dionysus)
Posts: 7
Active Member
 

Sorry, I mistakenly wrote in this thread, moved my question to a separate topic.


 
Posté : 25/08/2021 3:48 pm
(@sd_dionysus)
Posts: 7
Active Member
 

Hello! Please tell me how to fix this error?
2021-08-25 13:50:39.329 ** ERROR ** [V9.2.2] on file '/var/www/html/projeqtor/tool/html.php' at line (2432)
2021-08-25 13:50:39.329 ** ERROR ** [V9.2.2] cause = Undefined variable: title


 


 
Posté : 25/08/2021 3:58 pm
(@michelca)
Posts: 23
Active Member
Début du sujet
 

We tried what you told us but the error is the same, the user if it is Apache.
 

 

Is there another way to correct the error? It is important to mention that this error also occurs in another enviroment that we have with ProjeQtor.

 


 
Posté : 26/08/2021 3:19 am
(@michelca)
Posts: 23
Active Member
Début du sujet
 

Anybody knows what could be the problem?


 
Posté : 30/08/2021 6:39 pm
(@babynus)
Posts: 14952
Membre Admin
 

Possibly you have SELINUX running that blocks access.


 
Posté : 01/09/2021 4:22 pm
(@michelca)
Posts: 23
Active Member
Début du sujet
 

Hi, good day. 

Thanks for your comments and your help. 
Effectively, if SELINUX was activated, we followed an tutorial that only disable selinux for projeqtor,  we disable all the selinux and the error stopped, Now we see only an icon:

 

Also we check the Log inside ProjeQtOr but nothing was shown.
Is there any other option or recommendation for this problem?


 
Posté : 04/09/2021 2:16 am
Page 1 / 2
Share:
Retour en haut