collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.81k stars 955 forks source link

The roll from delayed_job (4.0.2) to delayed_job (4.0.3) breaks load #697

Closed bobbdelsol closed 9 years ago

bobbdelsol commented 10 years ago

My app breaks when I update to delayed job 4.0.3. The only difference in the gemfile.lock is the delayed job version. With the new version. the webpage ill not connect to the server in Chrome or safari in my development environment. Don't have a way to debug from there:(

BigGillyStyle commented 10 years ago

Same here. Am using Delayed Job Mongoid 2.1.0 (and have been for several months). "bundle update" updated Delayed Job from 4.0.2 to 4.0.3. App still starts (Foreman...launching Unicorn and Delayed Job worker), but all page requests time out from server. Just updating Gemfile.lock and Delayed Job 4.0.2, running "bundle install", then restarting server cured everything.

albus522 commented 10 years ago

What does your log say is happening? Can you create a small test app that replicates the issue?

bobbdelsol commented 10 years ago

My log doesn’t show anything. I just get a This webpage is not available

error in the browser.

If i use my dead simple (only shows Hello World) reference app, it comes up okay.

If I got to my next simplest app, basic web page, it fails also.

I can try to strip that app down to find what’s wrong, but I’m buried right now. You’re welcome to the source.

bob

On Sep 8, 2014, at 8:10 AM, David Genord II notifications@github.com wrote:

What does your log say is happening? Can you create a small test app that replicates the issue?

— Reply to this email directly or view it on GitHub.

bobbdelsol commented 10 years ago

okay I was procrastinating on my project this evening so I isolated this down to one change set

If i remove the localization code i have, it works with 4.3.

i followed Brian Bates rails cast method for doing the localization

but changes i removed were

from my routes file scope ':locale', locale: /#{I18n.available_locales.join('|')}/ do

end match '*path', to: redirect("/#{I18n.default_locale}/%{path}"), constraints: lambda { |req| !req.path.starts_with? "/#{I18n.default_locale}/" }, via: [:get,:post] match '', to: redirect("/#{I18n.default_locale}"), via: [:get,:post]


and from the application controller.

before_filter set_locale

def set_locale I18n.locale = params[:locale] if params[:locale].present? end

hope this helps

BigGillyStyle commented 10 years ago

I also don't see anything in app logs or in /var/log/system.log (OS X). Right now I don't have the bandwidth to isolate this issue a little better (sorry), but I'll try to keep on top of this thread and help out when I can.

albus522 commented 10 years ago

Are you using any strange structures in the YAML localization that might of worked because of hacks in DJ YAML handling? This release removed a bunch of YAML hacks we no longer needed.

albus522 commented 9 years ago

See if you still have an issue with 4.0.4.

BigGillyStyle commented 9 years ago

Yep...4.0.4 fixes this issue for me. Thanks for such a quick patch.