ipm icon indicating copy to clipboard operation
ipm copied to clipboard

zpm install has long hang at the end due to analytics

Open isc-tleavitt opened this issue 4 years ago • 5 comments
trafficstars

I just did a zpm install (running version 0.3.0) and there was a long hang at the end with: %objlasterror=/* ERROR #6059: Unable to open TCP/IP socket to server www.google-analytics.com:80 */

@evshvarov suggested: We had this analytics. I think we can remove it or turn it off, as we have better approaches now. Could you please create an issue?

isc-tleavitt avatar Nov 03 '21 16:11 isc-tleavitt

This is still an issue.

isc-tleavitt avatar Aug 22 '22 12:08 isc-tleavitt

Actually, there's a simple solution: zpm "config set analytics 0"

Just need this better documented. (And maybe a shorter timeout so there isn't a default 30 second hang from a network-restricted environment.)

isc-tleavitt avatar Aug 22 '22 12:08 isc-tleavitt

This is hard to resolve given the ObjectScript single-threaded model. What do you think about lowering the timeouts?

isc-rkuszews avatar Sep 08 '23 15:09 isc-rkuszews

Could this occur async using the Job command? Since it is analytics, how important are errors? If there are errors, we could perhaps write them to the application error log or ignore them. Gathering/sending analytics data should not affect the installation time.

isc-kiyer avatar Sep 08 '23 15:09 isc-kiyer

Added some documentation about the speedup from "config set analytics 0" here: https://github.com/intersystems/ipm/wiki/02.-CLI-commands#config

isc-dchui avatar Jun 12 '24 13:06 isc-dchui