how do disable or uninstall IRLPvCON ?


kd1yh
 

Need to  disable or uninstall.IRLPvCON
 
A comment is>>
 
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
 
Does anybody have a fix?
 
Paul Upham
KD1YH
node 8581 , 4651, 8433
 
 


David Cameron - IRLP
 

I would start by just turning off the web server.

systemctl disable apache2

You can also try to rename the web folders, so others can not use them. I am not sure where the folders are on your specific system, but you can type

locate irlpvcon
locate irlpvmon

It will show you where the folders are. Then you can use the mv command to "move" the folder to a new name.

Dave Cameron

On 2020-10-24 8:14 a.m., kd1yh wrote:
Need to  disable or uninstall.IRLPvCON
A comment is>>
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
Does anybody have a fix?
Paul Upham
KD1YH
node 8581 , 4651, 8433


kd1yh
 

What configuration should the parallel setup port be?
 
 

From: kd1yh
Sent: Saturday, October 24, 2020 11:14 AM
To: IRLP@irlp.groups.io
Subject: [IRLP] how do disable or uninstall IRLPvCON ?
 
Need to  disable or uninstall.IRLPvCON
A comment is>>
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
Does anybody have a fix?
Paul Upham
KD1YH
node 8581 , 4651, 8433


Rick NK7I
 

It's not the parallel port at fault, but the original IRLPvCON code that causes the race condition (that code needs an update but it is no longer supported by the author, who hasn't released the source).  If you have a working node, the parallel port is fine.

If you (or anyone else) NEVER calls on the web page; the irlpvcon install is benign.

The quickest means to disable the function (echoing Dave C), is to rename the index.html file that calls the code that causes the condition);

as root:

"mv /var/www/html/index.html (space) /var/www/html/irlpvcon-index.html"  (move old-filename to new filename, equal to renaming)

Then irlpvcon won't play at all at the browser (unless specifically called by you), so it won't run the binary program and cause the race and resulting lock up. 

There is no official uninstall, other than a total wipe and rebuild, without adding irlpvcon.

73,
Rick NK7I
7962




On 10/24/2020 4:40 PM, kd1yh wrote:
What configuration should the parallel setup port be?
 
 
From: kd1yh
Sent: Saturday, October 24, 2020 11:14 AM
To: IRLP@irlp.groups.io
Subject: [IRLP] how do disable or uninstall IRLPvCON ?
 
Need to  disable or uninstall.IRLPvCON
A comment is>>
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
Does anybody have a fix?
Paul Upham
KD1YH
node 8581 , 4651, 8433


David Cameron - IRLP
 

I have found ways to control it. The first one is to make sure you only run ONE window of IRLPvCON or IRLPvMON. The problem is the system is designed such that every instance (window) polls the parallel port at whatever the polling interval is (I think defaults to 500milliseconds).

Somewhere a conflict occurs between the irlpvport_sel binary and the dtmf binary. When this happens, all calls to the parallel port stop and freeze any program trying to access it. This only happens on PC hardware (parallel), not on PI hardware (GPIO).

In this order:
1) Set passwords or other controls to ensure only ONE version of IRLPvCON is running
2) Lower the polling interval within IRLPvCON
3) Replace the irlpvport_sel binary with a version that directly accesses the parallel port (needs root access, but is less problematic). Note that this uses a sledgehammer to put in a brad nail, but tends to solve the issue. You can do this by finding the two locations on your node where irlpvport_sel is located, and replacing it with the file published in the /home/irlp/bin directory:

DO NOT DO THIS ON A PI BASED NODE - The problem does not exist there, and this will render IRLPvCON not usable.

Find the locations:
root@stn100:~# locate irlpvport_sel
/home/irlp/bin/irlpvport_sel
/home/irlp/bin/irlpvport_sel.OLD
/usr/lib/cgi-bin/irlpvcon/irlpvport_sel  <--- HERE
/usr/lib/cgi-bin/irlpvmon/irlpvport_sel  <--- HERE

NOTE the subtle difference of irlpvMon and irlpvCon. There are TWO files you have to work with.

Copy the .OLD to the location:
root@stn100:~# cp /home/irlp/bin/irlpvport_sel.OLD /usr/lib/cgi-bin/irlpvcon/irlpvport_sel root@stn100:~# cp /home/irlp/bin/irlpvport_sel.OLD /usr/lib/cgi-bin/irlpvmon/irlpvport_sel

Change the permissions on the files to owned by root, chroot when run:
root@stn100:~# chown root.root /usr/lib/cgi-bin/irlpvcon/irlpvport_sel
root@stn100:~# chown root.root /usr/lib/cgi-bin/irlpvmon/irlpvport_sel
root@stn100:~# chmod 4755 /usr/lib/cgi-bin/irlpvcon/irlpvport_sel
root@stn100:~# chmod 4755 /usr/lib/cgi-bin/irlpvmon/irlpvport_sel

On 24/10/2020 5:05 p.m., Rick NK7I wrote:

It's not the parallel port at fault, but the original IRLPvCON code that causes the race condition (that code needs an update but it is no longer supported by the author, who hasn't released the source).  If you have a working node, the parallel port is fine.

If you (or anyone else) NEVER calls on the web page; the irlpvcon install is benign.

The quickest means to disable the function (echoing Dave C), is to rename the index.html file that calls the code that causes the condition);

as root:

"mv /var/www/html/index.html (space) /var/www/html/irlpvcon-index.html"  (move old-filename to new filename, equal to renaming)

Then irlpvcon won't play at all at the browser (unless specifically called by you), so it won't run the binary program and cause the race and resulting lock up.

There is no official uninstall, other than a total wipe and rebuild, without adding irlpvcon.

73,
Rick NK7I
7962




On 10/24/2020 4:40 PM, kd1yh wrote:
What configuration should the parallel setup port be?
*From:* kd1yh
*Sent:* Saturday, October 24, 2020 11:14 AM
*To:* IRLP@irlp.groups.io
*Subject:* [IRLP] how do disable or uninstall IRLPvCON ?
Need to  disable or uninstall.IRLPvCON
A comment is>>
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
Does anybody have a fix?
Paul Upham
KD1YH
node 8581 , 4651, 8433


kd1yh
 

Believe that I must copy irlpvport_sel and save as *.old

home/irlp/bin/irlpvport_sel
/home/irlp/bin/irlpvport_sel.OLD


Paul
KD1YH
node 8581 , 4651, 8433

-----Original Message-----
From: David Cameron - IRLP
Sent: Sunday, October 25, 2020 2:12 PM
To: IRLP@irlp.groups.io
Subject: Re: [IRLP] how do disable or uninstall IRLPvCON ?

I have found ways to control it. The first one is to make sure you only
run ONE window of IRLPvCON or IRLPvMON. The problem is the system is
designed such that every instance (window) polls the parallel port at
whatever the polling interval is (I think defaults to 500milliseconds).

Somewhere a conflict occurs between the irlpvport_sel binary and the
dtmf binary. When this happens, all calls to the parallel port stop and
freeze any program trying to access it. This only happens on PC hardware
(parallel), not on PI hardware (GPIO).

In this order:
1) Set passwords or other controls to ensure only ONE version of
IRLPvCON is running
2) Lower the polling interval within IRLPvCON
3) Replace the irlpvport_sel binary with a version that directly
accesses the parallel port (needs root access, but is less problematic).
Note that this uses a sledgehammer to put in a brad nail, but tends to
solve the issue. You can do this by finding the two locations on your
node where irlpvport_sel is located, and replacing it with the file
published in the /home/irlp/bin directory:

DO NOT DO THIS ON A PI BASED NODE - The problem does not exist there,
and this will render IRLPvCON not usable.

Find the locations:
root@stn100:~# locate irlpvport_sel
/home/irlp/bin/irlpvport_sel
/home/irlp/bin/irlpvport_sel.OLD
/usr/lib/cgi-bin/irlpvcon/irlpvport_sel <--- HERE
/usr/lib/cgi-bin/irlpvmon/irlpvport_sel <--- HERE

NOTE the subtle difference of irlpvMon and irlpvCon. There are TWO files
you have to work with.

Copy the .OLD to the location:
root@stn100:~# cp /home/irlp/bin/irlpvport_sel.OLD
/usr/lib/cgi-bin/irlpvcon/irlpvport_sel root@stn100:~# cp
/home/irlp/bin/irlpvport_sel.OLD /usr/lib/cgi-bin/irlpvmon/irlpvport_sel

Change the permissions on the files to owned by root, chroot when run:
root@stn100:~# chown root.root /usr/lib/cgi-bin/irlpvcon/irlpvport_sel
root@stn100:~# chown root.root /usr/lib/cgi-bin/irlpvmon/irlpvport_sel
root@stn100:~# chmod 4755 /usr/lib/cgi-bin/irlpvcon/irlpvport_sel
root@stn100:~# chmod 4755 /usr/lib/cgi-bin/irlpvmon/irlpvport_sel







On 24/10/2020 5:05 p.m., Rick NK7I wrote:

It's not the parallel port at fault, but the original IRLPvCON code that causes the race condition (that code needs an update but it is no longer supported by the author, who hasn't released the source). If you have a working node, the parallel port is fine.

If you (or anyone else) NEVER calls on the web page; the irlpvcon install is benign.

The quickest means to disable the function (echoing Dave C), is to rename the index.html file that calls the code that causes the condition);

as root:

"mv /var/www/html/index.html (space) /var/www/html/irlpvcon-index.html" (move old-filename to new filename, equal to renaming)

Then irlpvcon won't play at all at the browser (unless specifically called by you), so it won't run the binary program and cause the race and resulting lock up.

There is no official uninstall, other than a total wipe and rebuild, without adding irlpvcon.

73,
Rick NK7I
7962




On 10/24/2020 4:40 PM, kd1yh wrote:
What configuration should the parallel setup port be?
*From:* kd1yh
*Sent:* Saturday, October 24, 2020 11:14 AM
*To:* IRLP@irlp.groups.io
*Subject:* [IRLP] how do disable or uninstall IRLPvCON ?
Need to disable or uninstall.IRLPvCON
A comment is>>
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
Does anybody have a fix?
Paul Upham
KD1YH
node 8581 , 4651, 8433


kd1yh
 

is this from the old vcon ?

I get a permission's error irlp-lockfile-parport

/home/irlp/bin/irlpvport_sel.OLD

I don't have this on the clean install

Paul Upham
KD1YH
node 8581 , 4651, 8433
-----Original Message-----
From: David Cameron - IRLP
Sent: Sunday, October 25, 2020 2:12 PM
To: IRLP@irlp.groups.io
Subject: Re: [IRLP] how do disable or uninstall IRLPvCON ?

I have found ways to control it. The first one is to make sure you only
run ONE window of IRLPvCON or IRLPvMON. The problem is the system is
designed such that every instance (window) polls the parallel port at
whatever the polling interval is (I think defaults to 500milliseconds).

Somewhere a conflict occurs between the irlpvport_sel binary and the
dtmf binary. When this happens, all calls to the parallel port stop and
freeze any program trying to access it. This only happens on PC hardware
(parallel), not on PI hardware (GPIO).

In this order:
1) Set passwords or other controls to ensure only ONE version of
IRLPvCON is running
2) Lower the polling interval within IRLPvCON
3) Replace the irlpvport_sel binary with a version that directly
accesses the parallel port (needs root access, but is less problematic).
Note that this uses a sledgehammer to put in a brad nail, but tends to
solve the issue. You can do this by finding the two locations on your
node where irlpvport_sel is located, and replacing it with the file
published in the /home/irlp/bin directory:

DO NOT DO THIS ON A PI BASED NODE - The problem does not exist there,
and this will render IRLPvCON not usable.

Find the locations:
root@stn100:~# locate irlpvport_sel
/home/irlp/bin/irlpvport_sel
/home/irlp/bin/irlpvport_sel.OLD
/usr/lib/cgi-bin/irlpvcon/irlpvport_sel <--- HERE
/usr/lib/cgi-bin/irlpvmon/irlpvport_sel <--- HERE

NOTE the subtle difference of irlpvMon and irlpvCon. There are TWO files
you have to work with.

Copy the .OLD to the location:
root@stn100:~# cp /home/irlp/bin/irlpvport_sel.OLD
/usr/lib/cgi-bin/irlpvcon/irlpvport_sel root@stn100:~# cp
/home/irlp/bin/irlpvport_sel.OLD /usr/lib/cgi-bin/irlpvmon/irlpvport_sel

Change the permissions on the files to owned by root, chroot when run:
root@stn100:~# chown root.root /usr/lib/cgi-bin/irlpvcon/irlpvport_sel
root@stn100:~# chown root.root /usr/lib/cgi-bin/irlpvmon/irlpvport_sel
root@stn100:~# chmod 4755 /usr/lib/cgi-bin/irlpvcon/irlpvport_sel
root@stn100:~# chmod 4755 /usr/lib/cgi-bin/irlpvmon/irlpvport_sel







On 24/10/2020 5:05 p.m., Rick NK7I wrote:

It's not the parallel port at fault, but the original IRLPvCON code that causes the race condition (that code needs an update but it is no longer supported by the author, who hasn't released the source). If you have a working node, the parallel port is fine.

If you (or anyone else) NEVER calls on the web page; the irlpvcon install is benign.

The quickest means to disable the function (echoing Dave C), is to rename the index.html file that calls the code that causes the condition);

as root:

"mv /var/www/html/index.html (space) /var/www/html/irlpvcon-index.html" (move old-filename to new filename, equal to renaming)

Then irlpvcon won't play at all at the browser (unless specifically called by you), so it won't run the binary program and cause the race and resulting lock up.

There is no official uninstall, other than a total wipe and rebuild, without adding irlpvcon.

73,
Rick NK7I
7962




On 10/24/2020 4:40 PM, kd1yh wrote:
What configuration should the parallel setup port be?
*From:* kd1yh
*Sent:* Saturday, October 24, 2020 11:14 AM
*To:* IRLP@irlp.groups.io
*Subject:* [IRLP] how do disable or uninstall IRLPvCON ?
Need to disable or uninstall.IRLPvCON
A comment is>>
The problem is the polling that IRLPvCON does of the parallel port somehow creates a race condition with the same polling being done by the DTMF process.
Does anybody have a fix?
Paul Upham
KD1YH
node 8581 , 4651, 8433