33.2 Unable to Run the Migration Script

You may see the following error when running the migration script to move data to PostgreSQL:

 
8101server:/opt # su novell
novell@8101server:/opt>
novell@8101server:/opt> ./mongo_to_pgsql_migration.sh
./mongo_to_pgsql_migration.sh: line 25: /bin/setenv.sh: No such file or directory
Cannot execute ./mongo_to_pgsql_migration.sh as novell
novell@8101server:/opt>
novell@8101server:/opt> exit
exit
8101server:/opt #
8101server:/opt # ./mongo_to_pgsql_migration.sh
./mongo_to_pgsql_migration.sh: line 25: /bin/setenv.sh: No such file or directory
Cannot execute ./mongo_to_pgsql_migration.sh as root 

This error may occur if you had upgraded appliance to Sentinel 8.2 from a prior version because the bashrc may have been modified during a prior upgrade.

To prevent this error, you must update the bashrc file.

To update the bashrc file:

  1. Open the bashrc file:

    /home/novell/.bashrc

  2. (Conditional) If the file does not include the following properties, add them:

    APP_HOME="/opt/novell/sentinel"
    export PATH="$APP_HOME/bin:$APP_HOME/bin/actions:$PATH" 
  3. Run the migration script again. For more information, see Migrating Data from MongoDB to PostgreSQL.