postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
https://postalserver.io
MIT License
14.81k stars 1.05k forks source link

ActionView::Template::Error #549

Closed ajsb85 closed 6 years ago

ajsb85 commented 6 years ago
03:32:54 system          | Procodile supervisor started with PID 1954
03:32:54 system          | Application root is /opt/postal/app
03:32:54 system          | Automatic respawning is disabled
03:32:54 system          | Reloading configuration
03:32:54 control         | Listening at /tmp/postal/pids/procodile.sock
03:32:54 web.1           | Started with PID 1958
03:32:54 worker.1        | Started with PID 1960
03:32:54 cron.1          | Started with PID 1962
03:32:54 smtp.1          | Started with PID 1964
03:32:54 requeuer.1      | Started with PID 1966
03:32:55 web.1           | => Puma starting in single mode...
03:32:55 web.1           | => * Version 3.8.2 (ruby 2.5.0-p0), codename: Sassy Salamander
03:32:55 web.1           | => * Min threads: 5, max threads: 5
03:32:55 web.1           | => * Environment: production
03:32:58 smtp.1          | => [smtp.1:1964] [2018-03-30T03:32:58.577] INFO -- : ** [Raven] Raven 2.1.0 configured not to capture errors.
03:32:58 requeuer.1      | => [requeuer.1:1966] [2018-03-30T03:32:58.626] INFO -- : ** [Raven] Raven 2.1.0 configured not to capture errors.
03:32:58 cron.1          | => [cron.1:1962] [2018-03-30T03:32:58.646] INFO -- : ** [Raven] Raven 2.1.0 configured not to capture errors.
03:32:58 smtp.1          | => [smtp.1:1964] [2018-03-30T03:32:58.783] INFO -- : Listening on port 25
03:32:58 requeuer.1      | => [requeuer.1:1966] [2018-03-30T03:32:58.785] INFO -- : Running message requeuer...
03:32:58 cron.1          | => [cron.1:1962] [2018-03-30T03:32:58.837] INFO -- : Starting clock for 8 events: [ every-1-minutes every-15-minutes every-15-minutes every-15-minutes every-15-minutes every-hour every-hour every-day ]
03:32:58 cron.1          | => [cron.1:1962] [2018-03-30T03:32:58.838] INFO -- : Triggering 'every-1-minutes'
03:32:59 web.1           | => [web.1:1958] [2018-03-30T03:32:59.145] INFO -- : ** [Raven] Raven 2.1.0 configured not to capture errors.
03:32:59 web.1           | => * Listening on tcp://127.0.0.1:5000
03:32:59 web.1           | => Use Ctrl-C to stop
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.518] INFO -- : ** [Raven] Raven 2.1.0 configured not to capture errors.
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.665] INFO -- : Worker running with 4 threads
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.684] INFO -- : Joined main queue
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.684] INFO -- : [L5FRXEBWQI] Started processing RequeueWebhooksJob job
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.684] INFO -- : [VBL5RIGC8O] Started processing SendNotificationsJob job
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.783] INFO -- : [L5FRXEBWQI] Finished processing RequeueWebhooksJob job in 0.098782555s
03:32:59 worker.1        | => /opt/postal/vendor/bundle/ruby/2.5.0/gems/bunny-2.5.1/lib/bunny/channel.rb:1974: warning: constant ::Fixnum is deprecated
03:32:59 worker.1        | => [worker.1:1960] [2018-03-30T03:32:59.870] INFO -- : [VBL5RIGC8O] Finished processing SendNotificationsJob job in 0.186022268s
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.528] INFO -- : Started GET "/" for 141.101.88.53 at 2018-03-30 03:33:20 +0200
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.611] INFO -- : Processing by OrganizationsController#index as HTML
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.637] INFO -- : Redirected to https://postal.mail.com/login?return_to=%2F
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.638] INFO -- : Filter chain halted as :login_required rendered or redirected
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.638] INFO -- : Completed 302 Found in 27ms
03:33:20 web.1           | => 79.155.126.139, 141.101.88.53 - - [30/Mar/2018:03:33:20 +0200] "GET / HTTP/1.0" 302 - 0.1510
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.695] INFO -- : Started GET "/login?return_to=%2F" for 141.101.88.53 at 2018-03-30 03:33:20 +0200
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.705] INFO -- : Processing by SessionsController#new as HTML
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.705] INFO -- :   Parameters: {"return_to"=>"/"}
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.710] INFO -- :   Rendering sessions/new.html.haml within layouts/sub
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.739] INFO -- :   Rendered sessions/new.html.haml within layouts/sub (28.7ms)
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.786] INFO -- : Completed 500 Internal Server Error in 81ms
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.789] FATAL -- :
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.789] FATAL -- : ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::EXPR_BEGEXPR_ARGEXPR_BEG):
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.789] FATAL -- :      5:     = csrf_meta_tags
03:33:20 web.1           | =>      6:     = stylesheet_link_tag 'application/application', 'data-turbolinks-track' => 'reload'
03:33:20 web.1           | =>      7:     = javascript_include_tag 'application/application', 'data-turbolinks-track' => 'reload'
03:33:20 web.1           | =>      8:     %link{:href => asset_path('favicon.png'), :rel => 'shortcut icon'}
03:33:20 web.1           | =>      9:     <meta name="turbolinks-cache-control" content="no-cache">
03:33:20 web.1           | =>     10:   %body
03:33:20 web.1           | =>     11:     .subPageBox{:class => @wide ? "subPageBox--wide" : ''}
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.789] FATAL -- :
03:33:20 web.1           | => [web.1:1958] [2018-03-30T03:33:20.789] FATAL -- : app/views/layouts/sub.html.haml:8:in `_app_views_layouts_sub_html_haml__3713352458321098335_47365217087280'
03:33:20 web.1           | => 79.155.126.139, 141.101.88.53 - - [30/Mar/2018:03:33:20 +0200] "GET /500?return_to=%2F HTTP/1.0" 500 1477 0.0984
03:33:58 cron.1          | => [cron.1:1962] [2018-03-30T03:33:58.931] INFO -- : Triggering 'every-1-minutes'
03:33:58 worker.1        | => [worker.1:1960] [2018-03-30T03:33:58.934] INFO -- : [O9LQT2H6TM] Started processing RequeueWebhooksJob job
03:33:58 worker.1        | => [worker.1:1960] [2018-03-30T03:33:58.936] INFO -- : [Y027B2JLWZ] Started processing SendNotificationsJob job
03:33:59 worker.1        | => [worker.1:1960] [2018-03-30T03:33:59.014] INFO -- : [O9LQT2H6TM] Finished processing RequeueWebhooksJob job in 0.079818668s
03:33:59 worker.1        | => [worker.1:1960] [2018-03-30T03:33:59.088] INFO -- : [Y027B2JLWZ] Finished processing SendNotificationsJob job in 0.152651618s
ajsb85 commented 6 years ago

So, Postal does not support Ruby 2.5

willpower232 commented 6 years ago

Ruby 2.5 was released well after Postals release so I'm not entirely surprised. This is probably an issue for atech to resolve but with the imminent release of Ubuntu 18.04, I wouldn't be surprised if there was an update to Postal in the near future.

adamcooke commented 6 years ago

We don't yet officially support 2.5 and haven't done any testing on that. For now, we recommend using 2.3.

mad42 commented 6 years ago

Hi, I had similar issue trying to use postal with Ruby 2.5 these issues are related to a bug in Haml (see https://github.com/haml/haml/issues/974) postal bundle /opt/postal/vendor/bundle did not update Haml to 5.0.4 (which fixes the bug), so I had to modify the Gemfile gem 'haml', '~> 5.0', '>= 5.0.4'

Works for now on 2.5.1