Downloaded files appear as 0 bytes. #6416
-
I built self-hosted meshcentral server behind Caddy reverse proxy. I found error message in Caddy's log: Is it same issue with this? and my caddy configuration is wrong? ** Server: ** Meshagent Remote Clinet (175.124.xxx.xxx) ** Clinet (58.184.xxx.xxx) The error log: (Note that I change my IP and domain)
my Caddyfile:
config.json:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
you have webrtc enabled, please set it to false, restart meshcentral and try again |
Beta Was this translation helpful? Give feedback.
-
I solved problem!!
My Caddyfile:
si458 said "you should always using a DNS name based without any folders, this avoid ALL these type of issues". It was right! When I click the "Download" button, Meshcentral send to the client machine to upload the data I request. And then the client sends the data to the server. The problem occurs in this step! Meshcentral's debug message (Download ERROR):
Meshcentral's debug message(download OK):
|
Beta Was this translation helpful? Give feedback.
-
I solved this problem. *SUMMARY My Caddyfile:
si458 said "you should always using a DNS name based without any folders, this avoid ALL these type of issues". He's absolutely right! When I click the 'Download' button, Meshcentral sends a command to the client to upload the data I requested. And then the client sends the data to the server. This is where the problem occurs! Meshcentral's debug message(Download's ERROR):
Meshcentral's debug message(Download's OK):
|
Beta Was this translation helpful? Give feedback.
I solved this problem.
*SUMMARY
Add this line in Caddyfile, "rewrite /devicefile.ashx /meshcentral{path}".
CAUTION) You need to change "meshcentral" as you want to configure.
My Caddyfile: