[Locomotive-users] Odd deployment issue from Loco -> DreamHost
Paul Welty
ponch at paulwelty.com
Fri Nov 17 15:09:46 GMT 2006
Just to close this thread on a positive note....
I finally (after weeks) got a reply on the main Rails list. Jeremy Kemper
said:
Try serializing a Hash instead of a HashWithIndifferentAccess.
Then you'll get compatible YAML across Syck versions.
This solves the problem. Who knew?
Anyway, I wanted to post it here in case it helps someone else.
-P
On 11/17/06 8:36 AM, "Ryan Raaum" <ryan.raaum at gmail.com> wrote:
>
>
> On 11/17/06, Paul Welty <ponch at paulwelty.com> wrote:
>> Thanks. That worked, and everything checks out the same now in Locomotive and
>> DreamHost. So, I guess it's not a Locomotive problem, though I have no idea
>> what do at this point. But, thanks for your help!
>
> It looks to me like either there is a newer/different yaml implementation on
> Dreamhost, or that the yaml implementation differs by architecture - neither
> of which seems good. I would suggest asking _why as he wrote the syck yaml
> implementation in the first place.
>
> Best,
>
> -r
>
>> On 11/16/06 3:31 PM, "Ryan Raaum" <ryan.raaum at gmail.com> wrote:
>>
>>>
>>>
>>> On 11/16/06, Paul Welty <ponch at paulwelty.com> wrote:
>>>> Thanks very much for the advice. I tried that. I got 'which ruby' and 'ruby
>>>> -v' to return the right things on DreamHost. But, still no difference in
>>>> behavior.
>>>>
>>>> So, now I'm wondering if somehow rails isn't using the new ruby. Is there a
>>>> Rails status screen or something that would tell me which ruby it's using
>>>> so
>>>> I could compare that to Locomotive? (I tried the /rails/info/ but it
>>>> doesn't
>>>> seem to work at all anymore.)
>>>
>>>> >From the command line you should be able to do "ruby script/about" to see
>>>> (I think) the same information that is in the info properties page.
>>>
>>> -r
>>>
>>>> On 11/16/06 11:40 AM, "Lori M Olson" < loriolson at mac.com
>>>> <mailto:loriolson at mac.com> > wrote:
>>>>
>>>>> > On 16-Nov-06, at 8:09 AM, Paul Welty wrote:
>>>>> >
>>>>>> >> I have a field that's serialized in my model with
>>>>>> >> "serialize :field". This
>>>>>> >> works fine going back and forth to a hash in Locomotive in
>>>>>> >> development.
>>>>>> >> 'field' always comes out as a hash. So, in development, I get a
>>>>>> >> YAML::dump
>>>>>> >> like this: !map:HashWithIndifferentAccess key1: "value1" key2:
>>>>>> >> "value2"
>>>>>> >>
>>>>>> >> But, in production on DreamHost, the deseralization ends up like this:
>>>>>> >>
>>>>>> >> !ruby/object:YAML::Syck::DomainType domain: yaml.org <http://yaml.org>
>>>>>> <http://yaml.org> ,2002 type_id:
>>>>>> >> map:HashWithIndifferentAccess value: key1: "value1" key2: "value2"
>>>>>> >>
>>>>>> >> Thus, of course, I can't use the hash methods. And Rails then
>>>>>> >> generates
>>>>>> >> errors like "undefined method `include?' for
>>>>>> >> #<YAML::Syck::DomainType:0x407fb584>". And this, of course, breaks
>>>>>> >> the whole
>>>>>> >> app.
>>>>>> >>
>>>>>> >> I'm using Rails 1.1.6, and so is DreamHost.
>>>>>> >>
>>>>>> >> I tried:
>>>>>> >> installing Ruby 1.8.5 on DreamHost
>>>>>> >> installing a custom rails package there
>>>>>> >> freezing gems (including rails) into my app
>>>>>> >>
>>>>>> >> None of these make the slightest difference.
>>>>>> >>
>>>>>> >> I'm guess this might be a DreamHost problem not a Locomotive
>>>>>> >> problem, but who knows.
>>>>>> >>
>>>>>> >> Does anyone have any ideas what might be going on?
>>>>> >
>>>>> > I'm not a Dreamhost user, but those errors look suspiciously familiar
>>>>> > to a problem I had to solve on our production server a few weeks
>>>>> > ago. It really looks like you have a Ruby version problem. I would
>>>>> > try installing and using Ruby 1.8.4.
>>>>> >
>>>>> > Regards, Lori
>>>>> > _______________________________________________
>>>>> > Locomotive-users mailing list
>>>>> > Locomotive-users at lists.raaum.org
>>>>> > http://lists.raaum.org/mailman/listinfo/locomotive-users
>>>>> <http://lists.raaum.org/mailman/listinfo/locomotive-users>
>>>>
>>>>
>>>> _______________________________________________
>>>> Locomotive-users mailing list
>>>> Locomotive-users at lists.raaum.org
>>>> http://lists.raaum.org/mailman/listinfo/locomotive-users
>>>
>>>
>>
>>
>> _______________________________________________
>> Locomotive-users mailing list
>> Locomotive-users at lists.raaum.org <mailto:Locomotive-users at lists.raaum.org>
>> http://lists.raaum.org/mailman/listinfo/locomotive-users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20061117/8d52d654/attachment-0001.htm
More information about the Locomotive-users
mailing list