HTML escapando/aparecendo no Noosfero/Stoa

Rafael Gomes rafaelgomes at techfree.com.br
Sun Mar 31 12:21:18 BRT 2013


Conversando com Terceiro no chat, ele disse que o apache demora um
pouco para entender que o Noosfero voltou, mas acho que vou buscar os
pacotes restantes em outro lugar, pois talvez seja isso.

2013/3/31 Ewout ter Haar <ewout at usp.br>:
> Desfiz o downgrade, usando apt-get upgrade
>
> Agora estou na situação anterior.
>
> E aí, Terceiro, tem outra sugestão?
>
> Ewout
>
>
> 2013/3/31 Ewout ter Haar <ewout at usp.br>
>>
>> É exatamente isto que está acontecendo comigo.
>>
>> Ewout
>>
>>
>> 2013/3/31 Rafael Gomes <rafaelgomes at techfree.com.br>
>>>
>>> Eu atualizei todos, menos os libgettext-rails-ruby1.8 e
>>> liblocale-rails-ruby1.8. Meu noosfero ta dando erro, informando que
>>> está em manutenção. Será por falta desses pacotes na mesma versão ou
>>> outro motivo?
>>>
>>> Pego isso no log de produção:
>>>
>>> ActionView::TemplateError (undefined class/module
>>> ActiveSupport::SafeBuffer) on line #18 of
>>> app/views/profile/_person_profile.rhtml:
>>> 15:
>>> 16:   <%= display_contact profile %>
>>> 17:
>>> 18:   <% cache_timeout(profile.relationships_cache_key, 4.hours) do %>
>>> 19:     <%= display_work_info profile %>
>>> 20:
>>> 21:     <% if !environment.enabled?('disable_asset_enterprises') &&
>>> !profile.enterprises.empty? %>
>>>
>>>     /usr/lib/ruby/1.8/memcache.rb:240:in `load'
>>>     /usr/lib/ruby/1.8/memcache.rb:240:in `get'
>>>     /usr/lib/ruby/1.8/memcache.rb:870:in `with_server'
>>>     /usr/lib/ruby/1.8/memcache.rb:236:in `get'
>>>     /usr/lib/ruby/1.8/active_support/cache/mem_cache_store.rb:63:in
>>> `read'
>>>     /usr/lib/ruby/1.8/active_support/cache/strategy/local_cache.rb:39:in
>>> `read'
>>>     /usr/lib/ruby/1.8/action_controller/caching/fragments.rb:71:in
>>> `read_fragment'
>>>     /usr/lib/ruby/1.8/action_controller/benchmarking.rb:30:in `benchmark'
>>>     /usr/lib/ruby/1.8/action_controller/caching/fragments.rb:70:in
>>> `read_fragment'
>>>     /usr/lib/ruby/1.8/action_controller/caching/fragments.rb:39:in
>>> `fragment_for'
>>>     /usr/lib/ruby/1.8/action_view/helpers/cache_helper.rb:35:in `cache'
>>>     app/helpers/application_helper.rb:1292:in `cache_timeout'
>>>     app/views/profile/_person_profile.rhtml:18:in
>>>
>>> `_run_rhtml_app47views47profile47_person_profile46rhtml_locals_object_person_profile'
>>>     /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `send'
>>>     /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `render'
>>>     /usr/lib/ruby/1.8/action_view/base.rb:306:in `with_template'
>>>     /usr/lib/ruby/1.8/action_view/renderable.rb:30:in `render'
>>>     /usr/lib/ruby/1.8/action_view/renderable_partial.rb:20:in `render'
>>>     /usr/lib/ruby/1.8/action_controller/benchmarking.rb:30:in `benchmark'
>>>     /usr/lib/ruby/1.8/action_view/renderable_partial.rb:19:in `render'
>>>     /usr/lib/ruby/1.8/action_view/template.rb:205:in `render_template'
>>>     /usr/lib/ruby/1.8/action_view/renderable_partial.rb:44:in
>>> `render_partial'
>>>     /usr/lib/ruby/1.8/action_view/partials.rb:184:in `render_partial'
>>>     /usr/lib/ruby/1.8/action_view/base.rb:267:in `render'
>>>     app/views/profile/index.rhtml:33:in
>>> `_run_rhtml_app47views47profile47index46rhtml'
>>>     /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `send'
>>>     /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `render'
>>>     /usr/lib/ruby/1.8/action_view/base.rb:306:in `with_template'
>>>     /usr/lib/ruby/1.8/action_view/renderable.rb:30:in `render'
>>>     /usr/lib/ruby/1.8/action_view/template.rb:205:in `render_template'
>>>     /usr/lib/ruby/1.8/action_view/base.rb:265:in `render'
>>>     /usr/lib/ruby/1.8/action_view/base.rb:348:in `_render_with_layout'
>>>     /usr/lib/ruby/1.8/action_view/base.rb:262:in `render'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:1250:in `render_for_file'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:945:in
>>> `render_without_benchmark'
>>>     /usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'
>>>     /usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:1326:in `default_render'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:1332:in
>>> `perform_action_without_filters'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:617:in `call_filters'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:638:in
>>> `run_before_filters'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:206:in `call'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:206:in `around_proc'
>>>     /usr/lib/ruby/1.8/active_support/callbacks.rb:182:in `call'
>>>     /usr/lib/ruby/1.8/active_support/callbacks.rb:182:in
>>> `evaluate_method'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:184:in `call'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:635:in
>>> `run_before_filters'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:615:in `call_filters'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:610:in
>>> `perform_action_without_benchmark'
>>>     /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in
>>> `perform_action_without_rescue'
>>>     /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in
>>> `perform_action_without_rescue'
>>>     /usr/lib/ruby/1.8/action_controller/rescue.rb:160:in
>>> `perform_action_without_flash'
>>>     /usr/lib/ruby/1.8/action_controller/flash.rb:146:in `perform_action'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:532:in `send'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:532:in
>>> `process_without_filters'
>>>     /usr/lib/ruby/1.8/action_controller/filters.rb:606:in `process'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:391:in `process'
>>>     /usr/lib/ruby/1.8/action_controller/base.rb:386:in `call'
>>>     /usr/lib/ruby/1.8/action_controller/routing/route_set.rb:437:in
>>> `call'
>>>     /usr/lib/ruby/1.8/action_controller/dispatcher.rb:87:in `dispatch'
>>>     /usr/lib/ruby/1.8/action_controller/dispatcher.rb:121:in `_call'
>>>     /usr/lib/ruby/1.8/action_controller/dispatcher.rb:130:in
>>> `build_middleware_stack'
>>>     /usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'
>>>     /usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'
>>>
>>> /usr/lib/ruby/1.8/active_record/connection_adapters/abstract/query_cache.rb:34:in
>>> `cache'
>>>     /usr/lib/ruby/1.8/active_record/query_cache.rb:9:in `cache'
>>>     /usr/lib/ruby/1.8/active_record/query_cache.rb:28:in `call'
>>>
>>> /usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:361:in
>>> `call'
>>>     /usr/lib/ruby/1.8/action_controller/string_coercion.rb:25:in `call'
>>>     /usr/lib/ruby/1.8/rack/head.rb:9:in `call'
>>>     /usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call'
>>>     /usr/lib/ruby/1.8/action_controller/params_parser.rb:15:in `call'
>>>     /usr/lib/ruby/1.8/action_controller/session/cookie_store.rb:93:in
>>> `call'
>>>     vendor/plugins/noosfero_caching/init.rb:39:in `call'
>>>     /usr/lib/ruby/1.8/active_support/cache/strategy/local_cache.rb:24:in
>>> `call'
>>>     /usr/lib/ruby/1.8/action_controller/failsafe.rb:26:in `call'
>>>     /usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
>>>     /usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize'
>>>     /usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
>>>     /usr/lib/ruby/1.8/action_controller/dispatcher.rb:106:in `call'
>>>     /usr/lib/ruby/1.8/rack/adapter/rails.rb:74:in `call'
>>>     /usr/lib/ruby/1.8/thin/connection.rb:76:in `pre_process'
>>>     /usr/lib/ruby/1.8/thin/connection.rb:74:in `catch'
>>>     /usr/lib/ruby/1.8/thin/connection.rb:74:in `pre_process'
>>>     /usr/lib/ruby/1.8/thin/connection.rb:57:in `process'
>>>     /usr/lib/ruby/1.8/thin/connection.rb:42:in `receive_data'
>>>     /usr/lib/ruby/1.8/eventmachine.rb:257:in `run_machine'
>>>     /usr/lib/ruby/1.8/eventmachine.rb:257:in `run'
>>>     /usr/lib/ruby/1.8/thin/backends/base.rb:57:in `start'
>>>     /usr/lib/ruby/1.8/thin/server.rb:156:in `start'
>>>     /usr/lib/ruby/1.8/thin/controllers/controller.rb:80:in `start'
>>>     /usr/lib/ruby/1.8/thin/runner.rb:174:in `send'
>>>     /usr/lib/ruby/1.8/thin/runner.rb:174:in `run_command'
>>>     /usr/lib/ruby/1.8/thin/runner.rb:140:in `run!'
>>>     /usr/bin/thin:6
>>>
>>> Rendering /usr/share/noosfero/public/500.html (500 Internal Server Error)
>>>
>>> 2013/3/31 Ewout ter Haar <ewout at usp.br>:
>>> >
>>> >
>>> >
>>> > 2013/3/31 Antonio Terceiro <terceiro at colivre.coop.br>
>>> >>
>>> >> > 1) checar quais pacotes do rails você tem instalados
>>> >> >
>>> >> > $ aptitude search '?source-package(rails) ~i' -F %p
>>> >
>>> > Resultado:
>>> > libactionmailer-ruby1.8
>>> > libactionpack-ruby1.8
>>> > libactiverecord-ruby1.8
>>> > libactiveresource-ruby1.8
>>> > libactivesupport-ruby1.8
>>> > libgettext-rails-ruby1.8
>>> > liblocale-rails-ruby1.8
>>> > rails
>>> > rails-ruby1.8
>>> >
>>> >>
>>> >> >
>>> >> > 2) baixar os arquivos .deb correspondentes a esses pra um mesmo
>>> >> > diretório
>>> >> > temporário a partir de
>>> >> > http://snapshot.debian.org/package/rails/2.3.5-1.2%2Bsqueeze7/
>>> >
>>> >
>>> > Nesta página está faltando
>>> > libgettext-rails-ruby1.8
>>> > liblocale-rails-ruby1.8
>>> >
>>> > sabe onde acho?
>>> >
>>> >>
>>> >> > 3) entrar naquele diretório e instalar os pacotes:
>>> >> >
>>> >> > $ dpkg -i *.deb
>>> >
>>> >
>>> > Não seria melhor parar noosfero primeiro?
>>> >
>>> >>
>>> >> >
>>> >> > 4) reiniciar o noosfero
>>> >>
>>> >> faltou:
>>> >>
>>> >> 5) impedir o upgrade automático em background. Eu não uso
>>> >> unattended-upgrades, mas na documentação deve dizer como fazer.
>>> >
>>> >
>>> > É, pelo jeito não foi a decisão correto. O meu raciocínio é que assim
>>> > simularíamos um sysadmin que fica todos os dias checando por
>>> > atualizações de
>>> > segurança, mas parece que não dá para fazer isto sem ter um sistema de
>>> > homologação.
>>> >
>>> > Os seus servidores rodam ainda com a versão de rails antigo?
>>> >
>>> > Ewout
>>> >
>>> >>
>>> >>
>>> >> --
>>> >> Antonio Terceiro <terceiro at colivre.coop.br>
>>> >> Colivre - Cooperativa de Tecnologias Livres
>>> >> http://www.colivre.coop.br/
>>> >>
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> Noosfero-br mailing list
>>> >> Noosfero-br at listas.softwarelivre.org
>>> >> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-br
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > http://social.stoa.usp.br/ewout
>>> > F. 30916696
>>> >
>>> > _______________________________________________
>>> > Noosfero-br mailing list
>>> > Noosfero-br at listas.softwarelivre.org
>>> > http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-br
>>> >
>>>
>>>
>>>
>>> --
>>> Rafael Gomes
>>> Consultor em TI
>>> LPIC-1 MCSO
>>> (71) 8318-0284
>>>
>>> Atenção: Este e-mail pode conter anexos no formato ODF (Open Document
>>> Format)/ABNT (extensões odt, ods, odp, odb, odg). Antes de pedir os
>>> anexos em outro formato, você pode instalar gratuita e livremente o
>>> BrOffice (http://www.broffice.org).
>>> _______________________________________________
>>> Noosfero-br mailing list
>>> Noosfero-br at listas.softwarelivre.org
>>> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-br
>>
>>
>>
>>
>> --
>> http://social.stoa.usp.br/ewout
>> F. 30916696
>
>
>
>
> --
> http://social.stoa.usp.br/ewout
> F. 30916696
>
> _______________________________________________
> Noosfero-br mailing list
> Noosfero-br at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-br
>



-- 
Rafael Gomes
Consultor em TI
LPIC-1 MCSO
(71) 8318-0284

Atenção: Este e-mail pode conter anexos no formato ODF (Open Document
Format)/ABNT (extensões odt, ods, odp, odb, odg). Antes de pedir os
anexos em outro formato, você pode instalar gratuita e livremente o
BrOffice (http://www.broffice.org).


More information about the Noosfero-br mailing list