0
Started

High CPU utilization following linux server upgrade from 19.0.23665.7058 to 19.5.25928.7265

Steve Moring 1 year ago updated by Tns 9 months ago 4

Following an update from 19.0.23665.7058 to 19.5.25928.7265, the mono process consumes nearly 100% of the CPU.

The upgrade appears to have something wonky with parsing the xml files:

sc:~/Downloads # l
total 57920
drwx------ 3 root root 4096 May 13 2019 ./
drwx------ 21 root root 4096 Dec 3 16:54 ../
drwxrwxrwx 4 root root 4096 Apr 29 2019 ScreenConnect_19.0.23665.7058_Install/
-rw-r--r-- 1 root root 59292244 May 13 2019 ScreenConnect_19.0.23665.7058_Release.tar.gz
sc:~/Downloads # rm -r ScreenConnect_19.0.23665.7058_Install/
sc:~/Downloads # rm ScreenConnect_19.0.23665.7058_Release.tar.gz
sc:~/Downloads # l
total 41240
drwx------ 2 root root 4096 Dec 3 16:56 ./
drwx------ 21 root root 4096 Dec 3 16:54 ../
-rw-r--r-- 1 root root 42221568 Dec 3 16:56 ScreenConnect_19.5.25928.7265_Release.tar.gz
sc:~/Downloads # l
total 75864
drwx------ 2 root root 4096 Dec 3 16:56 ./
drwx------ 21 root root 4096 Dec 3 16:54 ../
-rw-r--r-- 1 root root 77672555 Dec 3 16:56 ScreenConnect_19.5.25928.7265_Release.tar.gz
sc:~/Downloads # tar -xf ScreenConnect_19.5.25928.7265_Release.tar.gz
sc:~/Downloads # cd ScreenConnect_19.5.25928.7265_Install/
sc:~/Downloads/ScreenConnect_19.5.25928.7265_Install # l
total 28
drwxrwxrwx 4 root root 4096 Nov 22 15:18 ./
drwx------ 3 root root 4096 Dec 3 16:56 ../
drwxrwxrwx 3 root root 4096 Nov 22 15:18 Installer/
-rwxrwxrwx 1 root root 9512 Nov 21 16:52 install.sh*
drwxrwxrwx 13 root root 4096 Nov 22 15:18 ScreenConnect/
sc:~/Downloads/ScreenConnect_19.5.25928.7265_Install # ./install.sh

Welcome to the ScreenConnect Installer

The installer will do these things:
1) Prompt you for installation options
2) Display a list of actions to be taken
3) Prompt you for execution of the actions
4) Execute the actions

Where would you like to install ScreenConnect?
[/opt/screenconnect]

It appears that there is already an installation at /opt/screenconnect (19.0.23665)
Would you like to upgrade?
(Y/n):

Searching for service script locations, this may take a moment...
Found init.d directory: /etc/init.d and rcX.d: /etc/init.d/rcX.d

What would you like as the service name for this ScreenConnect installation?
[screenconnect]

The installation will perform the following actions:
- Stop existing service screenconnect if running
- Remove startup links pointing to script at /etc/init.d/screenconnect
- Remove service start script at /etc/init.d/screenconnect
- Back up the existing configuration
- Create service script at /etc/init.d/screenconnect
- Create startup links in /etc/init.d/rcX.d/ directories
- Copy files into /opt/screenconnect
- Restore backed up configuration
- Transform configuration files
- Start screenconnect service

Do you want to install ScreenConnect?
(Y/n):

Running 'Stop existing service screenconnect if running'...
Running 'Remove startup links pointing to script at /etc/init.d/screenconnect'...
Running 'Remove service start script at /etc/init.d/screenconnect'...
Running 'Back up the existing configuration'...
Running 'Create service script at /etc/init.d/screenconnect'...
Running 'Create startup links in /etc/init.d/rcX.d/ directories'...
Running 'Copy files into /opt/screenconnect'...
Running 'Restore backed up configuration'...
Running 'Transform configuration files'...

Unhandled Exception:
System.Xml.Xsl.XslTransformException: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
at System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError (System.Xml.XPath.XPathNodeType constructorType) [0x000cf] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs (System.Xml.XPath.XPathNodeType rootType) [0x0001f] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute (System.String prefix, System.String localName, System.String ns) [0x0001e] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttributeLocalName (System.String localName) [0x00000] in :0
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.Root(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at (wrapper dynamic-method) System.Object.Execute(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.Xsl.Runtime.XmlSequenceWriter results) [0x00020] in :0
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.XmlWriter writer) [0x0004f] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver documentResolver) [0x0000d] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.String inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) [0x00029] in :0
at Xsl.Program.Main (System.String[] args) [0x0007b] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Xml.Xsl.XslTransformException: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
at System.Xml.Xsl.Runtime.XmlQueryOutput.ThrowInvalidStateError (System.Xml.XPath.XPathNodeType constructorType) [0x000cf] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.ConstructInEnumAttrs (System.Xml.XPath.XPathNodeType rootType) [0x0001f] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute (System.String prefix, System.String localName, System.String ns) [0x0001e] in :0
at System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttributeLocalName (System.String localName) [0x00000] in :0
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.(System.Xml.Xsl.Runtime.XmlQueryRuntime,System.Xml.XPath.XPathNavigator)
at (wrapper dynamic-method) System.Object.Root(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at (wrapper dynamic-method) System.Object.Execute(System.Xml.Xsl.Runtime.XmlQueryRuntime)
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.Xsl.Runtime.XmlSequenceWriter results) [0x00020] in :0
at System.Xml.Xsl.XmlILCommand.Execute (System.Object defaultDocument, System.Xml.XmlResolver dataSources, System.Xml.Xsl.XsltArgumentList argumentList, System.Xml.XmlWriter writer) [0x0004f] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.Xml.XmlReader input, System.Xml.Xsl.XsltArgumentList arguments, System.Xml.XmlWriter results, System.Xml.XmlResolver documentResolver) [0x0000d] in :0
at System.Xml.Xsl.XslCompiledTransform.Transform (System.String inputUri, System.Xml.Xsl.XsltArgumentList arguments, System.IO.Stream results) [0x00029] in :0
at Xsl.Program.Main (System.String[] args) [0x0007b] in :0
Running 'Start screenconnect service'...

Installation complete!

Trying to figure out the best URL for you to use...

To access your new ScreenConnect installation, open a browser and navigate to:
http://localhost:8040/Host

sc:~/Downloads/ScreenConnect_19.5.25928.7265_Install #

ConnectWise Control Version:
19.5
Server Affected:
Host Client Affected:
Guest Client Affected:

Try this mate... https://control.product.connectwise.com/communities/6/topics/2724-upgrade-v195x-unhandled-exception#comment-9131

Keep in mind that there are multiple issues with v19.4 and v19.5 that others are experiencing. If you can rollback and wait for them to be fixed. Be prepared to wait however.

The potential fix TechCare linked is to change 127.0.0.1 to localhost in the two entries in the system.servicemodel section of your web.config. (This issue does not appear to affect all Linux distros/environments, but in any case the install script was supposed to transform this address for you - we're currently working on this.)

I also experienced high Cpu utilization on my linux server. With version 19.4.25759.7247, I had a Cpu utilization around 1%. When it was released, I installed version 19.6.27027.7360 where the Cpu utilization reach a constant 30%. I also installed the latest version (20.1.27036.7360). The cpu utilization is almost as high with 27%.

Below you can see the jump in Cpu utilization after installing version 19.6.27027.7360 and the little reduction after installing version 20.1.27036.736




Steve Moring, did you try the latest version (20.1.27036.7360)? Do you experience high Cpu utilization?