R12.2 Errors Running adadminsrvctl.sh with 'sh: module: line 1: Syntax Error: Unexpected End Of File' or 'Importing Function Definition for `BASH_FUNC_module'' On Oracle Linux 6 64-bit (Doc ID 1595052.1)

Last updated on JUNE 19, 2017

Applies to:

Oracle Applications DBA - Version 12.2 to 12.2.5 [Release 12.2Cloud to 12.2]
Linux x86-64

Symptoms

When attempting to apply a patch using adop or while starting services using adadminscrvctl.sh script, the following may occur on Oracle Linux 6 64-bit server:

Error:

sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for 'BASH_FUNC_module'

or

sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'

This is related to OS level profiles setup referencing modules.sh.

 

Steps to Reproduce:
sh adadminsrvctl.sh start

or

adop phase=apply

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms