6.7 Upgrading Issue - The BASEDIR environment variable is not defined correctly

turnerjd's Avatar

turnerjd

09 Jul, 2010 12:52 PM

When I try to start cascade server after upgrading I get:

The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program

Anyone know how to resolve this?

  1. 1 Posted by Joel on 09 Jul, 2010 01:24 PM

    Joel's Avatar

    Hi,

    The error you're encountering correlates to a misconfigured environment variable, which in this case is the BASEDIR for Cascade Server. What OS are you attempting to run Cascade on, and where is Cascade installed on this machine (directory wise)? Also, could you paste the exact output after you attempt to execute Cascade, as well are you cascade.sh or cascade.bat file depending on your OS?

    Thanks!

  2. 2 Posted by turnerjd on 09 Jul, 2010 01:30 PM

    turnerjd's Avatar

    Hi Joel,

    I think I have it figured out. I'm going to try again Monday morn. I didn't have execute permission on the tomcat bin directory files. I'm on RedHat 5. using cascade.sh . Exact output is:
    [root@cannon cascade]# ./cascade.sh start The BASEDIR environment variable is not defined correctly
    This environment variable is needed to run this program

  3. 3 Posted by jephperro2 on 09 Jul, 2010 11:12 PM

    jephperro2's Avatar

    Hi, by coincidence, I have the exact same problem today, trying to restart Cascade on Tomcat 6, on Red Hat.

    Java was using 99% of memory, so I had to kill the process. When I tried to restart it with ./cascade.sh I saw the same error:

    The BASEDIR environment variable is not defined correctly
    This environment variable is needed to run this program

    By the way, tomcat/bin/shutdown.sh and startup.sh were installed non-executable for me too.

  4. 4 Posted by jephperro2 on 09 Jul, 2010 11:26 PM

    jephperro2's Avatar

    Here is exactly what executing looks like for me.

    [root@cms_beta cascade-6.4.x]# cd /opt/cascade-6.4.x [root@cms_beta cascade-6.4.x]# ./cascade.sh The BASEDIR environment variable is not defined correctly
    This environment variable is needed to run this program

  5. 5 Posted by jephperro2 on 10 Jul, 2010 05:18 AM

    jephperro2's Avatar

    Problem Solved for me. You shouldn't use cascade.sh to start the application.

    You should start tomcat in the normal way using startup.sh

  6. 6 Posted by rrhill on 12 Jul, 2010 08:06 PM

    rrhill's Avatar

    So, is this resolved? We're getting ready to move to 6.7 under Linux. Is the "solution: just to use startup.sh rather than cascade.sh to start up cascade?

  7. 7 Posted by Joel on 13 Jul, 2010 12:53 PM

    Joel's Avatar

    The startup.sh script is the default start script for Tomcat instances, and not Cascade Server. I'm guessing that you either have script files (.sh) within your root Cascade or /tomcat/bin directories that do not have execute permissions associated with them.

    Please try the following command from your root Cascade directory, and let me know if it resolves your issue.

    #bash>  chmod -R +x *.sh
    

    Thanks!

  8. Tim closed this discussion on 30 Jul, 2010 08:51 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM