logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
KatyComputer  
#1 Posted : Wednesday, May 7, 2014 12:11:50 AM(UTC)
KatyComputer


Rank: Member

Joined: 5/5/2014(UTC)
Posts: 23
Man
United States
Location: St Louis

Thanks: 22 times
We installed ScreenConnect on our cPanel based host. When we needed it this morning we found it to be off-line. It turns out that the service died for unknown reasons.

ThecPanelAdmin tells us "Chkservd is a driver of Tailwatchd, which is the service in cPanel that checks to make sure that services are running and restarts them if necessary."

A few bash lines are all that is needed to make sure ScreenConnect remains active:

printf 'service[screenconnect]=x,x,x,service screenconnect restart,screenconnect,root|mailnull' > /etc/chkserv.d/screenconnect
printf '\nscreenconnect:1' >> /etc/chkserv.d/chkservd.conf ; /etc/init.d/chkservd restart
/usr/local/cpanel/scripts/restartsrv_chkservd

I hope this helps someone. BTW, this is how I went about installing ScreenConnect on my server, the last line is unique to our ConfigServer firewall:
cd /usr/src
wget http://www.screenconnect...6507.5226_Release.tar.gz ; tar xzf ScreenConnect* ; rm -f ScreenConnect* ; cd ScreenConnect* ; ./install.sh
service screenconnect restart ; chkconfig screenconnect on
sed -i -e 's/^TCP_IN.*/TCP_IN = "20,21,37,43,53,80,110,113,143,443,465,587,873,993,995,2082,2083,2089,2095,2096,2703,8040,8041,8042,8888"/' /etc/csf/csf.conf ; csf -x ; csf -e

Alexander  
#2 Posted : Wednesday, May 7, 2014 4:18:51 PM(UTC)
Alexander


Rank: Administration

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 7/23/2013(UTC)
Posts: 715
Man
Location: Raleigh, NC

Was thanked: 66 time(s) in 63 post(s)
ScreenConnect's init.d script should really restart the services itself if they die, so I'm curious why that didn't happen. Is there any output in /var/log/screenconnect, perhaps?
ScreenConnect Team
KatyComputer  
#3 Posted : Saturday, May 10, 2014 3:05:42 PM(UTC)
KatyComputer


Rank: Member

Joined: 5/5/2014(UTC)
Posts: 23
Man
United States
Location: St Louis

Thanks: 22 times
/var/log/screenconnect says:
Unhandled Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path "/tmp/root-temp-aspnet-0/9c1b522a/4f56c45a.tmp".
at System.IO.File.Delete (System.String path) [0x00000] in <filename unknown>:0
at System.CodeDom.Compiler.TempFileCollection.Delete () [0x00000] in <filename unknown>:0
at System.CodeDom.Compiler.TempFileCollection.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.CodeDom.Compiler.TempFileCollection.Finalize () [0x00000] in <filename unknown>:0

My fix hasn't been called since 5/5, everything seems fine, I think I will leave the fix in place.
Alexander  
#4 Posted : Monday, May 12, 2014 4:10:25 PM(UTC)
Alexander


Rank: Administration

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 7/23/2013(UTC)
Posts: 715
Man
Location: Raleigh, NC

Was thanked: 66 time(s) in 63 post(s)
OK, that's something we can fix.
ScreenConnect Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.