netsensei / ansible-collectiveaccess

Ansible provisioning for CollectiveAccess http://collectiveaccess.org
MIT License
3 stars 3 forks source link

Post Installation Configuration #3

Open erickcardosomx opened 4 years ago

erickcardosomx commented 4 years ago

Hi

I made the vagrant installation without problem, when I access from my browser send me this message

"Your installation is missing required vendor libraries. This is normal if you have just installed from a Git branch. Click here to automatically load the required libraries, or see the wiki for instructions on installing the required libraries manually. NOTE: Installation may take some time."

Then I click the link for the automatically load and send me the next message. Issues with your system configuration have been detected General installation instructions can be found here. For more specific hints on the existing issues please have a look at the messages below.

Automatic installation of the required vendor libraries failed: Library installation failed: Loading composer repositories with package information; Updating dependencies (including require-dev); ; mmap() failed: [12] Cannot allocate memory; ; mmap() failed: [12] Cannot allocate memory; PHP Fatal error: Out of memory (allocated 794828800) (tried to allocate 4096 bytes) in phar:///vagrant/app/tmp/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223; ; Fatal error: Out of memory (allocated 794828800) (tried to allocate 4096 bytes) in phar:///vagrant/app/tmp/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

But I can not find specific instructions for solve manually, or fix the link problem.

Could any one help me ???

netsensei commented 4 years ago

Hi,

When you first load CollectiveAccess, it tries to download and install extra PHP components it needs to function. CollectiveAccess uses the Composer package manager tool to do that.

While composer is running the background, retrieving all necessary packages, it hits a hard limit on how much RAM memory it's allowed to use. That triggers the error.

You could try this to solve this:

  1. Halt your vagrant box (vagrant halt)
  2. Edit the Vagrantfile and set the memory parameter from 1024 to 2048. This is how much system RAM you are going to allocate to the virtual machine. Caution: it can never be higher then what you physically have in your computer.
  3. Start and log into your vagrant box (vagrant up and vagrant ssh)
  4. Go into /etc and look for php.ini files (.eg. cd /etc && find . -name php.ini)
  5. Edit the files you find (use vim or nano) and look for the memory_limit setting. It's currently set to 512. You could up that to 1024. You also need to do this as either root or via sudo.
  6. Logout and restart or reload your box.
  7. Try the installation again.

This project is several years old now. It uses an old versions of PHP, MySQL, Ubuntu, etc. So, it's long past it's warranty anyways.