{"componentChunkName":"component---node-modules-gatsby-theme-blog-core-src-templates-post-query-js","path":"/tomcat-configs-to-backup-for-dsm6-update/","result":{"data":{"site":{"siteMetadata":{"title":"one melo a day","social":[{"name":"twitter","url":"https://twitter.com/melo0187"},{"name":"github","url":"https://github.com/melo0187"}]}},"blogPost":{"__typename":"MdxBlogPost","id":"813587e7-b54b-5e14-82e0-f7d624874c71","excerpt":"The Tomcat configurations you can lose during the DSM 6 Update","body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"layout\": \"post\",\n  \"title\": \"DSM 6 Adventures: Restoring Tomcat\",\n  \"author\": \"melo\",\n  \"date\": \"2016-05-01T18:59:47.000Z\",\n  \"categories\": [\"DiskStation\", \"Technical\", \"Tomcat\"],\n  \"slug\": \"tomcat-configs-to-backup-for-dsm6-update\",\n  \"excerpt\": \"The Tomcat configurations you can lose during the DSM 6 Update\",\n  \"draft\": false,\n  \"meta_title\": \"DSM 6 Adventures: Restoring Tomcat\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Finally here it is, the third post in my DSM 6 Adventures series. I described \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://melo.myds.me/wordpress/explosive-dsm-6-update\"\n  }), \"what went wrong during the update\"), \" and the required steps I took to \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://melo.myds.me/wordpress/restoring-wordpress-after-dsm-6-update\"\n  }), \"get this blog up and running again\"), \". This time it is Tomcat\\u2019s turn. In case you run Tomcat 7 and plan to update to DSM 6, read along and prepare to backup some configuration files.\"), mdx(\"h2\", {\n    \"id\": \"what-the-update-will-wipe\"\n  }, \"What the update will wipe\"), mdx(\"p\", null, \"I am going to make this quick, since I do not know any means to prevent the loss of Tomcat configuration files during the update. So I will just summarize the files you need to backup, so you can restore your settings after the update, instead of restarting from scratch. Here is the list of files that got lost during my update from DSM 5.2 to 6.0: The \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"web.xml\"), \" file, which for me is located in  \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"/volume1/@appstore/Tomcat7/src/webapps/manager/WEB-INF/\"), \"  got lost. I edited the max-file-size attribute in there to host Jenkins. The \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"context.xml\"), \" in  \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"/volume1/@appstore/Tomcat7/src/conf/\"), \"  got lost, too. This is where I configure the environment variables that declare the path to the home folders for my Jenkins and GitBlit installations. Last file you want to back up is the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"server.xml\"), \", which I found in  \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"/volume1/@appstore/Tomcat7/src/conf/\"), \" . This is were I defined the encoding and HTTPS for the port 8443 connector in the past and where I define the encoding and reverse proxy attributes in the port 7070 connector at the moment.\"), mdx(\"h2\", {\n    \"id\": \"be-sure-to-backup\"\n  }, \"Be sure to backup\"), mdx(\"p\", null, \"These are the 3 files I lost during the update (while others were preserved for some reason\", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"#fn-150-1\"\n  }), \"1\"), \") and since I made some necessary changes to them, losing them during the update made quite a difference. However I can not guarantee that these are the only 3 files that get wiped by the update. So if you have modified other configuration files, be on the safe side and add them to your backup, too. Also, if you noticed other files getting lost during the update, feel free to share in the comments.\"), mdx(\"h2\", {\n    \"id\": \"upcoming\"\n  }, \"Upcoming\"), mdx(\"p\", null, \"Next post in line for this DSM 6 Adventures series will be about Piwik, since the DSM 6 update messed with that, too. After that one I will have something positive to share about DSM 6, finally, namely the Let\\u2019s Encrypt integration for easy certificate creation and the use of the new reverse proxy feature, which can be used for HTTPS access to your DiskStation, DSM apps like Audio, Video and Photo Station and to Tomcat, without the need to configure HTTPS in multiple places.\"), mdx(\"hr\", null), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"For the record: The \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"tomcat-users.xml\"), \" in  \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"/volume1/@appstore/Tomcat7/src/conf/\"), \"  was preserved. Same goes for the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"setenv.sh\"), \" in  \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"/volume1/@appstore/Tomcat7/src/bin\"), \" , where I define CATALINA\", \"_\", \"OPTS to \", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"http://gitblit.com/faq.html#H10\"\n  }), \"ALLOW\", \"_\", \"ENCODED\", \"_\", \"SLASH for GitBlit URLs to work correctly\"), \".\\xA0\", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"#fnref-150-1\"\n  }), \"\\u21A9\"))));\n}\n;\nMDXContent.isMDXComponent = true;","slug":"/tomcat-configs-to-backup-for-dsm6-update/","title":"DSM 6 Adventures: Restoring Tomcat","tags":[],"keywords":[],"date":"May 01, 2016"},"previous":{"__typename":"MdxBlogPost","id":"30fe04a3-f24a-5f44-958b-8df0acf146b9","excerpt":"What I did to restore my WordPress blog after the DSM 6 Update","slug":"/restoring-wordpress-after-dsm-6-update/","title":"DSM 6 Adventures: Restoring WordPress","date":"April 14, 2016"},"next":{"__typename":"MdxBlogPost","id":"452c8961-03cc-5f64-bb2b-1eb34800b2de","excerpt":"How to fix Piwik after updating to DSM 6","slug":"/fix-piwik-after-dsm6-update/","title":"DSM 6 Adventures: Fixing Piwik","date":"May 15, 2016"}},"pageContext":{"isCreatedByStatefulCreatePages":false,"id":"813587e7-b54b-5e14-82e0-f7d624874c71","previousId":"30fe04a3-f24a-5f44-958b-8df0acf146b9","nextId":"452c8961-03cc-5f64-bb2b-1eb34800b2de"}}}