DietPi-Dashboard icon indicating copy to clipboard operation
DietPi-Dashboard copied to clipboard

Having trouble uploading files through the file browser

Open atomflunder opened this issue 1 year ago • 2 comments

Describe the bug: When I try uploading a file through the file browser, this will sometimes work fine, sometimes it will not work at all (no file shows up, even after reloading), and sometimes it will upload a completely empty file.

Version of DietPi-Dashboard: v0.6.1

Nightly or stable: Stable

Version of DietPi: 8.9.2

Device architecture: armv8, exact device is a Raspberry Pi 4 8GB

To Reproduce

  1. Go to the file browser
  2. Upload a file via the menu on the right side
  3. Hit refresh

Error log

Nov 05 15:18:30 DietPi login[259900]: pam_unix(login:session): session opened fo
r user root(uid=0) by root(uid=0)
Nov 05 15:18:31 DietPi dietpi-dashboard[127248]: 2225359.551570934s  INFO reques
t{remote_addr=[::ffff:192.168.178.52]:61658}:term_handler: dietpi_dashboard::soc
ket_handlers: Closed terminal
Nov 05 15:18:33 DietPi dietpi-dashboard[127248]: 2225361.385246451s  INFO reques
t{remote_addr=[::ffff:192.168.178.52]:61660}: dietpi_dashboard: Request to /ws/f
ile
Nov 05 15:18:41 DietPi dietpi-dashboard[127248]: 2225369.341612261s  WARN reques
t{remote_addr=[::ffff:192.168.178.52]:61660}:file_handler: dietpi_dashboard::soc

...skipping 1 line
Nov 05 15:18:48 DietPi dietpi-dashboard[127248]: 2225375.975535832s  WARN reques
t{remote_addr=[::ffff:192.168.178.52]:61660}:file_handler: dietpi_dashboard::soc
ket_handlers: Couldn't convert received data Binary([115, 111, 109, 101, 32, 99,
 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 10
1, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 1
15, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101,
 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110,
 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 11
6, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 1
09, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 1
11, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101,
 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115
, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 3
2, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 1
16, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116,
 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109
, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111
, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 1
10, 116, 32, 13, 10, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 3
2, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 
101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 
110, 116, 101, 110, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110
, 116, 32, 115, 111, 109, 101, 32, 99, 111, 110, 116, 101, 110, 116, 32, 115, 11

There were many more very similar lines in the log when i re-tried uploading, I hope this is enough.
If not I can post the whole thing too, but it is very, very, long.

Additional context In the demonstration I tested it with a simple .txt file but the issue was also showing up when uploading .json or .py files.

Here are some additional screenshots:

The file I was uploading The file shown on the dashboard The file on my device

If there is anything I need to add to better solve this problem please let me know. Thanks in advance for responding!

atomflunder avatar Nov 05 '22 15:11 atomflunder

Please post the log again with debug logging enabled in the config file (no need to post everything, what you have up until the error message is fine).

ravenclaw900 avatar Nov 05 '22 21:11 ravenclaw900

I enabled debug logging, restarted the dashboard and tried again, here is the error log: I did see that there was a token in there, I'm not sure if it really is sensitive but i went ahead and censored it, just in case. Hope that's fine.

Nov 05 22:18:28 DietPi systemd[1]: Started Web Dashboard (DietPi).
Nov 05 22:18:32 DietPi dietpi-dashboard[262770]:    4.284942923s DEBUG hyper::pr
oto::h1::io: parsed 10 headers
Nov 05 22:18:32 DietPi dietpi-dashboard[262770]:    4.285025256s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:32 DietPi dietpi-dashboard[262770]:    4.285179016s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /
Nov 05 22:18:32 DietPi dietpi-dashboard[262770]:    4.285229145s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:32 DietPi dietpi-dashboard[262770]:    4.285481201s DEBUG hyper::pr
oto::h1::io: flushed 714 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.324955090s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.325004127s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.325082849s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /assets/

...skipping 1 line
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.325124830s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.325766516s DEBUG hyper::pr
oto::h1::io: flushed 64378 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.327042553s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.327085608s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.327303071s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59144}: dietpi_dashboard: Request to /assets/
index.b578e7cd.css
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.327349090s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59144}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.327555219s DEBUG hyper::pr
oto::h1::io: flushed 4704 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.369396905s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.369439682s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.369508905s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /assets/

...skipping 1 line
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.369550108s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.370395775s DEBUG hyper::pr
oto::h1::io: flushed 93841 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.418418719s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.418463812s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.418535590s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /assets/
xterm.bd908267.js
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.418576627s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.419080960s DEBUG hyper::pr
oto::h1::io: flushed 93841 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445127386s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445170590s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445240793s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /assets/

...skipping 1 line
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445282867s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445485534s DEBUG hyper::pr
oto::h1::io: flushed 8355 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445787312s DEBUG hyper::pr
oto::h1::io: parsed 16 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445818793s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445883034s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59145}: dietpi_dashboard: Request to /ws
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.445919497s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59145}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.446103275s DEBUG hyper::pr
oto::h1::io: flushed 166 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.467105275s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.467169941s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.467228275s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /assets/
github-mark.31287333.svg

...skipping 1 line
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.467396719s DEBUG hyper::pr
oto::h1::io: flushed 1019 bytes
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.502301590s DEBUG dietpi_da
shboard::socket_handlers: Got request Token("censored?")
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.502361182s DEBUG dietpi_da
shboard::socket_handlers: Got request Page("/")
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.502530571s DEBUG dietpi_da
shboard::socket_handlers: First message, not sending quit
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.524669608s DEBUG hyper::pr
oto::h1::io: parsed 9 headers
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.524720941s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.524796608s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: Request to /favicon
.png
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.524839497s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59143}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:33 DietPi dietpi-dashboard[262770]:    4.525061423s DEBUG hyper::pr
oto::h1::io: flushed 6165 bytes

...skipping 1 line
Nov 05 22:18:36 DietPi dietpi-dashboard[262770]:    7.976948921s DEBUG dietpi_da
shboard::socket_handlers: Got request Page("/browser")
Nov 05 22:18:37 DietPi dietpi-dashboard[262770]:    8.549947532s DEBUG hyper::pr
oto::h1::io: parsed 16 headers
Nov 05 22:18:37 DietPi dietpi-dashboard[262770]:    8.550014217s DEBUG hyper::pr
oto::h1::conn: incoming body is empty
Nov 05 22:18:37 DietPi dietpi-dashboard[262770]:    8.550098865s  INFO request{r
emote_addr=[::ffff:192.168.178.52]:59146}: dietpi_dashboard: Request to /ws/file
Nov 05 22:18:37 DietPi dietpi-dashboard[262770]:    8.550146254s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59146}: dietpi_dashboard: using "Mozilla/5.0 
(Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0"
Nov 05 22:18:37 DietPi dietpi-dashboard[262770]:    8.550371217s DEBUG hyper::pr
oto::h1::io: flushed 166 bytes
Nov 05 22:18:42 DietPi dietpi-dashboard[262770]:   14.007023880s DEBUG dietpi_da
shboard::socket_handlers: Got request Cmd { cmd: "cd", args: Some(["/root/Downlo
ads"]) }
Nov 05 22:18:42 DietPi dietpi-dashboard[262770]:   14.007453602s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59145}:socket_handler:browser_handler:browser
_handler_helper: dietpi_dashboard::page_handlers: Command is cd
Nov 05 22:18:45 DietPi dietpi-dashboard[262770]:   17.022581767s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59146}:file_handler: dietpi_dashboard::socket
_handlers: Got file request FileRequest { cmd: "up", path: "/root/Downloads/test
.txt", arg: "1" }

...skipping 1 line
Nov 05 22:18:45 DietPi dietpi-dashboard[262770]:   17.023309934s  WARN request{r
emote_addr=[::ffff:192.168.178.52]:59146}:file_handler: dietpi_dashboard::socket
_handlers: Couldn't convert received data Binary([116, 101, 115, 116, 32, 116, 1
01, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32
, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115,
 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 1
01, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116
, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 
115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 11
6, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116
, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 13, 10, 11
6, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115,
 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 1
01, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32
, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115,
 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 1
01, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116
, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 
115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 11
6, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 13, 10, 116, 101, 
115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 11
6, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 101, 115,
 116, 116, 101, 115, 116, 32, 116, 101, 115, 116, 116, 101, 115, 116, 32, 116, 1

...skipping 1 line
Nov 05 22:18:46 DietPi dietpi-dashboard[262770]:   17.968106915s DEBUG dietpi_da
shboard::socket_handlers: Got request Cmd { cmd: "cd", args: Some(["/root/Downlo
ads"]) }
Nov 05 22:18:46 DietPi dietpi-dashboard[262770]:   17.968435582s DEBUG request{r
emote_addr=[::ffff:192.168.178.52]:59145}:socket_handler:browser_handler:browser
_handler_helper: dietpi_dashboard::page_handlers: Command is cd

atomflunder avatar Nov 05 '22 22:11 atomflunder