-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install magento2 after taking the latest code from github #668
Comments
Get latest code and try again to install. |
Tried with the fresh code the problem still persists:- [Tue Sep 16 18:05:40 2014] [error] [client 127.0.0.1] PHP Warning: include(vendor/autoload.php): failed to open stream: No such file or directory in /var/www/magento2/setup/index.php on line 25 The warnings in this case is beacuse of composer.phar not being present (which should be noted is not available with the checkout ). I checked at the below loaction : /var/www/magento2/lib/internal/Zend Mvc folder doesn't seem to be present. |
Same errors here. But, even if you resolve autoloader and dependencies with Composer, setup isn't working properly. The worst thing is, I can't run Magento on previous database because something is changed on log tabels or similar and I can't re-install :( |
Please run |
Thanks mazhalai , that did help solve the above error ! However it is now stuck with the below error: [Wed Sep 17 10:12:14 2014] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'Zend\I18n\Exception\ExtensionNotLoadedException' with message 'Zend\I18n\Translator component requires the intl PHP extension' in /var/www/magento2/setup/vendor/zendframework/zendframework/library/Zend/I18n/Translator/Translator.php:257\nStack trace:\n#0 /var/www/magento2/setup/vendor/zendframework/zendframework/library/Zend/I18n/Translator/Translator.php(353): Zend\I18n\Translator\Translator->getLocale()\n#1 /var/www/magento2/setup/vendor/zendframework/zendframework/library/Zend/Mvc/I18n/Translator.php(73): Zend\I18n\Translator\Translator->translate('An error occurr...', 'default', NULL)\n#2 /var/www/magento2/setup/vendor/zendframework/zendframework/library/Zend/I18n/View/Helper/Translate.php(38): Zend\Mvc\I18n\Translator->translate('An error occurr...', 'default', NULL)\n#3 [internal function]: Zend\I18n\View\Helper\Translate->__invoke('An error occurr...')\n#4 /var/www/magento2/setup/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(399): call_user_func_array(Objec in /var/www/magento2/setup/vendor/zendframework/zendframework/library/Zend/I18n/Translator/Translator.php on line 257 Which suggests me to install php5-intl extension. However after doing that the following error comes up:- A 404 error occurred The requested controller could not be mapped to an existing controller class. Controller: No Exception available |
Just confirming that the problem exists. New setup isn't working after you resolve dependencies with |
Setup won't run at all because my Magento2 is in subfolder (www.example.com/magento2/) and it seems Magento\Setup\Mvc\Router\Http\Setup::match() is not aware of that, namespace/controller is resolved wrong there because of subfolder. I tweaked it and manage to run new setup. While installing (on empty db) there was one error in setup console: Tables were created, so I tried to run Magento, but it crashed with following message: Hope it helps .. |
I can confirm ivanweiler findings at my local install with alpha95. Alpha 94 works fine though but only with old database and trying to upgrade doesn't work (do not have error at hand). |
Here are the list of steps I followed. And where I got stuck. Listing them here in case someone else wants to take over.
At this point I get an error saying "Current store is not active" on frontend and I can access the admin login page but I'm not able to login. I will add more details as soon as I find them. |
Correction for steps 8 and 9. If you first run the data updates script you don't need to insert the values in the |
OK. I've done it.
|
@tzyganu Thank you very much for such a detailed report. We have already fixed most of the issues you described and prepping them for pushing to GitHub. And we are aware of the performance issue you pointed out in the # 7 (that one is not fixed yet) |
Setup really sucks and it takes so long. My Setup stucks at 5% and jump to 20% and stucks again. |
Thank you all for reporting this issue, discussing it here and providing useful details to the team! |
The issue is not fixed. Installation stops at 96% and it is very slow. There some strange SQL Selects at Setup. They take 8 Seconds and will be performed on every connect to database.
`140919 20:29:41 547 Query SELECT 'T'.'TABLE_NAME', 'TC'.'CONSTRAINT_NAME', 'TC'.'CONSTRAINT_TYPE', 'KCU'.'COLUMN_NAME', 'RC'.'MATCH_OPTION', 'RC'.'UPDATE_RULE', 'RC'.'DELETE_RULE', 'KCU'.'REFERENCED_TABLE_SCHEMA', 'KCU'.'REFERENCED_TABLE_NAME', 'KCU'.'REFERENCED_COLUMN_NAME' FROM 'INFORMATION_SCHEMA'.'TABLES' T INNER JOIN 'INFORMATION_SCHEMA'.'TABLE_CONSTRAINTS' TC ON 'T'.'TABLE_SCHEMA' = 'TC'.'TABLE_SCHEMA' AND 'T'.'TABLE_NAME' = 'TC'.'TABLE_NAME' LEFT JOIN 'INFORMATION_SCHEMA'.'KEY_COLUMN_USAGE' KCU ON 'TC'.'TABLE_SCHEMA' = 'KCU'.'TABLE_SCHEMA' AND 'TC'.'TABLE_NAME' = 'KCU'.'TABLE_NAME' AND 'TC'.'CONSTRAINT_NAME' = 'KCU'.'CONSTRAINT_NAME' LEFT JOIN 'INFORMATION_SCHEMA'.'REFERENTIAL_CONSTRAINTS' RC ON 'TC'.'CONSTRAINT_SCHEMA' = 'RC'.'CONSTRAINT_SCHEMA' AND 'TC'.'CONSTRAINT_NAME' = 'RC'.'CONSTRAINT_NAME' WHERE 'T'.'TABLE_NAME' = 'core_theme_files' AND 'T'.'TABLE_TYPE' IN ('BASE TABLE', 'VIEW') AND 'T'.'TABLE_SCHEMA' = 'magento2' ORDER BY CASE 'TC'.'CONSTRAINT_TYPE' WHEN 'PRIMARY KEY' THEN 1 WHEN 'UNIQUE' THEN 2 WHEN 'FOREIGN KEY' THEN 3 ELSE 4 END, 'TC'.'CONSTRAINT_NAME', 'KCU'.'ORDINAL_POSITION'`` |
I can confirm SRaromicon findings. Setup dies at 96%. |
You're right. The new setup installer is broken now. The fix will be available with one of the next publications.
Just substitute necessary values with yours. |
Thanks @buskamuza, shell install works fine. One thing to note, it's required to add --user_pass argument if database user has password set. |
Yes shell install works fine and it's really fast and has no performance issues. Only the db_pass parameter is missing in the example of the installer.php |
Steps I followed:-
For me neither the command line install works nor the GUI |
I have successfully installed in xampp. Using the command line , I used this setup: |
Ok, this is the one that finally worked: root@INPUNNEEV003:/var/www/magento2# php -f dev/shell/install.php -- --license_agreement_accepted yes --locale en_US --timezone "Asia/Calcutta" --default_currency USD --db_host localhost --db_name magento2 --db_user root --db_pass root --url "http://magento2-local.com/" --use_rewrites yes --use_secure_admin no --admin_lastname Admin --admin_firstname Admin --admin_email "[email protected]" --admin_username admin --admin_password admin1234 --use_secure no --secure_base_url "https://magento2-local.com/" --cleanup_database --skip_url_validation yes The change being it seems in the value of parameters --use_rewrites no --use_secure_admin yes to --use_rewrites yes --use_secure_admin no Thank you Edixon Yu Jr. yhingyu for helping out. |
I am facing a redirect 404 issue while installing Magento 2. 1- git clone this repo Now when in browser, i run http://magento2dev.com This redirects me to 404 http://magento2dev.com/setup/en_US/index Nothing is displayed in log ... Using version alpha95, and now tried alpha96 But same problem. any suggestions ??? |
Sorry for delay in response. Did you run the command line install script? There is an installation step to create database, local.xml file etc. We are removing the installation process from the store front, but might not have good error messages in its place yet. (I am guessing here - I have not tried it myself yet.) |
I have done today a fresh install with current git version code. found almost same issues with the frontend installer page - need to run composer install, then install php_intl extenstion... all modules were installed fine till get a final error regarding fisture dat aupdates. So I exit to console, run the php dev/shell/run_data_fixtures.php Come back and retry the installation and finally get the end but the frontend did not load the CSS and the backend give an error ... still trying :) |
@georgiandinca, what server are you using? In Apache, please make sure mod_rewrite is enabled, as well as .htaccess is configured correctly to load css/js/image files. For Nginx, settings are here: #586 |
@mazhalai, I use an apache web server and it has mod_rewrite enabled but I'll check if something is wrong with the .htaccess configuration. Thanks |
While installing Magento 2 (Downloaded on 18 Nov, 2015) on my local Wamp Server (Windows 10) After cross check my configuration I found that the extention is active. What could be the problem and how to resolve. |
@htongaria can you please elaborate how did you check your configuration? using phpinfo()? or php -m? Also, please avoid commenting on closed issues, it would be better to create a new issue. |
Install magento2 on trusty 14.04, nginx 1.8, mysql 5.6, php-fpm 5.6, using compser: http://magento2.local/setup Magento The requested URL could not be matched by routing. No Exception available |
Debian 8 (64 bit)
|
…ETWO-61950-2.1 Fixed issue: - MAGETWO-61950: UI Functional Upgrade Test from 2.1.x to 2.x.x. Components Version Support
When I check my apache error log. It gives me the following error:-
PHP Fatal error: Class 'Zend\Mvc\Service\ServiceManagerConfig' not found in /var/www/magento2/setup/index.php on line 32
The text was updated successfully, but these errors were encountered: