{"id":681,"date":"2024-07-28T12:16:15","date_gmt":"2024-07-28T18:16:15","guid":{"rendered":"https:\/\/thecweb.com\/?p=681"},"modified":"2024-07-28T12:16:15","modified_gmt":"2024-07-28T18:16:15","slug":"guacamole-day-2","status":"publish","type":"post","link":"https:\/\/thecweb.com\/index.php\/2024\/07\/28\/guacamole-day-2\/","title":{"rendered":"Guacamole &#8211; Day 2"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"275\" src=\"https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-1-1024x275.png\" alt=\"\" class=\"wp-image-682\" srcset=\"https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-1-1024x275.png 1024w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-1-300x81.png 300w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-1-768x206.png 768w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-1-1536x413.png 1536w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-1-2048x550.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>So&#8230; Now that I&#8217;m back at it I can load the test page but the highlighted links give me a Tomcat 404 error page, so something is wrong.  I found this guide to setting up Tomcat on Ubuntu LTS 22 <a href=\"https:\/\/medium.com\/@madhavarajas1997\/installing-apache-tomcat-on-ubuntu-22-04-08c8eda52312\" data-type=\"link\" data-id=\"https:\/\/medium.com\/@madhavarajas1997\/installing-apache-tomcat-on-ubuntu-22-04-08c8eda52312\">here<\/a>.  First I need to a user setup in \/etc\/tomcat9\/tomcat-users.xml.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;\/tomcat-users>\n        &lt;role rolename=\"admin-gui\"\/>\n\n        &lt;role rolename=\"manager-gui\"\/>\n\n        &lt;user username=\"tomcat\" password=\"pass\" roles=\"admin-gui,manager-gui\"\/><\/code><\/pre>\n\n\n\n<p>That should do the ticket for testing purposes.  So &#8216;systemctl restart tomcat9&#8217; and see what we get!<\/p>\n\n\n\n<p>Nope.  Still 404.  I browsed through the server.xml config file and didn&#8217;t see anything wrong&#8230;  Maybe I should confirm those files actually exist.  I checked \/var\/www but nothing there, although I did notice that for some reason all users had write access to \/var\/www\/thecweb.com (which is something a fucking moron would do if they ran into a permissions issue setting up their website&#8230;)   So &#8216;chmod go-w thecweb.com&#8217;.  <\/p>\n\n\n\n<p>Back to tomcat!  After some googling to find out where the missing files should be on disk I found that they simply weren&#8217;t in \/usr\/share like they should be.  And &#8216;apt list &#8211;installed | grep tomcat&#8217; finally gave me my answer!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cweb@thecweb:\/var\/lib\/tomcat9\/webapps\/ROOT\/META-INF$ apt list --installed | grep tomcat\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nlibtomcat9-java\/jammy-updates,now 9.0.58-1ubuntu0.1 all &#91;installed,automatic]\ntomcat9-common\/jammy-updates,now 9.0.58-1ubuntu0.1 all &#91;installed,automatic]\ntomcat9\/jammy-updates,now 9.0.58-1ubuntu0.1 all &#91;installed]\n<\/code><\/pre>\n\n\n\n<p>I somehow only managed to install tomcat9 and tomcat9-common packages.  So I installed the missing packages and voila!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"206\" src=\"https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-2-1024x206.png\" alt=\"\" class=\"wp-image-683\" srcset=\"https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-2-1024x206.png 1024w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-2-300x60.png 300w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-2-768x154.png 768w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-2-1536x309.png 1536w, https:\/\/thecweb.com\/wp-content\/uploads\/2024\/07\/image-2-2048x412.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>I&#8217;m going to take a break for now, but there is a small change I&#8217;ll jump back in later.  It&#8217;s only 1  pm&#8230;  And I&#8217;d like to get this running before my next work week starts.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>So&#8230; Now that I&#8217;m back at it I can load the test page but the highlighted links give me a Tomcat 404 error page, so something is wrong. I found this guide to setting up Tomcat on Ubuntu LTS 22 here. First I need to a user setup in \/etc\/tomcat9\/tomcat-users.xml. That should do the ticket [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":683,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[30],"class_list":["post-681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-tinkering"],"_links":{"self":[{"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/posts\/681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":1,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/posts\/681\/revisions"}],"predecessor-version":[{"id":684,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/posts\/681\/revisions\/684"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/media\/683"}],"wp:attachment":[{"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}