Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
I'm trying to build Headwind Remote but it stucks at "Waiting until web-admin is ready".

How to diagnose and fix the issue?
by (37.6k points)

1 Answer

0 votes

Web-admin builder is a Docker image using gulp to build web pages from their templates.

The most probable error reason is that there's no access to the Internet from inside the container.

Diagnostics:

Check the logs of the web admin builder container:

docker ps

930a2a8ce0a2   headwindmdm/node-gulp-builder:15.2.0-alpine3.12-0.2   "/entrypoint.sh"         6 days ago   Up 4 minutes                              node-gulp-builder-container

docker logs 930a2a8ce0a2

You will see something like:

npm ERR! network request to https://registry.npmjs.org/gulp failed, reason: connect ETIMEDOUT 104.16.28.34:443

npm ERR! network This is a problem related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

Solution 

You need to run the builder without creating its own network interface (network_mode: host).

Edit the file deploy/pre_webadmin.yaml, find the line

Find the lines

   - name: Start build web-admin

      docker_container:

and add the line

      network_mode: host

This should resolve the issue.

by (37.6k points)
...