wifi-connect icon indicating copy to clipboard operation
wifi-connect copied to clipboard

network_manager::dbus_api:ERROR

Open Bucknalla opened this issue 6 years ago • 6 comments

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

Bucknalla avatar May 12 '18 11:05 Bucknalla

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

majorz avatar May 14 '18 11:05 majorz

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"]

Bucknalla avatar May 14 '18 19:05 Bucknalla

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?

majorz avatar May 15 '18 11:05 majorz

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.

Bucknalla avatar May 15 '18 18:05 Bucknalla

Having the same problem on Raspberry 4 / Buster

jbrepogmailcom avatar Jul 21 '19 13:07 jbrepogmailcom

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

jeandiegof avatar Mar 11 '20 20:03 jeandiegof