Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Creating the captive portal failed. #190

Closed
edeuxk opened this issue Mar 14, 2018 · 9 comments
Closed

Error: Creating the captive portal failed. #190

edeuxk opened this issue Mar 14, 2018 · 9 comments
Assignees

Comments

@edeuxk
Copy link

edeuxk commented Mar 14, 2018

I made a fresh install with the last Raspbian iso file.
It's a Raspberry 3.

screen shot 2018-03-13 at 7 06 23 pm

But I have this error :
screen shot 2018-03-13 at 7 00 39 pm

root@raspberrypi:/home/pi/Desktop# wifi-connect
WiFi device: wlan0
[wifi_connect::network:WARN] No access points found - giving up...
Starting access point...
[network_manager::dbus_api:ERROR] org.freedesktop.NetworkManager::AddAndActivateConnection method call failed on /org/freedesktop/NetworkManager
Error: Creating the captive portal failed
caused by: D-Bus failure: org.freedesktop.NetworkManager::AddAndActivateConnection method call failed on /org/freedesktop/NetworkManager
caused by: D-Bus failure: Method call failed after 10 retries
root@raspberrypi:/home/pi/Desktop#

What do I have to do to make it work?

@majorz
Copy link
Collaborator

majorz commented Mar 14, 2018

@edeuxk Thanks for reporting this. Can you please run it as root: sudo wifi-connect.

There is an open issue for this - #122, which I am planning to address soon.

@majorz
Copy link
Collaborator

majorz commented Mar 14, 2018

I addressed it now in #193 and this will be merged soon. Closing it in favor of #122.

@majorz majorz closed this as completed Mar 14, 2018
@edeuxk
Copy link
Author

edeuxk commented Mar 14, 2018

As you can see I was root.

@majorz majorz reopened this Mar 14, 2018
@majorz
Copy link
Collaborator

majorz commented Mar 14, 2018

I somehow missed that, since it is the same error log as when not running as root. I just did the same as you on top of the just released Raspbian version 2018-03-13 and things are running well. I will pull now an older 2017-11-29 version to confirm how things are working there.

@majorz majorz self-assigned this Mar 14, 2018
@edeuxk
Copy link
Author

edeuxk commented Mar 14, 2018

No worries :)
Thanks for trying to help.

@majorz
Copy link
Collaborator

majorz commented Mar 14, 2018

I tried now the Raspbian Lite 2017-11-29 version and things worked correctly. I will need to try the Desktop version as well in case there are some permission setting differences. I will do that tomorrow and ping you back.

Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for dbus (1.10.22-0+deb9u1) ...
WiFi Connect Raspbian Installer: Retrieving latest release from https://api.github.com/repos/resin-io/resin-wifi-connect/releases/latest...
WiFi Connect Raspbian Installer: Downloading and extracting https://github.com/resin-io/resin-wifi-connect/releases/download/v4.0.6/wifi-connect-v4.0.6-linux-rpi.tar.gz...
WiFi Connect Raspbian Installer: Successfully installed wifi-connect 4.0.6
WiFi Connect Raspbian Installer: Run 'wifi-connect --help' for available options


root@raspberrypi:~# wifi-connect 
WiFi device: wlan0
Access points: ["blue2.4ghz", "Home_DD", "DOGE", "DAMYAN", "HUAWEI-6R8p", "Hedgehog", "TP-LINK_20DC", "TP-LINK_DE935A", "botev1912", "NIKI"]
Starting access point...
Access point 'WiFi Connect' created
Starting HTTP server on 192.168.42.1:80

@edeuxk
Copy link
Author

edeuxk commented Mar 14, 2018

So I tried with the Raspbian Lite 2017-11-29 with your command line.
It failed but someone opened an issue.
So I downloaded the install script and ran it.

It worked perfectly.
If you're in SF I'll buy you a coffee 👍

@edeuxk edeuxk closed this as completed Mar 14, 2018
@majorz
Copy link
Collaborator

majorz commented Mar 15, 2018

Right, this was fixed yesterday as well. Cheers!

@jbrepogmailcom
Copy link

jbrepogmailcom commented Jul 21, 2019

Hello, may I ask please? Do I understand correctly that this error has been fixed by using different OS? I am on latest Raspbian Buster with lots of SW installed and I can not just change OS. What can I do? Getting same error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants