Scheduled tasks are not executing because of database credentials stored in the server environment variable.

Scheduled tasks are not executing because of database credentials stored in the server environment variable.

by Shravan K -
Number of replies: 2

Hi Team,

Due to security concerns, we stored the database credentials in the server environment variable instead of direct use in config.php. LMS is working fine, but all scheduled tasks are getting failed. Please help here to resolve the issue. Thank you!

Average of ratings: -
In reply to Shravan K

Re: Scheduled tasks are not executing because of database credentials stored in the server environment variable.

by Shravan K -
Hello Team,

Any updates on the above post?
In reply to Shravan K

Re: Scheduled tasks are not executing because of database credentials stored in the server environment variable.

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Shravan,

Whatever mechanism you are using to define those environment variables needs to be replicated in the environment/process that is executing cron