Forum

[SOLVED] Cron scrip...
 
Notifications
Retirer tout

[SOLVED] Cron script issue

10 Posts
2 Utilisateurs
0 Reactions
2,280 Vu
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 
[#9830]

Hello,
we mopoved to version 12.1.1 the cron stops more frequentlty in this version for us.
we were using the cron script ( the standard cron script provided here in the forum ) to activate the cron automatiquely when it stops. We noticed that in this version the cron script does not work any more and it sends the flolowing error ( image file joined ).

Thank you for your help and assistance.


 
Posté : 23/04/2025 9:24 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

We did not change anything on the part of code (headerFunctions.php, line 108)

Reading issue you face, I guess taht you not only migrated to new projeqtor version, but you also upgraded PHP version.
So this may be new restriction on new PHP version.
We'll fix this


 
Posté : 23/04/2025 1:44 pm
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 

Thank you for your reply.
Do you need the actual version of PHP on which we are working ?


 
Posté : 26/04/2025 9:48 am
(@babynus)
Posts: 14952
Membre Admin
 

Issue is fixed.
Available through subscription service


 
Posté : 04/05/2025 2:44 am
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 

thank you


 
Posté : 06/05/2025 8:52 pm
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 

Hi,

The problem is when the script call Projeqtor APIs (Cron/check and Cron/start)  using this URL https://projeqtor_host/projeqtor/api/index.php?uri=Cron/check, we got error 302 from the apache server as mentionned below: 
"""
[auth_basic:error] [pid 3037303] [client 37.60.228.139:43642] AH01617: user projeqtor_cron: authentication failure for "/projeqtor/api/index.php": Password Mismatch
"""
The user is created on projeqtoria and the password is encrypted and defined in .htpasswd and also added into the script for authentication.

The script was working and we didn't change the user credentials but then suddenly we got this authentication failure.


 
Posté : 16/05/2025 12:45 pm
(@babynus)
Posts: 14952
Membre Admin
 

This is another subject.
As you did a migration, check that you did not loose .htpasswd


 
Posté : 16/05/2025 1:38 pm
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 

.htpasswd exists and is mentionned into .htaccess file under /api directory.


 
Posté : 16/05/2025 2:43 pm
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 

Please can you check with me .htaccess content
"""
AuthUserFile "/srv/.htpasswd"
AuthName "ProjeQtOr" 
AuthType Basic
require valid-user
"""
When I comment those lines then it works. 

This is .htpasswd file owner and permissions
"""
-rw-r--r--  1 www-data www-data   96 May 16 13:02 .htpasswd
"""
 
 


 
Posté : 16/05/2025 3:35 pm
(@nhedhili)
Posts: 79
Estimable Member
Début du sujet
 

We created a new user and generated new .htpasswd which contains new user password and into the script we added the corresponding plain-text password not the encrypted one and it's working now.

Thank you once again. 


 
Posté : 16/05/2025 5:52 pm
Share:
Retour en haut