{"id":1506,"date":"2009-09-22T19:21:17","date_gmt":"2009-09-22T19:21:17","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=1506"},"modified":"2019-01-04T16:41:14","modified_gmt":"2019-01-04T16:41:14","slug":"snipsnap-problems","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/snipsnap-problems\/","title":{"rendered":"Snipsnap Problems"},"content":{"rendered":"<p>This was copied across from the snipsnap bliki on 26th July. It&#8217;s all a bit redundant now, but it might be useful for others. This was a pagfe that documented my work in building the configuration and in some places represented a work in progress. In some cases, the resolution is not documented and in others I failed to resolve it. I eventually <a href=\"https:\/\/davelevy.info\/wiki\/why-i-gave-up-on-snipsnap\/\">gave up on snipsnap<\/a>. Hope this page helps someone!<!--more--><\/p>\n<h3>Knickers in a Twist<\/h3>\n<p>Too often snipsnap becomes unavailable, sometimes, the ssh daemon is available, and sometimes, it isn&#8217;t. Today, a reboot of the snipsnap server doesn&#8217;t recover the situation.<\/p>\n<ul>\n<li>snipsnapmgr.sh&#8217;s stop function needs to be repaired. It doesn&#8217;t work.<\/li>\n<li>can we discover the error condition and log browse for it<\/li>\n<\/ul>\n<h4>Auto Navigator<\/h4>\n<p>How does Snipsnap populate the grey button bars underneath the page.<\/p>\n<h4>Green Robot Theme &amp; Images<\/h4>\n<p>The class rules for the images don&#8217;t seem to be included in the HTML pages. They are held in wiki.css. I wonder if this is because my source for the theme was sub standard. It also looks like there is a problem with print.css for <b>Green Robot<\/b>. On <i>22nd Sept 2009<\/i>, I was trying to get the table macro to work. I discovered that I can&#8217;t change themes on this wiki. The visible theme in snipsnap, via the snipsnap interface is Green Robot V2, while the installed version at boot time is &#8220;Green Robot&#8221;. In order to force a new look and feel I edited the content.txt file using vi in the Green Robot theme file system tree. I suspect this problem is related to my failure so far to install a print.css file. I am unsure what the cause is. It doesn&#8217;t look like fielsystem permissions. The themes are held in<\/p>\n<div>\n<pre>..\/files\/${GENERATED_KEY}\/snips\/SnipSnap\/themes<\/pre>\n<\/div>\n<h4>Index Repair<\/h4>\n<p>This seems to be shagged. I don&#8217;t think I have tested this since I implemented the Java server version. I need to retest it.<\/p>\n<h4>RSS<\/h4>\n<p>Why doesn&#8217;t the XML button refer to the snip its located on? How do we publish a n RSS stream for a single snip? Looks like you can&#8217;t.<\/p>\n<p><i>Seemed fixed in 1.0b3 Java version<\/i> and now while displaying a URL that implies only the page changes should be displayed, it is now resolving as the blog feed.<\/p>\n<p>This is how it was designed, it&#8217;s also hard coded. See &#8220;<a title=\"Permalink to Maybe snipsnap is not the answer\" href=\"http:\/\/blog.davelevy.info\/2011\/06\/19\/maybe-snipsnap-is-not-the-answer\/\">Maybe snipsnap is not the answer&#8221; <\/a>on my blog.<\/p>\n<h3>Fixed<\/h3>\n<h4>August Rebuild<a name=\"ar2008\"><\/a><\/h4>\n<p>This was done in August 2008. This is what I did.<\/p>\n<ol>\n<li>stop the server<\/li>\n<li>take a safety copy of the database mv ..\/files<\/li>\n<li>take a copy of my custom theme resource file, $HOME\/applications\/webapp\/WEB-INF\/themes<\/li>\n<li>reset the Firewall to permit the default snipsnap port<\/li>\n<li>reset the httd.conf file to turn proxying off. I restored the orginal and then forced an httpd reload<\/li>\n<li>delete ${HOME}\/.java\/*<\/li>\n<li>run.sh and then minimally initialise the snipsnap instance on the default port.<\/li>\n<li>close the server, then move and relink the files directory. The link is between the database root node and needs the same name in ${HOME}. The directory name is a long string of numbers and hyphens.<\/li>\n<li>import the backup<\/li>\n<li>copy the theme resource into ~\/theme directory and reset the theme<\/li>\n<li>reset the proxy file<\/li>\n<li>reset the firewall to close the default port<\/li>\n<\/ol>\n<p>I forgot to copy HTMLmacro.jar to ${database_root}\/applications\/webapp\/WEB-INF\/lib. I did this on the 21st.<\/p>\n<h4>Database Volume<a name=\"dbv\"><\/a><\/h4>\n<p>I have moved the database files to the \/home volume. I use the file system as my database store.<\/p>\n<ul>\n<li>Login into the snipsnap user<\/li>\n<li>ensure the snipsnap daemon is not running<\/li>\n<li>take a safety copy<\/li>\n<\/ul>\n<div>\n<pre>cd $HOME\r\ncd .\/applications\/_8668_\/webapp\/WEB-INF\r\nfind .\/files -print | cpio -pvdum \/home\/snipsnap\r\n\r\ncd \/home\/snipsnap \r\ntar zcf dbfiles-safety.tar.gz files<\/pre>\n<\/div>\n<ul>\n<li>the above code has left a one compressed copy and one uncompressed copy which are both in \/home\/snipsnap\/, the compressed is dbfiles-safety.tar.gz and the new database is in .\/files<\/li>\n<li>delete the original .\/files directory<\/li>\n<\/ul>\n<div>\n<pre>cd $HOME\r\ncd .\/applications\/_8668_\/webapp\/WEB-INF\r\nrm -rf .\/files<\/pre>\n<\/div>\n<ul>\n<li>symbolically link the copied files directory to<\/li>\n<\/ul>\n<div>\n<pre>cd $HOME\r\ncd .\/applications\/_8668_\/webapp\/WEB-INF\r\nln -s \/home\/snipsnap\/files .\/files<\/pre>\n<\/div>\n<h4>Backup<\/h4>\n<p>I need to do a command line backup to allow this to be scheduled. I have checked out <a href=\"http:\/\/www.snipsnap.org\/comments\/Backup+and+Restore\">Snipsnap&#8217;s B&amp;R snip<\/a> which offers a solution that needs access to <i>snipsnap-utils.jar<\/i> which is <b>not<\/b> in my lib folder. Is this a .war problem?<\/p>\n<p><i>Fixed in 1.0b3 Java version, I need to document this more fully and will on <a href=\"http:\/\/www.snipsnap.org\">http:\/\/www.snipsnap.org<\/a><\/i><\/p>\n<p>I am now out of memory. The auto backup doesn&#8217;t work now.<\/p>\n<h3>Proxy Server Configuration<\/h3>\n<p>I really want to fix this and get rid of the 8080 port visbility, I also want to shorten the URL.<\/p>\n<p><i>Seems fixed in 1.0b3 Java version<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This was copied across from the snipsnap bliki on 26th July. It&#8217;s all a bit redundant now, but it might be useful for others. This was a pagfe that documented my work in building the configuration and in some places represented a work in progress. In some cases, the resolution is not documented and in&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[27,3],"tags":[493,495,251,496,1184,39,497,101,494,492,167,119,29,920,911,127],"class_list":["post-1506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-technology","tag-auto-navigator","tag-backup","tag-css","tag-database","tag-deprecated","tag-file-system","tag-housekeeping","tag-images","tag-index-repair","tag-problems","tag-proxy-server","tag-rss","tag-snipsnap","tag-software","tag-technology","tag-themes"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2009\/07\/snipsnap4nulis-w650x200.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=1506"}],"version-history":[{"count":5,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1506\/revisions"}],"predecessor-version":[{"id":2762,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1506\/revisions\/2762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/4125"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}