chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Chicken Scheme 3 extension dependency problem


From: Paul Nelson
Subject: Re: [Chicken-users] Chicken Scheme 3 extension dependency problem
Date: Tue, 22 Feb 2011 21:39:19 -0600

I think I must be very close to having qwiki installed and I am probably doing something silly in one of my scripts. I'm hoping someone might notice something incorrect in one of two scripts below:

First, the script that is run to initialize qwiki (this script comes after initializing and starting an estraier DB, creating a Subversion repository, and creating/adding a Subversion post-commit hook script):

-----

cat <<EOF | csi > ~ubuntu/logs/qwiki_init.log 2>&1
(use qwiki qwiki-install qwiki-svn)

;; the URI for the subversion repository from where a copy can be
;; checked out
(qwiki-repos-uri "file:///var/qwiki_data/svn_repo")

;; the path to where the checkout of the repository will be stored
(qwiki-source-path "/var/qwiki_data/svn_source")

;; the path used by the web server to serve wiki pages
(qwiki-web-path "/var/www/html")

;; install qwiki
(qwiki-install!)

EOF

-----

NOTE: This script is run as root.

The last step my install script (https://github.com/Pablosan/ec2_create_instance/blob/master/qwiki_instance.sh) performs is to create the following script (again, done as root) for starting spiffy:

-----

cat <<"EOF" | sudo tee /etc/init.d/spiffy
#! /usr/bin/csi -:a100 -s

(use spiffy qwiki qwiki-search qwiki-menu qwiki-svn)

;; If you don't want these extensions, remove them from this script
(search-install!)
(menu-install!)

(qwiki-source-path "/var/qwiki_data/svn_source")
(qwiki-css-file "/qwiki.css")

;; Ensure this is an absolute path, if you are using Chicken 4.1 or earlier
(root-path "/var/www/html/qwiki")

;; Pass all requests to non-existent files through qwiki:
(vhost-map `((".*" . ,(lambda (continue)
                      (parameterize ((handle-not-found qwiki-handler)
                                     (handle-directory qwiki-handler)
                                     (index-files '()))
                                     (continue))))))

(start-server)

EOF

-----

Finally, I run this last script by typing "sudo /etc/init.d/spiffy" and the web server starts up on port 8080 as expected, but I get a 500 error when attempting to access qwiki from a browser. Spiffy gives the following error:

[Fri Feb 18 21:29:57 2011] "GET http://ec2-50-17-56-189.compute-1.amazonaws.com:8080/ HTTP/1.1" Error: (symbolic-link?)
cannot access file - No such file or directory
/var/qwiki_data/svn_source/index

There you have it! As always, any input is greatly appreciated!

Cheers,
Paul Nelson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]