Far McKon | 7 Jun 2007 23:03
Picon

More build issues

OK,
So I'm moved to philly, and back to setting up Sapling for a local
wiki here.  I'm back in trouble.

For backgound, when I left off I was needing to build
mysql-python-1.2.1_p2 manually because the default mysql-python in the
Ubuntu 6.06 repo is too old.   I just grabbed the source, and other
packages, built mysql-python-1.2.1_p2 (via the README instructions)
and installed it (via the README instructions).

Now, when I run "python buildDB.py" in the Sycamore directory, I get
new and interesting errors pasted below.

I'm looking into it myself, but I don't see right off what/where those
are coming from,or what to do.  If someone could help me out, that
would be sweet, and save some wasted time on my end.

- Far

philawiki <at> philawiki:/hosted/sapling_base/Sycamore$ sudo python buildDB.py
Traceback (most recent call last):
  File "buildDB.py", line 7, in ?
    from Sycamore import wikidb, config, wikiutil, maintenance
  File "/hosted/sapling_base/Sycamore/wikidb.py", line 17, in ?
    dbapi_module = __import__("MySQLdb")
  File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line 34, in ?
    from sets import ImmutableSet
ImportError: cannot import name ImmutableSet
Far McKon | 7 Jun 2007 23:09
Picon

Re: More build issues

The fix instructions at
http://code.djangoproject.com/wiki/InstallationPitfalls seemed to do
the job.......  now on to the next error.

BTW, I'm logging this to projectsycamore.org, so help me god.

- Far

On 6/7/07, Far McKon <farmckon@...> wrote:
> OK,
> So I'm moved to philly, and back to setting up Sapling for a local
> wiki here.  I'm back in trouble.
>
> For backgound, when I left off I was needing to build
> mysql-python-1.2.1_p2 manually because the default mysql-python in the
> Ubuntu 6.06 repo is too old.   I just grabbed the source, and other
> packages, built mysql-python-1.2.1_p2 (via the README instructions)
> and installed it (via the README instructions).
>
> Now, when I run "python buildDB.py" in the Sycamore directory, I get
> new and interesting errors pasted below.
>
> I'm looking into it myself, but I don't see right off what/where those
> are coming from,or what to do.  If someone could help me out, that
> would be sweet, and save some wasted time on my end.
>
> - Far
>
> philawiki <at> philawiki:/hosted/sapling_base/Sycamore$ sudo python buildDB.py
> Traceback (most recent call last):
(Continue reading)

Far McKon | 10 Jun 2007 17:26
Picon

Philawiki.net up and runnin'

Philawiki.net is up and running, but I'm not putting out the word on
it yet. There are a few things I want to update, templates to make,
etc before I take it 'live'.

 I'm also hoping to get the Philawiki.com redirect up soon, and get
googlegroup setup.

Thanks to the sycamore folks for the help getting things up, I'll be
wikifying things I ran into on Projectsycamore.org over the next week.

- Far
Far McKon | 12 Jun 2007 16:29
Picon

AdminGroup borked on new wiki

When I try to add items to AdminGroup, I get the included error. now,
if I save the page with no changes, it saves it without error (but
puts up a 'can't save blank' message).

Anyone else run into this?  I Made a couple of trackers issues for
other things, but I figured this might be myown dammed fault, so I'd
ask the list before making an issue.

- Far
--------- Error Message ---------------

 --> -->

Traceback (most recent call last):
  File "/hosted/sapling_base/Sycamore/request.py", line 499, in run
    wikiutil.getSysPage(self, config.page_front_page).page_name, self)
  File "/hosted/sapling_base/Sycamore/wikiaction.py", line 792, in do_savepage
    comment=comment)
  File "/hosted/sapling_base/Sycamore/PageEditor.py", line 703, in saveText
    self.updateGroups()
  File "/hosted/sapling_base/Sycamore/PageEditor.py", line 729, in updateGroups
    dicts.scandicts(force_update=True, update_pagename=self.page_name)
  File "/hosted/sapling_base/Sycamore/wikidicts.py", line 311, in scandicts
    pickle.dump(data, open(picklefile, 'w'), True)
IOError: [Errno 13] Permission denied:
'/hosted/sapling_base/share/data/dicts.pickle'
Rottenchester | 12 Jun 2007 16:34
Picon

Re: AdminGroup borked on new wiki

This is the key:

IOError: [Errno 13] Permission denied:
'/hosted/sapling_base/share/data/dicts.pickle'

You need to change the permissions on that data dir and everything
under it so your web server process can read and write it.

On 6/12/07, Far McKon <farmckon@...> wrote:
> When I try to add items to AdminGroup, I get the included error. now,
> if I save the page with no changes, it saves it without error (but
> puts up a 'can't save blank' message).
>
> Anyone else run into this?  I Made a couple of trackers issues for
> other things, but I figured this might be myown dammed fault, so I'd
> ask the list before making an issue.
>
> - Far
> --------- Error Message ---------------
>
>  --> -->
>
> Traceback (most recent call last):
>   File "/hosted/sapling_base/Sycamore/request.py", line 499, in run
>     wikiutil.getSysPage(self, config.page_front_page).page_name, self)
>   File "/hosted/sapling_base/Sycamore/wikiaction.py", line 792, in do_savepage
>     comment=comment)
>   File "/hosted/sapling_base/Sycamore/PageEditor.py", line 703, in saveText
>     self.updateGroups()
>   File "/hosted/sapling_base/Sycamore/PageEditor.py", line 729, in updateGroups
(Continue reading)

Far McKon | 12 Jun 2007 16:54
Picon

Re: AdminGroup borked on new wiki

yeah, I should have been clearer. I realize it's an error in saving (I
assume Dictonaries) to a file.

To be more specific, Is settting those file permissions something that
should be automaticlly done by running BuildDB.py, or some maintaince
funciton I missed, or is that an install step I have to do myself?  I
didn't see it listed in the install steps.

> You need to change the permissions on that data dir and everything
> under it so your web server process can read and write it.

Just to be clear, you really mean *everything* below the level of
/hosted/sapling_base, Including all subdirectories including 'share',
'Sycamore' should be all rights for the 'webserver user' ?

I'm rusty on edit permissions per group, I guess I'll go look that stuff up now.

- Far

On 6/12/07, Rottenchester <rottenchester@...> wrote:
> This is the key:
>
> IOError: [Errno 13] Permission denied:
> '/hosted/sapling_base/share/data/dicts.pickle'
>
> You need to change the permissions on that data dir and everything
> under it so your web server process can read and write it.
>
> On 6/12/07, Far McKon <farmckon@...> wrote:
> > When I try to add items to AdminGroup, I get the included error. now,
(Continue reading)

Rottenchester | 12 Jun 2007 17:34
Picon

Re: AdminGroup borked on new wiki

Everything under /share/data, including the directory "data", needs to
be read and writable by the web server app.  I think everything in
those directories is related to Xapian, but not positive.   Here's a
possible set of commands:

# cd /hosted/sapling_base/share
# chown -R www-data.www-data data
# chmod -R u+rw data

As to whether BuildDB.py should do that, I would guess that in some
far-off future, sycamore would have some kind of install script that
would call BuildDB.py and set permissions accordingly.  Today, this is
a common gotcha and probably needs to be documented.

On 6/12/07, Far McKon <farmckon@...> wrote:
> yeah, I should have been clearer. I realize it's an error in saving (I
> assume Dictonaries) to a file.
>
> To be more specific, Is settting those file permissions something that
> should be automaticlly done by running BuildDB.py, or some maintaince
> funciton I missed, or is that an install step I have to do myself?  I
> didn't see it listed in the install steps.
>
> > You need to change the permissions on that data dir and everything
> > under it so your web server process can read and write it.
>
> Just to be clear, you really mean *everything* below the level of
> /hosted/sapling_base, Including all subdirectories including 'share',
> 'Sycamore' should be all rights for the 'webserver user' ?
>
(Continue reading)

Far McKon | 18 Jun 2007 21:12
Picon

Misc. Redirect questions.

hey guys,
Philawiki.net is working, but I need some help with redirect stuff.

1. When I save/edit/reload the URL has 'index.cgi' in it, For example:
http://philawiki.net/index.cgi/Software#preview
instead of
http://philawiki.net/Software#preview

I did my install by the How_To_Install on projectsycamore, doing
regular CGI, and just double checked that I did everything right.
What do I need to do to fix this?

2. I know the guy that has philawiki.com, and I'd like to redirect it
so when typing in philawiki.com you automaticlly get to philawiki.net
(for GoogMaps, and other reasons). I know rotten did this for Rocwiki.
 How do I do this?

Thanks.
- Far
Rottenchester | 18 Jun 2007 21:35
Picon

Re: Misc. Redirect questions.

1.  I don't know what your config does, but Rocwiki and the test wikis
are all on cgi.  In sycamore_config.py, relative_dir is set to '', and
then apache config has the following:

ScriptAlias / /home/rocwiki/trunk/share/web/index.cgi/

That redirects all URLs to index.cgi.

2.  I'm not 100% sure what you're asking.  If you just want people who
type in a philawiki.com address to be redirected to / on
philawiki.net, the simplest solution is to use your registrar's
control panel, if it supports that function (for example, GoDaddy
does).  If you want philawiki.com/x/y/z to go to philawiki.net/x/y/z
then run a virtual host for philawiki.com on your server and put in an
apache rewrite rule to rewrite everything to philawiki.net.

On 6/18/07, Far McKon <farmckon@...> wrote:
> hey guys,
> Philawiki.net is working, but I need some help with redirect stuff.
>
> 1. When I save/edit/reload the URL has 'index.cgi' in it, For example:
> http://philawiki.net/index.cgi/Software#preview
> instead of
> http://philawiki.net/Software#preview
>
> I did my install by the How_To_Install on projectsycamore, doing
> regular CGI, and just double checked that I did everything right.
> What do I need to do to fix this?
>
> 2. I know the guy that has philawiki.com, and I'd like to redirect it
(Continue reading)

Far McKon | 18 Jun 2007 21:39
Picon

Re: Misc. Redirect questions.

> 2.  I'm not 100% sure what you're asking.
Neither do I :p

> If you want philawiki.com/x/y/z to go to philawiki.net/x/y/z
> then run a virtual host for philawiki.com on your server and put in an
> apache rewrite rule to rewrite everything to philawiki.net.

Excellent. That is what I was trying to do but describing poorly.  And
the 'Virtual Host' section answers my question.

Thanks.

- Far

Gmane