News

Welcome to End Point’s blog

Ongoing observations by End Point people

Spree Admin pages unreachable (500 errors)

I was notified a few minutes ago by one of our Spree clients that their admin interface was unreachable due to errors.

Digging into the logs, I discovered SocketErrors (DNS lookup failures) were behind the 500 errors. Digging deeper, I discovered the SocketErrors were coming from a Spree file attempting to access "alerts.spreecommerce.com". I confirmed in my browser that alerts.spreecommerce.com fails to resolve.

This git commit discusses the removal of the class, but if you haven't stayed current and you've left the "Check for alerts" box checked, you may need to do some manual editing of your stored preferences to get the UI to load again.

Spree::Preference.where(key: "spree/app_configuration/check_for_spree_alerts").first.update_attributes(value: false)
It does appear that your app will need to restart to pull in this change.

I'm not sure what the chances are your particular config key might vary, so please use the above with caution.

1 comment:

Damian Legawiec said...

Hi

Upgrading to at least Spree 3.0.5 will resolve this issue (https://github.com/spree/spree/releases/tag/v3.0.5). Spree 3.0.8 is the latest version and is required to run a Spree 3.0 store.

Best Regards,
Damian Legawiec, Spree OSS Core Team Member