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

[SOLVED] Cron for start ProjeQtOr Cron Process

More
04 Aug 2023 19:22 - 16 Aug 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 Aug 2023 09:35 by sharky.

Please Log in or Create an account to join the conversation.

More
04 Aug 2023 19:41 - 04 Aug 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 Aug 2023 19:41 by sharky.

Please Log in or Create an account to join the conversation.

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

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
14 Aug 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 Log in or Create an account to join the conversation.

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

With full path .htapasswd in .htaccess ;)

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.040 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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