Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5415

wildfly-init-debian.sh overwrites previous log

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 9.0.1.Final
    • Scripts
    • None
    • Hide

      Restart Wildfly on Ubuntu/Debian: service wildfly restart

      Open the /var/log/console.log, everything from before the restart is gone

      Show
      Restart Wildfly on Ubuntu/Debian: service wildfly restart Open the /var/log/console.log, everything from before the restart is gone

      We had to restart Wildfly on our Ubuntu 14.04 LTS server due to some issues with the application on top of it, and during the restart the init script wiped out our old logs and replaced them with the new logs, leaving us with none of the debugging information needed to track down our problem.

      It looks like this line is to blame in bin/init.d/wildfly-init-debian.sh:

      cat /dev/null > "$JBOSS_CONSOLE_LOG"

      Currently using wildfly-9.0.1.Final.

            [WFLY-5415] wildfly-init-debian.sh overwrites previous log

            Configure logging in logging subsystem to log to server.log only and not also to console.
            This way you wont lose anything and it will also perform better.

            Tomaž Cerar (Inactive) added a comment - Configure logging in logging subsystem to log to server.log only and not also to console. This way you wont lose anything and it will also perform better.

            you should be using server.log not console.log for everything that server logs.
            console is primarily useful for development but can cause severe performance hit when used in production.

            Tomaž Cerar (Inactive) added a comment - you should be using server.log not console.log for everything that server logs. console is primarily useful for development but can cause severe performance hit when used in production.

              tomazcerar Tomaž Cerar (Inactive)
              elizabethkrumbach Elizabeth Joseph (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: