Wifi-Connect sends out wifi but the webpage doesn't show up

Hello, I just tried installing wifi-connect in the same way, everything worked.
Here is what I did step by step:

  • git submodule add git@github.com:balena-io-projects/balena-wpe.git
  • mkdir wifi-connect
  • created a wifi-connect/start.sh file containing
iwgetid -r

if [ $? -eq 0 ]; then
    printf 'Skipping WiFi Connect\n'
else
    printf 'Starting WiFi Connect\n'
    ./wifi-connect
fi

# Start your application here.
sleep infinity
  • created a wifi-connect/Dockerfile.template file containing
FROM balenalib/%%BALENA_MACHINE_NAME%%-ubuntu:latest

RUN sudo apt-get -y update && \
    sudo apt-get -y install dnsmasq wireless-tools && \
    sudo apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /usr/src/wifi-connect
RUN curl https://api.github.com/repos/balena-io/wifi-connect/releases/latest -s \
    | grep -hoP 'browser_download_url": "\K.*%%BALENA_ARCH%%\.tar\.gz' \
    | xargs -n1 curl -Ls \
    | tar -xvz -C /usr/src/wifi-connect/

WORKDIR /usr/src/wifi-connect/

COPY ./start.sh ./
CMD ["bash", "start.sh"]
  • created a docker-compose.yml file containing
version: '2'
services:
  balena-wpe:
    restart: always
    build: ./balena-wpe
    ports:
     - 8080:8080
  wifi-connect:
    build: ./wifi-connect
    restart: always
    network_mode: host
    privileged: true
    labels:
      io.balena.features.dbus: '1'
  • pushed everything to balena: balena push myApplicationName;
  • preloaded my rpi3 image: balena preload /path/to/dist/image;
  • flashed the disk image to an sd card;
  • put the sd card in the rpi3 and powered it on.

wifi-connect worked as expected.
If you want to change its ui, you’ll need to add some COPY instructions before CMD in wifi-connect/Dockerfile.template