tarantool / docker

Docker images for tarantool database
https://hub.docker.com/r/tarantool/tarantool
52 stars 25 forks source link

Error in membership module: LuajitError: .../tarantool/.rocks/share/tarantool/membership/members.lua:20: attempt to call field 'clear' (a nil value) #181

Closed cgi closed 2 years ago

cgi commented 4 years ago

I have such error starting image based on tarantool operator example with tarantool/tarantool:2.5.1 base image.

DNS resolution has been failed. Trying to probe it again...
DNS resolution has been failed. Trying to probe it again...
LuajitError: .../tarantool/.rocks/share/tarantool/membership/members.lua:20: attempt to call field 'clear' (a nil value)
fatal error, exiting the event loop

If I start original image independently:

D:\projects\personal\tarantool-cartrige-test>"C:\Program Files\Docker\Docker\resources\bin\docker.exe" run --rm -it -e TARANTOOL_ADVERTISE_URI=localhost:3301 tarantool/tarantool:2.5.1 tarantool
Creating configuration file: /etc/tarantool/config.yml
Config:
---
force_recovery: false
memtx_dir: /var/lib/tarantool
listen: 3301
pid_file: /var/run/tarantool/tarantool.pid
vinyl_dir: /var/lib/tarantool
wal_dir: /var/lib/tarantool
...

2020-07-23 07:15:45.205 [1] main/103/tarantool-entrypoint.lua C> Tarantool 2.5.1-0-gc2d8c03ee
2020-07-23 07:15:45.205 [1] main/103/tarantool-entrypoint.lua C> log level 5
2020-07-23 07:15:45.205 [1] main/103/tarantool-entrypoint.lua I> mapping 268435456 bytes for memtx tuple arena...
2020-07-23 07:15:45.206 [1] main/103/tarantool-entrypoint.lua I> mapping 134217728 bytes for vinyl tuple arena...
2020-07-23 07:15:45.207 [1] main/103/tarantool-entrypoint.lua I> instance uuid 9f9e7092-cd02-4ff2-9a3b-67e0b122f2be
2020-07-23 07:15:45.207 [1] iproto/101/main I> binary: bound to 0.0.0.0:3301
2020-07-23 07:15:45.207 [1] main/103/tarantool-entrypoint.lua I> initializing an empty data directory
2020-07-23 07:15:45.218 [1] main/103/tarantool-entrypoint.lua I> assigned id 1 to replica 9f9e7092-cd02-4ff2-9a3b-67e0b122f2be
2020-07-23 07:15:45.218 [1] main/103/tarantool-entrypoint.lua I> cluster uuid cdc97e71-c6ba-46d3-871b-883ba69faf62
2020-07-23 07:15:45.219 [1] snapshot/101/main I> saving snapshot `/var/lib/tarantool/00000000000000000000.snap.inprogress'
2020-07-23 07:15:45.221 [1] snapshot/101/main I> done
2020-07-23 07:15:45.221 [1] main/103/tarantool-entrypoint.lua I> ready to accept requests
2020-07-23 07:15:45.222 [1] main/103/tarantool-entrypoint.lua I> set 'log_level' configuration option to 5
2020-07-23 07:15:45.222 [1] main/105/checkpoint_daemon I> scheduled next checkpoint for Thu Jul 23 08:47:00 2020
2020-07-23 07:15:45.222 [1] main/103/tarantool-entrypoint.lua I> set 'listen' configuration option to "3301"
2020-07-23 07:15:45.222 [1] main/103/tarantool-entrypoint.lua I> set 'log_format' configuration option to "plain"
2020-07-23 07:15:45.223 [1] main/103/tarantool-entrypoint.lua I> Initializing database
2020-07-23 07:15:45.223 [1] main/103/tarantool-entrypoint.lua tarantool-entrypoint.lua:118 W>
****************************************************
WARNING: 'guest' is chosen as primary user.
         Since it is not allowed to set a password for
         guest user, your instance will be accessible
         by anyone having direct access to the Tarantool
         port.
         If you wanted to create an authenticated user,
         specify "-e TARANTOOL_USER_NAME=username" and
         pick a user name other than "guest".
****************************************************
2020-07-23 07:15:45.223 [1] main/103/tarantool-entrypoint.lua I> Granting admin privileges to user 'guest'
2020-07-23 07:15:45.224 [1] main/116/console/unix/:/var/run/tarantool/tarantool.sock I> started
tarantool> table
---
- maxn: 'function: builtin#90'
  copy: 'function: 0x40caf0d8'
  new: 'function: builtin#94'
  move: 'function: 0x4170b900'
  foreach: 'function: 0x4170b5a8'
  sort: 'function: builtin#93'
  remove: 'function: 0x4170b7e8'
  foreachi: 'function: 0x4170b4d8'
  deepcopy: 'function: 0x40caf0b8'
  getn: 'function: 0x4170b640'
  concat: 'function: builtin#92'
  insert: 'function: builtin#91'
...

tarantool> table.clear({})
---
- error: '[string "return table.clear({})"]:1: attempt to call field ''clear'' (a
    nil value)'
...

tarantool>

Take note of last check - there is no clear function registred in table.

cgi commented 4 years ago

For compariosion - same output for version 1.10

D:\projects\personal\tarantool-cartrige-test>"C:\Program Files\Docker\Docker\resources\bin\docker.exe" run --rm -it -e TARANTOOL_ADVERTISE_URI=localhost:3301 tarantool/tarantool:1 tarantool
Unable to find image 'tarantool/tarantool:1' locally
1: Pulling from tarantool/tarantool
31603596830f: Already exists
880a68427a43: Pull complete
2f24286a1582: Pull complete
c9ba10fef522: Pull complete
1385cffc83a8: Pull complete
5adc95015f4a: Pull complete
1f87be07fde0: Pull complete
73a73053ee09: Pull complete
68bd2f10105a: Pull complete
3516f1dde6ce: Pull complete
8b0b0611ff20: Pull complete
981fe2181bd7: Pull complete
23df7835e5a2: Pull complete
ba67718b9a6c: Pull complete
Digest: sha256:a9d4ee903e82172422b79add291c3c237192cdbba9963da5ea889d7d395dd3ba
Status: Downloaded newer image for tarantool/tarantool:1
Creating configuration file: /etc/tarantool/config.yml
Config:
---
force_recovery: false
memtx_dir: /var/lib/tarantool
listen: 3301
pid_file: /var/run/tarantool/tarantool.pid
vinyl_dir: /var/lib/tarantool
wal_dir: /var/lib/tarantool
...

2020-07-23 07:56:52.897 [1] main/101/tarantool-entrypoint.lua C> Tarantool 1.10.7-1-gb93a33ab2
2020-07-23 07:56:52.897 [1] main/101/tarantool-entrypoint.lua C> log level 5
2020-07-23 07:56:52.898 [1] main/101/tarantool-entrypoint.lua I> mapping 268435456 bytes for memtx tuple arena...
2020-07-23 07:56:52.898 [1] main/101/tarantool-entrypoint.lua I> mapping 134217728 bytes for vinyl tuple arena...
2020-07-23 07:56:52.899 [1] main/101/tarantool-entrypoint.lua I> instance uuid e0e66abd-7ac1-4a36-aafb-fbf85f7e8f3e
2020-07-23 07:56:52.899 [1] iproto/101/main I> binary: bound to 0.0.0.0:3301
2020-07-23 07:56:52.899 [1] main/101/tarantool-entrypoint.lua I> initializing an empty data directory
2020-07-23 07:56:52.901 [1] main/101/tarantool-entrypoint.lua I> assigned id 1 to replica e0e66abd-7ac1-4a36-aafb-fbf85f7e8f3e
2020-07-23 07:56:52.901 [1] main/101/tarantool-entrypoint.lua I> cluster uuid 270ace35-1ca6-45ba-a0c3-480673574788
2020-07-23 07:56:52.902 [1] snapshot/101/main I> saving snapshot `/var/lib/tarantool/00000000000000000000.snap.inprogress'
2020-07-23 07:56:52.903 [1] snapshot/101/main I> done
2020-07-23 07:56:52.904 [1] main/101/tarantool-entrypoint.lua I> ready to accept requests
2020-07-23 07:56:52.904 [1] main/107/checkpoint_daemon I> started
2020-07-23 07:56:52.904 [1] main/107/checkpoint_daemon I> scheduled the next snapshot at Thu Jul 23 09:18:00 2020
2020-07-23 07:56:52.905 [1] main/101/tarantool-entrypoint.lua I> Initializing database
2020-07-23 07:56:52.905 [1] main/101/tarantool-entrypoint.lua tarantool-entrypoint.lua:118 W>
****************************************************
WARNING: 'guest' is chosen as primary user.
         Since it is not allowed to set a password for
         guest user, your instance will be accessible
         by anyone having direct access to the Tarantool
         port.
         If you wanted to create an authenticated user,
         specify "-e TARANTOOL_USER_NAME=username" and
         pick a user name other than "guest".
****************************************************
2020-07-23 07:56:52.905 [1] main/101/tarantool-entrypoint.lua I> Granting admin privileges to user 'guest'
2020-07-23 07:56:52.906 [1] main/112/console/unix/:/var/run/tarantool I> started
tarantool> table
---
- maxn: 'function: builtin#90'
  copy: 'function: 0x4161a6a0'
  new: 'function: builtin#94'
  clear: 'function: builtin#95'
  move: 'function: 0x41605900'
  foreach: 'function: 0x416055a8'
  sort: 'function: builtin#93'
  remove: 'function: 0x416057e8'
  foreachi: 'function: 0x416054d8'
  deepcopy: 'function: 0x4161a680'
  getn: 'function: 0x41605640'
  concat: 'function: builtin#92'
  insert: 'function: builtin#91'
...

Take note for function clear