luangjokaj / wordpressify

🎈 Automate your WordPress development workflow.
http://www.wordpressify.co
MIT License
1.59k stars 140 forks source link

wordpress-chmod-1 exited with code 0 #128

Closed oluisrael11 closed 1 year ago

oluisrael11 commented 2 years ago

I get the wordpress-chmod-1 exited with code 0 error on the terminal whenever I run the 'npm run start' command. I also noticed that the 'wordpress-chmod-1' container with the 'wordpress:5-php7.4-fpm' image closes and exits immediately.

What can I do to fix this?

luangjokaj commented 1 year ago

How can I reproduce this? What node version are you running on? Share the full logs, please.

oluisrael11 commented 1 year ago

Thank you for looking into this @luangjokaj. I am running node 18.4.0 on Ubuntu Linux, WSL 2 with Docker. The full logs are below:

wordpressify@0.4.0-7 start docker compose up

[+] Running 5/0 ⠿ Container test1-db-1 Created 0.0s ⠿ Container test1-wordpress-1 Created 0.0s ⠿ Container test1-wordpress-chmod-1 Created 0.0s ⠿ Container test1-webserver-1 Created 0.0s ⠿ Container test1-nodejs-1 Created 0.0s Attaching to test1-db-1, test1-nodejs-1, test1-webserver-1, test1-wordpress-1, test1-wordpress-chmod-1 test1-db-1 | 2022-09-29 12:00:03+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.3+maria~jammy started. test1-db-1 | 2022-09-29 12:00:03+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' test1-db-1 | 2022-09-29 12:00:03+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.3+maria~jammy started. test1-db-1 | 2022-09-29 12:00:04+00:00 [Note] [Entrypoint]: MariaDB upgrade not required test1-db-1 | 2022-09-29 12:00:04 0 [Note] mariadbd (server 10.8.3-MariaDB-1:10.8.3+maria~jammy) starting as process 1 ... test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Number of transaction pools: 1 test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions test1-db-1 | 2022-09-29 12:00:04 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) test1-db-1 | 2022-09-29 12:00:04 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required) test1-db-1 | 2022-09-29 12:00:04 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Completed initialization of buffer pool test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes) test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: 128 rollback segments are active. test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ... test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB. test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: log sequence number 57970072; transaction id 56301 test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool test1-db-1 | 2022-09-29 12:00:04 0 [Note] Plugin 'FEEDBACK' is disabled. test1-db-1 | 2022-09-29 12:00:04 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work. test1-db-1 | 2022-09-29 12:00:04 0 [Note] Server socket created on IP: '0.0.0.0'. test1-db-1 | 2022-09-29 12:00:04 0 [Note] Server socket created on IP: '::'. test1-db-1 | 2022-09-29 12:00:04 0 [Note] InnoDB: Buffer pool(s) load completed at 220929 12:00:04 test1-db-1 | 2022-09-29 12:00:04 0 [Note] mariadbd: ready for connections. test1-db-1 | Version: '10.8.3-MariaDB-1:10.8.3+maria~jammy' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution test1-wordpress-1 | [29-Sep-2022 12:00:05] NOTICE: fpm is running, pid 1 test1-wordpress-1 | [29-Sep-2022 12:00:05] NOTICE: ready to handle connections test1-wordpress-chmod-1 exited with code 0 test1-webserver-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration test1-webserver-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ test1-webserver-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh test1-webserver-1 | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled test1-webserver-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh test1-webserver-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh test1-webserver-1 | /docker-entrypoint.sh: Configuration complete; ready for start up test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: using the "epoll" event method test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: nginx/1.23.0 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219) test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: OS: Linux 5.10.16.3-microsoft-standard-WSL2 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker processes test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 24 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 25 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 26 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 27 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 28 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 29 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 30 test1-webserver-1 | 2022/09/29 12:00:08 [notice] 1#1: start worker process 31 test1-nodejs-1 | test1-nodejs-1 | > wordpressify@0.4.0-7 dev test1-nodejs-1 | > gulp dev test1-nodejs-1 | test1-nodejs-1 | [12:00:16] Using gulpfile /usr/src/app/gulpfile.js test1-nodejs-1 | [12:00:16] Starting 'dev'... test1-nodejs-1 | [12:00:16] Starting 'registerCleanup'... test1-nodejs-1 | [12:00:16] Finished 'registerCleanup' after 1.62 ms test1-nodejs-1 | [12:00:16] Starting 'copyThemeDev'... test1-nodejs-1 | [12:00:16] Finished 'copyThemeDev' after 102 ms test1-nodejs-1 | [12:00:16] Starting 'copyImagesDev'... test1-nodejs-1 | [12:00:16] Finished 'copyImagesDev' after 20 ms test1-nodejs-1 | [12:00:16] Starting 'copyFontsDev'... test1-nodejs-1 | [12:00:16] Finished 'copyFontsDev' after 9.34 ms test1-nodejs-1 | [12:00:16] Starting 'stylesDev'... test1-nodejs-1 | [12:00:17] Finished 'stylesDev' after 1.07 s test1-nodejs-1 | [12:00:17] Starting 'headerScriptsDev'... test1-nodejs-1 | [12:00:17] Finished 'headerScriptsDev' after 100 ms test1-nodejs-1 | [12:00:17] Starting 'footerScriptsDev'... test1-nodejs-1 | [12:00:18] Finished 'footerScriptsDev' after 589 ms test1-nodejs-1 | [12:00:18] Starting 'pluginsDev'... test1-nodejs-1 | [12:00:18] Finished 'pluginsDev' after 12 ms test1-nodejs-1 | [12:00:18] Starting 'devServer'... test1-nodejs-1 | [🐳 WordPressify] Proxying: http://webserver:8080 test1-nodejs-1 | [🐳 WordPressify] Access URLs: test1-nodejs-1 | ----------------------------------- test1-nodejs-1 | Local: http://localhost:3010 test1-nodejs-1 | External: http://172.18.0.4:3010 test1-nodejs-1 | ----------------------------------- test1-nodejs-1 | UI: http://localhost:3001 test1-nodejs-1 | UI External: http://localhost:3001 test1-nodejs-1 | -----------------------------------

The error comes here - test1-wordpress-chmod-1 exited with code 0

luangjokaj commented 1 year ago

According to the logs, everything is running correctly. You should be able to access it from: http://localhost:3010/ @oluisrael11

oluisrael11 commented 1 year ago

Oh yes, I'm able to access it as everything runs correctly. I am just curious as to why this came up — test1-wordpress-chmod-1 exited with code 0.

image

luangjokaj commented 1 year ago

Oh yes, I'm able to access it as everything runs correctly. I am just curious as to why this came up — test1-wordpress-chmod-1 exited with code 0.

image

That’s just an additional step to chmod files for linux users. Otherwise on linux it would not work correctly due to permission issues.