EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

Update via webui removes www/lib directory #1690

Closed welbo97 closed 3 years ago

welbo97 commented 3 years ago

Description

Trying to update camera for newest features. Old version was a commit from around Sep 2020.

What did you do to debug the issue

Checked logs. First pertinent logfile was /tmp/lighttpd-access.log.

Looks like files will need to be manually copied from github back to /system/sdcard/www/lib

Evidence

10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /js/index.js HTTP/1.1" 304 0 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /lib/datatable/datatables.min.css HTTP/1.1" 404 341 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /lib/datatable/datatables.min.js HTTP/1.1" 404 341 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /lib/smoothie/smoothie.js HTTP/1.1" 404 341 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /lib/d3/d3.min.js HTTP/1.1" 404 341 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /lib/event-drops/index.js HTTP/1.1" 404 341 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"
10.1.10.21 10.1.20.34 root [22/Feb/2021:14:14:23 -0600] "GET /lib/event-drops/style.css HTTP/1.1" 404 341 "https://10.1.20.34/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0"

Screenshot_2021-02-22_14-48-02

[root@officecam:www]# pwd
/system/sdcard/www
[root@officecam:www]# ll
total 196K   
drwxr-xr-x    8 root     root        4.0K Feb 22 13:33 .
drwxr-xr-x   17 root     root       32.0K Dec 31  1969 ..
-rwxr-xr-x    1 root     root       10.5K Feb 22 13:33 camera.html
drwxr-xr-x    2 root     root        4.0K Feb 22 13:33 cgi-bin
-rwxr-xr-x    1 root     root       11.4K Sep 20 15:51 configmotion.html
-rwxr-xr-x    1 root     root        2.8K Feb 22 13:33 control.html
drwxr-xr-x    3 root     root        4.0K Feb 22 13:33 css
-rwxr-xr-x    1 root     root        1.1K Sep 20 15:51 favicon.ico
drwxr-xr-x    2 root     root        4.0K Feb 22 13:33 img
-rwxr-xr-x    1 root     root        7.5K Feb 22 13:33 index.html
-rwxr-xr-x    1 root     root        4.7K Feb 22 13:33 info.html
drwxr-xr-x    2 root     root        4.0K Feb 22 13:33 js
drwxr-xr-x    2 root     root        4.0K Feb 22 13:33 json
-rwxr-xr-x    1 root     root        2.4K Feb 22 13:33 live.html
-rwxr-xr-x    1 root     root        6.0K Sep 20 15:51 logs.html
-rwxr-xr-x    1 root     root       11.7K Feb 22 13:33 motion.html
-rwxr-xr-x    1 root     root        5.4K Feb 22 13:33 net_services.html
drwxr-xr-x    2 root     root        4.0K Sep 20 15:51 scripts
-rwxr-xr-x    1 root     root        2.0K Feb 22 13:33 sdcard.html
-rwxr-xr-x    1 root     root        6.8K Feb 22 13:33 softnight.html
-rwxr-xr-x    1 root     root       20.2K Sep 20 15:51 sw_night_configure.html
-rwxr-xr-x    1 root     root        1.7K Feb 22 13:33 system.html
-rwxr-xr-x    1 root     root       11.9K Sep 20 15:51 timezones.tsv
-rwxr-xr-x    1 root     root        2.6K Sep 20 15:51 update.html
[root@officecam:www]# 
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

mercs600 commented 2 years ago

I got the same problem

aeckard87 commented 1 year ago

I just hit this today and FTP'd from another camera the missing dirs in /system/sdcard/www/lib