BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Iyappan21
Obsidian | Level 7

Hi Experts,

We are doing single machine deployment.The results should failed 1. But folders are already created in Opt/sas and services are not available.

While analysing the logs we can see errors with JAVA. Can anyone help me with this.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Iyappan21
Obsidian | Level 7

Hi,

I have removed previous failed deployments with deploy clean up and below command :

sudo rpm -e $(rpm -qg SAS) --nopreun

 

Now the above issue is resolved.

Thanks,

Iyappan M S

View solution in original post

7 REPLIES 7
Iyappan21
Obsidian | Level 7
More details on Logs:
2020-04-22 23:42:54,767 p=5336 u=root | fatal: [deployTarget]: FAILED! => {
"msg": "The conditional check 'sasenv_java_home is defined and sasenv_java_home and (usrjavacheck.stdout is defined and usrjavacheck.stdout is version(sas_minimum_java_version, '<'))' failed. The error was: Version comparison: LooseVersion instance has no attribute 'version'\n\nThe error appears to have been in '/sasviyainst/SAS_Viya_playbook/roles/sas-requirements-java/tasks/main.yml': line 10, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n ## User defined\n - name: Log the value of sasenv_java_home on each host\n ^ here\n"
}
2020-04-22 23:42:54,768 p=5336 u=root | NO MORE HOSTS LEFT *******************************************************************************************
2020-04-22 23:42:54,769 p=5336 u=root | PLAY RECAP ***************************************************************************************************
2020-04-22 23:42:54,769 p=5336 u=root | deployTarget : ok=98 changed=10 unreachable=0 failed=1
2020-04-22 23:42:54,769 p=5336 u=root | localhost : ok=9 changed=0 unreachable=0 failed=0
2020-04-22 23:49:08,565 p=7113 u=root | ansible-playbook 2.7.2
alexal
SAS Employee

@Iyappan21 ,

 

I'm curious to see the values of sas_install_java & sasenv_java_home from vars.yml file.

Iyappan21
Obsidian | Level 7
Hi Alex,
The Values are :
sasenv_java_home: "/usr/java/jre1.8.0_251/"
sas_install_java: true
I could see JAVA HOME has proper value in log file. Is it mandatory to install JDK?. I have installed JRE.
Or is it mandatory to keep lower version of JRE?
Please advice.

Thanks ,
Iyappan M S
Iyappan21
Obsidian | Level 7
Hi Alex,
Now I am getting error as ---- "msg": "Destination /opt/sas/viya/config/etc/sysconfig/sas-javaesntl/sas-java does not exist !"------
I have done deploy-cleanup.yml and still facing the same error. Is there any other process for cleanup unsuccessful deployments.
One more point, we have mounted Opt/sas with ext4 filesystem in Linux. Will it impact on unsuccesful deployments? Its just a curious question.
Kindly guide.
Thanks,
Iyappan M S
Sajid01
Meteorite | Level 14
1..Mounted /opt/sas with ext4 filesystem : This should have no impact.
2.--- "msg": "Destination /opt/sas/viya/config/etc/sysconfig/sas-javaesntl/sas-java does not exist !"------
I would try creating the folder /opt/sas/viya/config/etc/sysconfig/sas-javaesntl/sas-java
and then retry
Iyappan21
Obsidian | Level 7
HI,
It doesn't help.
While analysing further, could see the error message :
2020-04-27 07:56:26,466 p=12280 u=root | TASK [sas-requirements-java : Set Java to use Java 1.8 when it is not the default Java on the system] ********
2020-04-27 07:56:26,466 p=12280 u=root | task path: /sasviyainst/SAS_Viya_playbook/roles/sas-requirements-java/tasks/main.yml:69
2020-04-27 07:56:26,514 p=12280 u=root | ok: [deployTarget] => {
"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
"changed": false
}
2020-04-27 07:56:26,536 p=12280 u=root | Read vars_file '../vars.yml'
2020-04-27 07:56:26,537 p=12280 u=root | TASK [sas-requirements-java : If Java not found on host, display an error] ***********************************
2020-04-27 07:56:26,537 p=12280 u=root | task path: /sasviyainst/SAS_Viya_playbook/roles/sas-requirements-java/tasks/main.yml:79
2020-04-27 07:56:26,562 p=12280 u=root | skipping: [deployTarget] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
2020-04-27 07:56:26,581 p=12280 u=root | Read vars_file '../vars.yml'
2020-04-27 07:56:26,592 p=12280 u=root | Read vars_file '../vars.yml'
2020-04-27 07:56:26,592 p=12280 u=root | TASK [sas-requirements-java : Log a message 'Java was not found' on the host]

Can you help us.
Thanks,
Iyappan M S
Iyappan21
Obsidian | Level 7

Hi,

I have removed previous failed deployments with deploy clean up and below command :

sudo rpm -e $(rpm -qg SAS) --nopreun

 

Now the above issue is resolved.

Thanks,

Iyappan M S

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 2221 views
  • 0 likes
  • 3 in conversation