User Tools

Site Tools



Q. I've got some troubles starting an application with tarantoolctl. I have a simple test.lua script that looks like this:

box.cfg{} local function handler(self) return self:render{ json = } end local httpd = require('http.server') local server ='', 8080) server:route({ path = '/' }, handler) server:start()

http.server is a Tarantool module for an HTTP client/server (

When I run it with tarantool test.lua, everything is OK and HTTP works. But when I put this file into /etc/tarantool/instances.enabled and then run sudo tarantoolctl start test, I get this error:

Start failed: /etc/tarantool/instances.enabled/test.lua:7: module 'http.server' not found: no field package.preload['http.server'] no file './http/server.lua' no file './http/server/init.lua' no file '/home/myuser/.luarocks/share/lua/5.1/http/server.lua' no file '/home/myuser/.luarocks/share/lua/5.1/http/server/init.lua' no file '/home/myuser/.luarocks/share/lua/http/server.lua' no file '/home/myuser/.luarocks/share/lua/http/server/init.lua' no file '/usr/local/share/tarantool/http/server.lua' no file '/usr/local/share/tarantool/http/server/init.lua' no file '/usr/share/tarantool/http/server.lua' no file '/usr/share/tarantool/http/server/init.lua' ………………………………………………….

I checked if the file /home/myuser/.luarocks/share/lua/5.1/http/server.lua exists - and it does (2016)

A. /home/myuser/.luarocks does exist but is inaccessible to the tarantool user. You need to install the LuaRock globally for it to be available to the tarantool user.


Enter your comment. Wiki syntax is allowed:
F᠎ U X​ Q J
tarantoolctl/luarocks.txt · Last modified: 2018/05/01 14:15 by eabates

Real Time Web Analytics