Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.26k stars 570 forks source link

Multiple devices file upload results in a 1KB file #3282

Closed catalinchertes closed 2 months ago

catalinchertes commented 2 years ago

When we upload a 19MB file to multiple devices using the batch feature. The folder is created and the file is uploaded, but when we check the size, it changes to 1KB, so something is happening with the file after upload since the original size is 19MB.

When we do it from the single device file upload option, it works fine and the file keeps it's original size.

We could really use this feature as we have over 700 remote desktops with mesh agents. This tool is so amazing and we are very thankful for it, thanks for your hard work.

This is the server log upon upload: (I removed the host name for privacy).

POST

/uploadfilebatch.ashx

{"host":"","connection":"keep-alive","content-length":"19764126","cache-control":"max-age=0","sec-ch-ua":"\"Google Chrome\";v=\"95\", \"Chromium\";v=\"95\", \";Not A Brand\";v=\"99\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","upgrade-insecure-requests":"1","origin":"null","content-type":"multipart/form-data; boundary=----WebKitFormBoundary6gIonySgFlG8ltar","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","sec-fetch-site":"same-origin","sec-fetch-mode":"navigate","sec-fetch-user":"?1","sec-fetch-dest":"iframe","accept-encoding":"gzip, deflate, br","accept-language":"es-ES,es;q=0.9,ca;q=0.8,ro;q=0.7,it;q=0.6","cookie":"_ga=GA1.2.781225311.1628789010; xid=eyJ1c2VyaWQiOiJ1c2VyLy9hY2F0YWxpbiIsImlwIjoiMTkyLjE2OC4xMC4xNiIsInQiOjI3Mjg2MjE4fQ==; xid.sig=Cchi5tgZBMBWkAkqO3gCbYX7W0w"}
si458 commented 2 months ago

@inzi sadly not yet, But in the meshagent repo under one of the folders the is like a readme file which explains abit about its design

inzi commented 2 months ago

Wanted to let you know, everything seems to be OK except when adding a new agent now.

I'm getting the dreaded The Mesh Agent service is marked as an interactive service. However, the system is configured to not allow interactive services. This service may not function properly.

I'm on v1.0.27, hosted on Server 2019 64bit - and the client I tried adding to is a re-install on an intel nuc with windows 10 Pro (64bit).

I deleted the old instances, etc. I've set the NoInteractiveServices to 0 and rebooted.

I tried remove the agent proxy and restarting service on my server.

I've disabled the local firewall.

I'm pretty much at a loss. I had this happen on another machine and it suddenly started working.

I see the agent connect and try and pull down the core agent and it just disappears.

Show's agent connected, but console doesn't work (typing help + enter and it does nothing). Getting no info.

I get this error when it tries to start the service.

si458 commented 2 months ago

@inzi plz open up a different issue about ur interactive issue, keep things separate

But glad to see the file issue is fixed!