Code Monkey home page Code Monkey logo

Comments (5)

jalogut avatar jalogut commented on August 11, 2024 2

Ok, thanks for the confirmation. Just committed version 3.3.1 with this fix. You can pull the new version if you wish ;)

from magento2-dockergento.

jalogut avatar jalogut commented on August 11, 2024

Hi @WinstonN

Thanks for the compliments, I am glad you like it. Regarding your issue, can you try the following and paste here the output?

  • replace set -euo pipefail with set -euox pipefail on the following files:

    • magento2-dockergento/console/tasks/start_service_if_not_running.sh
    • magento2-dockergento/console/commands/debug-on.sh
    • magento2-dockergento/console/commands/exec.sh
  • Execute again debug-on

from magento2-dockergento.

WinstonN avatar WinstonN commented on August 11, 2024

Hi @jalogut

Thank you so much for the assistance, here is the output

%dockergento debug-on                                                                                                     
+ /media/Space/Projects/magento2-dockergento/bin/../console/tasks/start_service_if_not_running.sh phpfpm
+ SERVICE=phpfpm
+ set +e
+ docker-compose -f docker-compose.yml -f docker-compose.dev.linux.yml exec -T phpfpm sh -c 'echo '\''check phpfpm service is running'\'''
+ SERVICE_RUNNING_ERROR=1
+ set -e
+ '[' 1 == 1 ']'
+ /media/Space/Projects/magento2-dockergento/bin/../console/commands/start.sh phpfpm
Starting containers in detached mode
Starting magento2_db_1 ... 
Starting magento2_db_1 ... done
Starting magento2_phpfpm_1 ... 
Starting magento2_phpfpm_1 ... done
+ [[ linux == \l\i\n\u\x ]]
+ [[ '' == '' ]]
+ source /media/Space/Projects/magento2-dockergento/bin/../console/tasks/set_xdebug_host_property.sh
++ set -euo pipefail
++ XDEBUG_HOST=
++ '[' linux == linux ']'
++ grep -q Microsoft /proc/version
+++ command -v ip
++ '[' /sbin/ip ']'
+++ grep 'inet\b'
+++ awk '{print $2}'
+++ cut -d/ -f1
+++ ip addr show docker0
++ XDEBUG_HOST=172.17.0.1
++ export XDEBUG_HOST=172.17.0.1
++ XDEBUG_HOST=172.17.0.1
+ [[ 172.17.0.1 != '' ]]
+ /media/Space/Projects/magento2-dockergento/bin/../console/commands/exec.sh --root phpfpm sed -i 's/xdebug\.remote_host\=.*/xdebug\.remote_host\=172.17.0.1/g' /usr/local/etc/php/conf.d/xdebug.ini
+ '[' 6 == 0 ']'
+ '[' --root == --help ']'
+ :
+ '[' false == true ']'
+ [[ --root == \-\-\r\o\o\t ]]
+ shift
+ EXEC_OPTIONS=' -u root'
+ DOCKER_COMPOSE_EXEC='docker-compose -f docker-compose.yml -f docker-compose.dev.linux.yml exec'
+ '[' ' -u root' '!=' '' ']'
+ DOCKER_COMPOSE_EXEC='docker-compose -f docker-compose.yml -f docker-compose.dev.linux.yml exec  -u root'
+ [[ linux == \w\i\n\d\o\w\s ]]
+ docker-compose -f docker-compose.yml -f docker-compose.dev.linux.yml exec -u root phpfpm phpfpm sed -i 's/xdebug\.remote_host\=.*/xdebug\.remote_host\=172.17.0.1/g' /usr/local/etc/php/conf.d/xdebug.ini
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"phpfpm\": executable file not found in $PATH": unknown

from magento2-dockergento.

jalogut avatar jalogut commented on August 11, 2024

Ok, I see that your are in linux, so probably the reason why we did not notice this bug before. Can you remove ${SERVICE_PHP} from the following line and try again?

from magento2-dockergento.

WinstonN avatar WinstonN commented on August 11, 2024

You are like a deadly ninja assassin 🥇

%dockergento debug-on

Stopping magento2_nginx_1  ... done
Stopping magento2_phpfpm_1 ... done
Stopping magento2_db_1     ... done
Starting containers in detached mode
Starting magento2_db_1 ... 
Starting magento2_db_1 ... done
Starting magento2_phpfpm_1 ... 
Starting magento2_phpfpm_1 ... done
Starting magento2_nginx_1 ... 
Starting magento2_nginx_1 ... done
xdebug configuration: 
--------------------------------
xdebug.idekey => PHPSTORM 
xdebug.remote_host => 172.17.0.1 
xdebug.remote_port => 9001 
--------------------------------

Thank you very much for this!

from magento2-dockergento.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.