-
Notifications
You must be signed in to change notification settings - Fork 70
Settings lost on Armbian #111
Comments
Not sure what you mean, can you providing more detailed instructions and screenshots? |
Hi Cedric |
hmm interesting definitely is a permission issue. can you try this:
|
@kocis73 if you prefer we can open a teamviewer session, to better understand the situation. |
Many thanks for your availability Cedric. |
Sorry but I can not consistently recreate this. Settings works fine after reboot. Still unable to change resolution of USB camera but login is ok. |
@cedricve I cannot modify those permissions because I have not those directories... maybe something went wrong during the installation of the web. |
Ok, I did not change anything and now it works. Sorry, should we close this issue? kocis73: I can walk you thru the steps I did to install. |
hmm looks like something weird is going here. Can you try to simulate with a blank install @Siggemada. Want to be sure this is a bug or not, and ideally have a better understanding what's happening. Maybe something is missing in the Armbian section? |
@Siggemada it would be great! Can you help me? |
Yes sure. For this to be of value, I will have to reformat my SD. I´ll follow the instructions and use the deb file we compiled. Is there a better way to install npn? Not so keen on all the warnings about unsigned binarys. |
hmm not sure, if you are following the generic installation? or the armbian/raspbian install? |
Ok, so here are my steps: Installed according to: After installing machinery, I change /etc/opt/config/config.xml: Instructions tell us to start kerberosio but this results in: I guess that it is already started. I skip this step: echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" | sudo tee --append /etc/apt/sources.list Now I install nodejs and npm in a different way: after this I continue with: sudo apt-get install nginx php7.0 php7.0-curl php7.0-gd php7.0-fpm php7.0-cli php7.0-opcache php7.0-mbstring php7.0-xml php7.0-zip php7.0-mcrypt and I follow the instructions from here on.... I did not set up the removal crontab job for this test. |
Now,
I can not log in with the selected username. |
After reboot, the web interface askes me to set up username again. I do so and my changed USB cam settings remains those I set. After clicking on the dashboard the root user is shown again. |
So, I think I found a consistent problem. After I click on "Update" under Configuration, Advanced; user displays as "Root". |
This is the content of /var/www/web/config/kerberos.php after setting a new username/pw at the welcome screen: 'advanced', 'radius' => '1', 'installed' => false, 'users' => array ( 0 => array ( 'id' => 1, 'username' => 'root', 'password' => 'root', 'firstname' => 'Firstname', 'secondname' => 'Lastname', 'language' => 'en', ), ), ); |
Ok, so if I change this with "Update profile" this file do change. And kerberosio works as expected. |
Interesting feedback. Looks like something is going wrong, i'll try to simulate it. when doing so, do you see something weird in the console. Also which browser are you using? |
My conclusion is that the welcome screen doesn't modify the file. Or that something else is is changing it back. |
Indeed we've had that issue a while ago, which browser are you using? |
Using chrome. I can try with firefox. I see a difference if I add /login or if I just go to the ipaddress. The ip address keep redirecting me to the /welcome screen. |
Jep that's normal because it checks the kerberos.php file if its already installed. Can we open a teamviewer session I would like to see what's happening in the console/network tab. |
I could expose it to the internet and give you the ip. |
I'm having a similar issue with Docker (OS X as host): I've created the docker-compose file, started a container with a unique project name, configured everything and let it there.. after a while, I came back to discover that the web is now on the welcome screen like if it were a new installation. After configuring the user/password, I login and my camera is already configured and working (like if it just lost the login config). This is the only thing I can see on logs: 2018-03-19 20:04:32,554 CRIT Set uid to user 0 |
I've been trying to resolve this issue for a couple of times and added some extra check to the welcome screen. I have not been able to reproduce this. Somehow the settings from the welcome screen aren't written to the config/kerberos.php file. @aamorin are you able to reproduce this issue ? |
Ok nevermind, I was able to reproduce. I followed @Siggemada steps. Debugging the issue and will supply a patch. |
Ok found the bug. If you start toggling between advanced/basic on the settings view it reverts the startup config file. Working on a patch. Thanks guys.. |
Awesome !!! .. Yes, I was about to tell you that, I came to the same conclusion, it seemed that the trigger was to toggle between advanced/basic.. |
hello all, I've created a fix for this. Problem will be fixed in next release. |
Will be integrated in 2.6.1. |
I lost the login and settings. Root/root works and brings up the GUI but in Dutch.
Permission issue?
How can I debug this?
The text was updated successfully, but these errors were encountered: