gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

/lua/gk.lua:92: 'struct gk_config' has no member named 'fib_dump_batch_size'

Open ShawnLeung87 opened this issue 2 years ago • 2 comments

Gatekeeper 1.1.0 deployment The following error occurs, the GK server cannot be initialized /lua/gk.lua:92: 'struct gk_config' has no member named 'fib_dump_batch_size'

ShawnLeung87 avatar Jul 14 '22 10:07 ShawnLeung87

It seems that you have mixed files from v1.0.0 and v1.1.0 somehow. You seem to be using the new file lua/gk.lua since it uses the field fib_dump_batch_size, which is new in v1.1.0. But not the updated file lua/gatekeeper/staticlib.lua since, as you can check here, it includes the definition of the field fib_dump_batch_size.

We have been able to boot Gatekeeper servers on a fresh installation of v1.1.0 without this problem, and the field fib_dump_batch_size is being set and used.

AltraMayor avatar Jul 14 '22 13:07 AltraMayor

This has been resolved, this is because the lib files in /usr/local/share/lua/5.1/gatekeeper are read, these files are version 1.0.0. lpm failed to initialize the problem, gt_lpm_ud expected, got number error in version 1.1.0 #580, I have completely cleared /usr/local/share/lua/5.1/gatekeeper on the GT server, this problem should be the same, I don't know yet What is the problem? This problem may be caused by the unsuccessful loading of lpmlib

ShawnLeung87 avatar Jul 15 '22 02:07 ShawnLeung87

Issue #580 was solved, so this thread is also solved.

AltraMayor avatar Sep 22 '22 20:09 AltraMayor