During the application of the Delphix Reporting 188.8.131.52 upgrade script, the post-install.sh script may fail if the Reporting VM does not have external internet access:
Installing dependencies... Rebuild fibers modules for Centos ... /opt/delphix/webapp/post-install.sh: Failed to install node-gyp + die 'Failed to run post-install script' + echo 'Failed to run post-install script' Failed to run post-install script + exit 1
Applicable Delphix Reporting Versions
- Click here to view the versions of the Delphix Reporting installation to which this article applies
Major Release All Sub Releases 2.0 2.0
There are two possible solutions to resolve the post-install script issue:
- External network access can be configured, either direct or via proxy. If a proxy is available, it can be configured for the VM by setting the
http_proxy environment variables.
- If network access is unavailable, the packages required for post-install can be manually transferred to the VM, along with a modified post-install.sh script, which is discussed in the process below.
Install with Offline Packages
Log in to the Reporting VM as root, execute the following commands to relocate the default node-gyp-6.1.0 package and post-install.sh script:
mv /opt/delphix/libs/node-gyp-6.1.0.tgz ~/node-gyp-6.1.0.tgz.orig mv /opt/delphix/webapp/post-install.sh ~/post-install.sh.orig
scp node-gyp-6.1.0.tgz root@<ReportingVMHostname>:/opt/delphix/libs/ scp node-v8.11.2-headers.tar.gz root@<ReportingVMHostname>:/opt/delphix/libs/ scp post-install.sh root@d<ReportingVMHostname>:/opt/delphix/webapp/
Confirm the files exist in the expected locations and file sizes match:
[root@delphix-reporting ~]# ls -l /opt/delphix/libs/node* -rw-r--r-- 1 root root 1702522 May 14 15:29 node-gyp-6.1.0.tgz -rw-r--r-- 1 root root 500372 May 14 15:30 node-v8.11.2-headers.tar.gz [root@delphix-reporting ~]# ls -l /opt/delphix/webapp/post* -rwxr-xr-x 1 root root 6301 May 14 15:30 /opt/delphix/webapp/post-install.sh
Execute the updated install script:
This should complete without encountering the same stall or error previously observed:
[root@delphix-reporting ~]# sh /opt/delphix/webapp/post-install.sh Start generating encryption keys... Encryption keys exist already. Exiting. g++ installed Re-build fibers module for Centos ... Done
Once this is complete, the VM is fully upgraded to 184.108.40.206 and no further issues should be expected. The Reporting services delphix-collector and delphix-webapp can be restarted manually, or reboot the VM to ensure the most current components are active. Had the upgrade script initially executed successfully, it would have performed these actions.
service delphix-collector restart service delphix-webapp restart
The following articles may provide more information or related information to this article: