@dsyzhao wrote:
Hi dear ionic
we encountered an issue when run command "ionic start xxx" in Linux centos.
sometimes the process hung up during Initializing cordova project. we found the process is adding the plugin. we then run strace the attach the node process and found epoll_wait.
please see the following for detail. (BTW we never see this issue on WIn OS)Cordova CLI: 6.2.0
Ionic CLI Version: 1.7.15
Ionic App Lib Version: 0.7.2
OS: Distributor ID: CentOS Description: CentOS Linux release 7.0.1406 (Core)
Node Version: v4.4.7[root@xinhaiplatform-dev appCode]# ionic start tst-123
Creating Ionic app in folder /disk2/appCode/tst-123 based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Updated the hooks directory to have execute permissions
Update Config.xml
Initializing cordova project[root@xinhaiplatform-dev appCode]# ps -ef| grep node
root 4828 4818 40 16:31 pts/3 00:00:01 node /usr/bin/cordova plugin add cordova-plugin-console
root 4841 13681 0 16:31 pts/8 00:00:00 grep --color=auto node
[root@xinhaiplatform-dev appCode]# ps -ef| grep node
root 4828 4818 20 16:31 pts/3 00:00:01 node /usr/bin/cordova plugin add cordova-plugin-console
root 4846 13681 0 16:31 pts/8 00:00:00 grep --color=auto node
[root@xinhaiplatform-dev appCode]# ps -ef| grep node
root 4828 4818 8 16:31 pts/3 00:00:01 node /usr/bin/cordova plugin add cordova-plugin-console
root 4857 13681 0 16:31 pts/8 00:00:00 grep --color=auto node
[root@xinhaiplatform-dev appCode]# ps -ef| grep node
root 4828 4818 6 16:31 pts/3 00:00:01 node /usr/bin/cordova plugin add cordova-plugin-console
root 4864 13681 0 16:32 pts/8 00:00:00 grep --color=auto node[root@xinhaiplatform-dev appCode]# strace -p 4828
Process 4828 attached
epoll_wait(5,{{EPOLLIN, {u32=10, u64=10}}}, 1024, -1) = 1
read(10, "\24\207\273\23\242\314gp\n<5\230\4\371\33\337\270\343w\315\16\310\r\334\20\0\0\1S\244\317\311"..., 4096) = 256
epoll_wait(5,
Posts: 1
Participants: 1