Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
estsauver opened this Issue · 2 comments

2 participants

@estsauver

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

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

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.

@patricksrobertson patricksrobertson referenced this issue from a commit
@patricksrobertson patricksrobertson [#71] Precompile the wysiwyg stylesheet in prod.
* This was missed as development/test don't precompile assets.
* Fixes #71.
d3607c4
@patricksrobertson patricksrobertson closed this issue from a commit
@patricksrobertson patricksrobertson [#71] Precompile the wysiwyg stylesheet in prod.
* This was missed as development/test don't precompile assets.
* Fixes #71.
d3607c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.