On Mon, Oct 15, 2012 at 10:32 AM, emyr.james <[log in to unmask]> wrote:
> On 11/10/12 15:52, Govind Songara wrote:
>>
>> I think keytool is not added to path, try running this script (for
>> emi-apel)
>> /usr/share/glite-apel-publisher/scripts/key_trust_store_maker.sh
>> and then try publishing it again manually.
>
> I ran the keytool,
>
> It goes for a while then bombs out....
>
> .
> .
> Certificate was added to keystore
> Certificate was added to keystore
> unable to load private key
> keytool error: java.lang.Exception: Source keystore file exists, but is
> empty: /tmp/tmp.AFSMD18337
> mv: cannot stat `/etc/grid-security/hostcert.ks.18336': No such file or
> directory
Thats normal, i also got this while fixing emi-apel.
>
> Regardless I tried to manually run the publisher and looked at apel.log and
> it says this....
>
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - Building account records via
> GK Logs
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - NB: Record Counts may be zero
> if Patch #898 is active on this CE
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - Stitching together all
> accounting records
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - Stitching completed
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - No accounting data to store
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - Generating 0 records
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - Number of Joined accounting
> records: 0
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - Build complete
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - program aborted
> Mon Oct 15 09:15:19 UTC 2012: apel-publisher - javax.jms.JMSException: Could
> not connect to broker URL: ssl://apel-broker.esc.rl.ac.uk:61617. Reason:
> java.net.SocketException: java.security.NoSuchAlgorithmException: Error
> constructing implementation (algorithm: Default, provider: SunJSSE, class:
> sun.security.ssl.DefaultSSLContextImpl)
>
> I had a look at
> https://twiki.cern.ch/twiki/bin/view/EMI/APELFAQ#Q_java_lang_SecurityException_in
> and made sure I had JAVA_HOME set to the OpenJDK distribution :
>
> [root@grid-apel yum.repos.d]# echo $JAVA_HOME
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
>
> Anyone got any idea on how to sort this out?
emi-apel does not work out of box, you can to set java in site-info.def
JAVA_LOCATION="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
Make sure you have rset mysql driver variable, yaim will reset it.
[root@apel2 ~]# grep MYSQL_DRIVER /usr/bin/apel-publisher
MYSQL_DRIVER_CP="/opt/mm-mysql/*:/usr/share/java/mysql-connector-java.jar"
Cheers
>
> Regards,
>
> Emyr
|