Hobo app crashing on Heroku with - NameError (uninitialized constant Dryml::TemplateEnvironment):

40 views
Skip to first unread message

kiwi lloyd

unread,
Oct 25, 2013, 3:47:39 PM10/25/13
to hobo...@googlegroups.com
Hi
I have built an app with hobo and it works fine on my local PC however crashes when I try to run it on Heroku.  It was working OK on Heroku but something has changed and I don't know what!  The start of the error trace is:

2013-10-25T19:12:25.177964+00:00 heroku[web.1]: State changed from starting to up
2013-10-25T19:12:35.280734+00:00 app[web.1]: Started GET "/login" for 95.149.137.128 at 2013-10-25 19:12:35 +0000
2013-10-25T19:12:35.371857+00:00 app[web.1]:
2013-10-25T19:12:35.371857+00:00 app[web.1]: NameError (uninitialized constant Dryml::TemplateEnvironment):
2013-10-25T19:12:35.371857+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/dryml-2.0.1/lib/dryml.rb:230:in `make_rende
rer_class'
2013-10-25T19:12:35.371857+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/dryml-2.0.1/lib/dryml.rb:92:in `page_render
er'
2013-10-25T19:12:35.371857+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/dryml-2.0.1/lib/dryml.rb:61:in `empty_page_
renderer'
2013-10-25T19:12:35.371857+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/dryml-2.0.1/lib/dryml/railtie/page_tag_reso
lver.rb:13:in `find_templates'
2013-10-25T19:12:35.371857+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_view/template/
resolver.rb:46:in `block in find_all'
.....

My environment is:
hobo 2.0.1
rails 3.2.12
ruby 1.9.3p327

Any ideas?

thanks
Lloyd

Ignacio Huerta

unread,
Oct 26, 2013, 3:50:48 AM10/26/13
to hobo...@googlegroups.com
Hi Lloyd,

This is a strange error, like if Heroku couldn't find that class. Can
you try to go back in git history to a previous commit, to see if it's
something related to a change you've made?

If that's not the problem, please tell us and I'll try to create a test
app to reproduce it in Heroku.

Warm regards,
Ignacio

El 25/10/13 21:47, kiwi lloyd escribi�:
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hobousers+...@googlegroups.com.
> To post to this group, send email to hobo...@googlegroups.com.
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/groups/opt_out.

--
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre

Lloyd Burgess

unread,
Oct 26, 2013, 4:38:31 AM10/26/13
to hobo...@googlegroups.com
Hi Ignacio
Thanks very much for the fast reply!

It will be something I have done that has caused the error, however there have been many changes since I last pushed to Heroku so I'm not sure what is causing it.
It is fine in development but not on Heroku, so there is something different between the environments. I am starting to look at the initializers to see if there are problems there, as presumably the class is not getting created.
The app is fairly complicated - integration with Shopify and Omniauth, several custom DRYML taglib files, custom initializers, JavaScript libs and a bunch of other gems.

I have another app and that works fine on Heroku.

So any suggestions on where to look would be really appreciated. Is there any info on how Hobo gets initialized when starting - eg what starts all the DRYML file compiles?

Best regards
Lloyd
Sent from my iPhone

> On 26 Oct 2013, at 08:50, Ignacio Huerta <ign...@ihuerta.net> wrote:
>
> Hi Lloyd,
>
> This is a strange error, like if Heroku couldn't find that class. Can you try to go back in git history to a previous commit, to see if it's something related to a change you've made?
>
> If that's not the problem, please tell us and I'll try to create a test app to reproduce it in Heroku.
>
> Warm regards,
> Ignacio
>
> El 25/10/13 21:47, kiwi lloyd escribió:
> Teléfono: 0034 645 70 77 35
> Email realizado con software libre
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Hobo Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/hobousers/Dl9NI2dDSN4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to hobousers+...@googlegroups.com.

Ignacio Huerta

unread,
Oct 26, 2013, 4:45:32 AM10/26/13
to hobo...@googlegroups.com
Hi Lloyd,

I would start with config/initializers/dryml_taglibs.rb. By default it
precompiles stuff only in production mode. You can try disabling that
line (see
https://groups.google.com/forum/#!msg/hobousers/hRtg_LFdVds/Ds6w0aQlBE4J)

Regards,
Ignacio

El 26/10/13 10:38, Lloyd Burgess escribi�:
> Hi Ignacio
> Thanks very much for the fast reply!
>
> It will be something I have done that has caused the error, however there have been many changes since I last pushed to Heroku so I'm not sure what is causing it.
> It is fine in development but not on Heroku, so there is something different between the environments. I am starting to look at the initializers to see if there are problems there, as presumably the class is not getting created.
> The app is fairly complicated - integration with Shopify and Omniauth, several custom DRYML taglib files, custom initializers, JavaScript libs and a bunch of other gems.
>
> I have another app and that works fine on Heroku.
>
> So any suggestions on where to look would be really appreciated. Is there any info on how Hobo gets initialized when starting - eg what starts all the DRYML file compiles?
>
> Best regards
> Lloyd
> Sent from my iPhone
>
>> On 26 Oct 2013, at 08:50, Ignacio Huerta <ign...@ihuerta.net> wrote:
>>
>> Hi Lloyd,
>>
>> This is a strange error, like if Heroku couldn't find that class. Can you try to go back in git history to a previous commit, to see if it's something related to a change you've made?
>>
>> If that's not the problem, please tell us and I'll try to create a test app to reproduce it in Heroku.
>>
>> Warm regards,
>> Ignacio
>>
>> El 25/10/13 21:47, kiwi lloyd escribi�:
>> Tel�fono: 0034 645 70 77 35
>> Email realizado con software libre
>>
>> --
>> You received this message because you are subscribed to a topic in the Google Groups "Hobo Users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/hobousers/Dl9NI2dDSN4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to hobousers+...@googlegroups.com.
>> To post to this group, send email to hobo...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/hobousers.
>> For more options, visit https://groups.google.com/groups/opt_out.
>

--
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35

Lloyd Burgess

unread,
Oct 26, 2013, 5:09:33 AM10/26/13
to hobo...@googlegroups.com
Thanks - I'll keep the thread updated with progress.

Regards
Lloyd

> On 26 Oct 2013, at 09:45, Ignacio Huerta <ign...@ihuerta.net> wrote:
>
> Hi Lloyd,
>

kiwi lloyd

unread,
Oct 26, 2013, 1:03:46 PM10/26/13
to hobo...@googlegroups.com
Some progress...

The problem does not seem to be related to Hobo. It is because modules are not being autoloaded by rails on Heroku. I noticed that one of my modules was not being loaded.  When I did a "require 'my module'" in application.rb the module got loaded OK.  All the autoload paths are correct and I changed the threadsafe option, however I am still not able to get the hobo modules autoloaded.

The diagnosis continues...

Owen Dall

unread,
Oct 27, 2013, 1:39:13 PM10/27/13
to Hobo Users
Thanks for posting your progress...




-Owen


Owen Dall

Vice President | Chief Technology Officer

Barquin International

Office: 202.296.7147 | Mobile: 410.991.0811

Fax: 202.296.8903 | email: od...@barquin.com

BI_Logo_2012_JPEG

 

NOTICE: If you have received this message in error, please contact the sender immediately and be aware that the use, copying, or dissemination of this information is prohibited. This email transmission contains information from Barquin International that may be considered privileged or confidential and is intended solely for the named recipient.










image001.jpg
Reply all
Reply to author
Forward
0 new messages