Forums

error starting web2py scheduler on pythoneverywhere

I'm following indications at How to run the web2py scheduler on PythonAnywhere. It's OK when I launch

python3.7 /home/oscarHR/scheduler_oscar_app.py

from bash console, web2py scheduler tasks starts running.

But when the same instruction is launched from pythoneverywhere task it doesnt run. The log says:

rm: cannot remove '/mnt/chroots/oscarHR/fishnchips/dev/shm': Device or resource busy
Failed to acquire lock, task must already be running
2021-04-18 12:27:07 -- Completed task, took 2.52 seconds, return code was 0.

sorry. I was looking for problems concerning to web2py scheduler, but I just see the previous topic on the forum ( Error in Task log-files: Device or resource busy)concerns to a very alike problem.

rm: cannot remove '/mnt/chroots/oscarHR/fishnchips/dev/shm': Device or resource busy

I know the process of web2py is not running.

Thank you very much for bringing that to our attention!

The "device or resource busy" error is, we think, something you can ignore (though we need to get rid of it because it is unhelpful and confusing).

However, the web2py scheduler thing is definitely a problem -- largely a problem in our documentation, though! That page had not been updated since 2016 and was incorrect -- it was advising you to run the scheduler in a way that was no longer reliable, and was much more complicated than the correct way to do it.

I've updated the help page so that it reflects the correct way to set up the scheduler on PythonAnywhere now.

Oh my god! Thanks for yor Quick answerr, even on sunday.

No problem! And do let us know if you have any problems with the updated instructions.