ipm
ipm copied to clipboard
zpm install has long hang at the end due to analytics
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?
This is still an issue.
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.)
This is hard to resolve given the ObjectScript single-threaded model. What do you think about lowering the timeouts?
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.
Added some documentation about the speedup from "config set analytics 0" here: https://github.com/intersystems/ipm/wiki/02.-CLI-commands#config