My Oracle Support Banner

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 JULY 30, 2018

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 or Red Hat Enterprise 6.

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.

This issue may occur when doing any of the following:

1. Attempting to start the Admin Server:
    $ sh adadminsrvctl.sh start

2. Running either adop prepare o apply phases:

    $ adop phase=prepare or adop phase=apply   

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.