View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Cron for start ProjeQtOr Cron Process - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

[SOLVED] Cron for start ProjeQtOr Cron Process

More
04 Aoû 2023 19:22 - 16 Aoû 2023 09:35 #1 by sharky
Hi,
I try to put a cron that restarts the ProjeQtor cron by following this procedure:
www.projeqtor.org/en/forum/9-tips-tricks...ss-is-always-running

I created the user in ProjeQtor, secured the /api folder according to the documentation.
Create the script PHP by copying the information and adapting values: URL, user and password.
If I open the page directly in the browser: Info: Starting ProjeQtOr cron process for https://[my URL]/ Error: failed to start ProjeQtOr cron process

What questions me is that the API folder is empty for me is and in the downloaded zip.
On the other hand, the script uses API sub-folders
$fullUrl=$siteUrl."api/Cron/check";
or
$fullUrl=$siteUrl."api/Cron/start";

Is something missing?
What else can I control?

Thanks for your help
sharky
Last edit: 16 Aoû 2023 09:35 by sharky.

Please Connexion or Create an account to join the conversation.

More
04 Aoû 2023 19:41 - 04 Aoû 2023 19:41 #2 by sharky
Hello,

I also tried doing a bash .sh, but I got the same error.
It was the header that gave me the idea
#!/usr/bin/php
Last edit: 04 Aoû 2023 19:41 by sharky.

Please Connexion or Create an account to join the conversation.

More
14 Aoû 2023 18:11 #3 by babynus
Possibly access to API is wrong.
Check htaccess...

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
14 Aoû 2023 20:00 #4 by sharky
Hi,

Thank you.

I have try : remove login, comment in .htaccess
# AuthUserFile "./.htpasswd"
# AuthName "Projets"
# AuthType Basic
# require valid-user
Result
{"error":"invalid API query", "message":""user '' unknown in database""}

I created the user with the same password in my ProjeQtor instance
But I can't access the api folder
I created the .htpasswd using the command
htpasswd -c -B .htpasswd CronJobTask

I also tested with a generator
www.web2generators.com/apache-tools/htpasswd-generator

Same issue
Warning: Spoiler!

other ideas

Please Connexion or Create an account to join the conversation.

More
14 Aoû 2023 20:17 #5 by sharky
Yes !

With full path .htapasswd in .htaccess ;)

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.042 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.