Impossible to install aimeos/laravel on 1GB Linode

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
david.horner
Posts: 4
Joined: 06 Aug 2019, 09:38

Impossible to install aimeos/laravel on 1GB Linode

Post by david.horner » 06 Aug 2019, 10:30

I have tried every composer option I can find and every one ends up with the same error
proc_open(): fork failed - Cannot allocate memory

Is 1GB enough to run my final shop but not enough to allow an install ?

Server spec:
Linode 1GB ram 25GB disk with Ubuntu 18.04 LTS
PHP 7.2.19-0ubuntu0.18.04.1 (cli) (built: Jun 4 2019 14:48:12) ( NTS )

xuser@tk:/var/www/html/tk$ free -m
total used free shared buff/cache available
Mem: 985 80 844 1 59 804
Swap: 511 411 100

-----------------------------
composer req aimeos/aimeos-laravel

xuser@tk:/var/www/html/tk$ composer req aimeos/aimeos-laravel
Using version ^2019.07 for aimeos/aimeos-laravel
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 58 installs, 0 updates, 0 removals
- Installing composer/installers (v1.6.0): Downloading (100%)
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/tr ... led-errors for details

In Process.php line 344:

proc_open(): fork failed - Cannot allocate memory


-----------------------
composer require laravel/laravel
composer create-project aimeos/aimeos myshop

xuser@tk:/var/www/html/tk$ rm -r myshop
xuser@tk:/var/www/html/tk$ composer create-project aimeos/aimeos myshop
Installing aimeos/aimeos (2018.10.3)
- Installing aimeos/aimeos (2018.10.3): Loading from cache
Created project in myshop
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
> @php -r "mkdir('public/files'); mkdir('public/preview'); mkdir('public/uploads');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 94 installs, 0 updates, 0 removals
- Installing kylekatarnls/update-helper (1.2.0): Loading from cache
The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/tr ... led-errors for details

In Process.php line 344:

proc_open(): fork failed - Cannot allocate memory

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Impossible to install aimeos/laravel on 1GB Linode

Post by aimeos » 06 Aug 2019, 10:34

1GB is enough for running Laravel and Aimeos but composer seems to require more memory for installation. You can try to run composer locally, transfer the installation to your server and run composer again to see if it works for updating.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
david.horner
Posts: 4
Joined: 06 Aug 2019, 09:38

Re: Impossible to install aimeos/laravel on 1GB Linode

Post by david.horner » 06 Aug 2019, 10:56

That was my next thing to try.
Looks like composer is going the way of everything after a while. Its becoming too big and bloated to be any use.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Impossible to install aimeos/laravel on 1GB Linode

Post by aimeos » 07 Aug 2019, 09:20

The composer code is small but the package list for packagist is getting huge and the composer code isn't optimized for memory usage
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply