wordup-dev / wordup-cli

Wordup is a fully integrated development platform for WordPress. Develop plugins and themes locally. Preview in the cloud. Automatic updates in WP.
GNU General Public License v3.0
118 stars 16 forks source link

Error during install, can't build/boot containers #31

Closed stefanobartoletti closed 4 years ago

stefanobartoletti commented 4 years ago

I'm experiencing some issues when trying to perform the wordup install command, this is what I get when running wordup install --logs:

~> wordup install --logs
Installing wordup project and connected docker containers (can take some minutes)
Building wordpress
Step 1/8 : FROM wordpress:5.2.2-php7.2-apache
 ---> 822661be6bc1
Step 2/8 : ARG USER_ID=1000
 ---> Using cache
 ---> 0f5cd01451d3
Step 3/8 : ARG GROUP_ID=1000
 ---> Using cache
 ---> 315b7b3e6449
Step 4/8 : COPY php.conf.ini /usr/local/etc/php/conf.d/conf.ini
 ---> Using cache
 ---> 67a6ed6df957
Step 5/8 : RUN apt-get update;  apt-get install -y msmtp
 ---> Using cache
 ---> 76d20bad79f2
Step 6/8 : RUN yes | pecl install xdebug        && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini      && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini  && echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini
 ---> Using cache
 ---> e6657ab995e1
Step 7/8 : RUN docker-php-ext-install pdo pdo_mysql
 ---> Using cache
 ---> d3b143c0dcec
Step 8/8 : RUN userdel -f www-data &&    useradd -l -u ${USER_ID} www-data
 ---> Using cache
 ---> 53fb8da74177

Successfully built 53fb8da74177
Successfully tagged wordup-wp:1.0
Building wordpress-cli
Step 1/13 : FROM wordpress:cli
 ---> 027e134098b8
Step 2/13 : ARG USER_ID=1000
 ---> Using cache
 ---> 85508c216066
Step 3/13 : ARG GROUP_ID=1000
 ---> Using cache
 ---> cacc12b9eab9
Step 4/13 : ENV WP_CLI_CACHE_DIR=/tmp/.wp-cli/cache/
 ---> Using cache
 ---> 7c09a6975ccf
Step 5/13 : ENV WP_CLI_PACKAGES_DIR=/tmp/.wp-cli/packages/
 ---> Using cache
 ---> 933157855be6
Step 6/13 : USER root
 ---> Using cache
 ---> 2adf54a40ab6
Step 7/13 : RUN apk add --no-cache zip shadow
 ---> Using cache
 ---> ccfe2424b8af
Step 8/13 : COPY php.conf.ini /usr/local/etc/php/conf.d/conf.ini
 ---> Using cache
 ---> 2ce2f73b8479
Step 9/13 : RUN mkdir /var/mail
 ---> Running in 1a688ba4fa61
mkdir: can't create directory '/var/mail': File exists
Service 'wordpress-cli' failed to build: The command '/bin/sh -c mkdir /var/mail' returned a non-zero code: 1
 ›   Error: There was an error while booting the docker containers. Perhaps the port is already taken.

I'm not really sure about what can be causing this, the error message indicates a probable issue with docker ports, but the actual log seems clear that the installation fails while trying to create some directories. Anyway, I can't precisely troubleshoot this and I don't know how to solve this.

If it matters, I'm running this on openSUSE, with docker properly setup: trying to run docker run hello-world correclty executes all expected operations.

How can I solve this? If you need more info about this issue, please ask.

shry commented 4 years ago

This error is probably related to #29 Keep in mind, this bugfix is not yet released on npm.

stefanobartoletti commented 4 years ago

Yes it seems the same issue that I'm experiencing myself. Sorry but I had not noticed that conversation :)

I'll wait for the next release then, and will report if it will work also in my setup.

Thank you!

shry commented 4 years ago

You can check out v0.7.4, this bug should be fixed now.