Skip to content
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

M2.1.0: System Upgrade: Component Dependency throws error, does not give any details. #6471

Closed
apurv-anand opened this issue Sep 2, 2016 · 20 comments
Labels
bug report Component: Setup Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update

Comments

@apurv-anand
Copy link

apurv-anand commented Sep 2, 2016

M2.1.0: System Upgrade: Component Dependency throws error, does not give any details.

This issue occurred again while upgrading M2.1.0 to M2.1.1

The upgrade triggered from admin interface fails at component dependency. The error does not give any clue which component is facing the issue. No logs (at least I am not able to locate it) has the details.

Steps:

  • Login to M2.1.0 backend.
  • Go to System Upgrade.
  • Check that 2.1.1 is available.
  • Start the upgrade.

The system fails on dependency failure with no clue to user what should be fixed.

Expected: Clear details for the error so that user can take right actions. I am not sure which log would have the details. The log details can be mentioned in the comment for us to move forward as a workaround.
upgrade

@alex-code
Copy link

I've encountered this before, the fix for me was to increase the memory limit in PHP.

@apurv-anand
Copy link
Author

We have increased the memory limit to 2GB. The issue still exist. Any other pointers to resolve the issue? I am not even sure what the issue is. How do we reach that information first?

@apurv-anand
Copy link
Author

Guys, any leads on how to debug this issue? If I know which module has the problem, I can try solving it...but how to figure out which one has the issue? Let me know if there are logs that I am missing to look at currently. This is urgent.

@UKRogue
Copy link

UKRogue commented Sep 6, 2016

Exactly the same problem here and same versions. Memory increase has no affect. Is there anyone out there who can help us move past this problem?

@apurv-anand apurv-anand changed the title M2.1.0: System Upgrade: Component Dependency does error does not give any details. M2.1.0: System Upgrade: Component Dependency throws error, does not give any details. Sep 6, 2016
@apurv-anand
Copy link
Author

Developers, we need attention on this, or at-least a workaround. Don't have any clue what the problem is, so cannot resolve it. Please take this up on priority.

@shiftedreality shiftedreality self-assigned this Sep 6, 2016
@shiftedreality
Copy link
Member

Hi @apurv-anand

Please provide more details about your environment: OS version, PHP version, Apache/Nginx

@apurv-anand
Copy link
Author

OS version: Ubuntu 14.04.4 LTS
PHP: PHP 7.0.9 (Zend Engine: v3.0.0.)
Apache: Apache/2.4.23

@shiftedreality
Copy link
Member

shiftedreality commented Sep 6, 2016

@apurv-anand

Could you please also try next approach:

  • Go to Readiness check where error is happening
  • Open Developer Console
  • Go to tab XHR
  • Press Try Again button
  • Observe action called "componentDependency"
  • Provide response that it gives to you

@apurv-anand
Copy link
Author

apurv-anand commented Sep 6, 2016

Followed your steps. The response tab is blank, but the status code is getting set to 500 Internal Server Error.

Looking at the Apache error logs, I see: AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in .../composer/src/Composer/DependencyResolver/RuleSetGenerator.php
Allowed memory size of 268435456 bytes exhausted (tried to allocate 32768 bytes) in .../magento/framework/Session/SessionManager.php on line 139\n', referer: http://.com/setup/

Are the errors related? What are the next steps?

@apurv-anand
Copy link
Author

In Component Manager one module is present with all empty fields - name, module, etc. (type = module) and id I try to enable it, the message is similar:

Check Component Dependency
We found conflicting component dependencies. Hide detail
Can not find module name.
For additional assistance, see component dependency help.

Can these be related? how to find which module is this?

@apurv-anand
Copy link
Author

apurv-anand commented Sep 6, 2016

upgrade2
I was able to move past the dependency check after changing the max_memory limit from 256MB to 2GB in php-fpm settings and htaccess and restarting php-ftpm.

But now, I am with one more error with no information.

Backup failed. Error received from server:

@apurv-anand
Copy link
Author

apurv-anand commented Sep 6, 2016

In the install.log, backup is successful, but UI throws error (as in the previous attachment) even while the back-up is still going on.

@apurv-anand
Copy link
Author

@shiftedreality : Please let me know the next steps.

@shiftedreality
Copy link
Member

shiftedreality commented Sep 7, 2016

Hi @apurv-anand

It also may be related to your environment settings.
Please, check XHR response and apache logs on backup step.

Update:
Plase also check your environment with http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements.html

@apurv-anand
Copy link
Author

503 - Backend fetch failed error.

<title>503 Backend fetch failed</title>

Error 503 Backend fetch failed

Backend fetch failed

Guru Meditation:

XID: 429618


Varnish cache server

@apurv-anand
Copy link
Author

I could not resolve this issue, even after increasing the http_resp_hdr_len as mentioned in Magento: http://devdocs.magento.com/guides/v2.0/config-guide/varnish/tshoot-varnish-503.html

I had to upgrade without the backup.

Point here is that none of these issues are shown up in the UI and users takes a lot of time to figure out the reasons for the failure. This needs to be fixed by Magento 2.x

@shiftedreality shiftedreality removed their assignment Sep 8, 2016
@BaDos BaDos assigned BaDos and unassigned BaDos Sep 12, 2016
@Ctucker9233
Copy link

I also have this issue. Prevents me from upgrading magento or installing modules through the web component manager. I'm on Magento 2.1.1. I'm on a hosted server, so increasing the memory limit is pretty much impossible.

@oshmyheliuk
Copy link
Contributor

Hi @apurv-anand
Please try to increase varnish timeout, because backup operation take too much time, and varnish can return 503 error if not got a response from the backend for a long time.
first_byte_timeout (default: 60s) - increase to 300s or even more.
UNDERSTANDING TIMEOUTS IN VARNISH CACHE

@oshmyheliuk
Copy link
Contributor

Hi @Ctucker9233
Magento needs minimum 768MB PHP memory limit (recommended 2G). It's official Magento2 system requirements.
You can ask your hosting provider to increase this parameter.

@mitulispace
Copy link

e7fa7f84-824a-11e6-9df8-44e3809bb1d9

Same Issue Any Solution.... @apurv-anand @alex-code @shiftedreality @veloraven @BaDos

@magento-engcom-team magento-engcom-team added Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line and removed Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line labels Sep 18, 2017
mmansoor-magento pushed a commit that referenced this issue Feb 9, 2021
[trigger] MC-39996: Add composer2 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Setup Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update
Projects
None yet
Development

No branches or pull requests

10 participants