davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
322 stars 54 forks source link

The way to connect to Wi-Fi on iPhone #71

Closed mantramandala88 closed 3 years ago

mantramandala88 commented 4 years ago

Hi daves, Thanks for your great project! I'm testing the comitup now and I have one question for the way to connect to Wifi on iPhone.

When I chose and connected comitup-29 in my iPhone setting display, my iPhone wifi icon would never come out and then the captive portal come out without the wifi icon as below. As a result my RP didn't get IP address. 1

And then I tried to push a cancelation button on the captive portal. I got comitup AP after I pushed "Use Without Internet" button. However the captive portal had never come out.

I used "http://10.41.0.1" on the safari browser because I have no choice without it. And I chose my SSID and got the connectivity from my RP as below. 2

Is the process to give my RP the connectivity like above correct way? It looks strange for captive portal cancelation process. Please let me know the correct way to use the comitup if I did some wrong way.

Just so you know that I'm using iPhone XR and Raspbian GNU/Linux 10 (buster) for my RP. I've tried 5-6 times but the result was same and for another iPhone(8) it was same.

davesteele commented 4 years ago

That''s a bug.

From an iPad:

Nov  9 04:54:18 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:18] "GET /hotspot-detect.html HTTP/1.0" 302 -
Nov  9 04:54:20 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:20] "GET / HTTP/1.0" 200 -
Nov  9 04:54:21 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:21] "GET /hotspot-detect.html HTTP/1.1" 302 -
Nov  9 04:54:21 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:21] "GET / HTTP/1.1" 200 -
Nov  9 04:54:22 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:22] "GET /css/uikit.css HTTP/1.1" 200 -
Nov  9 04:54:22 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:22] "GET /js/uikit-icons.min.js HTTP/1.1" 200 -
Nov  9 04:54:22 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:22] "GET /js/uikit.js HTTP/1.1" 404 -
Nov  9 04:54:22 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:22] "GET /hotspot-detect.html HTTP/1.0" 302 -
Nov  9 04:54:22 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:22] "GET / HTTP/1.0" 200 -
Nov  9 04:54:28 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:28] "GET /confirm?ssid=Fioptics01678&encrypted=encrypted HTTP/1.1" 200 -
Nov  9 04:54:28 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:28] "GET /js/uikit.js HTTP/1.1" 404 -
Nov  9 04:54:28 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:28] "GET /css/uikit.css HTTP/1.1" 304 -
Nov  9 04:54:28 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:28] "GET /js/uikit-icons.min.js HTTP/1.1" 304 -
Nov  9 04:54:28 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:28] "GET /hotspot-detect.html HTTP/1.0" 302 -
Nov  9 04:54:30 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:30] "GET / HTTP/1.0" 200 -
Nov  9 04:54:44 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:44] "POST /connect HTTP/1.1" 200 -
Nov  9 04:54:44 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:44] "GET /js/uikit.js HTTP/1.1" 404 -
Nov  9 04:54:44 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:44] "GET /css/uikit.css HTTP/1.1" 304 -
Nov  9 04:54:44 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:44] "GET /js/uikit-icons.min.js HTTP/1.1" 304 -
Nov  9 04:54:45 raspberrypi comitup-web[1072]: 10.41.0.134 - - [09/Nov/2019 04:54:45] "GET /hotspot-detect.html HTTP/1.0" 302 -
Nov  9 04:54:45 raspberrypi comitup-web[1072]: Process Process-1:
Nov  9 04:54:45 raspberrypi comitup-web[1072]: Traceback (most recent call last):
Nov  9 04:54:45 raspberrypi comitup-web[1072]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
Nov  9 04:54:45 raspberrypi comitup-web[1072]:     self.run()
Nov  9 04:54:45 raspberrypi comitup-web[1072]:   File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
Nov  9 04:54:45 raspberrypi comitup-web[1072]:     self._target(*self._args, **self._kwargs)
Nov  9 04:54:45 raspberrypi comitup-web[1072]:   File "/usr/share/comitup/web/comitupweb.py", line 53, in do_connect
Nov  9 04:54:45 raspberrypi comitup-web[1072]:     ciu_client.ciu_connect(ssid, password)
Nov  9 04:54:45 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
Nov  9 04:54:45 raspberrypi comitup-web[1072]:     **keywords)
Nov  9 04:54:45 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
Nov  9 04:54:45 raspberrypi comitup-web[1072]:     message, timeout)
Nov  9 04:54:45 raspberrypi comitup-web[1072]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Message has the same reply serial as a currently-outstanding existing method call

Connects work from Android, but returns:

Nov  9 05:01:36 raspberrypi comitup-web[1072]: 10.41.0.141 - - [09/Nov/2019 05:01:36] "POST /connect HTTP/1.1" 200 -
Nov  9 05:01:36 raspberrypi comitup-web[1072]: 10.41.0.141 - - [09/Nov/2019 05:01:36] "GET /js/uikit.js HTTP/1.1" 404 -
Nov  9 05:01:36 raspberrypi comitup-web[1072]: 10.41.0.141 - - [09/Nov/2019 05:01:36] "GET /css/uikit.css HTTP/1.1" 304 -
Nov  9 05:01:36 raspberrypi comitup-web[1072]: 10.41.0.141 - - [09/Nov/2019 05:01:36] "GET /js/uikit-icons.min.js HTTP/1.1" 304 -
Nov  9 05:01:36 raspberrypi comitup-web[1072]: 10.41.0.141 - - [09/Nov/2019 05:01:36] "GET /img/favicon.ico HTTP/1.1" 500 -
Nov  9 05:01:37 raspberrypi comitup-web[1072]: Traceback (most recent call last):
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 2309, in __call__
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     return self.wsgi_app(environ, start_response)
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 2295, in wsgi_app
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     response = self.handle_exception(e)
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1741, in handle_exception
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     reraise(exc_type, exc_value, tb)
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     raise value
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     response = self.full_dispatch_request()
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     rv = self.handle_user_exception(e)
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     reraise(exc_type, exc_value, tb)
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     raise value
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     rv = self.dispatch_request()
Nov  9 05:01:37 raspberrypi comitup-web[1072]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
Nov  9 05:01:37 raspberrypi comitup-web[1072]:     return self.view_functions[rule.endpoint](**req.view_args)
Nov  9 05:01:37 raspberrypi comitup-web[1072]: TypeError: favicon() missing 1 required positional argument: 'path'
mantramandala88 commented 4 years ago

Hi Dave,

Thanks for your fixing this bug.

I did the apt-get update and check the programs change as (8946c71) directly. I checked that all changes was changed completely and tried same thing several times.

However it seemed the same as before, my wifi icon didn't appear with the captive portal at the same time even once. Of course If I pushed "Use Without Internet" button and used "http://10.41.0.1" with safari, I can use the comitup was available.

Could you let me know if there are any other conceivable cause at the moment? I want to try it if any.

davesteele commented 4 years ago

The logs I listed above were from /var/log/comitup-web.log. Do you have any tracebacks in that file?

I was using a late-model iPad.

mantramandala88 commented 4 years ago

Hi Dave,

Sorry for my late reply and thanks for your updating information. In fact I couldn't login to my RP for a router problem. I bought a new router, set it, did "apt-get update" and tried connect to comitup today. Also I checked that the current (8946c71) was reflected.

However the result was same as previous process when I pushed blue-## on my iPhone. The log in /var/log/comitup-web.log is as below and it doesn't look strange...

2019-12-06 22:09:36,171 - comitup_web - INFO - Starting comitup-web 2019-12-06 22:11:10,645 - comitup_web - INFO - index.html - 9 points 2019-12-06 22:11:11,467 - comitup_web - INFO - index.html - 9 points 2019-12-06 22:11:12,058 - comitup_web - INFO - index.html - 9 points 2019-12-06 22:11:21,938 - comitup_web - INFO - index.html - 11 points 2019-12-06 22:11:22,466 - comitup_web - INFO - index.html - 11 points 2019-12-06 22:11:22,941 - comitup_web - INFO - index.html - 11 points 2019-12-06 22:11:28,064 - comitup_web - INFO - confirm.html - ssid xxxx, mode single 2019-12-06 22:11:29,518 - comitup_web - INFO - index.html - 12 points 2019-12-06 22:11:50,222 - comitup_web - INFO - index.html - 12 points 2019-12-06 22:11:50,625 - comitup_web - INFO - index.html - 12 points 2019-12-06 22:11:50,740 - comitup_web - INFO - index.html - 12 points 2019-12-06 22:11:50,835 - comitup_web - INFO - index.html - 12 points 2019-12-06 22:11:50,963 - comitup_web - INFO - index.html - 12 points 2019-12-06 22:11:51,532 - comitup_web - INFO - confirm.html - ssid xxxx, mode single 2019-12-06 22:11:59,289 - comitup_web - INFO - connect.html - ssid xxxx 2019-12-06 22:14:31,146 - comitup_web - INFO - Starting comitup-web

jerbzz commented 3 years ago

Hello @davesteele. I'm experiencing an issue on my iPhone 8 Plus (iOS 14.4.1).

I've installed the latest comitup-lite image on a Pi Zero W. I made no configuration changes. I deleted all related DHCP leases for the Zero's MAC address and rebooted my router.

My iPhone connects to the comitup AP just fine and I get a list of networks to choose from. However, when I enter my PSK, comitup acts as if the PSK was incorrect - it does not connect to the network and I get dumped back at the "choose a network" screen.

When I connect from my Windows 10 machine (Chrome), comitup took the PSK first time and connected to the network perfectly.

Pastebin of /var/log/syslog: https://pastebin.com/zGrMMZEr

pi@comitup-694:/var/log $ tail -75 messages
Mar 17 13:08:19 comitup-694 NetworkManager[324]: <info>  [1615986499.8852] manager: NetworkManager state is now CONNECTED_LOCAL
Mar 17 13:08:19 comitup-694 NetworkManager[324]: <info>  [1615986499.9740] device (wlan0): Activation: successful, device activated.
Mar 17 13:08:26 comitup-694 NetworkManager[324]: <info>  [1615986506.5867] device (wlan0): supplicant interface state: completed -> disconnected
Mar 17 13:08:26 comitup-694 NetworkManager[324]: <info>  [1615986506.8412] device (wlan0): supplicant interface state: disconnected -> completed
Mar 17 13:08:37 comitup-694 NetworkManager[324]: <info>  [1615986517.6067] manager: NetworkManager state is now CONNECTED_SITE
Mar 17 13:08:37 comitup-694 NetworkManager[324]: <info>  [1615986517.6209] policy: set 'comitup-694-0000' (wlan0) as default for IPv4 routing and DNS
Mar 17 13:13:31 comitup-694 NetworkManager[324]: <info>  [1615986811.7656] device (wlan0): supplicant interface state: completed -> disconnected
Mar 17 13:13:32 comitup-694 NetworkManager[324]: <info>  [1615986812.0259] device (wlan0): supplicant interface state: disconnected -> completed
Mar 17 13:13:43 comitup-694 NetworkManager[324]: <info>  [1615986823.8060] policy: set 'comitup-694-0000' (wlan0) as default for IPv4 routing and DNS
Mar 17 13:18:37 comitup-694 NetworkManager[324]: <info>  [1615987117.2034] device (wlan0): supplicant interface state: completed -> disconnected
Mar 17 13:18:37 comitup-694 NetworkManager[324]: <info>  [1615987117.4818] device (wlan0): supplicant interface state: disconnected -> completed
Mar 17 13:18:47 comitup-694 NetworkManager[324]: <info>  [1615987127.3681] policy: set 'comitup-694-0000' (wlan0) as default for IPv4 routing and DNS
Mar 17 13:23:23 comitup-694 NetworkManager[324]: <info>  [1615987403.0762] keyfile: add connection /etc/NetworkManager/system-connections/pondweed.nmconnection (d5af07b2-3dca-45d0-8091-38c74fa49ce8,"pondweed")
Mar 17 13:23:23 comitup-694 NetworkManager[324]: <info>  [1615987403.1096] audit: op="connection-add" uuid="d5af07b2-3dca-45d0-8091-38c74fa49ce8" name="pondweed" pid=357 uid=0 result="success"
Mar 17 13:23:23 comitup-694 NetworkManager[324]: <info>  [1615987403.1840] device (wlan0): state change: activated -> deactivating (reason 'user-requested', sys-iface-state: 'managed')
Mar 17 13:23:23 comitup-694 NetworkManager[324]: <info>  [1615987403.2021] manager: NetworkManager state is now DISCONNECTING
Mar 17 13:23:23 comitup-694 NetworkManager[324]: <info>  [1615987403.2684] audit: op="device-disconnect" interface="wlan0" ifindex=2 pid=357 uid=0 result="success"
Mar 17 13:23:23 comitup-694 NetworkManager[324]: <info>  [1615987403.2993] device (wlan0): state change: deactivating -> disconnected (reason 'user-requested', sys-iface-state: 'managed')
Mar 17 13:23:24 comitup-694 NetworkManager[324]: <info>  [1615987404.4338] device (wlan0): set-hw-addr: set MAC address to DE:87:41:8C:D8:8F (scanning)
Mar 17 13:23:24 comitup-694 NetworkManager[324]: <info>  [1615987404.6436] manager: NetworkManager state is now DISCONNECTED
Mar 17 13:23:24 comitup-694 NetworkManager[324]: <info>  [1615987404.8326] device (wlan0): supplicant interface state: completed -> disconnected
Mar 17 13:23:24 comitup-694 NetworkManager[324]: <info>  [1615987404.9848] device (wlan0): supplicant interface state: disconnected -> disabled
Mar 17 13:23:25 comitup-694 NetworkManager[324]: <info>  [1615987405.0119] device (wlan0): supplicant interface state: disabled -> disconnected
Mar 17 13:23:25 comitup-694 NetworkManager[324]: <info>  [1615987405.5904] device (wlan0): Activation: starting connection 'pondweed' (d5af07b2-3dca-45d0-8091-38c74fa49ce8)
Mar 17 13:23:25 comitup-694 NetworkManager[324]: <info>  [1615987405.6145] audit: op="connection-activate" uuid="d5af07b2-3dca-45d0-8091-38c74fa49ce8" name="pondweed" pid=357 uid=0 result="success"
Mar 17 13:23:25 comitup-694 NetworkManager[324]: <info>  [1615987405.6295] device (wlan0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:25 comitup-694 NetworkManager[324]: <info>  [1615987405.7208] manager: NetworkManager state is now CONNECTING
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.2992] device (wlan0): set-hw-addr: reset MAC address to B8:27:EB:AC:9C:78 (preserve)
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.4047] device (wlan0): supplicant interface state: disconnected -> disabled
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.4079] device (wlan0): supplicant interface state: disabled -> disconnected
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.4305] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.4558] device (wlan0): Activation: (wifi) access point 'pondweed' has security, but secrets are required.
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.4598] device (wlan0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5154] device (wlan0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5381] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5549] device (wlan0): Activation: (wifi) connection 'pondweed' has security, and secrets exist.  No new secrets needed.
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5611] Config: added 'ssid' value 'pondweed'
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5649] Config: added 'scan_ssid' value '1'
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5653] Config: added 'bgscan' value 'simple:30:-80:86400'
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5656] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256'
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5658] Config: added 'auth_alg' value 'OPEN'
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.5660] Config: added 'psk' value '<hidden>'
Mar 17 13:23:26 comitup-694 NetworkManager[324]: <info>  [1615987406.7177] device (wlan0): supplicant interface state: disconnected -> scanning
Mar 17 13:23:27 comitup-694 NetworkManager[324]: <info>  [1615987407.3265] device (wlan0): supplicant interface state: scanning -> associating
Mar 17 13:23:27 comitup-694 kernel: [  950.448712] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Mar 17 13:23:27 comitup-694 NetworkManager[324]: <info>  [1615987407.8486] device (wlan0): supplicant interface state: associating -> completed
Mar 17 13:23:27 comitup-694 NetworkManager[324]: <info>  [1615987407.8641] device (wlan0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "pondweed"
Mar 17 13:23:27 comitup-694 NetworkManager[324]: <info>  [1615987407.8992] device (wlan0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:27 comitup-694 NetworkManager[324]: <info>  [1615987407.9553] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Mar 17 13:23:27 comitup-694 NetworkManager[324]: <info>  [1615987407.9809] dhcp4 (wlan0): dhclient started with pid 2033
Mar 17 13:23:28 comitup-694 NetworkManager[324]: <info>  [1615987408.0606] device (wlan0): ipv6: duplicate address check failed for the fe80::222b:9282:47d8:7c9d/64 lft forever pref forever lifetime 921-0[4294967295,4294967295] dev 2 flags permanent,tentative src kernel address
Mar 17 13:23:29 comitup-694 kernel: [  952.499394] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
Mar 17 13:23:30 comitup-694 NetworkManager[324]: <info>  [1615987410.4011] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Mar 17 13:23:30 comitup-694 NetworkManager[324]: <info>  [1615987410.4207] dhcp6 (wlan0): dhclient started with pid 2039
Mar 17 13:23:30 comitup-694 NetworkManager[324]: <info>  [1615987410.6408] dhcp6 (wlan0): client pid 2039 exited with status 1
Mar 17 13:23:30 comitup-694 NetworkManager[324]: <info>  [1615987410.6412] dhcp6 (wlan0): state changed unknown -> done
Mar 17 13:23:30 comitup-694 NetworkManager[324]: <info>  [1615987410.6421] dhcp6 (wlan0): canceled DHCP transaction
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1206] dhcp4 (wlan0):   address 192.168.1.240
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1255] dhcp4 (wlan0):   plen 24 (255.255.255.0)
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1258] dhcp4 (wlan0):   gateway 192.168.1.1
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1261] dhcp4 (wlan0):   lease time 86400
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1264] dhcp4 (wlan0):   hostname 'comitup-694'
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1267] dhcp4 (wlan0):   nameserver '192.168.1.1'
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1335] dhcp4 (wlan0):   domain name 'artyzan.net'
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.1339] dhcp4 (wlan0): state changed unknown -> bound
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.2080] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.3678] device (wlan0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.3875] device (wlan0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.4253] manager: NetworkManager state is now CONNECTED_LOCAL
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.5031] manager: NetworkManager state is now CONNECTED_SITE
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.5115] policy: set 'pondweed' (wlan0) as default for IPv4 routing and DNS
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.5251] policy: set 'pondweed' (wlan0) as default for IPv6 routing and DNS
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.5279] dns-mgr: Writing DNS information to /sbin/resolvconf
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.9345] device (wlan0): Activation: successful, device activated.
Mar 17 13:23:32 comitup-694 NetworkManager[324]: <info>  [1615987412.9690] manager: NetworkManager state is now CONNECTED_GLOBAL
pi@comitup-694:/var/log $ tail -75 comitup.log
2021-03-17 13:17:31,513 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:17:36,515 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:17:41,527 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:17:46,534 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:17:51,527 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:17:56,542 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:01,546 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:06,553 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:11,556 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:16,562 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:21,557 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:26,568 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:31,577 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:36,582 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:41,586 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:46,592 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:51,591 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:18:56,598 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:19:01,607 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:19:06,608 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:19:11,621 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:19:16,624 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:19:22,530 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:27,481 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:32,488 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:37,516 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:42,546 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:47,541 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:52,563 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:19:57,567 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:03,493 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:08,502 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:13,500 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:18,396 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:18,551 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:23,580 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:28,593 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:33,597 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:38,603 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:43,591 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:48,611 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:53,619 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:20:58,612 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:03,632 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:08,637 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:13,638 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:18,646 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:23,652 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:28,656 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:33,660 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:38,666 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:43,673 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:48,671 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:53,671 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:21:58,686 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:22:03,692 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:22:08,828 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:13,823 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:18,838 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:23,848 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:22:28,833 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:33,847 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:38,705 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:22:43,716 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:22:48,862 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:53,862 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:22:58,867 - comitup - INFO - No candidates - skipping CONNECTING scan
2021-03-17 13:23:03,747 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:23:08,754 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:23:13,751 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:23:18,398 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:23:18,721 - comitup - INFO - AP active - skipping CONNECTING scan
2021-03-17 13:23:23,155 - comitup - INFO - Setting state to CONNECTING
2021-03-17 13:23:23,262 - comitup - INFO - Attempting connection to pondweed
2021-03-17 13:23:33,988 - comitup - INFO - Setting state to CONNECTED
pi@comitup-694:/var/log $ tail -25 comitup-web.log
2021-03-17 13:15:21,039 - comitup_web - INFO - index.html - 9 points
2021-03-17 13:15:21,436 - comitup_web - INFO - index.html - 9 points
2021-03-17 13:15:21,674 - comitup_web - INFO - index.html - 9 points
2021-03-17 13:19:22,290 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:19:23,149 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:19:23,382 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:19:23,822 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:19:24,503 - comitup_web - INFO - confirm.html - ssid pondweed, mode single
2021-03-17 13:19:24,882 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:19:25,372 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:19:36,035 - comitup_web - INFO - connect.html - ssid pondweed
2021-03-17 13:20:03,313 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:20:03,692 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:20:04,010 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:22:22,603 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:22:23,478 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:22:23,934 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:22:24,188 - comitup_web - INFO - index.html - 12 points
2021-03-17 13:22:37,270 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:22:37,692 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:22:37,882 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:22:38,225 - comitup_web - INFO - index.html - 14 points
2021-03-17 13:23:10,751 - comitup_web - INFO - index.html - 8 points
2021-03-17 13:23:12,668 - comitup_web - INFO - confirm.html - ssid pondweed, mode single
2021-03-17 13:23:21,756 - comitup_web - INFO - connect.html - ssid pondweed

What else can I provide to assist in troubleshooting this?

davesteele commented 3 years ago

IOS accesses the web server in a different fashion than other OSs. I just don't use it enough to be able to push this forward much.

jerbzz commented 3 years ago

Ah, I see. That’s a shame. I’ll add it to the list of “things I would like to submit a PR for in the future”. :) Do you happen to know if other browsers on iOS behave differently?

davesteele commented 3 years ago

No. I have limited access to iPhones.

jerbzz commented 3 years ago

Ok, no problem and thank you. I’m keen to work on a PR for this. It seems to work OK with my iPhone on a Pi 3B+ but fails on the Pi Zero W, which is interesting.

davesteele commented 3 years ago

If you're in a position to be able to do this, try the patch on a Zero.

davesteele commented 3 years ago

Note the new dependency on python3-cachetools.

jerbzz commented 3 years ago

Awesome - I'll give this a go in a little while and get back to you. Thanks!

davesteele commented 3 years ago

Just tried it once on a Zero W, with success.

jerbzz commented 3 years ago

Hi @davesteele

I think I'm missing something - maybe I don't understand how to properly apply this patch. Here are my steps

Am I missing part of the commit?

davesteele commented 3 years ago

You can "apt-get install python3-cachetools" instead of pip, but that shouldn't matter. The patch is expecting cwd to be /usr/share/comitup. Not sure why it applied. For things like this, I tend to check out the repository, and replace the /usr/share/comitup/web directory tree with the repo contents.

jerbzz commented 3 years ago

OK - got myself sorted out as described.

Now works perfectly on my 3B+ and my Zero W, connecting from Safari on my iPhone 8 Plus (iOS 14.4.2) and from Chrome on my Windows 10 laptop.

Thank you 👍

What I don't understand is why it worked on the 3B before this patch but not on the Zero W!?

I can test other browser and platform combinations if that would be helpful? Ubuntu, Windows, Android...?

davesteele commented 3 years ago

There's a race. It is just a Performance difference.

Any testing help is appreciated.

jerbzz commented 3 years ago

Tested the Pi Zero W:

davesteele commented 3 years ago

not bad. Thanks. Closing