Git Product home page Git Product logo

Comments (6)

javsalgar avatar javsalgar commented on August 22, 2024

Hi,

Thanks for letting us know. We will try to reproduce the issue to see if the warning appears to us as well.

from bitnami-docker-moodle.

javsalgar avatar javsalgar commented on August 22, 2024

Hi,

In the first test I did, I just did this small operation inside the container.

sed -i 's|/dev/null|/tmp/test|g' /etc/cron.d/moodle

Then:

cat /tmp/test

Scheduled task complete: Incoming email pickup (tool_messageinbound\task\pickup_task)
Execute scheduled task: Cleanup event monitor events (tool_monitor\task\clean_events)
... started 10:26:02. Current memory use 25.3MB.
... used 0 dbqueries
... used 0.00020694732666016 seconds
Scheduled task complete: Cleanup event monitor events (tool_monitor\task\clean_events)
Cron script completed correctly
Cron completed at 10:26:02. Memory used 25.3MB.
Execution took 0.470763 seconds

Could you check if this is ocurring in your container as well? If so, then the problem is that the Moodle web-app is not detecting that the cron job is being executed.

from bitnami-docker-moodle.

AlvaroBrey avatar AlvaroBrey commented on August 22, 2024

Hi,

It would seem that the cron script is simply not running in my deployment. /tmp/test is never created after doing what you suggest.

from bitnami-docker-moodle.

AlvaroBrey avatar AlvaroBrey commented on August 22, 2024

I've changed the /etc/cron.d/moodle contents to:

*/1 * * * * echo "run" > /tmp/test2; bitnami sudo su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php /opt/bitnami/moodle/admin/cli/cron.php > /tmp/test"

And even /tmp/test2 isn't created either. However, service cron status returns cron is running. I'm dumbfounded.

from bitnami-docker-moodle.

AlvaroBrey avatar AlvaroBrey commented on August 22, 2024

After some more tests, I am inclined to believe it was a permission issue due to the persistence volumes being bind-mounted rather than named volumes. Just restarting the container seems to have solved it.

To anyone that may find this issue in the future: don't try to bind-mount these volumes, and be very careful with file ownership if you do.

from bitnami-docker-moodle.

javsalgar avatar javsalgar commented on August 22, 2024

Hi,

Thanks for letting us know. Bind mounting folders is always problematic when working with docker. This is even worse in the case of non-root containers. If you find any other issues, do not hesitate to open a new ticket

from bitnami-docker-moodle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.