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
Webrick crashes llegal instruction: 4 #1633
Comments
Can you run a different webserver, like Thin? WEBrick gives useless error messages (like |
Yea, I pasted the dump from Heroku's log which I believe runs on thin. |
Heroku only runs on Thin by default on the Bamboo stack. On Cedar it can run anything. I'd need to see the full log to confirm what webserver is running. Locally, you can just add |
I reinstalled active admin (uncommented the gem and renamed back all the files) here is the thin log:
|
Please put ``` on a blank line before and after your paste to make it readable. I did it for you this time. |
The log says that your views are taking 35206.2ms to load. What you're view doing? If a view takes too long to render, Heroku will fail. Also, why is there an "EXPLAIN" query?? |
There are two sperate issues:
Regarding #1633 belongs_to :organization There are currently only 16 events in the db. I added an index to get rid of the EXPLAIN |
lock in <top (required)>': undefined method `remove_filter' for #ActiveAdmin::ResourceDSL:0x007f98cbc573d8 (NoMethodError also, #834 NOT ABLE to deploy to Heroku |
you need the latest AA. gem 'activeadmin', git: 'git://github.com/gregbell/active_admin.git' |
If you go to #834 you'll see a string of issues that are related. Please post in those issues. Also, please include whatever error you are getting from Heroku, because the only information we have so far is that "it doesn't work", which is not enough info for anyone to help you. |
Here is the HEROKU log:
|
Look at the error message:
It's telling you that config.assets.precompile += %w( active_admin.css active_admin.js active_admin/print.css ) Do the same thing for any other error like that one. And don't forget to run |
For your second question, it's a bug with no current fix. The open issue is #1596. |
|
If you are deploying to Heroku, you either precompile everything, or nothing. You can't do only half your assets. You can try putting config.assets.precompile in production.rb. You absolutely must run
|
You might see the same exception, but it may be mentioning a different file, not |
in production.rb or application.rb??? |
They said somewhere that Heroku doesn't look at production.rb |
That's only if you're letting Heroku do the precompile. The safe way is to do the precompile yourself, in which case it's fine to put it in production.rb. Heroku has docs about this https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar |
|
You only need to compile if you change your assets. Also, as documented by Rails and Heroku, you need to increment The segmentation fault is probably a Ruby 1.9.2p290 issue. Use Ruby 1.9.3. On 2012-09-05, at 5:05 PM, Gideon Jadlovker wrote:
|
When clicking on one of my models Webrick crashes
The last recorded query is for states - when i removed the State assoc the the last command was Country query
server log:
****** This is what I get from Heroku: ********
The text was updated successfully, but these errors were encountered: