Coder Social home page Coder Social logo

Comments (9)

cjimti avatar cjimti commented on May 11, 2024

Have you tried another network? Other than a bad password or weak wifi signal there is not a lot to the connection part of the process since that is handed off to wap_supplicant.

from iotwifi.

suiluj avatar suiluj commented on May 11, 2024

i tried two networks which i already was able to connect to before (the new raspbian stretch way by copying the connection config file on the sd.

country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="<my_ssid>"
        psk="<my_passwd>"
}

For testing i used a complete clean raspbian stretch (tried both full version and lite)
Connected via ssh over lan cable and followed your "Getting Started" instructions step by step.

Only thing i noticed was an small error when installing docker via:

curl -sSL https://get.docker.com | sh
# Executing docker install script, commit: 8e87f31
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sudo -E sh -c curl -fsSL "https://download.docker.com/linux/raspbian/gpg" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sudo -E sh -c echo "deb [arch=armhf] https://download.docker.com/linux/raspbian stretch edge" > /etc/apt/sources.list.d/docker.list
+ [ raspbian = debian ]
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $ 

But docker run --rm hello-world was successful and the only missing part is connecting as client.

Do I have to unmask/re-enable wpa_supplicant.service or do I have to copy the wifi config in /etc/wpa_supplicant/wpa_supplicant.conftoo? (I did not change the standard wpa_supplicant.conf file.)

I did not configure any wifi at all and stayed connected over Lan cable all the time.

from iotwifi.

opgbaudouin avatar opgbaudouin commented on May 11, 2024

Same issue here - Tried 3 different WiFi all with simple WPA2 and PSK and although i can connect to the device's AP and list the wifi, any attempt fails with same message. No issue doing this manually on same type of RPI (also Raspian Stretch 2018-03-13m with RPI 3 Model B (no plus)...

I get messages like EAPOL - EAP Session-Id is not available

from iotwifi.

cjimti avatar cjimti commented on May 11, 2024

@opgbaudouin thanks for the report. It seems there is a circumstance where the interface gets into a bad state. I have not been able to reproduce this on my devices.

I need to write up some debugging steps this weekend to help me find the issue.

from iotwifi.

Elpiojo83 avatar Elpiojo83 commented on May 11, 2024

Same here. Attaching logfile just in case that it helps.
iotwifi.log

from iotwifi.

cjimti avatar cjimti commented on May 11, 2024

@Elpiojo83 are you sure wpa_supplicant is not running on the host device?

from iotwifi.

Elpiojo83 avatar Elpiojo83 commented on May 11, 2024

@cjimti i rearealized that i have to execute these commands after every startup, even if wpa_supplicant status says that itΒ΄s masked and inactive

$ sudo systemctl mask wpa_supplicant.service  
$ sudo pkill wpa_supplicant

from iotwifi.

cjimti avatar cjimti commented on May 11, 2024

@Elpiojo83 strange, you must have some other package starting it up. you could disable it in your startup scripts or just remove it completely.

from iotwifi.

fredrikgisslen avatar fredrikgisslen commented on May 11, 2024

Hi, I have the sam problem. Can't find the reason to it.
{"status":"OK","message":"Connection","payload":{"ssid":"","state":"FAIL","ip":"","message":"Unable to connection to "}}

EDIT: I realised the problem was that i have to run:

$ sudo systemctl mask wpa_supplicant.service

$ sudo pkill wpa_supplicant

every time I restart

from iotwifi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.