YunoHost-Apps / hotspot_ynh

Wifi Hotspot app for YunoHost
GNU Affero General Public License v3.0
39 stars 19 forks source link

Config panel not working with raspberry wpa_supplicant wifi setup #120

Closed Gredin67 closed 2 months ago

Gredin67 commented 5 months ago

Context

Now I want to switch back to internet connection over eth0 and use hotspot_ynh on the wlan0 interface.

The config panel of hotspot is not loading. Could it be related to the initial headless setup ?

Logs https://paste.yunohost.org/qoponedugi

hidrarga commented 4 months ago

No I'm experiencing the same issue on a Olimex board. Is it possible that something changed with Yunohost's config panel?

hidrarga commented 4 months ago

I noticed this warning in the logs: Failed to get label for app hotspot ?, and I'm wondering if this is what is crashing the config panel?

Maybe @alexAubin you have a better idea of what is happening?

hidrarga commented 4 months ago

FIY, I managed to configure the hotspot without using the web panel, by running the following command :

yunohost app config set hotspot

(the issue still occurs in the web panel, but at least it's a bit less critical)

alexAubin commented 4 months ago

Hmmmokay, if the web version is not working, can you check if there's any obvious javascript error in the browser console ?

Wouldnt be surprised that it's related to the label thing ... but it seems unrelated to gredin's issue I think ? This label thing would symptomatic of permission not properly being restored ... One way to debug can be to run slapcat as sudo and find the "vpnclient.main" permission block

hidrarga commented 4 months ago

This label thing would symptomatic of permission not properly being restored

This is strange because it wasn't a restore, it was a remove + install. But I don't know if something went wrong during the install, because it wasn't me who did the install.

One way to debug can be to run slapcat as sudo and find the "vpnclient.main" permission block

You mean hotspot.main ? I don't see it when running slapcat (but I do find vpnclient.main)

hidrarga commented 4 months ago

I just tried to remove the app and then install it from the command line, but I still have no permissions in LDAP oO

alexAubin commented 4 months ago

Ah yes there's actually no permission block in https://github.com/YunoHost-Apps/hotspot_ynh/blob/master/manifest.toml#L47 which might be related uuuuh

alexAubin commented 4 months ago

Added this in testing branch https://github.com/YunoHost-Apps/hotspot_ynh/commit/026ed2c0422e815ec2694fe99519983f12ead1cd

Can you try upgrading to testing ?

hidrarga commented 4 months ago

Yes, it works! Thanks :)

I'll approve the PR