posty / posty_api

Utility to administrate mailserver based on postfix and dovecot
www.posty-soft.org
Other
85 stars 19 forks source link

New Vagrant Installation : bugs and fixes #20

Closed aditya- closed 9 years ago

aditya- commented 9 years ago

Hi @chicobico @lweis

I have tested installing posty through vagrant . So following are the issues i've faced and i fixed those problems .. so we need to make these changes in our vagarant script

After entering vagrant up . its was run successful .. at some point i got following error

==> default: /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.9.4/lib/bundler/runtime.rb:34:in `block in setup'
==> default: : 
==> default: You have already activated rack 1.6.0, but your Gemfile requires rack 1.5.2. Prepending `bundle exec` to your command may solve this.

then i logged in to vm.. i have fixed the error with following commands

gem install rack --version=1.5.2
gem uninstall rack --version=1.6.0

Again it was failed at installing apache2 passenger module with following error

==> default: mkdir -p buildout/support-binaries
==> default: virtual memory exhausted: Cannot allocate memory
==> default: rake aborted!
==> default: Tasks: TOP => apache2 => buildout/support-binaries/PassengerAgent => buildout/support-binaries/ServerMain.o
==> default: (See full trace by running task with --trace)
==> default: ---- End output of passenger-install-apache2-module --auto --languages ruby ----

This is becuase of most of system virtual memory may exhaust depending on the system configuration. passanger modules requires more virtual memory.. so its bettern if we have atleast swap disk which will bypass the problem. so we need to run the following commands to avoid this error

  sudo dd if=/dev/zero of=/swap bs=1M count=1024
  sudo mkswap /swap
  sudo swapon /swap

I am requesting you to please make appropriate changes in the vagrant script and make it live

aditya- commented 9 years ago

I want to customize box , so how i can do this ?

aditya- commented 9 years ago

issues fixed