Question

Install.sh Failed

Hi All,

While running Install.sh script (after updating setUpDatabase.properties file), the script is failing because of space issue in /tmp directory.

Can someone advise if its possible to change value of "java.io.tmpdir" to some other directory (having sufficient space) ?

If yes , please provide the steps.

Java Version - 1.8

Oracle - 11 g

We are trying to install Pega Version : 7.2

Thanks.

Comments

Keep up to date on this post and subscribe to comments

September 13, 2019 - 7:55am

Hi,

 

In your setupDatabase.properties file which is present in the script folder, you can provide the value of

"user.temp.dir= " to give a custom temp directory which has enough space to run.

 

Regards,

Vikash

September 14, 2019 - 4:05am

Thanks Karan for your prompt reply.

however my query was regarding Java I/O temp directory ie:  "java.io.tmpdir"  , not "user.temp.dir".

Could you kindly advise if this Java I/O temp directory can also be customized and how ? Because unlike "user.temp.dir", "java.io.tmpdir" parameter is not available in setupDatabase.properties file.

September 16, 2019 - 7:30am
Response to ShaziyaM

can you try

custom.jvm.args=-Xmx4096m -Djava.io.tmpdir='your temp directory location'

October 1, 2019 - 2:52am
Response to KevinZheng_GCS

Thanks Kevin.

Do I need to add above custom JVM args in setupDatabase.properties file ? I tried adding it but I am still getting the same error. 

Please see attached error screenshot.Kindly advise.

Thanks !! 

October 1, 2019 - 10:16am

for all upgrades I did, all files where stored in user.temp.dir defined setupDatabase.properties
I also launched the upgrades from this user.temp.dir/scripts where the install.sh is.

my logs are never refering java.io.tmpdir and [pega:hasenoughspace] is well checking user.temp.dir
I think that your parameter user.temp.dir in setupDatabase.properties is not properly loaded leading 
install.temp.dir.root to point to java.io.tmpdir
in setupDatabase.xml there's
 <condition property="install.temp.dir.root"     value="${user.temp.dir.root}" else="${java.io.tmpdir}">

You should maybe recheck that install.sh is pointing to correct setupDatabase.properties
I found same info in my logs for 7.3.1 and 8.2.1 migrations

I also had to add some specific jvm arg in properties files so above suggestion will certainly work.
I added right after the pega.jdbc lines a line with jvm.args=........