Content
[Solved] couldn't find file 'jquery.atwho' OpenProject 3.0.0
Added by Zelma Loera over 10 years ago
I’ve installed Open Project and plugins on Ubuntu 12.04.
The server works fine:
root@usuario-VirtualBox:/home/usuario/dev/openproject# bundle exec rails server
require ‘rails/all’… 0.720s
Bundler.require… 7.260s
=> Booting Thin
=> Rails 3.2.17 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Application.initialize!… [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
7.590s
Thin web server (v1.6.2 codename Doc Brown)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
Started GET “/” for 127.0.0.1 at 2014-03-06 21:08:30 –0600
But, When I open in the browser, http://0.0.0.0:3000 or http://localhost:3000, I got the following error, the browser shows:
Sprockets::FileNotFound in Welcome#index
Showing /home/usuario/dev/openproject/app/views/layouts/base.html.erb where line #45 raised:
couldn’t find file ‘jquery.atwho’
(in /home/usuario/dev/openproject/app/assets/javascripts/application.js.erb:16)
Extracted source (around line #45):
42: <%= stylesheet_link_tag ‘accessibility’ %>
43: <% end %>
44:
45: <%= javascript_include_tag ‘application’ %>
46:
47: <%= user_specific_javascript_includes %>
48:
Rails.root: /home/usuario/dev/openproject
And the terminal shows:
Completed 500 Internal Server Error in 1074.7ms
ActionView::Template::Error (couldn’t find file ‘jquery.atwho’
(in /home/usuario/dev/openproject/app/assets/javascripts/application.js.erb:16)):
42: <%= stylesheet_link_tag ‘accessibility’ %>
43: <% end %>
44:
45: <%= javascript_include_tag ‘application’ %>
46:
47: <%= user_specific_javascript_includes %>
48:
app/views/layouts/base.html.erb:45:in `_app_views_layouts_base_html_erb__477970257_96243510’
Replies (3)
I completed all steps also for production with pre-parameter RAILS_ENV=“production”:
RAILS_ENV=“production” bundle exec rake db:migrate
RAILS_ENV=“production” bundle exec rake db:seed
RAILS_ENV=“production” bundle exec rake assets:precompile
RAILS_ENV=“production” bundle exec rails server
But, When I open in the browser, http://0.0.0.0:3000 or http://localhost:3000, I got the following browser error:
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your OpenProject administrator for assistance.
If you are the OpenProject administrator, check your log files for details about the error.
And the terminal shows:
Started GET “/” for 127.0.0.1 at 2014-03-07 12:13:02 –0600
Processing by WelcomeController#index as HTML
Rendered welcome/index.html.erb within layouts/base (113.6ms)
Completed 500 Internal Server Error in 1214.0ms
ActionView::Template::Error (favicon.ico isn’t precompiled):
36:
<meta name="current_menu_item" content="<%= current_menu_item %>
" />
37:
<meta name="accessibility-mode" content="<%= current_user.impaired? %>
" />
38: <%= csrf_meta_tags %>
39: <%= favicon_link_tag ‘favicon.ico’ %>
40: <%= stylesheet_link_tag current_theme.stylesheet_manifest, :media => “all” %>
41: <% if User.current.impaired? && accessibility_css_enabled? %>
42: <%= stylesheet_link_tag ‘accessibility’ %>
lib/open_project/themes/view_helpers.rb:53:in `image_path’
app/views/layouts/base.html.erb:39:in `_app_views_layouts_base_html_erb__140103852_106191150’
This error usually appears when asset precompilation didn’t run. Can you check that your Rails process can access the precompiled assets in
public/assets
?Here’s someone having a similar problem with jquery.atwho:
Development mode (without RAILS_ENV=production) should also work, you might have run
bundle update
. The work package I linked to above describes a fix for this.Cheers,
Michael
Thanks Michael, at last it works fine.
Regards,
Zelma.