Can't run jobs on mac os catalina: process has forked and you cannot use this CoreFoundation functionality safely

See original GitHub issue

Hey,

I’m having this issue on mac OS catalina, and I think it’s django-rq related. Not having the same errors by using rq directly (though I haven’t been able to completely set it up because it’s so much more complicated than using django-rq)

This setup was working fine on Ubuntu but my queue won’t process any jobs on mac os.

07:10:41 default: djpager.jobs.pager.generate_source(331) (f799a0ae-1500-4483-a1ce-818995c93bed)
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
objc[26643]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
objc[26643]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
07:10:41 Moving job to FailedJobRegistry (work-horse terminated unexpectedly; waitpid returned 6)

Googling around, the only suggestion I found was executing this command:

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

That makes the error message slightly shorter, but still no jobs are run:

07:23:26 default: djpager.jobs.pager.generate_source(362) (33fd1d39-5bc4-49b9-a1ee-c5fb0218fe95)
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
07:23:26 Moving job to FailedJobRegistry (work-horse terminated unexpectedly; waitpid returned 11)

Any suggestions on how to get this to work on mac os? Thanks a lot for all the great work on this project ♥️

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
codeAshucommented, Jun 30, 2022

Anyone planning anything around it to fix? Maybe in rq?

0reactions
asennoussicommented, Sep 13, 2022

It doesn’t happen to me anymore with the new OSX

Read more comments on GitHub >

github_iconTop Results From Across the Web

redis-queue on Mac OS: process has forked and you cannot ...
My setup was working fine on Ubuntu but my queue won't process any jobs on mac os (Catalina). Basically, I have my django...
Read more >
Can't run redis queue workers on Mac OS Catalina - Reddit
I can't imagine being the only one using rq and having this problem but ... The process has forked and you cannot use...
Read more >
Safely open apps on your Mac - Apple Support
Safely open apps on your Mac · View the app security settings on your Mac · Open a developer-signed or notarized app ·...
Read more >
Issue 33725: Python crashes on macOS after fork with no exec
msg318352 ‑ (view) Author: Kapil Thangavelu (kapilt) Date: 2018‑06‑01 00:53 msg318361 ‑ (view) Author: Ronald Oussoren (ronaldoussoren) * Date: 2018‑06‑01 05:51 msg318396 ‑ (view) Author:...
Read more >
How to Fix Cron Permission Issues in macOS Big Sur ...
Some advanced Mac users may have noticed that certain shell scripts with cron, cron jobs, and crontab are either not working at all, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found