+ Reply to Thread
Results 1 to 3 of 3

Thread: ES 5.3.2 on Debian, first time, doesn't start due to java.io.FileNotFoundException

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    ES 5.3.2 on Debian, first time, doesn't start due to java.io.FileNotFoundException

    Hi. First time trying to use ES5. I used the .deb package that includes the JVM and installed it on my Debian Lenny server. When I try to start ES, I get this output:

    $ ./Start_ElectroServer_5_3_2
    testing JVM in /opt/ElectroServer5.3.2/jre ...
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: logs/ElectroServer5.log (No such file or directory)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender .java:289)
    at org.apache.log4j.FileAppender.activateOptions(File Appender.java:163)
    at org.apache.log4j.DailyRollingFileAppender.activate Options(DailyRollingFileAppender.java:215)
    at org.apache.log4j.config.PropertySetter.activate(Pr opertySetter.java:256)
    at org.apache.log4j.config.PropertySetter.setProperti es(PropertySetter.java:132)
    at org.apache.log4j.config.PropertySetter.setProperti es(PropertySetter.java:96)
    at org.apache.log4j.PropertyConfigurator.parseAppende r(PropertyConfigurator.java:654)
    at org.apache.log4j.PropertyConfigurator.parseCategor y(PropertyConfigurator.java:612)
    at org.apache.log4j.PropertyConfigurator.configureRoo tCategory(PropertyConfigurator.java:509)
    at org.apache.log4j.PropertyConfigurator.doConfigure( PropertyConfigurator.java:415)
    at org.apache.log4j.PropertyConfigurator.doConfigure( PropertyConfigurator.java:441)
    at org.apache.log4j.PropertyConfigurator.configure(Pr opertyConfigurator.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.electrotank.electroserver5.bootstrap.Main.conf igureLog4J(Main.java:82)
    at com.electrotank.electroserver5.bootstrap.Main.star t(Main.java:57)
    at com.electrotank.electroserver5.bootstrap.Main.main (Main.java:41)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.launcher.Launcher.main(Unkno wn Source)
    log4j:ERROR Either File or DatePattern options are not set for appender [file].
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: logs/Console.log (No such file or directory)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender .java:289)
    at org.apache.log4j.FileAppender.activateOptions(File Appender.java:163)
    at org.apache.log4j.DailyRollingFileAppender.activate Options(DailyRollingFileAppender.java:215)
    at org.apache.log4j.config.PropertySetter.activate(Pr opertySetter.java:256)
    at org.apache.log4j.config.PropertySetter.setProperti es(PropertySetter.java:132)
    at org.apache.log4j.config.PropertySetter.setProperti es(PropertySetter.java:96)
    at org.apache.log4j.PropertyConfigurator.parseAppende r(PropertyConfigurator.java:654)
    at org.apache.log4j.PropertyConfigurator.parseCategor y(PropertyConfigurator.java:612)
    at org.apache.log4j.PropertyConfigurator.parseCatsAnd Renderers(PropertyConfigurator.java:533)
    at org.apache.log4j.PropertyConfigurator.doConfigure( PropertyConfigurator.java:417)
    at org.apache.log4j.PropertyConfigurator.doConfigure( PropertyConfigurator.java:441)
    at org.apache.log4j.PropertyConfigurator.configure(Pr opertyConfigurator.java:336)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.electrotank.electroserver5.bootstrap.Main.conf igureLog4J(Main.java:82)
    at com.electrotank.electroserver5.bootstrap.Main.star t(Main.java:57)
    at com.electrotank.electroserver5.bootstrap.Main.main (Main.java:41)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.launcher.Launcher.main(Unkno wn Source)
    log4j:ERROR Either File or DatePattern options are not set for appender [sysout].
    12:34:23,502 [main] INFO DisplayLogger -
    _____ _ _ ____
    | ____| | ___ ___| |_ _ __ ___ ___ ___ _ ____ _____ _ __ | ___|
    | _| | |/ _ \/ __| __| '__/ _ \/ __|/ _ \ '__\ \ / / _ \ '__| |___ \
    | |___| | __/ (__| |_| | | (_) \__ \ __/ | \ V / __/ | ___) |
    |_____|_|\___|\___|\__|_| \___/|___/\___|_| \_/ \___|_| |____/

    Starting ElectroServer 5.3.2
    Go to http://www.electrotank.com/ for the latest version.
    ################################################## #########
    Computer Information
    Operating System: Linux
    Operating System Architecture: i386
    Processors Available: 1
    Memory Available: 123Mb
    ################################################## #########
    Virtual Machine Information
    Virtual Machine Vendor: Sun Microsystems Inc.
    Virtual Machine Version: 1.6.0_25

    So did the server start successfully, or no? Where should I start looking for the cause of the problem?

    Thanks!

  2. #2
    Former Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,664
    Thanks
    83
    Thanked 1,163 Times in 1,151 Posts
    Check your file permissions. If it can't find logs/ElectroServer5.log that's because ES5 didn't have permission to create the server/logs directory and/or create a file in that directory. You might want to chmod 755 the entire server directory and all subdirectories.
    Teresa Carrigan
    Senior Software Developer
    Janus Research Group, Inc.
    previously
    Senior Engineer
    Electrotank, Inc.

  3. The Following User Says Thank You to tcarr For This Useful Post:

    richjoslin (04-26-2012)

  4. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Ah, yes. It was installed as root, and I was trying to start it with another ssh user. sudo did the trick. No permissions changes needed. Thanks!

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts