May
27
2019
T83-2015: Corruption of "registry.xml" file in versions 9.x of BIOVIA Pipeline Pilot Server
Pipeline Pilot Server
123
Resolution:
The following steps can be taken prior to release of and upgrade to Pipeline Pilot 2016 to address the issue:
- If corruption of registry.xml occurs, the file can be repaired by running the command “DbUtil -t” from the command line. (The DbUtil utility is found in <server_install_dir>/bin on Windows and <server_install_dir>/linux_bin on Linux.)
- To prevent future corruption of this file, the script <server_install_dir>/install/replacetokens.pl can be edited in two places to properly lock the file:
At the top of the file, add this line:
use Fcntl qw(:flock SEEK_END);
Replace the following block of code:
if (!open (OUT, ">$out")) {
logerror("can't write $out: $!\n");
return 1;
}
while (<TMPL>) {
with the following block that has four additional lines:
if (!open (OUT, ">$out")) {
logerror("can't write $out: $!\n");
return 1;
}
if (!flock(OUT, LOCK_EX)) {
logerror("can't lock $out: $!\n");
return 1;
}
while (<TMPL>) {