Guten Abend,
ich habe eine frische Installation gemacht und kann mich nicht im Admininterface anmelden. Wenn ich Benutzername/Passwort leer lasse (wie in der Doku beschrieben), bekomme ich ein "Ungültiger Benutzername und/oder Passwort".
Den gleichen Effekt habe ich mit Ubuntu 1804, gleicher Systemaufbau.
System: Proxmox PVE 6.3, LXC Container mit Ubuntu 2004 (nicht privilegiert); vollständig aktuell.
Browser getestet: Safari & Firefox auf Catalina
Installation:
ShNG läuft und das Interface ist erreichbar unter http://smarthome:8383
var/log/smarthome-details.log:
etc/module.yaml:
Hat jemand eine Idee, was hier schief läuft bzw. wo das Login gesetzt sein könnte? Vielleicht hat auch jemand eine Idee, wie ich das Problem debuggen könnte.
Besten Dank schon mal & schönen Abend,
Thomas
Edit: Browser hinzugefügt
ich habe eine frische Installation gemacht und kann mich nicht im Admininterface anmelden. Wenn ich Benutzername/Passwort leer lasse (wie in der Doku beschrieben), bekomme ich ein "Ungültiger Benutzername und/oder Passwort".
Den gleichen Effekt habe ich mit Ubuntu 1804, gleicher Systemaufbau.
System: Proxmox PVE 6.3, LXC Container mit Ubuntu 2004 (nicht privilegiert); vollständig aktuell.
Browser getestet: Safari & Firefox auf Catalina
Installation:
Code:
Ubuntu 20.04.1 LTS smarthome tty1 smarthome login: root Password: Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.73-1-pve x86_64) Last login: So Dez 27 20:03:28 UTC 2020 on tty1 root@smarthome:~# apt-get -y install dialog python3 python3-dev python3-setuptools unzip git-core build-essential python3-pip Paketlisten werden gelesen... Fertig ..... root@smarthome:~# mkdir /usr/local/smarthome root@smarthome:~# chown -R smarthome:smarthome /usr/local/smarthome root@smarthome:~# groups smarthome smarthome : smarthome sudo www-data root@smarthome:~# logout Ubuntu 20.04.1 LTS smarthome tty1 smarthome login: smarthome Password: Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.73-1-pve x86_64) smarthome@smarthome:/usr/local/smarthome$ git clone git://github.com/smarthomeNG/smarthome.git . Cloning into '.'... remote: Enumerating objects: 228, done. remote: Counting objects: 100% (228/228), done. remote: Compressing objects: 100% (147/147), done. remote: Total 50970 (delta 111), reused 148 (delta 79), pack-reused 50742 Receiving objects: 100% (50970/50970), 69.32 MiB | 10.54 MiB/s, done. Resolving deltas: 100% (34225/34225), done. smarthome@smarthome:/usr/local/smarthome$ git clone git://github.com/smarthomeNG/plugins.git plugins Cloning into 'plugins'... remote: Enumerating objects: 134, done. remote: Counting objects: 100% (134/134), done. remote: Compressing objects: 100% (101/101), done. remote: Total 37293 (delta 43), reused 84 (delta 28), pack-reused 37159 Receiving objects: 100% (37293/37293), 44.78 MiB | 10.39 MiB/s, done. Resolving deltas: 100% (20812/20812), done. smarthome@smarthome:/usr/local/smarthome$ python3 bin/smarthome.py test_requirements: 'ephem' not installed. Minimum v3.7 needed test_requirements: 'holidays' not installed. Minimum v0.9.11 needed test_requirements: 'psutil' not installed, any version needed test_requirements: 'python-dateutil' not installed. Minimum v2.5.3 needed test_requirements: 'requests' not installed. Minimum v2.20.0 needed test_requirements: 'ruamel.yaml' not installed. Minimum v0.15.78 needed Installing core requirements for the current user, please wait... Using PIP command: '/usr/bin/pip3' core requirements installed Starting SmartHomeNG again... Daemon PID 7043 smarthome@smarthome:/usr/local/smarthome$
var/log/smarthome-details.log:
Code:
smarthome@smarthome:/usr/local/smarthome$ cat var/log/smarthome-details.log 2020-12-27 20:10:01 WARNING __main__ -------------------- Init SmartHomeNG 1.7.2.master (3828810e) -------------------- 2020-12-27 20:10:01 WARNING __main__ Running in Python interpreter 'v3.8.5 final' on Linux-5.4.73-1-pve-x86_64-with-glibc2.29 (pid=7043) 2020-12-27 20:10:01 ERROR lib.shpypi test_requirements: 'cherrypy' not installed. Minimum v8.1.2 needed 2020-12-27 20:10:01 ERROR lib.shpypi test_requirements: 'jinja2' not installed. Minimum v2.9 needed 2020-12-27 20:10:01 ERROR lib.shpypi test_requirements: 'paho-mqtt' not installed. Minimum v1.2.2 needed 2020-12-27 20:10:01 ERROR lib.shpypi test_requirements: 'pyjwt' not installed. Minimum v1.6.4 needed 2020-12-27 20:10:01 WARNING lib.shpypi Installing base requirements for the current user, please wait... 2020-12-27 20:10:01 WARNING lib.shpypi Using PIP command: '/usr/bin/pip3' 2020-12-27 20:10:04 WARNING lib.shpypi base requirements installed 2020-12-27 20:10:04 WARNING __main__ SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation) 2020-12-27 21:10:09 WARNING __main__ -------------------- Init SmartHomeNG 1.7.2.master (3828810e) -------------------- 2020-12-27 21:10:09 WARNING __main__ Running in Python interpreter 'v3.8.5 final' on Linux-5.4.73-1-pve-x86_64-with-glibc2.29 (pid=7062) 2020-12-27 21:10:09 WARNING lib.shtime Nutze Feiertage für Land 'DE', Provinz 'None', State 'None', 1 benutzerdefinierte Feiertagsdefinition(en) definiert 2020-12-27 21:10:11 ERROR lib.db Can not execute query: SELECT MAX(version) FROM database_version; (args []): no such table: database_version 2020-12-27 21:10:11 WARNING lib.item load_itemdefinitions(): For testing the joined item structs are saved to /usr/local/smarthome/etc/structs_joined.yaml 2020-12-27 21:10:13 WARNING modules.admin.api_auth REST_dispatch_execute: user: 'str' object has no attribute 'decode' 2020-12-27 21:10:15 WARNING modules.admin.api_auth REST_dispatch_execute: user: 'str' object has no attribute 'decode' smarthome@smarthome:/usr/local/smarthome$
Code:
smarthome@smarthome:/usr/local/smarthome$ cat etc/module.yaml %YAML 1.1 --- # etc/module.yaml http: module_name: http starturl: admin admin: module_name: admin #enable, if mqtt protocol is going to be used #mqtt: # module_name: mqtt smarthome@smarthome:/usr/local/smarthome$
Besten Dank schon mal & schönen Abend,
Thomas
Edit: Browser hinzugefügt
Kommentar