Open a case with us to discuss it.
Precisely Software Inc.
Original Message:
Sent: 08-29-2023 09:36
From: David Carlson
Subject: Problem starting Spectrum 2023.1.0 with cron job in Linux
I set spectrum.import.dir to an absolute path in conf/spectrum-container.properties and got the same result:
[ProductDataJAXRSService] Configured deployment directory /apps/Spectrum/server/bin/${spectrum.import.dir} doesn't exist
For some reason, when I run my startup script with a cron job the configuration variables are not getting set.
I'm not sure what you are asking about 'archiveEnabled' and data type being passed.
To simplify matters, I created a simplified startup script, shown below. This works when called by a cron job for Spectrum version 2020.1.0. This works when called manually from the terminal. But if it is called by a cron job, then Specrum won't start properly:
#!/bin/bash
cd /apps/Spectrum/server/bin
. ./setup
./server.start
The cron entry looks like:
59 * * * * /apps/Spectrum/auto_start_test.sh
------------------------------
Dave Carlson
------------------------------
Original Message:
Sent: 08-29-2023 08:07
From: Anoop Kumar
Subject: Problem starting Spectrum 2023.1.0 with cron job in Linux
Hi Dave,
These values are correct. To be more precise, change spectrum.import.dir to provide absolute path rather than relative.
As per error, data type being passed is string for 'archiveEnabled' in cron job. Can you check that?
is it written in bash or some other script? I believe it's needed to be debug
------------------------------
Anoop Kumar
Precisely Software Inc.
Troy
Original Message:
Sent: 08-29-2023 07:59
From: David Carlson
Subject: Problem starting Spectrum 2023.1.0 with cron job in Linux
spectrum.audit.archive.enabled=true
and
spectrum.import.dir=../import
------------------------------
Dave Carlson
Original Message:
Sent: 08-29-2023 02:40
From: Anoop Kumar
Subject: Problem starting Spectrum 2023.1.0 with cron job in Linux
Hi Dave,
Within spectrum container property file located at /apps/Spectrum/server/conf, what value you see for below properties?
spectrum.audit.archive.enabled
and
spectrum.import.dir
Regards
Anoop
------------------------------
Anoop Kumar
Precisely Software Inc.
Troy