-
Notifications
You must be signed in to change notification settings - Fork 184
Installation on RHEL 7.5 #381
Comments
Sounds like you don't have the workers running; there's a systemd config file at The docs are at btw you can get yarn for RHEL here: and what error did |
Hi, the delayed_job executable is in the bin directory now. I would be very much interested in those errors from db:setup if you still have the logs. |
ok, I see the workers running helped, I just hadn't seen it from the main instruction page. thx. $ RAILS_ENV=production bundle exec rake db:setup Original message: Mysql2::Error: Can't create table 'dashboard.#sql-59c_5' (errno: 150): ALTER TABLE /usr/local/rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in '
Caused by: /usr/local/rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-2.2.5/bin/ruby_executable_hooks:15:in 'Tasks: TOP => db:schema:load (See full trace by running task with --trace) |
thanks! sounds like we need to make |
ok, until then what would be best workaround? Is this correct? Because i'm getting broken links for the images. bundle exec rake db:drop RAILS_ENV=production |
Hmm, I just tried to verify this with a CentOS 7 Vagrant Box but with postgres and db:setup worked. The reason for this seems to be that db:setup loads the db/schema.rb which was generated for postgresql and does not work on MySQL. So I recomend we remove the db:setup from the installation instructions because it does not work for all the databases. I started to rework the installation manual while installing it in the box. Currently it is only for Postgres and I have to verify it again. Here is the current version in a temporary branch: https://github.com/ZeroPointEnergy/puppet-dashboard/blob/new-documentation/docs/installation_centos_7.markdown Your problem with the missing images may come from the fact that in the production environment rails does not serve static files because it assumes that apache or ngnix will do that. You can tell it to serve them by setting: export RAILS_SERVE_STATIC_FILES=true |
That helps, thanks. |
hi, I managed to get this to run on rhel 7.5 but the data going in just doesn't show up, I see 100's pending tasks stacking up, so I know the data is definitely getting there. Is there something else i'm missing? I notice there's no script/delayed_job anymore. any help is much appreciated, thanks!
Had to do it like this, since there is no yarn for rhel, and db:setup gives an error about some field types that don't match:
bundle exec rake db:drop RAILS_ENV=production
bundle exec rake db:create RAILS_ENV=production
bundle exec rake db:migrate RAILS_ENV=production
$ export SECRET_KEY_BASE=$(bundle exec rails secret)
$ RAILS_ENV=production bundle exec rails server
=> Booting Thin
=> Rails 5.2.0 application starting in production on http://0.0.0.0:3000
=> Run
rails server -h
for more startup optionsThin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
The text was updated successfully, but these errors were encountered: