balena-os / wifi-connect

Easy WiFi setup for Linux devices from your mobile phone or laptop
Apache License 2.0
1.3k stars 364 forks source link

network_manager::dbus_api:ERROR #215

Open Bucknalla opened 6 years ago

Bucknalla commented 6 years ago

Hi,

I'm having an issue trying to run the wifi-connect script on my RPi 3 B (v1.2).

image

[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

Any help would be greatly appreciated!

Thanks,

Alex

majorz commented 6 years ago

Hey Alex, can you please share the Dockerfile for the application container please? Something is going wrong with NetworkManager...

Bucknalla commented 6 years ago

Hi,

Here's the Dockerfile associated with my issue - I haven't changed it since cloning the resin-wifi-connect repo.

FROM resin/%%RESIN_MACHINE_NAME%%-debian

ENV INITSYSTEM on

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

WORKDIR /usr/src/app

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

COPY scripts/start.sh .

CMD ["bash", "start.sh"]
majorz commented 6 years ago

I could not reproduce the error. I thought it could be a separate instance of wifi-connect running, but that gives a different sort of error. Is the start script a modified version of the one we provide?

Bucknalla commented 6 years ago

No, I just cloned the repo and pushed it to my device. I don't think that I did anything other than that? I'll try to do a fresh clone & push and see if that fixes anything.

jbrepogmailcom commented 5 years ago

Having the same problem on Raspberry 4 / Buster

jeandiegof commented 4 years ago

Having the same problem on Raspberry 4 / Buster

I had to purge openresolv and dhcpcd5 in order to make it work. There's more info here. @jbrepogmailcom