cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Installation - Worst Experience Ever

Magento 2 Installation - Worst Experience Ever

I develop modules for Magento as well as seven other leading e-commerce solutions.  Every month, I check for new versions, upgrade, create fresh installs, and run through a series of tests to ensure version compatibility.  I've had a few issues here and there, but I've always been able to troubleshoot in relatively short order.

 

I've spent the past three days trying to get Magento 2 up and running.  First I tried on my local machine using MAMP (with compatible PHP and MySQL versions), then I configured an Ubuntu VM on Rackspace solely for Magento 2 testing.  The setup wizard hangs on 'Magento_ReviewSampleData'.  Installing via the command line completes without error, but the end result is the same: 

 

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems.  Please try again later.

 

I've gone through all the documentation and forums I can digest. Hopefully someone can help me out.

 

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

Server: http://23.253.57.183/

PHP 5.6.16

MySQL 5.6.27 with all prerequisites and max_execution_time set to 18000
-----------------------------------------

 

I tried using the easy installation method: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/zip_install.html.  Here are the exact steps I followed:

 

1. Download Magento Community Edition with sample data (Magento-CE-2.0.0_Samples.tar.bz2)

 

2. Upload .tar.bz2 file to my Ubuntu server.

 

3. Extract the contents to /var/www/magento2

 

4. Change to Magento installation directory (/var/www/magento2)

 

5. Set ownership

     chown -R :www-data .

 

6. Set permissions

sudo find . -type d -exec chmod 770 {} \; && sudo find . -type f -exec chmod 660 {} \; && sudo chmod u+x bin/magento

 

 

7. Make the following directories writable:

 

  • /var/www/html/app/etc
  • /var/www/html/var
  • /var/www/html/pub/media
  • /var/www/html/pub/static

 

8. Copy the contents of magento2 to my web root (/var/www/html)

 

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

 

Setup Wizard

 

=== Step 1: Readiness Check ===

At this point, I can visit http://23.253.57.183/ and am directed to the setup page.  The readiness check passes.

 

=== Step 2: Add a Database ===

 

Database Server Host: 127.0.0.1 (I have also tried using localhost)

Database Server Username: mageuser (has full permissions on mage database)

Database Server Password: XXXX

Database Name: mage

Table Prefix: [blank]

 

 

=== Step 3: Web Configuration ===

 

Your Store Address: http://23.253.57.183

Magento Admin Address: http://23.253.57.183/admin

 

Advanced Options

[  ] Use HTTPS for Magento Storefront

[  ] Use HTTPS for Magento Admin

[X] Use Apache Web Server Rewrites

[X] I want to use my own encryption key ( XXXX )

 

Session Save: Files

 

=== Step 4: Customize Your Store ===

 

Default Time Zone: Mountain Standard Time (America/Phoenix)

Store Default Currency: US Dollar (USD)

Store Default Language: English (United States)

 

Advanced Modules Configuration

[X] Select All

 

=== Step 5: Create Admin Account ===

 

[All values completed]

 

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

 

At this point, I get the red button to install.  I click it.

 

The Console Log window on the page displays normal messages for each module.  The progress bar advances until 91%, at which point it stalls at 

 

Module 'Magento_ReviewSampleData':
Installing data.. 

 

In the javascript console, I see the following error: 

 

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

http://23.253.57.183/setup/index.php/install/start

 

visiting this URL returns the following: 

 

{"success":false}

 

Visiting the store URL(http://23.253.57.183/) displays the following:

 

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems.  Please try again later.

 

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

 

I've also tried installing via the command line, using the following command: 

 

bin/magento setup:install --backend-frontname="admin" --key="XXXX" --db-host="localhost" --db-name="mage" --db-user="mageuser" --db-password="XXXX" --base-url="http://23.253.57.183/" --admin-user="admin" --admin-password="XXXX" --admin-email="XXXX@gmail.com" --admin-firstname="Admin" --admin-lastname="Test" --use-sample-data

 

The process completes and the success message is displayed:

 

[Progress: 362 / 362]

[SUCCESS]: Magento installation complete.

[SUCCESS]: Magento Admin URI: /admin

 

However, visiting the URL displays a blank page.

 

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

 

I have tried:

  • ensuring php max_execution_time is set to 18000
  • installing using a domain
  • installing to a subfolder

 

And that's where I am.

 

Installing an off the shelf e-commerce solution shouldn't be this difficult.  I cannot imagine how this version of Magento made it to beta status, much less release.

 

Someone please help.

25 REPLIES

Re: Magento 2 Installation - Worst Experience Ever

Following. Having same issue.  500 error on backend and frontend is not displaying properly.

 

Magento 2 was just released a few weeks ago and I am sure there will be issues since this was a full rebuild from the ground up. I do not plan to upgrade my 1.9.2 sites to 2 until much later, but was just testing the waters. 

Re: Magento 2 Installation - Worst Experience Ever

I have followed the same process as does by the original poster in my system Ubuntu 14 LTS . The check passes but the installation get staled at 90%. Any help could be appreciated. 

Re: Magento 2 Installation - Worst Experience Ever

I can't even get to Step 4 in the Setup Wizard

Re: Magento 2 Installation - Worst Experience Ever

1. using IP address is not recommended, also I happened to click on http://23.253.57.183/setup/index.php/install/start, it shows an error. so obviously you managed to turn on the developer mode, also this error indicates that there is some issue with permissions.

2. This message "

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems.  Please try again later. "

means you have maintenance mode set after multiple failed installations. Please run `bin/magento 

maintenance:disable ` and try again. 

3. Also, I would  recommend installing bare bones magento2, without sample data, and once installation is successful, then install sample data.

 

Re: Magento 2 Installation - Worst Experience Ever

@zildjianfan do you have any JS errors? What is your env?

Re: Magento 2 Installation - Worst Experience Ever

No, just 500 errors.  I am on a shared host in Apache.  Everything passed in the readiness check.  This is my error:

 

Magento\Framework\Exception\State\InitException

File:
/home/oakcit5/public_html/magento2/vendor/magento/framework/App/ObjectManagerFactory.php:271
Message:
Value for key "xsi:type" is missing in the argument data.

 

and

 

InvalidArgumentException

File:
/home/oakcit5/public_html/magento2/vendor/magento/framework/Data/Argument/Interpreter/Composite.php:54
Message:
Value for key "xsi:type" is missing in the argument data.

Re: Magento 2 Installation - Worst Experience Ever

@zildjianfan do you have any custom modules? Also, please clear your var directory and try again. Also, can you run `

bin/magento deploy:mode:set developer` in command line, so you will be able to see more detailed error messages.

 

Can you please share more details? apache and php version? 

Re: Magento 2 Installation - Worst Experience Ever

No custom modules.

var cleared

Apache v2.4.16

PHP v5.6.16

 

Full stacktraces:

Magento\Framework\Exception\State\InitException

File:
/home/oakcit5/public_html/magento2/vendor/magento/framework/App/ObjectManagerFactory.php:271
Message:
Value for key "xsi:type" is missing in the argument data.
Stack trace:
#0 /home/oakcit5/public_html/magento2/vendor/magento/framework/App/ObjectManagerFactory.php(137): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'default')
#1 /home/oakcit5/public_html/magento2/setup/src/Magento/Setup/Model/ObjectManagerProvider.php(53): Magento\Framework\App\ObjectManagerFactory->create(Array)
#2 /home/oakcit5/public_html/magento2/setup/src/Magento/Setup/Controller/CustomizeYourStore.php(53): Magento\Setup\Model\ObjectManagerProvider->get()
#3 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Magento\Setup\Controller\CustomizeYourStore->indexAction()
#4 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#5 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#6 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#9 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#10 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#11 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /home/oakcit5/public_html/magento2/setup/index.php(31): Zend\Mvc\Application->run()
#14 {main}

 

InvalidArgumentException

File:
/home/oakcit5/public_html/magento2/vendor/magento/framework/Data/Argument/Interpreter/Composite.php:54
Message:
Value for key "xsi:type" is missing in the argument data.
Stack trace:
#0 /home/oakcit5/public_html/magento2/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php(103): Magento\Framework\Data\Argument\Interpreter\Composite->evaluate(Array)
#1 /home/oakcit5/public_html/magento2/vendor/magento/framework/Config/Reader/Filesystem.php(158): Magento\Framework\ObjectManager\Config\Mapper\Dom->convert(Object(DOMDocument))
#2 /home/oakcit5/public_html/magento2/vendor/magento/framework/Config/Reader/Filesystem.php(117): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#3 /home/oakcit5/public_html/magento2/vendor/magento/framework/App/ObjectManagerFactory.php(269): Magento\Framework\Config\Reader\Filesystem->read('primary')
#4 /home/oakcit5/public_html/magento2/vendor/magento/framework/App/ObjectManagerFactory.php(137): Magento\Framework\App\ObjectManagerFactory->_loadPrimaryConfig(Object(Magento\Framework\App\Filesystem\DirectoryList), Object(Magento\Framework\Filesystem\DriverPool), Object(Magento\Framework\ObjectManager\Config\Mapper\Dom), 'default')
#5 /home/oakcit5/public_html/magento2/setup/src/Magento/Setup/Model/ObjectManagerProvider.php(53): Magento\Framework\App\ObjectManagerFactory->create(Array)
#6 /home/oakcit5/public_html/magento2/setup/src/Magento/Setup/Controller/CustomizeYourStore.php(53): Magento\Setup\Model\ObjectManagerProvider->get()
#7 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Magento\Setup\Controller\CustomizeYourStore->indexAction()
#8 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#10 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#13 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#14 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#15 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#16 /home/oakcit5/public_html/magento2/vendor/zendframework/zend-mvc/src/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#17 /home/oakcit5/public_html/magento2/setup/index.php(31): Zend\Mvc\Application->run()
#18 {main}

 

Re: Magento 2 Installation - Worst Experience Ever

@maddyC

 

Thank you very much for your help. I think I have made a tiny step forward.

Here is what I did:

 

1) Disabled maintenance mode by executing:

 

bin/magento maintenance:disable

 

At which point I received the following error message when attempting to view the home page:

 

"An error has happened during application run. See debug log for details. Could not write error message to log. Please use developer mode to see the message."

 

2) Enabled debug mode by removing the comment on:

 

SetEnv MAGE_MODE developer

 

in the magento2 root .htaccess file

 

3) Executed the following commands to ensure permissions:

 

- chmod -R a+wX var
- chmod -R a+wX app/etc
- chmod -R a+wX pub

 

I can now see the home page and the admin page, and have successfully logged into the admin portion, but we're not out of the woods yet. The page is unstyled, and the console reveals a number of CSS files are not found:

 

http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/mage/calendar.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/css/styles-l.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/requirejs/require.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/css/styles-m.css Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:602 Uncaught ReferenceError: require is not defined
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/images/logo.svg Failed to load resource: the server responded with a status of 404 (Not Found)
23.253.57.183/:24 Uncaught ReferenceError: require is not defined
23.253.57.183/:26 Uncaught ReferenceError: require is not defined
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/css/print.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/images/logo.svg Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/mage/calendar.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/css/styles-m.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/css/print.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://23.253.57.183/pub/static/frontend/Magento/luma/en_US/css/styles-l.css Failed to load resource: the server responded with a status of 404 (Not Found)

 

You can see for yourself at http://23.253.57.183

 

After reading a few posts on this topic, I tried editing app/etc/di.xml and changing

 

Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink
to
Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

 

in the view_preprocessed item of the developerMaterialization section. No change.


In answer to your other comments

 

1) I have tried using a domain name as well as an IP address. However, there's no reason an IP address shouldn't work.

 

3) I first tried installing without sample data, but the result was the same. The wizard stalled before completing, and the command line completed but displayed the maintenance mode message.

 

If you have any advice for a next step, it will be greatly appreciated.

 

Again, thank you very much for your help.