[support] Fixes for HAiku & Homeguy
Romain KUNTZ
kuntz at lsiit.u-strasbg.fr
Sat Mar 21 00:33:54 JST 2009
Hi Martin,
We have setup an operational home agent service at the University of
Strasbourg. We used HAiku 0.3.1 and Homeguy. It now works pretty well!
Here are some feedback and bugfixes you may consider to improve the
documentation & the software:
* Installation procedure:
- At the end of the "Create the database" section, the "rake" command
must be executed. It however fails if the "environments/
user_environment" file has not been created yet. This is done a bit
later in the document (in the "Configure HAiku" section), so you
should move that section or reference it.
- The "database.yml" must be readable by the www user. Similarly, the
"log/" dir must be writable by the www user. You may explicitly say it
in the document.
- The Homeguy section ("On the Live CD server") lacks a bit of detail
on how to use the
homeguy release. After text about retrieving the homeguy-latest.tar.gz
package, I would suggest to explain how to use that package (the iso
must be mounted and its content must be copied in a directory called
"master"):
# mount -o loop homeguy-master-1_0.iso /mnt/
$ cd ~/live-cd
$ mkdir master
$ cp -a /mnt/* master/
# umount /mnt
- You may add a few notes about the mail server configured on the
HAiku server. Especially, it has to be configured and running before
the first attempt to register on HAiku. In case the mail server was
not configured properly, it can be interesting to say in the document
that the production.log logs a copy of the sent email (which contains
the account validation link).
- The link [10] should be replaced with "http://wiki.rubyonrails.org/"
* HAiku bugs
- In the "db/migrate/001_version01.rb" file, the security_associations
table uses fields whose size is 0 (for the encryption_algo and the
authentication_algo fields). This prevented the values of these fields
to be saved in the database (the column remains empty). As a result,
the ipsec.conf files for the MN are wrong (no algorithm appeared). I
have changed the ":limit => 0" to ":limit => 64" for both fields, now
it works fine. We use MySQL 5, which might be the reason why a value
of 0 is not accepted.
- Once HAiku is running, the first registered user becomes the admin.
Once logged, the admin can configure some parameters for the Home
Agent (HA address, etc.). Submitting these new parameters list throws
an error (the configuration is however correctly saved): I've enclosed
the output from the production log to this mail. The error is quite
explicit (a redirect function is called twice in
home_agents_controller.rb) - however I didn't try to correct it.
- The rails function "truncate()" has some issues on rails 2.0.2 (see
the enclosed log). I wanted to keep version 2.0.2, so a simple fix is
to redefine the function at the end of the "config/environment.rb" file:
# Function defined to solve the truncate problem on rails 2.0.2
module ActionView
module Helpers
module TextHelper
def truncate(text, length = 30, truncate_string = "...")
if text.nil? then return end
l = length - truncate_string.chars.to_a.size
(text.chars.to_a.size > length ?
text.chars.to_a[0...l].join + truncate_string : text).to_s
end
end
end
end
* HomeGuy bugs
- The "master/conf-setup/01-mip6.sh" script uses a test ("if
[ $CUR_PREF == 1]; ...") which provokes an error on boot. It should be
changed to "if [ $CUR_PREF -eq 1]; ...".
* op-ha.nautilus6.org
A quick note on your Operational home agent service (op-
ha.nautilus6.org). From France it takes a really long time to access
the web server: it's unreachable in IPv6, and I've got around 15sec.
delay in IPv4. Also, the certificate has expired one year ago, you may
want to renew it.
* Miscs:
Small typos in the following documents:
- http://www.nautilus6.org/doc/dk-howto/Howto_dynamic_keying.html#Configuring_racoon2_on_the_Home_Agent
- http://www.nautilus6.org/~sdecugis/dynamic_keying/Howto_dynamic_keying.html#Configuring_racoon2_on_the_Home_Agent
A quote is missing at the end of the following line:
spmd { unix "/var/run/racoon2/spmif; };
It should be:
spmd { unix "/var/run/racoon2/spmif”; };
Thanks,
--
Romain KUNTZ
kuntz at lsiit.u-strasbg.fr
LSIIT - Networks and Protocols Team
http://clarinet.u-strasbg.fr/~kuntz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: haiku-config-error.log
Type: application/octet-stream
Size: 2917 bytes
Desc: not available
Url : http://ml.nautilus6.org/pipermail/support/attachments/20090320/ee3daec2/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: haiku-truncate-error.log
Type: application/octet-stream
Size: 604 bytes
Desc: not available
Url : http://ml.nautilus6.org/pipermail/support/attachments/20090320/ee3daec2/attachment-0001.obj
-------------- next part --------------
More information about the Support
mailing list