Solved Unable to turn up ScreenConnect server on Fedora 28
-
The instructions for spinning up ScreenCOnnect on "Linux" are simplistic.
But my problem is that it does not work on Fedora 28.
Is there some missing hidden dependency? I installed this on CentOS 7 years ago and it runs mostly fine.
wget -O sc.tar.gz "https://www.screenconnect.com/Download?Action=DownloadLatest&Platform=Linux&PreRelease=false" setenforce 0 tar xzf sc.tar.gz ScreenConnect_6.7.19388.6796_Install/install.sh
Results in this
unning 'Create service script at /etc/init.d/screenconnect'... Running 'Create startup links in /etc/rcX.d/ directories'... Running 'Copy files into /opt/screenconnect'... Running 'Transform configuration files'... Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Console ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.ConsoleDriver ---> System.Exception: Magic number is wrong: 542 at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00000] in <filename unknown>:0 at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00000] in <filename unknown>:0 at System.TermInfoDriver..ctor (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00000] in <filename unknown>:0 at System.Console..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Mono.Xml.XPath.XPathParser..ctor (IStaticXsltContext context) [0x00000] in <filename unknown>:0 at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav, System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.Xml.XPath.XPathNavigator stylesheet, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.String stylesheetUri, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at Xsl.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Console ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.ConsoleDriver ---> System.Exception: Magic number is wrong: 542 at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00000] in <filename unknown>:0 at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00000] in <filename unknown>:0 at System.TermInfoDriver..ctor (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00000] in <filename unknown>:0 at System.Console..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Mono.Xml.XPath.XPathParser..ctor (IStaticXsltContext context) [0x00000] in <filename unknown>:0 at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav, System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.Xml.XPath.XPathNavigator stylesheet, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.String stylesheetUri, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at Xsl.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Console ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.ConsoleDriver ---> System.Exception: Magic number is wrong: 542 at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00000] in <filename unknown>:0 at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00000] in <filename unknown>:0 at System.TermInfoDriver..ctor (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00000] in <filename unknown>:0 at System.Console..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Mono.Xml.XPath.XPathParser..ctor (IStaticXsltContext context) [0x00000] in <filename unknown>:0 at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav, System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.Xml.XPath.XPathNavigator stylesheet, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.String stylesheetUri, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at Xsl.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Console ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.ConsoleDriver ---> System.Exception: Magic number is wrong: 542 at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00000] in <filename unknown>:0 at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00000] in <filename unknown>:0 at System.TermInfoDriver..ctor (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <filename unknown>:0 at System.ConsoleDriver..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00000] in <filename unknown>:0 at System.Console..cctor () [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at Mono.Xml.XPath.XPathParser..ctor (IStaticXsltContext context) [0x00000] in <filename unknown>:0 at Mono.Xml.Xsl.Compiler.Compile (System.Xml.XPath.XPathNavigator nav, System.Xml.XmlResolver res, System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.Xml.XPath.XPathNavigator stylesheet, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at System.Xml.Xsl.XslCompiledTransform.Load (System.String stylesheetUri, System.Xml.Xsl.XsltSettings settings, System.Xml.XmlResolver stylesheetResolver) [0x00000] in <filename unknown>:0 at Xsl.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
Yet, it still says this, but the setup wozard page does not load.
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
-
@jaredbusch said in Unable to turn up ScreenConnect server on Fedora 28:
System.Exception: Magic number is wrong: 542
Searching for the error leads to a mono bug https://github.com/mono/mono/issues/6752#issuecomment-365212655
Which supposedly you can get working by exporting an enviromental variable
export TERM=xterm
According to the last comment on the thread https://github.com/mono/mono/issues/6752#issuecomment-404527450 the issue fix should already be backported on fedora which makes it strange as the error is happening on fedora 28 for jared.
-
Yes, I opened port 8040 on the firewall.
[jbusch@sc ~]$ firewall-cmd --add-port=8040/tcp --permanent success [jbusch@sc ~]$ firewall-cmd --reload success
-
This post is deleted! -
The installer depends on
zlib
.
I found it in the redhat.sh file, located inScreenConnect_6.7.19388.6796_Install/Installer/Distributions/
directory -
@black3dynamite said in Unable to turn up ScreenConnect server on Fedora 28:
The installer depends on
zlib
.
I found it in the redhat.sh file, located inScreenConnect_6.7.19388.6796_Install/Installer/Distributions/
directoryzlib
is already installed, so that is not it. -
Strange, I've got it running on a Fedora 28 machine.
Give me 10 or so and i'll try and dig out my instructions I made while installing it.
-
@hobbit666 said in Unable to turn up ScreenConnect server on Fedora 28:
Strange, I've got it running on a Fedora 28 machine.
Give me 10 or so and i'll try and dig out my instructions I made while installing it.
I had no issues on CentOS 7 previously.
I did not expect any issues here.
Haven't had troubleshooting time yet.
I installed Fedora 28 minimal. installed
tar
andwget
. Disabled selinux. Ran the installer and had problems.So I installed Fedora 28 Server. Same result on install. no packages needed installed though.
I'm visiting my dad, so I'll do more troublshooting tonight or tomorrow.
-
Just had a look and looks like I didn't do a "install guide" for ScreenConnect when I re-did all my Linux servers on HyperV host
I think I had some issues but I think the solutions were on the ConnectWise Forums.
-
Apparently is an issue with the Mono package as below:
https://github.com/mono/mono/issues/6752 -
@jaredbusch said in Unable to turn up ScreenConnect server on Fedora 28:
System.Exception: Magic number is wrong: 542
Searching for the error leads to a mono bug https://github.com/mono/mono/issues/6752#issuecomment-365212655
Which supposedly you can get working by exporting an enviromental variable
export TERM=xterm
According to the last comment on the thread https://github.com/mono/mono/issues/6752#issuecomment-404527450 the issue fix should already be backported on fedora which makes it strange as the error is happening on fedora 28 for jared.
-
@romo said in Unable to turn up ScreenConnect server on Fedora 28:
export TERM=xterm
This did resolve my problem. Sorry for not posting sooner.
@romo said in Unable to turn up ScreenConnect server on Fedora 28:
According to the last comment on the thread https://github.com/mono/mono/issues/6752#issuecomment-404527450 the issue fix should already be backported on fedora which makes it strange as the error is happening on fedora 28 for jared.
The comment said it was backported by Fedora, but I saw no links, just the comment saying it was backported.
@scottalanmiller tag his post as the answer.
-
Once it was working with the above fix, I hadn'thad time to take our systemdown and move it.
Just did that today. Working perfectly.
-
Answer marked.
-
Just went to upgrade the install today to the current version and had this error again.
Again, setting up the
TERM
variable prior to running./install.sh
resolved the issue. -
Still an issue with ScreenConnect 19.1
-
Recently posted this...
So anyone that wants to configure Nginx in front of it can do that, too.