Skip to content
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

Internal Server Error thrown on accessing any blurb on clean install #71

Closed
estsauver opened this issue Jun 28, 2012 · 2 comments
Closed
Assignees

Comments

@estsauver
Copy link

Hi all,

On installing a fresh clone of the copycopter server I get a template error on accessing any of the blobs on the copycopter server. I tried generating a fresh test application and copycopter server to see if the error was still occurring. Even using a clean clone of the server and a freshly generated app on heroku and I'm still seeing this error.

I think it might possibly be related to commit 6330022 which upgrades the asset pipeline. I believe this might be the issue as the error message seems to be refferencing wysiwyg.css. Is it possible that the precompiled version of the stylesheet is still just happily existing on the development machine and that's letting the test suite pass?

I apologize if you need anything else from me for the issue report/if I missed something obvious. Please let me know if you need any other information.

estsauver$ heroku logs -n 1 -t
2012-06-28T00:16:44+00:00 heroku[router]: GET hollow-journey-9800.herokuapp.com/stylesheets/application.css dyno=web.1 queue=0 wait=0ms service=7ms status=404 bytes=1319
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: Started GET "/localizations/93/versions/new" for 69.59.198.28 at 2012-06-28 00:18:09 +0000
2012-06-28T00:18:09+00:00 app[web.1]: Processing by VersionsController#new as HTML
2012-06-28T00:18:09+00:00 app[web.1]:   Parameters: {"localization_id"=>"93"}
2012-06-28T00:18:09+00:00 app[web.1]:   Rendered shared/_locale_dropdown.html.erb (0.3ms)
2012-06-28T00:18:09+00:00 app[web.1]:   Rendered versions/_form.html.erb (14.1ms)
2012-06-28T00:18:09+00:00 app[web.1]:   Rendered versions/new.html.erb within layouts/application (31.8ms)
2012-06-28T00:18:09+00:00 app[web.1]: Completed 500 Internal Server Error in 52ms
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: ActionView::Template::Error (wysiwyg.css isn't precompiled):
2012-06-28T00:18:09+00:00 app[web.1]:     32:   <script type='text/javascript'>
2012-06-28T00:18:09+00:00 app[web.1]:     33:     $(function () {
2012-06-28T00:18:09+00:00 app[web.1]:     34:       Editor.start({
2012-06-28T00:18:09+00:00 app[web.1]:     35:         css: <%== Yajl::Encoder.encode(stylesheet_path('wysiwyg')) %>,
2012-06-28T00:18:09+00:00 app[web.1]:     36: 
2012-06-28T00:18:09+00:00 app[web.1]:     37:         <% if localization.published_content? %>
2012-06-28T00:18:09+00:00 app[web.1]:     38:           draftExplanation: <%= raw Yajl::Encoder.encode(t('blurb.draft_html')) %>,
2012-06-28T00:18:09+00:00 app[web.1]:   app/views/versions/_form.html.erb:35:in `block in _app_views_versions__form_html_erb__3426279820360421217_42964600'
2012-06-28T00:18:09+00:00 app[web.1]:   app/views/versions/_form.html.erb:31:in `_app_views_versions__form_html_erb__3426279820360421217_42964600'
2012-06-28T00:18:09+00:00 app[web.1]:   app/views/versions/new.html.erb:23:in `block in _app_views_versions_new_html_erb__3099476238995554186_17329500'
2012-06-28T00:18:09+00:00 app[web.1]:   app/views/versions/new.html.erb:22:in `_app_views_versions_new_html_erb__3099476238995554186_17329500'
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 heroku[router]: GET hollow-journey-9800.herokuapp.com/localizations/93/versions/new dyno=web.1 queue=0 wait=0ms service=76ms status=500 bytes=1254
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: Started GET "/stylesheets/application.css" for 69.59.198.28 at 2012-06-28 00:18:09 +0000
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):
2012-06-28T00:18:09+00:00 app[web.1]:   
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 app[web.1]: 
2012-06-28T00:18:09+00:00 heroku[router]: GET hollow-journey-9800.herokuapp.com/stylesheets/application.css dyno=web.1 queue=0 wait=0ms service=7ms status=404 bytes=1319
2012-06-28T00:18:10+00:00 heroku[router]: GET hollow-journey-9800.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=9ms status=304 bytes=0
@patricksrobertson
Copy link
Contributor

It's odd because my development machine and deployed target both work. I was going to fire up a brand new instance this morning so I'll look into it.

@patricksrobertson
Copy link
Contributor

I've got a fix for it running on TravisCI. This error isn't available in development/test because we allow the asset pipeline to compile assets in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants