clamscan
                                
                                
                                
                                    clamscan copied to clipboard
                            
                            
                            
                        Occasionally getting the 502 Proxy error while running this clamscan service on the Prod server.
I am getting this below mentioned error some times on our stage and production server:
Proxy Error
The proxy server received an invalid
        response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server
We have load balance and multiple app servers behind our VM host. NOTE: Looking for your valuable input on this issue
It's hard to help you without a better idea of how you have everything setup, your network/server topology, etc... I'll help if I can but I need more info.
https://javascript.plainenglish.io/integrate-clamav-antivirus-software-in-your-node-js-application-39d92ff76792 These are the steps we followed to integrate the clamscan. configured the clamscan and camdscan objects, initialing the Clamscan with the file path and applying the scanning a file that is attached.
We have Akamai proxy in front of the LB and behind the LB 2 VMs.

You have two proxies. The Akamai one and the Apache one. Do you know which proxy is having the issue? What kind of requests are you making? You're running a node server obviously, so, are you able to hit any endpoints on that service? Maybe just a basic "Hello World" endpoint? If that doesn't work, then this is outside the scope of this project. If it's only happening on endpoints involving this library, I'll need some more information.