cancel
Showing results for 
Search instead for 
Did you mean: 

Magento Installation not getting completed

Magento Installation not getting completed

I have tried the command below command to install 

 

/usr/bin/php -d memory_limit=-1 /usr/local/bin/composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

$ /usr/bin/php -d memory_limit=-1 /usr/local/bin/composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
Creating a "magento/project-community-edition" project at "./"

[InvalidArgumentException]
Project directory "/var/www/html/magento240/." is not empty.

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]


Installing starts only after i manually delete the composer.json and .gitingore files.

If i dont clear the composer caches, it runs and "kills" in a minute.

 

$ composer create-project --repository-url =https://repo.magento.com/ magento/project-community-edition . Creating a "magento/project-community-edition" project at "./" Installing magento/project-community-edition (2.4.0) - Installing magento/project-community-edition (2.4.0): Downloading (100%) Created project in /var/www/html/magento240/. Loading composer repositories with package information Updating dependencies (including require-dev) Killed

if i clear the cache.

 

$ composer clear-cache

 

It clears the cache and shows

 

$ composer create-project --repository-url =https://repo.magento.com/ magento/project-community-edition . Creating a "magento/project-community-edition" project at "./" Installing magento/project-community-edition (2.4.0) - Installing magento/project-community-edition (2.4.0): Downloading (100%) Created project in /var/www/html/magento240/. Loading composer repositories with package information Updating dependencies (including require-dev)

Earlier I was getting a SSH timeout in 5 Minutes with "Putty Fatal Error. Network Error: Software caused connection abort",


so i changed the configurations in

/etc/ssh/sshd_config

added following lines

ClientAliveInterval 30
ClientAliveCountMax 5

 

Now my connection is getting timedout in 15-20-minutes but installation is stuck at

 

Loading composer repositories with package information Updating dependencies (including require-dev)

 

Parallelly is was monitoring the memory, so in initial 5-10 minutes it goes to

 

Max usage
---------------
$ free -m
total used free shared buffers cached
Mem: 985 926 59 0 2 75
-/+ buffers/cache: 848 137
Swap: 0 0 0

 

then after Max Usage it frees the memory as below

 

---------------
$ free -m
total used free shared buffers cached
Mem: 985 131 854 0 0 20
-/+ buffers/cache: 110 875
Swap: 0 0 0

 

but installation is still stuck at

 

Loading composer repositories with package information Updating dependencies (including require-dev)

 

and finally after 10 mintues after memory is free i get

"Putty Fatal Error. Network Error: Software caused connection abort" and the installation is aborted

5 REPLIES 5

Re: Magento Installation not getting completed

Hi ,

I went thru prerequisites and since I have 1GB ram on AWS (aws.amazon.com/amazon-linux-ami/2018.03) its recommended to add the swap file. 

 

So I added 2 GB first to the swap and installation used all 1RAM+2 GB and was finally installation abort as its not able to allocated memory.

 

I again added swap file, this time 3 GB and the installation utilized 1RAM +3GB

 

$ sudo fallocate -l 3G /.swapfile

$ sudo chmod 600 /.swapfile

$ sudo mkswap /.swapfile

$ sudo swapon -s

$ sudo nano /etc/fstab

$ /.swapfile none swap sw 0 0

 

and the installation ran for 1hr 25 minutes. Finally the process utilized all my 4 GB and aborted finally by terminating my shh timeout.

 

Below are the Memory Details

------------------------------------------

$ free -m
                     total        used free shared buffers cached
Mem:            985         915  69        0         0            10
-/+ buffers/cache:        905  80
Swap:          3071       3020 51

 

 

 

 

 

    

Re: Magento Installation not getting completed

any help???

Re: Magento Installation not getting completed

I also got into the same problem..

What I did was uninstall composer with all it's dependencies

sudo apt-get remove --auto-remove composer

Purge composer to remove settings

sudo apt-get purge composer

Or you can perform both

sudo apt-get purge --auto-remove composer

 Then install composer again with the following command

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

 

Re: Magento Installation not getting completed

Solution #1: Ready to paste

Solution #2. Install via Composer

Solution #3. Install via Magento Marketplace

 

MyBPCreditcard

Re: Magento Installation not getting completed

Hello,

This can cause PuTTY sessions to be unexpectedly closed by the firewall if no traffic is seen in the session for some time, which will trigger the error: “Network Error: Software Caused Connection Abort”.

To solve this issue, you can configure PuTTY to send null packets and TCP keepalives every few seconds. see below link:
https://devanswers.co/ubuntu-ssh-keeps-disconnecting-idle/#:~:text=This%20can%20cause%20PuTTY%20sess...