Default AP is not available - First Time setup - PI 3 b+

PI model - RASPBERRY PI 3 MODEL B+
Gateway Version - 0.5.0

I do not see any AP to connect and setup my gateway over wifi.

PFB Gateway logs

Child
Hash: 3c9072abc47debfa35cd
Time: 1001115964ms
Built at: 2018-08-13 16:46:35
Asset Size Chunks Chunk Names
service-worker.js_ 3.87 KiB service-worker.js [emitted] service-worker.js
service-worker.js 1.26 KiB service-worker.js [emitted] service-worker.js
[./static/service-worker.js] 41 bytes {service-worker.js} [built]
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/raw-loader/index.js!static/service-worker.js:
[./node_modules/raw-loader/index.js!./static/service-worker.js] ./node_modules/raw-loader!./static/service-worker.js 1.27 KiB {0} [built]
Opening database: /home/pi/.mozilla-iot/config/db.sqlite3
2018-08-13 16:46:58.316 Running command: wpa_cli -iwlan0 status | sed -n -e ‘/^wpa_state=/{s/wpa_state=//;p;q}’
2018-08-13 16:46:58.499 Running command: wpa_cli -iwlan0 list_networks
2018-08-13 16:46:58.527 List Networks command executed: network id / ssid / bssid / flags
2018-08-13 16:46:58.527 No wifi connection found. Starting the AP… undefined
2018-08-13 16:46:58.528 Running command: sudo src/wifi-setup/platforms/scan.py
2018-08-13 16:46:58.592 DNS config is: gateway
2018-08-13 16:46:58.593 Service Discovery: changing profile - local domain is now: gateway
2018-08-13 16:46:58.957 Service Discovery: state changed to: true
2018-08-13 16:47:01.374 No wifi found; entering AP mode
2018-08-13 16:47:01.375 Running command: sudo ifconfig wlan0 $IP; sudo systemctl start hostapd; sudo systemctl start dnsmasq
2018-08-13 16:47:14.242 handleCaptive /
2018-08-13 16:47:14.243 skipping.
2018-08-13 16:47:14.243 Running command: wpa_cli -iwlan0 status | sed -n -e ‘/^wpa_state=/{s/wpa_state=//;p;q}’
2018-08-13 16:47:14.268 no wifi connection; redirecting to wifiSetup
2018-08-13 16:47:17.322 handleCaptive /
2018-08-13 16:47:17.322 skipping.
2018-08-13 16:47:17.322 Running command: wpa_cli -iwlan0 status | sed -n -e ‘/^wpa_state=/{s/wpa_state=//;p;q}’
2018-08-13 16:47:17.346 no wifi connection; redirecting to wifiSetup
2018-08-13 16:47:17.374 handleCaptive /wifi-setup
2018-08-13 16:47:17.375 skipping.
2018-08-13 16:47:17.376 Running command: sudo src/wifi-setup/platforms/scan.py
2018-08-13 16:47:21.565 handleCaptive /wifi-secure.svg
2018-08-13 16:47:21.565 skipping.
2018-08-13 16:47:21.572 handleCaptive /wifi.svg
2018-08-13 16:47:21.572 skipping.
2018-08-13 16:47:21.589 handleCaptive /moziot-wordmark.png
2018-08-13 16:47:21.589 skipping.
2018-08-13 16:47:21.591 handleCaptive /fonts/ZillaSlab-Bold.woff2
2018-08-13 16:47:21.591 skipping.
2018-08-13 16:47:21.593 handleCaptive /fonts/opensans-regular.woff2
2018-08-13 16:47:21.593 skipping.
2018-08-13 16:47:21.668 handleCaptive /favicon.ico
2018-08-13 16:47:21.668 skipping.
2018-08-13 16:47:36.224 handleCaptive /back.png
2018-08-13 16:47:36.224 skipping.
2018-08-13 16:47:36.230 handleCaptive /checkbox-sprite.png
2018-08-13 16:47:36.230 skipping.
2018-08-13 16:47:47.325 handleCaptive /fonts/ZillaSlab-Bold.woff2
2018-08-13 16:47:47.325 skipping.
2018-08-13 16:47:47.326 handleCaptive /fonts/opensans-regular.woff2
2018-08-13 16:47:47.327 skipping.
2018-08-13 16:47:49.199 Running command: sudo systemctl stop hostapd; sudo systemctl stop dnsmasq; sudo ifconfig wlan0 0.0.0.0
2018-08-13 16:47:54.817 Running command: wpa_cli -iwlan0 list_networks | sed -e “1d” | awk ‘BEGIN {FS="\t"}; {print $2}’
2018-08-13 16:47:54.841 Running command: ID=wpa_cli -iwlan0 add_network && wpa_cli -iwlan0 set_network $ID ssid “$SSID” && wpa_cli -iwlan0 set_network $ID psk “$PSK” && wpa_cli -iwlan0 enable_network $ID && wpa_cli -iwlan0 save_config
2018-08-13 16:47:54.931 Running command: wpa_cli -iwlan0 list_networks
2018-08-13 16:47:54.952 List Networks command executed: network id / ssid / bssid / flags

From that log it looks like someone has performed the first time wifi setup causing the gateway to shut off the “Mozilla IoT Gateway” AP and try to connect to the one configured (all the handleCaptives followed by “Running command: …”). I would recommend rebooting the gateway, clearing your browser’s cache and local data for gateway.local, and if all else fails reflashing the sd card.