Open
Description
Reproduced as follows.
docker run -it fedora:35
dnf install curl cmake make gcc unzip git -y
curl -L https://tarantool.io/QvHOVNc/release/2/installer.sh | bash
dnf install tarantool tarantool-devel -y
tarantoolctl rocks install crud
[root@acfd33969b57 /]# ll .rocks/share/tarantool/
total 36
-rw-r--r-- 1 root root 7474 Dec 22 12:09 checks.lua
drwxr-xr-x 2 root root 4096 Dec 22 12:09 errors
-rw-r--r-- 1 root root 16953 Dec 22 12:09 errors.lua
drwxr-xr-x 6 root root 4096 Dec 22 12:09 rocks
[root@acfd33969b57 /]# tarantool
Tarantool 2.10.4-0-g816000e10
type 'help' for interactive help
tarantool> require('errors')
---
- netbox_call: 'function: 0x40cc7848'
list: 'function: 0x40cc78b8'
new: 'function: 0x40cc78f8'
is_error_object: 'function: 0x41dafa38'
netbox_eval: 'function: 0x41da8868'
netbox_wait_async: 'function: 0x40cc7890'
set_deprecation_handler: 'function: 0x41dafce8'
new_class: 'function: 0x4142d230'
wrap: 'function: 0x40cc78d8'
assert: 'function: 0x40cc7958'
deprecate: 'function: 0x4142cb20'
pcall: 'function: 0x40cc7938'
...
tarantool> require('crud')
---
- error: "module 'crud' not found:\n\tno field package.preload['crud']\n\tno file
'/crud.lua'\n\tno file '/crud/init.lua'\n\tno file '/crud.so'\n\tno file '/.rocks/share/tarantool/crud.lua'\n\tno
file '/.rocks/share/tarantool/crud/init.lua'\n\tno file '/.rocks/lib/tarantool/crud.so'\n\tno
file '/root/.luarocks/share/lua/5.1/crud.lua'\n\tno file '/root/.luarocks/share/lua/5.1/crud/init.lua'\n\tno
file '/root/.luarocks/share/lua/crud.lua'\n\tno file '/root/.luarocks/share/lua/crud/init.lua'\n\tno
file '/usr/local/share/tarantool/crud.lua'\n\tno file '/usr/local/share/tarantool/crud/init.lua'\n\tno
file '/usr/share/tarantool/crud.lua'\n\tno file '/usr/share/tarantool/crud/init.lua'\n\tno
file '/usr/local/share/lua/5.1/crud.lua'\n\tno file '/usr/local/share/lua/5.1/crud/init.lua'\n\tno
file '/usr/share/lua/5.1/crud.lua'\n\tno file '/usr/share/lua/5.1/crud/init.lua'\n\tno
file '/root/.luarocks/lib/lua/5.1/crud.so'\n\tno file '/root/.luarocks/lib/lua/crud.so'\n\tno
file '/usr/local/lib64/tarantool/crud.so'\n\tno file '/usr/lib64/tarantool/crud.so'\n\tno
file '/usr/local/lib64/lua/5.1/crud.so'\n\tno file '/usr/lib64/lua/5.1/crud.so'"
...
After
dnf install -y findutils
tarantoolctl rocks install crud
[root@e0f70aef5264 /]# ll .rocks/share/tarantool/
total 56
drwxr-xr-x 3 root root 4096 Dec 22 12:09 cartridge
-rw-r--r-- 1 root root 7474 Dec 22 12:09 checks.lua
drwxr-xr-x 6 root root 4096 Dec 22 12:09 crud
-rw-r--r-- 1 root root 4691 Dec 22 12:09 crud.lua
drwxr-xr-x 2 root root 4096 Dec 22 12:09 errors
-rw-r--r-- 1 root root 16953 Dec 22 12:09 errors.lua
drwxr-xr-x 6 root root 4096 Dec 22 12:09 rocks
drwxr-xr-x 4 root root 4096 Dec 22 12:09 vshard
[root@e0f70aef5264 /]# tarantool
Tarantool 2.10.4-0-g816000e10
type 'help' for interactive help
tarantool> require('errors')
---
- netbox_call: 'function: 0x41a8bc28'
list: 'function: 0x41a8bc98'
new: 'function: 0x41a8bcd8'
is_error_object: 'function: 0x418b0898'
netbox_eval: 'function: 0x418b7dc8'
netbox_wait_async: 'function: 0x41a8bc70'
set_deprecation_handler: 'function: 0x418b0650'
new_class: 'function: 0x41a8b1d8'
wrap: 'function: 0x41a8bcb8'
assert: 'function: 0x41a8bd38'
deprecate: 'function: 0x418b06e0'
pcall: 'function: 0x41a8bd18'
...
tarantool> require('crud')
"tuple.keydef" module is not found. Built-in "key_def" is used
"tuple.merger" module is not found. Built-in "merger" is used
---
- replace_object_many: 'function: 0x40cffde8'
upsert: 'function: 0x40cfff00'
len: 'function: 0x41860aa8'
delete: 'function: 0x418604b8'
replace_object: 'function: 0x40cfc9c0'
truncate: 'function: 0x41860070'
init_router: 'function: 0x41861068'
upsert_object: 'function: 0x418603c0'
reset_stats: 'function: 0x41dcb9d0'
stats: 'function: 0x41dcbde0'
cut_rows: 'function: 0x402da8c8'
replace_many: 'function: 0x40cfcab8'
stop_router: 'function: 0x418610a8'
pairs: 'function: 0x41860708'
stop_storage: 'function: 0x418610c8'
cfg:
stats_quantile_tolerated_error: 0.001
stats_driver: local
stats_quantile_age_buckets_count: 2
stats_quantiles: false
stats_quantile_max_age_time: 60
stats: false
insert_many: 'function: 0x40cf7c90'
insert: 'function: 0x40cfe850'
max: 'function: 0x41860d70'
storage_info: 'function: 0x402357c8'
replace: 'function: 0x40cfc8c8'
update: 'function: 0x40cfc800'
min: 'function: 0x41860c78'
select: 'function: 0x418605b0'
insert_object: 'function: 0x40cfe980'
insert_object_many: 'function: 0x40cfd898'
upsert_many: 'function: 0x418601d0'
unflatten_rows: 'function: 0x40ad30b0'
init_storage: 'function: 0x41860e08'
cut_objects: 'function: 0x41b53c88'
count: 'function: 0x41860b80'
upsert_object_many: 'function: 0x418602c8'
get: 'function: 0x40cfc728'
...
Strace provided:
install.log
The bug might be not a luarocks one, but it's definitely a good place to start.