awawa-dev / HyperHDR

Highly optimized open source ambient lighting implementation based on modern digital video and audio stream analysis for Windows, macOS and Linux (x86 and Raspberry Pi / ARM).
http://www.hyperhdr.eu/
MIT License
1.12k stars 117 forks source link

Failed to update record: 'WHERE user=?' #155

Closed felixbro closed 2 years ago

felixbro commented 2 years ago

Full LOG: https://pastebin.com/LQVzhQun Config JSON: https://pastebin.com/CEvxHGrS

Bug report, debug log and your config file (FULL LOGS ARE MANDATORY)

i was trying to turn on "Automatic signal detection" and after that i only get Error Pop-ups when im saving any settings. On the next day i was trying to update my WebUI password and now the log keeps saying 'auth' Error.

Steps to reproduce

HyperHDR Server:

HyperHDR Server OS:

awawa-dev commented 2 years ago

please upload your config backup, without it can't help.

felixbro commented 2 years ago

ok, here it is: https://pastebin.com/CEvxHGrS

awawa-dev commented 2 years ago

Thank you. Still, can't reproduce the problem. obraz obraz obraz obraz

awawa-dev commented 2 years ago

I think the main problem is in the auth table that is not backup due to security reasons:

2021-11-17T08:25:15.940Z [DB] Failed to update record: 'WHERE user=?' in table: 'auth' Error:  
2021-11-17T08:25:15.977Z [DB] Failed to update record: 'WHERE user=?' in table: 'auth' Error:  
2021-11-17T08:25:15.985Z [DB] Failed to update record: 'WHERE user=?' in table: 'auth' Error:  
2021-11-17T08:26:07.878Z [DB] Failed to update record: 'WHERE type=?' in table: 'settings' Error:  
2021-11-17T08:30:56.037Z [DB] Failed to update record: 'WHERE user=?' in table: 'auth' Error:  
2021-11-17T08:30:56.053Z [DB] Failed to update record: 'WHERE user=?' in table: 'auth' Error: 

guess the config was imported from older hyperhdr or some other application (where hyperhdr user doesn't exists). Unfortunately can't reproduce it and without it can't change anything. Your backup file works just fine without errors on my system after the import so I guess export/import can be a workaround for fixing broken configs in specific cases. If you can provide path that can be reproduce on new setup feel free to re-open it.