Comments (5)
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.
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
withset -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.
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.
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.
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)
- Feature request: add support for Magento 2 EE HOT 3
- Feature request: Add container for cron jobs HOT 1
- Mailhog Setup HOT 2
- modestcoders/node-php:node8-php7.3 is not avalible HOT 4
- how to set it as production HOT 2
- PHP 7.4 Support HOT 3
- SQLSTATE[HY000] [2002] No such file or directory HOT 1
- Path cannot be mirrored HOT 1
- Multiple database HOT 1
- Composer github oauth
- sample data install fails / composer error php 7.2 magento v 2.3.2 HOT 2
- Can't copy project files into host HOT 1
- Grunt compilation failure
- FEATURE: Mage2run HOT 3
- PHP 8 version
- Apple silicon m1
- More detailed docs?
- nginx version
- permission issues
- Magento 2.4.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-dockergento.