Project

General

Profile

Actions

Support #14435

closed

Problem in memcache plugin

Added by Juan Carlos Perez about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi again!
A new problem appears on the installation.
Environment:
Ubuntu 12 precise
Over virtual box
On windows 7 host

After the deployment script based on this :
https://gist.github.com/yoplait/252a8fa00f75a72f8688f7dce0f98ff3

I ran the install command without problems, it takes some time

sudo foreman-installer \
--no-enable-puppet \
--no-enable-foreman-plugin-bootdisk \
--no-enable-foreman-proxy \
--foreman-db-adapter=mysql2 \
--foreman-db-database=foreman \
--foreman-db-host=db.domain \
--foreman-db-manage=false \
--foreman-db-username=foreman \
--foreman-db-password='foreman_password' \
--foreman-db-port=3306 \
--foreman-db-type=mysql \
--foreman-server-ssl-ca=/etc/ssl/domain/certs/ca.pem \
--foreman-server-ssl-chain=/etc/ssl/domain/certs/ca.pem \
--foreman-server-ssl-cert=/etc/ssl/domain/certs/domain.pem \
--foreman-server-ssl-key=/etc/ssl/domain/private_keys/domain.pem \
--foreman-server-ssl-crl=/etc/ssl/domain/certs/intermediate.crl.pem

and after I get this:
Installing Done
Success! * Foreman is running at https://foreman.domain
Initial credentials are admin / nXnEc4XYQs4mmnKK
The full log is at /var/log/foreman-installer/foreman-installer.log

But when I go to set the memcached plugin using these lines:

echo "gem 'foreman_memcache'" | sudo tee -a /usr/share/foreman/bundler.d/Gemfile.local.rb
sudo chown foreman:foreman /usr/share/foreman/bundler.d/Gemfile.local.rb
cd ~foreman
sudo -u foreman bundle update foreman_memcached
touch ~foreman/tmp/restart.txt

I got this error
root@foreman:/usr/share/foreman# sudo -u foreman bundle update foreman_memcached
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.5.0)
Installing i18n (0.6.11)
Installing multi_json (1.11.2)
Installing activesupport (3.2.21)
Installing builder (3.0.4)
Installing activemodel (3.2.21)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.7)
Installing rack-cache (1.2)
Installing rack-test (0.6.3)
Installing hike (1.2.3)
Installing tilt (1.4.1)
Installing sprockets (2.2.3)
Installing actionpack (3.2.21)
Installing mime-types (1.25.1)
Installing polyglot (0.3.5)
Installing treetop (1.4.15)
Installing mail (2.5.4)
Installing actionmailer (3.2.21)
Installing arel (3.0.3)
Installing tzinfo (0.3.48)
Installing activerecord (3.2.21)
Installing activeresource (3.2.21)
Installing ancestry (2.1.0)
Installing json (1.8.3) with native extensions
Installing apipie-rails (0.2.6)
Installing audited (3.0.0)
Installing audited-activerecord (3.0.0)
Using bundler (1.2.2)
Installing coffee-script-source (1.10.0)
Installing execjs (2.4.0)
Installing coffee-script (2.4.1)
Installing rack-ssl (1.3.4)
Installing rdoc (3.12.2)
Installing thor (0.19.1)
Installing railties (3.2.21)
Installing coffee-rails (3.2.2)
Installing dalli (2.7.6)
Installing deep_cloneable (2.2.0)
Installing fast_gettext (0.9.2)
Installing foreigner (1.7.4)
Gem::InstallError: foreigner requires Ruby version >= 1.9.2.
An error occurred while installing foreigner (1.7.4), and Bundler cannot continue.
Make sure that `gem install foreigner -v '1.7.4'` succeeds before bundling.

So I try to install that one but….

root@foreman:/usr/share/foreman# gem install foreigner -v '1.7.4'
Fetching: i18n-0.7.0.gem (100%)
ERROR: Error installing foreigner:
i18n requires Ruby version >= 1.9.3.
root@foreman:/usr/share/foreman#

root@foreman:/usr/share/foreman# ruby --version
rvmruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Thanks!
JC

Actions

Also available in: Atom PDF