2008-12-30 20:32 |
agladysh
Alexander Gladysh <agladysh at gmail.com>
Hi, list!
I'm trying to install Sputnik 8.08.13 on my Ubuntu box as per this guide:
http://sputnik.freewisdom.org/en/Installation
This step fails:
$ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()'
Stack traceback below. Note how it looks for 1.4.0-1, and I have
1.4.1-1 installed by rocks.
/opt/sputnik$ ls rocks/luafilesystem/
1.4.1-1
I've used rocks command from the mentioned wiki page:
$ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13
Traceback from require("sputnik").setup():
./bin/lua: /opt/sputnik/share/lua/5.1/luarocks/require.lua:141: module
'lfs' not found:
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'
stack traceback:
[C]: in function 'plain_require'
/opt/sputnik/share/lua/5.1/luarocks/require.lua:141: in function
</opt/sputnik/share/lua/5.1/luarocks/require.lua:130>
(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
</opt/sputnik/share/lua/5.1/luarocks/require.lua:130>
(tail call): ?
...putnik/rocks//sputnik/8.08.13-0/lua/sputnik/init.lua:49: in function 'setup'
(command line):1: in main chunk
[C]: ?
Alexander.
2008-12-30 20:49 |
agladysh
Alexander Gladysh <agladysh at gmail.com>
> This step fails: > $ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()' > Stack traceback below. Note how it looks for 1.4.0-1, and I have > 1.4.1-1 installed by rocks. > /opt/sputnik$ ls rocks/luafilesystem/ > 1.4.1-1 > I've used rocks command from the mentioned wiki page: > $ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth > install sputnik 8.08.13 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. Alexander.
2008-12-31 14:16 |
yuri
Yuri Takhteyev <yuri at sims.berkeley.edu>
> 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. 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 _versions_? What was your existing luarocks installation? 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 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 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. (Of those three lines, only the first one really does installation. The second line just creates a sputnik.cgi file.) - yuri -- http://sputnik.freewisdom.org/
2008-12-31 14:44 |
agladysh
Alexander Gladysh <agladysh at gmail.com>
On Wed, Dec 31, 2008 at 7:16 PM, Yuri Takhteyev <yuri@sims.berkeley.edu> wrote: >> 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. > 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 _versions_? What was your > existing luarocks installation? 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. > 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 I'm interested in Xavante, but it does not work for me (see below). > 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 > 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. > (Of those three lines, only the first one really does installation. > The second line just creates a sputnik.cgi file.) Thank you. I have removed my other luarocks installation, removed Sputnik, and installed it from scratch. I have these problems (and had them before reinstall): 1. 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. 2. When I run Sputnik as CGI on Apache, save works fine, but I have no history. My sputnik.cgi file: #! /bin/bash /opt/sputnik/bin/wsapi.cgi require('sputnik') require("lfs") lfs.chdir("/opt/sputnik/wiki-data/") return sputnik.new_wsapi_run_fn{ VERSIUM_STORAGE_MODULE = "versium.git", VERSIUM_PARAMS = { '/opt/sputnik/wiki-data/' }, BASE_URL = '/cgi-bin/sputnik.cgi', PASSWORD_SALT = '<censored>', TOKEN_SALT = '<censored>', } $ 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 /opt/sputnik/wiki-data$ git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # index.lua # sputnik/ nothing added to commit but untracked files present (use "git add" to track) I'm on Ubuntu Gutsy (7.10, Server). $ git --version git version 1.6.1 Please advise me how can I debug these issues. The kepler/log/xavante.log contains only Xavante start messages. Alexander.
2008-12-31 18:32 |
yuri
Yuri Takhteyev <yuri at sims.berkeley.edu>
> 1. 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. Unfortunately, I don't know what this means. Xavante really isn't my area of expertise. > 2. When I run Sputnik as CGI on Apache, save works fine, but I have no history. You mean specifically when using versium.git? Did the default storage option work? > 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 Make sure that wiki-data/.git is writeable by www-data. This should have been mentioned in the documentation, and I just added it. (And I'll look into why this isn't generating an error, as it really should.) - yuri -- http://sputnik.freewisdom.org/
2009-01-09 23:29 |
mascarenhas
"Fabio Mascarenhas" < <mascarenhas at gmail.com>
--===============1576127066== Content-Type: multipart/alternative; boundary="----=_Part_26137_25183756.1231190026839" ------=_Part_26137_25183756.1231190026839 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline > > > Thank you. > > I have removed my other luarocks installation, removed Sputnik, and > installed it from scratch. I have these problems (and had them before > reinstall): > > 1. 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. > This is with git as a the repo? My guess is that there's a subprocess hanging... can Xavante answer another connection while the browser is hung? We have a Sputnik installation under Xavante running fine on luarocks.orgwith the default backend, so something in the git backend is my suspect here. -- Fabio Mascarenhas ------=_Part_26137_25183756.1231190026839 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><br> </div>Thank you.<br> <br> I have removed my other luarocks installation, removed Sputnik, and<br> installed it from scratch. I have these problems (and had them before<br> reinstall):<br> <br> 1. When I run Sputnik with Xavante, all edits fail. The post request<br> from my browser either "hangs" or browser complains that "server broke<br> connection". I have double checked permissions on my wiki-data<br> directory, all is OK.<br></blockquote><div><br></div><div>This is with git as a the repo? My guess is that there's a subprocess hanging... can Xavante answer another connection while the browser is hung?</div><div><br> </div><div>We have a Sputnik installation under Xavante running fine on <a href="http://luarocks.org">luarocks.org</a> with the default backend, so something in the git backend is my suspect here.</div><div> </div><div>--</div> <div>Fabio Mascarenhas</div><div><br></div></div> ------=_Part_26137_25183756.1231190026839-- --===============1576127066== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list --===============1576127066==--
2009-01-09 23:29 |
agladysh
"Alexander Gladysh" < <agladysh at gmail.com>
>> 1. 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. > This is with git as a the repo? Yes. > My guess is that there's a subprocess > hanging... can Xavante answer another connection while the browser is hung? Yes. Alexander. _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-01-30 08:55 |
yuri
"Yuri Takhteyev" < <yuri at sims.berkeley.edu>
>>> 1. 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. I tried again to reproduce it, and I cannot. Can anyone else? I am on Ubuntu 8.10 now, but I am pretty sure I tested it on 7.10 back in July... Does this happen with a fresh install? - yuri _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list