I-diario não abre após logar

Boa tarde! Depois de muito tempo estou de volta.
Já instalei o i-educar, versão 2.6.0, em modo produção, está rodando certinho. Agora instalei o i-diario, modo produção, abre a tela de login, coloco usuário e senha, loga mas não abre o sistema em nenhum navegador. Abre a página de Erro 500. Alguém pode me ajudar?

Olá, você conseguiu instalar os relatórios no i-educar?

verifica os logs ____

Olá! Há pouco mais de um ano comecei a instalar/utilizar o i-educar, mas por n motivos parei e ainda me considero iniciante nesse sistema. Instalei, entrei como admin, mas ainda não testei tudo.

Olá. Sou iniciante nesse sistema e se puder me dizer onde encontro os logs do i-diario, agradeço.

Se ajudar, por enquanto instalei o i-diario em uma VM com ubuntu server 18.4. O i-educar já está nessa mesma VM. E se tudo der certo, vou dedicar uma máquina com ubuntu server para rodar os dois sistemas.

Encontrei os logs.
O início do erro fica assim.
I, [2021-04-16T13:19:15.575998 #3394] INFO – honeybadger: ** [Honeybadger] Initializing Honeybadger Error Tracker for Ruby. Ship it! version=4.5.6 framework=rails level=1 pid=3394
I, [2021-04-16T13:19:26.994649 #3394] INFO – : Started GET “/” for 192.168.0.5 at 2021-04-16 13:19:26 -0300
I, [2021-04-16T13:19:27.189503 #3394] INFO – : Processing by DashboardController#index as HTML
I, [2021-04-16T13:19:27.189677 #3394] INFO – : Parameters: {“locale”=>“en”}
I, [2021-04-16T13:19:27.214998 #3394] INFO – : Completed 401 Unauthorized in 25ms (ActiveRecord: 7.8ms)
I, [2021-04-16T13:19:27.247232 #3394] INFO – : Started GET “/usuarios/logar” for 192.168.0.5 at 2021-04-16 13:19:27 -0300
I, [2021-04-16T13:19:27.256923 #3394] INFO – : Processing by Users::SessionsController#new as HTML
I, [2021-04-16T13:19:27.257075 #3394] INFO – : Parameters: {“locale”=>“en”}
I, [2021-04-16T13:19:27.348336 #3394] INFO – : Rendered devise/shared/_links.erb (1.7ms)
I, [2021-04-16T13:19:27.348817 #3394] INFO – : Rendered devise/sessions/new.html.erb within layouts/devise (14.5ms)
I, [2021-04-16T13:19:27.350602 #3394] INFO – : Rendered layouts/_google_tag_manager_head.html.erb (0.4ms)
I, [2021-04-16T13:19:27.353167 #3394] INFO – : Rendered layouts/_default_headers.html.erb (1.6ms)
I, [2021-04-16T13:19:27.354367 #3394] INFO – : Rendered layouts/_google_tag_manager_body.html.erb (0.5ms)
W, [2021-04-16T13:19:27.361507 #3394] WARN – : 127.0.0.1:11211 failed (count: 0) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
E, [2021-04-16T13:19:27.372093 #3394] ERROR – : DalliError: No server available
I, [2021-04-16T13:19:27.376204 #3394] INFO – : Rendered layouts/_not_logged_header.html.erb (21.1ms)
W, [2021-04-16T13:19:27.377205 #3394] WARN – : 127.0.0.1:11211 failed (count: 1) Errno::ECONNREFUSED: Connection refused - connect(2) for “127.0.0.1” port 11211
W, [2021-04-16T13:19:27.377303 #3394] WARN – : 127.0.0.1:11211 is down
E, [2021-04-16T13:19:27.377414 #3394] ERROR – : DalliError: No server available
E, [2021-04-16T13:19:27.402549 #3394] ERROR – : DalliError: No server available
I, [2021-04-16T13:19:27.404117 #3394] INFO – : Completed 200 OK in 147ms (Views: 72.3ms | ActiveRecord: 20.4ms)
I, [2021-04-16T13:19:27.650224 #3394] INFO – : Started GET “/stylesheets/application.css” for 192.168.0.5 at 2021-04-16 13:19:27 -0300
F, [2021-04-16T13:19:27.653991 #3394] FATAL – :

Esse é o finalzinho do log:

ActionView::Template::Error (Webpacker can’t find app in /home/ieducar/i-diario/public/packs/manifest.json. Possible causes:

  1. You want to set webpacker.yml value of compile to true for your environment
    unless you are using the webpack -w or the webpack-dev-server.
  2. webpack has not yet re-run to reflect updates.
  3. You have misconfigured Webpacker’s config/webpacker.yml file.
  4. Your webpack configuration is not creating a manifest.
    Your manifest contains:
    {
    }
    ):
    88:
    89:
    90: <%= javascript_include_tag “application” %>
    91: <%= javascript_pack_tag ‘app’ %>
    92: <%= stylesheet_pack_tag ‘app’ %>
    93:
    94: <%= yield :js %>
    app/views/layouts/application.html.erb:91:in _app_views_layouts_application_html_erb___3133380162176926189_70235802954200' app/controllers/application_controller.rb:285:in set_thread_origin_type’
    app/controllers/application_controller.rb:275:in set_user_current' app/models/entity.rb:22:in using_connection’
    app/controllers/application_controller.rb:88:in `handle_customer’

E, [2021-04-16T13:19:41.826131 #3394] ERROR – honeybadger: ** [Honeybadger] Unable to send error report: API key is missing. id=14731fd8-afb7-4e13-b5ca-a6d33dab47ee level=3 pid=3394

Falta instalação do memcached. Com isso corrige esse erro.

Obrigado Tiago pela ajuda, mas ainda não consegui abri o sistema para uso.
Segue o log.

I, [2021-04-26T18:39:57.080837 #2813] INFO – honeybadger: ** [Honeybadger] Initializing Honeybadger Error Tracker for Ruby. Ship it! version=4.5.6 framework=rails le$
I, [2021-04-26T18:40:06.350107 #2813] INFO – : Started GET “/” for 192.168.0.25 at 2021-04-26 18:40:06 +0000
I, [2021-04-26T18:40:06.531526 #2813] INFO – : Processing by DashboardController#index as HTML
I, [2021-04-26T18:40:06.531631 #2813] INFO – : Parameters: {“locale”=>“en”}
I, [2021-04-26T18:40:06.557828 #2813] INFO – : Completed 401 Unauthorized in 26ms (ActiveRecord: 7.3ms)
I, [2021-04-26T18:40:06.605943 #2813] INFO – : Started GET “/usuarios/logar” for 192.168.0.25 at 2021-04-26 18:40:06 +0000
I, [2021-04-26T18:40:06.616417 #2813] INFO – : Processing by Users::SessionsController#new as HTML
I, [2021-04-26T18:40:06.616536 #2813] INFO – : Parameters: {“locale”=>“en”}
I, [2021-04-26T18:40:06.705710 #2813] INFO – : Rendered devise/shared/_links.erb (1.8ms)
I, [2021-04-26T18:40:06.706221 #2813] INFO – : Rendered devise/sessions/new.html.erb within layouts/devise (11.9ms)
I, [2021-04-26T18:40:06.708037 #2813] INFO – : Rendered layouts/_google_tag_manager_head.html.erb (0.3ms)
I, [2021-04-26T18:40:07.520473 #2813] INFO – : Rendered layouts/_default_headers.html.erb (811.9ms)
I, [2021-04-26T18:40:07.521817 #2813] INFO – : Rendered layouts/_google_tag_manager_body.html.erb (0.7ms)
I, [2021-04-26T18:40:07.534607 #2813] INFO – : Rendered layouts/_not_logged_header.html.erb (12.2ms)
I, [2021-04-26T18:40:07.538468 #2813] INFO – : Completed 200 OK in 922ms (Views: 850.9ms | ActiveRecord: 15.9ms)
I, [2021-04-26T18:40:19.016244 #2813] INFO – : Started POST “/usuarios/logar” for 192.168.0.25 at 2021-04-26 18:40:19 +0000
I, [2021-04-26T18:40:19.018908 #2813] INFO – : Processing by Users::SessionsController#create as HTML
I, [2021-04-26T18:40:19.019051 #2813] INFO – : Parameters: {“utf8”=>“✓”, “authenticity_token”=>"9j1BRBpsnPBY65c4o+bmd3ikyUJyJ0Ux5Rp4zHwKFwscAglrB3I5NYxNAB54SnAr1IS$
I, [2021-04-26T18:40:19.213545 #2813] INFO – : Redirected to http://192.168.0.8:3000/
I, [2021-04-26T18:40:19.213745 #2813] INFO – : Completed 302 Found in 195ms (ActiveRecord: 32.2ms)
I, [2021-04-26T18:40:19.235331 #2813] INFO – : Started GET “/” for 192.168.0.25 at 2021-04-26 18:40:19 +0000
I, [2021-04-26T18:40:19.236711 #2813] INFO – : Processing by DashboardController#index as HTML
I, [2021-04-26T18:40:19.236775 #2813] INFO – : Parameters: {“locale”=>“en”}
I, [2021-04-26T18:40:19.264956 #2813] INFO – : Rendered dashboard/_teacher_next_avaliations.html.erb (2.2ms)
I, [2021-04-26T18:40:19.267908 #2813] INFO – : Rendered dashboard/_teacher_pending_avaliations.html.erb (2.3ms)
I, [2021-04-26T18:40:19.269983 #2813] INFO – : Rendered dashboard/_teacher_work_done.html.erb (1.3ms)
I, [2021-04-26T18:40:19.270069 #2813] INFO – : Rendered dashboard/_teacher_dashboard.html.erb (8.5ms)
I, [2021-04-26T18:40:19.270142 #2813] INFO – : Rendered dashboard/index.html.erb within layouts/application (9.8ms)
I, [2021-04-26T18:40:19.273918 #2813] INFO – : Rendered layouts/_datalayer.erb (2.1ms)
I, [2021-04-26T18:40:19.274144 #2813] INFO – : Rendered layouts/_google_tag_manager_head.html.erb (0.1ms)
I, [2021-04-26T18:40:19.294883 #2813] INFO – : Rendered layouts/_default_headers.html.erb (1.6ms)
I, [2021-04-26T18:40:19.295112 #2813] INFO – : Rendered layouts/_google_tag_manager_body.html.erb (0.0ms)
I, [2021-04-26T18:40:19.300624 #2813] INFO – : Rendered layouts/_profile_selection.html.erb (0.3ms)
I, [2021-04-26T18:40:19.327496 #2813] INFO – : Rendered layouts/_system_notifications.html.erb (26.3ms)
I, [2021-04-26T18:40:19.351103 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.355424 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.359710 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.365789 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.368553 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy found
I, [2021-04-26T18:40:19.372835 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.376054 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy found
I, [2021-04-26T18:40:19.380238 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.384169 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.388257 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.392132 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.395424 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy found
I, [2021-04-26T18:40:19.399757 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.402834 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy found
I, [2021-04-26T18:40:19.408562 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.412617 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.416890 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.422545 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.426731 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.432612 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.436710 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.442793 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.446997 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.453358 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.457505 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.462443 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy found
I, [2021-04-26T18:40:19.465302 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy found
I, [2021-04-26T18:40:19.469310 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.473611 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.477617 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.481460 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.485300 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.489562 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.495266 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.499362 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.503377 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.507093 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.512532 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.516602 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.521306 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.525390 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.529545 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.534434 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.539507 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.544313 #2813] INFO – : LOG: Navigation::Render::Base#policy - Policy fallback
I, [2021-04-26T18:40:19.547694 #2813] INFO – : Rendered layouts/_navigation.html.erb (219.2ms)
I, [2021-04-26T18:40:19.601134 #2813] INFO – : Completed 500 Internal Server Error in 364ms (ActiveRecord: 54.9ms)
F, [2021-04-26T18:40:19.602770 #2813] FATAL – :
ActionView::Template::Error (Webpacker can’t find app in /home/ieducar/i-diario/public/packs/manifest.json. Possible causes:

  1. You want to set webpacker.yml value of compile to true for your environment
    unless you are using the webpack -w or the webpack-dev-server.
  2. webpack has not yet re-run to reflect updates.
  3. You have misconfigured Webpacker’s config/webpacker.yml file.
  4. Your webpack configuration is not creating a manifest.
    Your manifest contains:
    {
    }
    ):
    88:
    89:
    90: <%= javascript_include_tag “application” %>
    91: <%= javascript_pack_tag ‘app’ %>
    92: <%= stylesheet_pack_tag ‘app’ %>
    93:
    94: <%= yield :js %>
    app/views/layouts/application.html.erb:91:in _app_views_layouts_application_html_erb___333802395387399813_46914078541900' app/controllers/application_controller.rb:285:in set_thread_origin_type’
    app/controllers/application_controller.rb:275:in set_user_current' app/models/entity.rb:22:in using_connection’
    app/controllers/application_controller.rb:88:in `handle_customer’

E, [2021-04-26T18:40:19.603935 #2813] ERROR – honeybadger: ** [Honeybadger] Unable to send error report: API key is missing. id=c2b81f78-1895-4aec-96de-f3505bd0f4e9 l$

Pelo erro, falta a instalação do Webpack.

Talvez esse pacote no ubuntu também sirva: node-webpack.

Mais uma vez obrigado @tiago.camargo. Instalei o Nodejs, o webpack, conforme orientação do site, mas ainda não foi dessa vez. Continua dando mesmo log.
Tá difícil esse i-diario 1.3.3. Você teria um tutorial para modo de produção dessa versão do i-diario no ubuntu server 18.04? Pois já tentei tudo.

Gilcimartec conseguiu resolver? Aqui pra mim deu esse erro também

Ainda não consegui. Até tentei instalar através do docker e também não funcionou. No docker, na hora de iniciar o servidor aparece a mensagem do print abaixo.


Peço, por favor, ao pessoal da Portabilis que nos ajudem…

Tens como fazer um teste?
Adiciona um -d em i-diario/start at d3c07696e76f675ff38475c82b714c8f8a474421 · portabilis/i-diario · GitHub, deixando desta forma: bundle exec rails server -b 0.0.0.0 -d.

Se funcionar, pode abrir um PR descrevendo o erro e reportando a correção?

@gilcimartec , você seguiu quais manuais de instalação para modo produção? Seria possível compartilhar aqui para ajudar a comunidade?

Para instalar o i-diario, modo produção, segui os passos da postagem do @flavio .

Acredito que faltou algo mais para o sistema funcionar, porque só consegui chegar na tela de logon. Depois quando colocava login e senha para abrir o sistema dava erro 500. Conforme explicado nos posts anteriores.

Quais informações você precisa?
Para uma versão mais antiga isso funcionava bem.
Mas com a versão 20.04 tem problema com a libssl1.0. E no i-diário adicionado nodeJS/webpack, postgres 13 e forma de chamar o sidekiq.

Podendo ajudar, só me chamar.

1 curtida

Obrigado pela disposição @tiago.camargo, levantei algumas informações e estou ajustando a instalação para ver se funciona perfeitamente.