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

Errors in journalctl log #6

Open
AlexMaghen opened this issue Oct 28, 2021 · 0 comments
Open

Errors in journalctl log #6

AlexMaghen opened this issue Oct 28, 2021 · 0 comments

Comments

@AlexMaghen
Copy link

Hi. This thing is exactly what I need but I'm having trouble getting it started. All of the installation steps worked as you described. When I reboot with no WiFi network configured (properly), I wait to see if I can find the Access Point that my pi should be opening, but nothing shows up. When I look at the logs afterward, I see many attempts, a bunch of reboots, etc. But I'm having a very difficult time figuring out what is going wrong. Here is a bunch of the log. Would VERY much appreciate if someone could give me a pointer what's breaking here... THANK YOU!

Oct 28 10:25:34 MD-Dev01 node[478]: check 18
Oct 28 10:25:34 MD-Dev01 node[478]: Running command: wpa_cli -iwlan0 status | sed -n -e '/^wpa_state=/{s/wpa_state=//;p;q}'
Oct 28 10:25:34 MD-Dev01 node[478]: Command wrote to stderr, assuming failure: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Oct 28 10:25:34 MD-Dev01 node[478]: Error checking wifi on attempt 18 : Error: wpa_cli -iwlan0 status | sed -n -e '/^wpa_state=/{s/wpa_state=//;p;q}' output to stderr: Fai
Oct 28 10:25:34 MD-Dev01 node[478]: at /home/pi/Robots/wifi/wifi-setup/run.js:23:16
Oct 28 10:25:34 MD-Dev01 node[478]: at ChildProcess.exithandler (child_process.js:285:7)
Oct 28 10:25:34 MD-Dev01 node[478]: at ChildProcess.emit (events.js:198:13)
Oct 28 10:25:34 MD-Dev01 node[478]: at maybeClose (internal/child_process.js:982:16)
Oct 28 10:25:34 MD-Dev01 node[478]: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Oct 28 10:25:37 MD-Dev01 node[478]: check 19
Oct 28 10:25:37 MD-Dev01 node[478]: Running command: wpa_cli -iwlan0 status | sed -n -e '/^wpa_state=/{s/wpa_state=//;p;q}'
Oct 28 10:25:37 MD-Dev01 node[478]: Command wrote to stderr, assuming failure: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Oct 28 10:25:37 MD-Dev01 node[478]: Error checking wifi on attempt 19 : Error: wpa_cli -iwlan0 status | sed -n -e '/^wpa_state=/{s/wpa_state=//;p;q}' output to stderr: Fai
Oct 28 10:25:37 MD-Dev01 node[478]: at /home/pi/Robots/wifi/wifi-setup/run.js:23:16
Oct 28 10:25:37 MD-Dev01 node[478]: at ChildProcess.exithandler (child_process.js:285:7)
Oct 28 10:25:37 MD-Dev01 node[478]: at ChildProcess.emit (events.js:198:13)
Oct 28 10:25:37 MD-Dev01 node[478]: at maybeClose (internal/child_process.js:982:16)
Oct 28 10:25:37 MD-Dev01 node[478]: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Oct 28 10:25:40 MD-Dev01 node[478]: check 20
Oct 28 10:25:40 MD-Dev01 node[478]: Running command: wpa_cli -iwlan0 status | sed -n -e '/^wpa_state=/{s/wpa_state=//;p;q}'
Oct 28 10:25:40 MD-Dev01 node[478]: Command wrote to stderr, assuming failure: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Oct 28 10:25:40 MD-Dev01 node[478]: Error checking wifi on attempt 20 : Error: wpa_cli -iwlan0 status | sed -n -e '/^wpa_state=/{s/wpa_state=//;p;q}' output to stderr: Fai
Oct 28 10:25:40 MD-Dev01 node[478]: at /home/pi/Robots/wifi/wifi-setup/run.js:23:16
Oct 28 10:25:40 MD-Dev01 node[478]: at ChildProcess.exithandler (child_process.js:285:7)
Oct 28 10:25:40 MD-Dev01 node[478]: at ChildProcess.emit (events.js:198:13)
Oct 28 10:25:40 MD-Dev01 node[478]: at maybeClose (internal/child_process.js:982:16)
Oct 28 10:25:40 MD-Dev01 node[478]: at Socket.stream.socket.on (internal/child_process.js:389:11)
Oct 28 10:25:40 MD-Dev01 node[478]: at Socket.emit (events.js:198:13)
Oct 28 10:25:40 MD-Dev01 node[478]: at Pipe._handle.close (net.js:607:12)
Oct 28 10:25:40 MD-Dev01 node[478]: Giving up. No wifi available.
Oct 28 10:25:40 MD-Dev01 node[478]: HTTP server listening on port 80
Oct 28 10:25:40 MD-Dev01 node[478]: startAP
Oct 28 10:25:40 MD-Dev01 node[478]: Running command: iwlist wlan0 scan |sed -n -e '
Oct 28 10:25:40 MD-Dev01 node[478]: /Quality=/,/ESSID:/H
Oct 28 10:25:40 MD-Dev01 node[478]: /ESSID:/{
Oct 28 10:25:40 MD-Dev01 node[478]: g
Oct 28 10:25:40 MD-Dev01 node[478]: s/^.Quality=([0-9]+).ESSID:"([^"])".$/\1 \2/
Oct 28 10:25:40 MD-Dev01 node[478]: p
Oct 28 10:25:40 MD-Dev01 node[478]: s/.*//
Oct 28 10:25:40 MD-Dev01 node[478]: x
Oct 28 10:25:40 MD-Dev01 node[478]: }' |sort -nr |cut -f 2 |sed -e '/^$/d;/\x00/d'
Oct 28 10:25:42 MD-Dev01 node[478]: Running command: ifconfig wlan0 10.0.0.1 && systemctl start hostapd && systemctl start udhcpd
Oct 28 10:25:43 MD-Dev01 node[478]: Error running command: { Error: Command failed: ifconfig wlan0 10.0.0.1 && systemctl start hostapd && systemctl start udhcpd
Oct 28 10:25:43 MD-Dev01 node[478]: Failed to start hostapd.service: Unit hostapd.service is masked.
Oct 28 10:25:43 MD-Dev01 node[478]: at ChildProcess.exithandler (child_process.js:294:12)
Oct 28 10:25:43 MD-Dev01 node[478]: at ChildProcess.emit (events.js:198:13)
Oct 28 10:25:43 MD-Dev01 node[478]: at maybeClose (internal/child_process.js:982:16)
Oct 28 10:25:43 MD-Dev01 node[478]: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Oct 28 10:25:43 MD-Dev01 node[478]: killed: false,
Oct 28 10:25:43 MD-Dev01 node[478]: code: 1,
Oct 28 10:25:43 MD-Dev01 node[478]: signal: null,
Oct 28 10:25:43 MD-Dev01 node[478]: cmd:
Oct 28 10:25:43 MD-Dev01 node[478]: 'ifconfig wlan0 10.0.0.1 && systemctl start hostapd && systemctl start udhcpd' }
Oct 28 10:25:43 MD-Dev01 node[478]: (node:478) UnhandledPromiseRejectionWarning: Error: Command failed: ifconfig wlan0 10.0.0.1 && systemctl start hostapd && systemctl sta
Oct 28 10:25:43 MD-Dev01 node[478]: Failed to start hostapd.service: Unit hostapd.service is masked.
Oct 28 10:25:43 MD-Dev01 node[478]: at ChildProcess.exithandler (child_process.js:294:12)
Oct 28 10:25:43 MD-Dev01 node[478]: at ChildProcess.emit (events.js:198:13)
Oct 28 10:25:43 MD-Dev01 node[478]: at maybeClose (internal/child_process.js:982:16)
Oct 28 10:25:43 MD-Dev01 node[478]: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Oct 28 10:25:43 MD-Dev01 node[478]: (node:478) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async f
Oct 28 10:25:43 MD-Dev01 node[478]: (node:478) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not ha
lines 199-261/261 (END)

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

1 participant