What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Starting from last Friday, my local Docker env keeps throwing 502 Bad Gateway errors when trying to

U01LKKBK97T
U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

Starting from last Friday, my local Docker env keeps throwing 502 Bad Gateway errors when trying to open Yves URLs. It might be related to the latest Docker update. Anybody else experiencing this issue?

Comments

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    Same here. Two different projects that show this issue.

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet
  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet
  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet
  • U010DNAA3QW
    U010DNAA3QW Posts: 55 πŸ§‘πŸ»β€πŸš€ - Cadet

    We can confirm. On our side, this seems to be related to an update of the spryker/php docker images, which got a new release on friday. Looks like we cannot easily roll back that update, as I cannot find old digest-ids of the images from before friday

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    Same here. Seems to be memory issues. This is what I get from the logs

    [yves] [yves_eu] - zend_mm_heap corrupted
    [yves] [yves_eu] - [11-Oct-2021 09:05:26] WARNING: [pool worker] child 41 exited with code 1 after 58.771321 seconds from start
    [yves] [yves_eu] - [11-Oct-2021 09:05:26] NOTICE: [pool worker] child 45 started
    
  • U018XELUZS9
    U018XELUZS9 Posts: 167 πŸ§‘πŸ»β€πŸš€ - Cadet

    Do you know if opcache is enabled for you? I found something weird earlier this year: https://github.com/phpstan/phpstan/issues/4881#issuecomment-824068414

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    It's the default Spryker configuration. OpCache is enabled but the validate_timestamps and revalidate_frequency options are set to render the OpCache inactive

  • U02H2U2LQ0L
    U02H2U2LQ0L Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yup I get the same error:

    zed-backoffice] [backoffice_eu] - zend_mm_heap corrupted
    [proxy] [frontend] - 2021/10/11 09:40:49 [error] 9#9: *37 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.25.0.20, server: backoffice.de.henry.local, request: "GET /security-gui/login HTTP/1.1", upstream: "<fastcgi://172.25.0.17:9001>", host: "backoffice.de.henry.local", referrer: "<http://backoffice.de.henry.local/security-gui/login>"
    [zed-backoffice] [backoffice_eu] - [11-Oct-2021 09:40:49] WARNING: [pool debugger] child 17 exited with code 1 after 7872.539548 seconds from start
    [proxy] [gateway] - 172.25.0.1 - - [11/Oct/2021:09:40:49 +0000] "GET /security-gui/login HTTP/1.1" 502 922 "<http://backoffice.de.henry.local/security-gui/login>" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36" "-"
    [zed-backoffice] [backoffice_eu] - [11-Oct-2021 09:40:49] NOTICE: [pool debugger] child 19 started
    
  • U02BQJ7QDGS
    U02BQJ7QDGS Posts: 1 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited October 2021

    Hi @U02H2U2LQ0L @U01T075RRHD we faced with similar problems on our project and according to latest changes for docker-images blackfire were affected. So in our case disabling of blackfire extension was helpful and solved the issue with zend_mm_heap.

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hey @U02BQJ7QDGS, thanks for the hint

  • U02H2U2LQ0L
    U02H2U2LQ0L Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Trying that one out currently

  • U02H2U2LQ0L
    U02H2U2LQ0L Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Appears to have alleviated the problem

  • U02H2U2LQ0L
    U02H2U2LQ0L Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Nice

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes, gentlemen, it is confirmed that the problem is connected to recently upgraded blackfire extension. The issue’s nature is sporadical that could be a reason why it was not caught on the development stage before releasing.

    The solution is already in place: the commit is reverted, the images are rebuilt with the previous state.

    docker/sdk pull && docker/sdk up should do the trick by updating the base image to the latest one.

    Please, also if you have docker caches in your CI/CD make sure your pipelines are using proper images.

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thank you for the fastest feedback that actually helped to solve issue in short terms.

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    Nice, thanks @ULYHPR789

  • U02H2U2LQ0L
    U02H2U2LQ0L Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thank you!

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    Great, thanks a ton!

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Please, update everybody here if the solution solves the problem, Thanks, gentlemen.

  • U01T075RRHD
    U01T075RRHD Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    Works like a charm πŸ‘

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yep.

  • U02H2U2LQ0L
    U02H2U2LQ0L Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    Awesome! Keep be so communicative as you are today. Good job on catching this in time.

  • U018XELUZS9
    U018XELUZS9 Posts: 167 πŸ§‘πŸ»β€πŸš€ - Cadet

    Fixed our CI pipeline, too

  • sprymiker
    sprymiker Cloud Platform Architect Sprykee Posts: 781 πŸ§‘πŸ»β€πŸš€ - Cadet

    πŸ‘