Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Mailcatcher dependencies problem on CentOS 6.5 #890

Closed
stanicek opened this issue Jul 16, 2014 · 2 comments
Closed

Mailcatcher dependencies problem on CentOS 6.5 #890

stanicek opened this issue Jul 16, 2014 · 2 comments

Comments

@stanicek
Copy link

Hi,

I have following problem when provisioning machine with Mailcatcher on CentOS 6.5.

Stderr from the command:

Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri mime-types' returned 1: ERROR: Error installing mime-types:
mime-types requires Ruby version >= 1.9.2.
Error: /Stage[main]/Mailcatcher::Package/Package[mime-types]/ensure: change from absent to present failed: Execution of '/usr/bin/gem install --no-rdoc --no-ri mime-types' returned 1: ERRO
R: Error installing mime-types:
mime-types requires Ruby version >= 1.9.2.
Warning: /Stage[main]/Mailcatcher::Package/Package[mailcatcher]: Skipping because of failed dependencies
Warning: /Stage[main]/Main/Supervisord::Program[mailcatcher]/File[/etc/supervisor.d/program_mailcatcher.conf]: Skipping because of failed dependencies
Warning: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_reread]: Skipping because of failed dependencies
Warning: /Stage[main]/Supervisord::Reload/Exec[supervisorctl_update]: Skipping because of failed dependencies
Warning: /Stage[main]/Mailcatcher::Config/User[mailcatcher]: Skipping because of failed dependencies
Warning: /Stage[main]/Mailcatcher::Config/File[/var/log/mailcatcher]: Skipping because of failed dependencies

It looks that it is trying to install package mime-types dependent on Ruby 1.9.2 or higher which is not installed and package ruby193 is not enough for it.

Workaround is to install manualy mime-types in version 1.25.1 which can be ok with default CentOS Ruby 1.8.7 by executing gem install mime-types -v 1.2.5 before installation of Mailcatcher.

I expect it should provision Mailcatcher without additional manual work even on OS's without latest Ruby when it looks it can be installed with older Ruby 1.8.7 manually. Am I right?

Thanks a lot for your opinion or recommendation.

My config.yaml:


vagrantfile-local:
vm:
box: puphpet/centos65-x64
box_url: puphpet/centos65-x64
hostname: devenv.local
memory: '2048'
chosen_provider: virtualbox
network:
private_network: 192.168.56.241
forwarded_port: { }
provider:
virtualbox:
modifyvm:
natdnshostresolver1: on
setextradata:
VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root: 1
vmware:
numvcpus: 1
parallels:
cpus: 1
provision:
puppet:
manifests_path: puphpet/puppet
manifest_file: manifest.pp
module_path: puphpet/puppet/modules
options:
- '--verbose'
- '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'
- '--parser future'
synced_folder: { }
usable_port_range: 2200..2250
ssh:
host: null
port: null
private_key_path: null
username: vagrant
guest_port: null
keep_alive: true
forward_agent: false
forward_x11: false
shell: 'bash -l'
vagrant:
host: detect
server:
packages: { }
dot_files:
-
bash_aliases: null
_prevent_empty: ''
mailcatcher:
install: '1'
settings:
smtp_ip: 0.0.0.0
smtp_port: 1025
http_ip: 0.0.0.0
http_port: '1080'
mailcatcher_path: /usr/local/bin
log_path: /var/log/mailcatcher/mailcatcher.log
firewall:
install: '0'
rules: null
apache:
install: '0'
settings:
user: www-data
group: www-data
default_vhost: true
manage_user: false
manage_group: false
sendfile: 0
modules:
- php
- rewrite
vhosts:
FPPZ2Gdyratx:
servername: default.dev
docroot: /var/www/default
port: '80'
override:
- All
options:
- Indexes
- FollowSymLinks
- MultiViews
custom_fragment: ''
ssl_cert: ''
ssl_key: ''
ssl_chain: ''
ssl_certs_dir: ''
mod_pagespeed: 0
mod_spdy: 0
nginx:
install: 0
settings:
default_vhost: 1
proxy_buffer_size: 128k
proxy_buffers: '4 256k'
vhosts:
JhuCDWshRTH9:
server_name: awesome.dev
server_aliases:
- www.awesome.dev
www_root: /var/www/awesome.dev
listen_port: '80'
index_files:
- index.html
- index.htm
- index.php
envvars:
- 'APP_ENV dev'
ssl_cert: ''
ssl_key: ''
php:
install: '0'
version: '55'
composer: 1
composer_home: ''
modules:
php:
- cli
- intl
- mcrypt
pear: { }
pecl:
- pecl_http
ini:
display_errors: On
error_reporting: '-1'
session.save_path: /var/lib/php/session
timezone: Europe/Prague
xdebug:
install: '0'
settings:
xdebug.default_enable: '1'
xdebug.remote_autostart: '0'
xdebug.remote_connect_back: '1'
xdebug.remote_enable: '1'
xdebug.remote_handler: dbgp
xdebug.remote_port: '9000'
xhprof:
install: '0'
drush:
install: '0'
settings:
drush.tag_branch: 6.x
mysql:
install: '0'
root_password: '123'
adminer: 0
databases:
UBDlsoTHlXlp:
grant:
- ALL
name: dbname
host: localhost
user: dbuser
password: '123'
sql_file: ''
postgresql:
install: 0
settings:
root_password: '123'
user_group: postgres
encoding: UTF8
version: '9.3'
databases: { }
adminer: 0
mariadb:
install: 0
root_password: '123'
adminer: 0
databases: { }
version: '10.0'
mongodb:
install: 0
settings:
auth: 1
port: '27017'
databases: { }
redis:
install: 0
settings:
conf_port: '6379'
beanstalkd:
install: 0
settings:
listenaddress: 0.0.0.0
listenport: '13000'
maxjobsize: '65535'
maxconnections: '1024'
binlogdir: /var/lib/beanstalkd/binlog
binlogfsync: null
binlogsize: '10485760'
beanstalk_console: 0
binlogdir: /var/lib/beanstalkd/binlog
rabbitmq:
install: 0
settings:
port: '5672'

@pvankouteren
Copy link

Seems like #806

@stanicek
Copy link
Author

Sorry, I missed it. It is the same. I have some solution how to modify mailcatcher puppet module for CentOS, it should work for Ubuntu 12 also. I will post more to #806.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants