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

[bug]: WiFi on RaspberryPi - Country selection doesn't stick and continually re-prompts #2545

Open
1 task done
gStart9 opened this issue Dec 26, 2023 · 12 comments
Open
1 task done
Assignees
Labels
Bug Something isn't working Needs Triage Needs to be assigned a priority
Milestone

Comments

@gStart9
Copy link
Member

gStart9 commented Dec 26, 2023

Prerequisites

Server Hardware

Pi (4 and 8GB)

StartOS Version

0.3.5.1

Client OS

Linux

Client OS Version

Debian 12

Browser

Firefox

Browser Version

120

Current Behavior

In the web-UI on a Pi, under System > WiFi, even after successfully selecting a Country, the UI prompts the user to select it again:
image
^Note in this screenshot that the country is successfully sent to the backend.

Even after selecting a Country AND successfully connecting to a wifi AP, the UI prompts the user to select their country again:
image

No real errors in the browser console to speak of:
image
Okin reported this error in the browser console:

main.db4020b2e4a1127a.js:1 ecode: -32600error: code: -32600data: "missing field country"message: "Invalid Request"[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ ()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto()message: "RPC ERROR: Invalid Request\n\nmissing field country"[[Prototype]]: Objectconstructor: class egetMessage: ƒ getMessage()[[Prototype]]: Object
(anonymous) @ main.db4020b2e4a1127a.js:1
main.db4020b2e4a1127a.js:1 ecode: -32600error: {code: -32600, message: 'Invalid Request', data: 'missing field country'}message: "RPC ERROR: Invalid Request\n\nmissing field country"[[Prototype]]: Object
(anonymous) @ main.db4020b2e4a1127a.js:1

Expected Behavior

Users expect for their country selection to stick.

Steps to Reproduce

Boot up a pi on 0351
System > Wifi
Attempt to select your country

Anything else?

No response

@gStart9 gStart9 added Bug Something isn't working Needs Triage Needs to be assigned a priority labels Dec 26, 2023
@gStart9
Copy link
Member Author

gStart9 commented Dec 26, 2023

https://github.com/Start9Labs/start-os/pull/2283/files
^this might be related. I know we fixed a similar issue before with crda (and a command):

/usr/lib/embassy/scripts/chroot-and-upgrade
echo "options cfg80211 ieee80211_regdom=US"  >  /etc/modprobe.d/cfg80211.conf
apt update
apt install crda
exit

I noticed crda is missing from (what I presume is) the new version of that file:
https://github.com/Start9Labs/start-os/blob/v0.3.5.1/build/dpkg-deps/depends

@BigBossRabbit
Copy link

BigBossRabbit commented Dec 27, 2023

After speaking with George, we decided it best for me to add the findings from testing the WiFi connectivity for my Dell Inspiron 15 3000 with 8GB RAM & 1 TB HDD (StartOS v0.3.5.1):

  • After restarting the Dell laptop 3 times & running through the WiFi process twice per restart, it has now connected to wifi. However, the Country has switched to US -United States but is working.
  • The Dell however doesn't stay in the loop as is the experience with the pi.
  • Once I disconnect the Ethernet cable on the Dell the WiFi only works if the country is US. So could it be that the other codes just don't get enforced & are NULL?
  • I select Namibia, after a few tries it has it saved with the Green Tick but then after I disconnect the ethernet cable the server is disconnected from the internet.

What I did then was plug the ethernet cable back in & it still showed that the wifi had the green tick. So I restarted the server, with the ethernet still plugged in, went back to wifi & saw the green tick, then disconnected the ethernet again & this time it stayed on Wifi.

That was when I realised the country had switched to US like in the screenshot, even though I'm in Namibia.
Screenshot 2023-12-27 at 12 36 18 AM
Screenshot 2023-12-27 at 12 37 45 AM
Screenshot 2023-12-27 at 12 36 59 AM
Screenshot 2023-12-27 at 12 15 14 AM

@dr-bonez
Copy link
Member

dr-bonez commented Jan 3, 2024

Looks like raspberry pi requires this specific version of the package: http://archive.raspberrypi.org/debian/pool/main/w/wireless-regdb/

@dr-bonez
Copy link
Member

@BigBossRabbit are you on the nonfree iso?

@BigBossRabbit
Copy link

@BigBossRabbit are you on the nonfree iso?

Yes, I believe so. I've been running the machine strictly on WiFi since this test was done.

@MattDHill MattDHill added this to the 0.3.6 milestone Jul 30, 2024
@MattDHill
Copy link
Member

@gStart9 @BigBossRabbit please test this once we have a 036 Ras Pi image.

@BigBossRabbit
Copy link

@MattDHill will definitely do. My RasPi is ready & waiting 🫡

@MattDHill MattDHill assigned dr-bonez and unassigned MattDHill Nov 7, 2024
@MattDHill
Copy link
Member

@BigBossRabbit can you test this now please?

@BigBossRabbit
Copy link

Hi @MattDHill I'll gladly test but will only be able to test it once back in Namibia around the 27th or 28th of November.

That is when I'll be next to a raspi again.

@MattDHill
Copy link
Member

@BigBossRabbit did you manage to test this yet?

@BigBossRabbit
Copy link

I have not yet, but just got my old original Start9 Server back (the Raspi one I believe), so will update that & see if this still persists. I'll also try with my DIY Raspi machine. Just need to download the new images.

@BigBossRabbit
Copy link

BigBossRabbit commented Dec 20, 2024

Tested this out last night and the country selection still doesn't stick, with the box to choose a country reappearing continuously now when a selection has already been made.

I will attempt to get screenshots of this later today and do a reflash to see if that might clear anything up.

@MattDHill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs Triage Needs to be assigned a priority
Projects
None yet
Development

No branches or pull requests

4 participants