Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Cron scrip...
 
Notifications
Clear all

[SOLVED] Cron script issue

10 Posts
2 Users
0 Reactions
2,318 Views
(@nhedhili)
Posts: 79
Active Member
Topic starter
 
[#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.


 
Posted : 23 Apr 2025 9H24
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 23 Apr 2025 13H44
(@nhedhili)
Posts: 79
Active Member
Topic starter
 

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


 
Posted : 26 Apr 2025 9H48
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Issue is fixed.
Available through subscription service


 
Posted : 04 May 2025 2H44
(@nhedhili)
Posts: 79
Active Member
Topic starter
 

thank you


 
Posted : 06 May 2025 20H52
(@nhedhili)
Posts: 79
Active Member
Topic starter
 

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.


 
Posted : 16 May 2025 12H45
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 16 May 2025 13H38
(@nhedhili)
Posts: 79
Active Member
Topic starter
 

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


 
Posted : 16 May 2025 14H43
(@nhedhili)
Posts: 79
Active Member
Topic starter
 

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
"""
 
 


 
Posted : 16 May 2025 15H35
(@nhedhili)
Posts: 79
Active Member
Topic starter
 

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. 


 
Posted : 16 May 2025 17H52
Share:

Scroll to Top