{"id":10157,"date":"2023-07-18T22:18:07","date_gmt":"2023-07-19T03:18:07","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=10157"},"modified":"2023-07-20T15:11:50","modified_gmt":"2023-07-20T20:11:50","slug":"tableau-upgrade-failure","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=10157","title":{"rendered":"Tableau Upgrade Failure"},"content":{"rendered":"<p>Attempting to upgrade Tableau from 2021.something to 2022.3.5 repeatedly failed with the following error in the upgrade log:<\/p>\n<p><tt>Failed with the error \"Detected the old version of Tableau Server takes precedence on the system PATH\".<\/tt><\/p>\n<p>&nbsp;<\/p>\n<p>And there were all sorts of things online to try &#8212; most of which involved changing the environment variables Tableau sets. But they weren&#8217;t <em>wrong<\/em> &#8230; or, rather, it was impossible to tell which was &#8220;right&#8221;: the new version I was trying to install or the old version that was still running. On a whim, I thought I&#8217;d try an admin-level command prompt. Opening the command prompt with the &#8220;Run as administrator&#8221; option allowed me to upgrade the server.<\/p>\n<p>Except &#8230; I upgraded another server the next night. I <em>knew<\/em> to launch the command prompt in administrator mode, but I was incredibly dismayed to encounter the <em>exact same error<\/em>. Even using an admin level command prompt. Then it occurred to me &#8212; Windows evaluates the environment variables when you launch the shell (in fairness, every Unix\/Linux variant I&#8217;ve encountered does the same thing). The installer must be <em>changing<\/em> the Tableau environment variables. If you use a command prompt that was open prior to running the installer &#8230; you don&#8217;t have the new values. You have the old ones &#8212; so the environment variable, as seen by the upgrade script, <em>is<\/em> pointing to an older version of Tableau. Launch a new command prompt, re-evaluate the environment variables, and the script now sees the proper version. Hopefully my next upgrade won&#8217;t include a panic inducing &#8220;yeah, that&#8217;s not gonna happen&#8221; error!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attempting to upgrade Tableau from 2021.something to 2022.3.5 repeatedly failed with the following error in the upgrade log: Failed with the error &#8220;Detected the old version of Tableau Server takes precedence on the system PATH&#8221;. &nbsp; And there were all sorts of things online to try &#8212; most of which involved changing the environment variables &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1852],"tags":[1822],"class_list":["post-10157","post","type-post","status-publish","format-standard","hentry","category-tableau","tag-tableau"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10157"}],"version-history":[{"count":4,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10157\/revisions"}],"predecessor-version":[{"id":10173,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10157\/revisions\/10173"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}