{"id":31922,"date":"2017-02-01T07:18:49","date_gmt":"2017-02-01T15:18:49","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/2019-1-2\/system-config-2\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/"},"modified":"2022-02-28T09:13:15","modified_gmt":"2022-02-28T16:13:15","slug":"linux-catalina-out-gets-too-big-to-open-in-text-editors","status":"publish","type":"docs","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/","title":{"rendered":"Linux Catalina.out Log Cannot be Opened in Text Editors"},"content":{"rendered":"

Issue Summary: I<\/strong>f INFO level debugging is enabled, the Catalina.out log in the Linux environment is too large before splitting and text editors cannot open the file.<\/p>\n

The following changes have been made to the installer script:<\/p>\n

    \n
  1. A new file logrotate.conf is added in {JavaAppServer}\/conf\/ folder.<\/li>\n
  2. In newly created file \u201clogrotate.conf\u201d, following content is written:<\/li>\n<\/ol>\n

     <\/p>\n

    \/[Transact Install Directory<\/em>]\/JavaAppServer\/logs\/catalina.out{<\/p>\n

    notifempty<\/p>\n

    copytruncate<\/p>\n

    missingok<\/p>\n

    rotate 10<\/p>\n

    size 20M<\/p>\n

    }<\/p>\n

    About the above configuration:<\/p>\n

      \n
    • Make sure that the path\u00a0\/[Transact Install Directory<\/em>]<\/strong>\/JavaAppserver<\/strong>\/logs<\/strong>\/<\/strong>catalina<\/strong>.<\/strong>out\u00a0<\/strong>above are adjusted to point to JavaAppServer\u2019s catalina.out<\/li>\n
    • rotate<\/strong>\u2013 keeps at most\u00a010<\/strong>\u00a0log files<\/li>\n
    • missingok<\/strong> \u2013<\/strong> If the log file is missing, go on to the next one without issuing an error message.<\/li>\n
    • size<\/strong>\u2013 rotates if the size of catalina.out is bigger than\u00a020M<\/strong><\/li>\n
    • copytruncate<\/strong> \u2013 copytruncate instruct logrotate to creates the copy of the original file (i.e rotate the original log file) and truncates the original file to zero byte size. This helps the respective service that belongs to that log file can write to the proper file.<\/li>\n<\/ul>\n

      Above command will be executed based on cron job through Ephesoft Transact. <\/strong>New properties are added in application.<\/strong>properties file :<\/strong><\/p>\n

      Linux:<\/strong><\/p>\n

      #Cron job to rotate JavaAppServer catalina.<\/strong>out logs and command
      \njavaappserver_log_rotation_cronjob_expression=<\/strong>0 *\/<\/strong>5 * <\/strong>? * *<\/strong>
      \njavaappserver_log_rotation_command=\/<\/strong>usr\/<\/strong>sbin\/<\/strong>logrotate —<\/strong>state=<\/strong>{Ephesoft–<\/strong>Install–<\/strong>Dir}\/<\/strong>JavaAppServer\/<\/strong>conf\/<\/strong>logrotate.<\/strong>status<\/p>\n

       <\/p>\n

      This logrotation will only work for Linux. <\/strong>A new bean has been added in Application\/<\/strong>applicationContext.<\/strong>xml file which should be enabled if the user requires log rotation of JavaAppServer catalina.<\/strong>out logs.<\/strong><\/p>\n

      <!– <\/strong>Un–<\/strong>comment it to start JavaAppServer logs rotation on this machine. —<\/strong>>
      \n<import resource=”<\/strong>classpath:\/<\/strong>META–<\/strong>INF\/<\/strong>applicationContext–<\/strong>log.<\/strong>xml” \/<\/strong>><\/p>\n

      Note<\/strong> : Above bean will be by default uncommented in Linux.<\/p>\n","protected":false},"featured_media":0,"parent":31916,"menu_order":2,"comment_status":"closed","ping_status":"open","template":"","doc_tag":[],"yoast_head":"\nLinux Catalina.out Log Cannot be Opened in Text Editors | Ephesoft Docs<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Catalina.out Log Cannot be Opened in Text Editors\" \/>\n<meta property=\"og:description\" content=\"Issue Summary: If INFO level debugging is enabled, the Catalina.out log in the Linux environment is too large before splitting […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-28T16:13:15+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/\",\"name\":\"Linux Catalina.out Log Cannot be Opened in Text Editors | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2017-02-01T15:18:49+00:00\",\"dateModified\":\"2022-02-28T16:13:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Transact\",\"item\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Features and Functions\",\"item\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Administrator Role and Features\",\"item\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"System Configuration\",\"item\":\"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"Linux Catalina.out Log Cannot be Opened in Text Editors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\",\"url\":\"https:\/\/ephesoft.com\/docs\/\",\"name\":\"Ephesoft Docs\",\"description\":\"Intelligent Document Processing Made Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ephesoft.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux Catalina.out Log Cannot be Opened in Text Editors | Ephesoft Docs","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"Linux Catalina.out Log Cannot be Opened in Text Editors","og_description":"Issue Summary: If INFO level debugging is enabled, the Catalina.out log in the Linux environment is too large before splitting […]","og_url":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/","og_site_name":"Ephesoft Docs","article_modified_time":"2022-02-28T16:13:15+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/","url":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/","name":"Linux Catalina.out Log Cannot be Opened in Text Editors | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2017-02-01T15:18:49+00:00","dateModified":"2022-02-28T16:13:15+00:00","breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/linux-catalina-out-gets-too-big-to-open-in-text-editors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Transact","item":"https:\/\/ephesoft.com\/docs\/products\/transact\/"},{"@type":"ListItem","position":3,"name":"Features and Functions","item":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/"},{"@type":"ListItem","position":4,"name":"Administrator Role and Features","item":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/"},{"@type":"ListItem","position":5,"name":"System Configuration","item":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/"},{"@type":"ListItem","position":6,"name":"Linux Catalina.out Log Cannot be Opened in Text Editors"}]},{"@type":"WebSite","@id":"https:\/\/ephesoft.com\/docs\/#website","url":"https:\/\/ephesoft.com\/docs\/","name":"Ephesoft Docs","description":"Intelligent Document Processing Made Easy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ephesoft.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs\/31922"}],"collection":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=31922"}],"version-history":[{"count":2,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs\/31922\/revisions"}],"predecessor-version":[{"id":50400,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs\/31922\/revisions\/50400"}],"up":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs\/31916"}],"next":[{"title":"Communication","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/communication\/","href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs\/31923"}],"prev":[{"title":"What do all of the service_type mean in the service_status table?","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/features-and-functions\/administrator\/system-configuration\/what-do-all-of-the-service_type-mean-in-the-service_status-table\/","href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/docs\/31921"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=31922"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/doc_tag?post=31922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}