OS Errors sh: scl: line 1: syntax error: unexpected end of file while starting WebLogic Admin service in EBS 12.2 on Redhat Linux 8.9, here’s how to solve it!

OS level error while starting WebLogic Admin adadminsrvctl.sh service in EBS 12.2 on Redhat and or Oracle Linux 8.9 :

You are running adadminsrvctl.sh version 120.10.12020000.11

Starting WLS Admin Server…
Refer /u01/8005_uat_app/ebiz/fs1/inst/apps/PREUPG_ebsappuat/logs/appl/admin/log/adadminsrvctl.txt for details

AdminServer logs are located at /u01/8005_uat_app/ebiz/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/8005_uat_app/ebiz/fs1/inst/apps/PREUPG_ebsappuat/logs/appl/admin/log/adadminsrvctl.txt for more information …

.end std out.

sh: scl: line 1: syntax error: unexpected end of file
sh: error importing function definition for scl’ sh: ml: line 1: syntax error: unexpected end of file sh: error importing function definition forml’
sh: switchml: line 1: syntax error: unexpected end of file
sh: error importing function definition for switchml’ sh: which: line 1: syntax error: unexpected end of file sh: error importing function definition forwhich’
sh: ml: line 1: syntax error: unexpected end of file
sh: error importing function definition for ml’ sh: _module_raw: line 1: syntax error: unexpected end of file sh: error importing function definition for_module_raw’
sh: scl: line 1: syntax error: unexpected end of file

.end err out.


To solve the error while starting weblogic admin server, follow the given below

Solution:

  1. vi .bash_profile of your EBS Application OS user
    unset which
    unset scl
  2. Login via root user and rename below file :
  3. mv /etc/profile.d/modules.sh /etc/profile.d/modules.sh.bkup
  4. Take a fresh putty session on Linux
    now Log out, log back in, and set the application environment.

This entry was posted in Uncategorised. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *