-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues when running on macOs #178
Comments
this happened both when running via the puma plugin or starting solid_queue via Procfile. It still run jobs if I enqueue them. However the worker crashes often. Workaround so far is to run inside docker |
I think I have the same issue on my mac. A piece of the message is I'm running inside Procfile.dev. |
using rosetta to run your terminal (iterm for me) also seems to do the trick! |
nvm.. pulled trigger too early. fails with rosetta as well |
@natannobre I'm also having the same issue. Seems like it has been solved earlier here: #145 (comment) |
Hey @ArglosStudios, is this still happening for you? Did #145 (comment) help at all? |
I have this issue but with a MySQL backend (I don't have the option to swap it for another DB). |
Hey @rjhancock, does this still happen for you? Are you running the last version? |
Thanks a lot for testing 🙏 There's a suggested solution here: compile |
Sadly no as deployed MySQL is 8.0 same with local MySQL via Homebrew. |
That's ok! You can continue using MySQL 8.0, this is just for the This is what @johnmaxwell proposed here:
|
When I test my Solid Queue code, I just run it within Docker Compose. Not ideal but works. I'd rather not add another monkey patch to the instructions and code base for a bug in one of two libraries that would bring my development environment more out of line from the production environment. |
That makes sense! I wonder why you get the error then 🤔 In theory, this happens only in macOS, so I assumed you were running everything in your local machine. |
Only happens on macOS. When running via Docker Compose, runs fine. The servers are all Ubuntu boxes running dockerized containers with Ruby 3.3.4 as the base image. I try not to run the images inside Docker while working on the code as it greatly slows things down over all. I generally don't need to test the Job system as it's already well tested. Most of the code I can run without working with queues so it doesn't impact too much. Just wish the bug could be found as looking through the solutions it looks like this has been a bug somewhere for the last several years. |
I recently switched to Omakub and ubuntu for development due to a number of macos related issues after the ARM on mac transition for this exact reason.. Like you, I run on production using kamal and docker containers (on x86_64 hw) so being on ubuntu helps me more accurately replicate production. Would be nice to identify a root cause on mac though. |
Going to close this one as neither the segfault with PostgreSQL nor the file descriptor issue with MYSQL is a Solid Queue issue, but I hope both get fixed soon. In the meantime there are the workarounds mentioned here and in the issues linked. |
Hello, I am running a project with solid_queue.
When doing some development on my windows pc with WSL, solid_queue runs greatly! However, when running on my macbook, I get either get file descriptors or weird reading errors:
Bad file descriptors:
end of file reached error:
The text was updated successfully, but these errors were encountered: