UDF restore error


#1

Hi,

failing while restoring a UDF

here is the log

2016-10-06 20:33:18 GMT [INF] [16847] Restoring NS.set
2016-10-06 20:33:18 GMT [INF] [16847] Opened backup file NS.set
2016-10-06 20:33:18 GMT [INF] [16847] Restoring 1 UDF file(s)
2016-10-06 20:33:18 GMT [ERR] [16847] Error while putting UDF file largelist_size1.lua - code 100: error=compile_error;file=largelist_size1.lua;line=1;message=module 'ldt/settings_llist' not found:
        no field package.preload['ldt/settings_llist']
        no file './ldt/settings_llist.lua'
        no file '/usr/local/share/luajit-2.0.3/ldt/settings_llist.lua'
        no file '/usr/local/share/lua/5.1/ldt/settings_llist.lua'
        no file '/usr/local/share/lua/5.1/ldt/settings_llist/init.lua'
        no file '/opt/aerospike/sys/udf/lua/ldt/settings_llist.lua'
        no file '/opt/aerospike/sys/udf/lua/external/ldt/settings_llist.lua'
        no file '/opt/aerospike/usr/udf/lua/ldt/settings_llist.lua'
        no file './ldt/settings_llist.so'
        no file '/usr/local/lib/lua/5.1/ldt/settings_llist.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/opt/aerospike/sys/udf/lua/ldt/settings_llist.so'
        no file '/opt/aerospike/sys/udf/lua/external/ldt/settings_llist.so'
        no file '/opt/aerospike/usr/udf/lua/ldt/settings_llist.so' at src/main/aerospike/as_info.c:214
2016-10-06 20:33:18 GMT [ERR] [16847] Error while restoring UDFs to cluster

Please help

Thanks


#2

Thanks Kevin for making it more readable

:slight_smile:


#3

The settings_llist.lua file was removed in server version 3.5.2, and its contents were moved into lib_llist.lua. You should be able to restore the UDF by first locating lib_llist.lua (probably in /opt/aerospike/sys/udf/lua/ldt/), making a copy of it and renaming the copy to settings_llist.lua. Assuming the restore works, you can then change any references to settings_llist in your UDFs to instead reference lib_llist, and remove the settings_llist.lua file.


#4

Thanks Brad for the response, will try and get back to you

cheers