Problems installing Sputnik (000004)
XSSFilter could not parse (X)HTML:
<p>From agladysh at gmail.com Tue Dec 30 20:32:27 2008
From: agladysh at gmail.com (Alexander Gladysh)
Date: Tue Dec 30 19:40:56 2008
Subject: [Sputnik-list] Problems installing Sputnik
Message-ID: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a></p>
<p>Hi, list!</p>
<p>I'm trying to install Sputnik 8.08.13 on my Ubuntu box as per this guide:</p>
<p>http://sputnik.freewisdom.org/en/Installation</p>
<p>This step fails:</p>
<p>$ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()'</p>
<p>Stack traceback below. Note how it looks for 1.4.0-1, and I have
1.4.1-1 installed by rocks.</p>
<p>/opt/sputnik$ ls rocks/luafilesystem/
1.4.1-1</p>
<p>I've used rocks command from the mentioned wiki page:</p>
<p>$ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13</p>
<p>Traceback from require("sputnik").setup():</p>
<p>./bin/lua: /opt/sputnik/share/lua/5.1/luarocks/require.lua:141: module
'lfs' not found:</p>
<pre><code>no field package.preload['lfs']
no file '/opt/sputnik/rocks//luafilesystem/1.4.0-1/lua/lfs.lua'
no file '/opt/sputnik/rocks//luafilesystem/1.4.0-1/lua/lfs/init.lua'
no file '/opt/sputnik/rocks//sputnik/8.08.13-0/lua/lfs.lua'
no file '/opt/sputnik/rocks//sputnik/8.08.13-0/lua/lfs/init.lua'
no file './lfs.lua'
no file '/opt/sputnik/share/lua/5.1/lfs.lua'
no file '/opt/sputnik/share/lua/5.1/lfs/init.lua'
no file '/opt/sputnik/lib/lua/5.1/lfs.lua'
no file '/opt/sputnik/lib/lua/5.1/lfs/init.lua'
no file '/opt/sputnik/rocks//luafilesystem/1.4.0-1/lib/lfs.so'
no file '/opt/sputnik/rocks//sputnik/8.08.13-0/lib/lfs.so'
no file './lfs.so'
no file '/opt/sputnik/lib/lua/5.1/lfs.so'
no file '/opt/sputnik/lib/lua/5.1/loadall.so'
</code></pre>
<p>stack traceback:</p>
<pre><code>[C]: in function 'plain_require'
/opt/sputnik/share/lua/5.1/luarocks/require.lua:141: in function
</code></pre>
<p></opt/sputnik/share/lua/5.1/luarocks/require.lua:130></p>
<pre><code>(tail call): ?
...k/rocks//sputnik/8.08.13-0/lua/sputnik/installer.lua:3: in main chunk
[C]: in function 'plain_require'
/opt/sputnik/share/lua/5.1/luarocks/require.lua:141: in function
</code></pre>
<p></opt/sputnik/share/lua/5.1/luarocks/require.lua:130></p>
<pre><code>(tail call): ?
...putnik/rocks//sputnik/8.08.13-0/lua/sputnik/init.lua:49: in function 'setup'
(command line):1: in main chunk
[C]: ?
</code></pre>
<p>Alexander.</p>
<p>From agladysh at gmail.com Tue Dec 30 20:49:41 2008
From: agladysh at gmail.com (Alexander Gladysh)
Date: Tue Dec 30 19:58:07 2008
Subject: [Sputnik-list] Re: Problems installing Sputnik
In-Reply-To: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a>
References: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a>
Message-ID: <a href="mailto:c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com">c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com</a></p>
<blockquote>
<p>This step fails:</p>
<p>$ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()'</p>
<p>Stack traceback below. Note how it looks for 1.4.0-1, and I have
1.4.1-1 installed by rocks.</p>
<p>/opt/sputnik$ ls rocks/luafilesystem/
1.4.1-1</p>
<p>I've used rocks command from the mentioned wiki page:</p>
<p>$ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13</p>
</blockquote>
<p>I suspect this should be some conflict with my existing luarocks
installation. I've copyed luafilesystem 1.4.0-1 from it to the Sputnik
rocks/ directory, and that fixed this error.</p>
<p>Alexander.</p>
<p>From yuri at sims.berkeley.edu Wed Dec 31 14:16:39 2008
From: yuri at sims.berkeley.edu (Yuri Takhteyev)
Date: Wed Dec 31 13:25:13 2008
Subject: [Sputnik-list] Re: Problems installing Sputnik
In-Reply-To: <a href="mailto:c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com">c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com</a>
References: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a></p>
<pre><code><c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com>
</code></pre>
<p>Message-ID: <a href="mailto:fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com">fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com</a></p>
<blockquote>
<p>I suspect this should be some conflict with my existing luarocks
installation. I've copyed luafilesystem 1.4.0-1 from it to the Sputnik
rocks/ directory, and that fixed this error.</p>
</blockquote>
<p>I am glad you got it working, but I am wondering what caused the
problem in the first place. Perhaps it's not so much the different
installations of Lua Rocks as the different <em>versions</em>? What was your
existing luarocks installation?</p>
<p>BTW, if already have a lua+luarocks and your version of LuaRocks is
reasonably recent, and you are not interested in using Xavante (or are
willing to configure it by hand), you can install sputnik with just</p>
<p> luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13
lua -lluarocks.require -e 'require("sputnik").setup()'
mkdir wiki-data && chmod -R a+rw wiki-data</p>
<p>This should give you all you need to use sputnik with cgi. Everything
before that is just an easy way to install lua, luarocks and xavante
in such a way that they all work together.</p>
<p>(Of those three lines, only the first one really does installation.
The second line just creates a sputnik.cgi file.)</p>
<ul>
<li>yuri</li>
</ul>
<p>--
http://sputnik.freewisdom.org/</p>
<p>From agladysh at gmail.com Wed Dec 31 14:44:32 2008
From: agladysh at gmail.com (Alexander Gladysh)
Date: Wed Dec 31 13:53:05 2008
Subject: [Sputnik-list] Re: Problems installing Sputnik
In-Reply-To: <a href="mailto:fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com">fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com</a>
References: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a></p>
<pre><code><c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com>
<fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com>
</code></pre>
<p>Message-ID: <a href="mailto:c6c947f60812310844p6a042f62i57ec967fdc33b467@mail.gmail.com">c6c947f60812310844p6a042f62i57ec967fdc33b467@mail.gmail.com</a></p>
<p>On Wed, Dec 31, 2008 at 7:16 PM, Yuri Takhteyev <a href="mailto:yuri@sims.berkeley.edu">yuri@sims.berkeley.edu</a> wrote:</p>
<blockquote>
<blockquote>
<p>I suspect this should be some conflict with my existing luarocks
installation. I've copyed luafilesystem 1.4.0-1 from it to the Sputnik
rocks/ directory, and that fixed this error.</p>
</blockquote>
<p>I am glad you got it working, but I am wondering what caused the
problem in the first place. Perhaps it's not so much the different
installations of Lua Rocks as the different <em>versions</em>? What was your
existing luarocks installation?</p>
</blockquote>
<p>That was 0.4.something. I deleted it trying to solve my other problems
with Sputnik (see below), so I can't say for sure, sorry.</p>
<blockquote>
<p>BTW, if already have a lua+luarocks and your version of LuaRocks is
reasonably recent, and you are not interested in using Xavante (or are
willing to configure it by hand), you can install sputnik with just</p>
</blockquote>
<p>I'm interested in Xavante, but it does not work for me (see below).</p>
<blockquote>
<p> luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13
lua -lluarocks.require -e 'require("sputnik").setup()'
mkdir wiki-data && chmod -R a+rw wiki-data</p>
<p>This should give you all you need to use sputnik with cgi. Everything
before that is just an easy way to install lua, luarocks and xavante
in such a way that they all work together.</p>
<p>(Of those three lines, only the first one really does installation.
The second line just creates a sputnik.cgi file.)</p>
</blockquote>
<p>Thank you.</p>
<p>I have removed my other luarocks installation, removed Sputnik, and
installed it from scratch. I have these problems (and had them before
reinstall):</p>
<ol>
<li><p>When I run Sputnik with Xavante, all edits fail. The post request
from my browser either "hangs" or browser complains that "server broke
connection". I have double checked permissions on my wiki-data
directory, all is OK.</p></li>
<li><p>When I run Sputnik as CGI on Apache, save works fine, but I have no history.</p></li>
</ol>
<p>My sputnik.cgi file:</p>
<h1>! /bin/bash /opt/sputnik/bin/wsapi.cgi</h1>
<p>require('sputnik')
require("lfs")
lfs.chdir("/opt/sputnik/wiki-data/")</p>
<p>return sputnik.new<em>wsapi</em>run<em>fn{
VERSIUM</em>STORAGE<em>MODULE = "versium.git",
VERSIUM</em>PARAMS = { '/opt/sputnik/wiki-data/' },
BASE<em>URL = '/cgi-bin/sputnik.cgi',
PASSWORD</em>SALT = '<censored>',
TOKEN_SALT = '<censored>',
}</p>
<p>$ ls -la wiki-data/
total 20
drwxrwxrwx 4 agladysh agladysh 4096 Dec 31 19:14 .
drwxr-xr-x 11 agladysh agladysh 4096 Dec 31 19:10 ..
drwxr-xr-x 7 agladysh agladysh 4096 Dec 31 19:20 .git
-rw-r--r-- 1 www-data www-data 300 Dec 31 19:21 index.lua
drwxrwxr-x 2 www-data www-data 4096 Dec 31 19:18 sputnik</p>
<p>/opt/sputnik/wiki-data$ git status</p>
<h1>On branch master</h1>
<h1></h1>
<h1>Initial commit</h1>
<h1></h1>
<h1>Untracked files:</h1>
<h1>(use "git add <file>..." to include in what will be committed)</h1>
<h1></h1>
<h1>index.lua</h1>
<h1>sputnik/</h1>
<p>nothing added to commit but untracked files present (use "git add" to track)</p>
<p>I'm on Ubuntu Gutsy (7.10, Server).</p>
<p>$ git --version
git version 1.6.1</p>
<p>Please advise me how can I debug these issues. The
kepler/log/xavante.log contains only Xavante start messages.</p>
<p>Alexander.</p>