group-butler / GroupButler

This bot can help you in managing your group with rules, anti-flood, description, custom triggers, and much more!
https://t.me/GroupButler_bot
GNU General Public License v2.0
442 stars 295 forks source link

Error after using bash install.sh #364

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello,

I am getting the following error after trying to start the bot with ./launch.sh

`lua: ./lua/groupbutler/config.lua:2: module 'cjson' not found: no field package.preload['cjson'] no file './lua/cjson.lua' no file './lua/vendor/cjson.lua' no file './cjson.lua' no file '/usr/local/share/lua/5.1/cjson.lua' no file '/usr/local/share/lua/5.1/cjson/init.lua' no file '/usr/local/lib/lua/5.1/cjson.lua' no file '/usr/local/lib/lua/5.1/cjson/init.lua' no file '/usr/share/lua/5.1/cjson.lua' no file '/usr/share/lua/5.1/cjson/init.lua' no file './cjson.so' no file '/usr/local/lib/lua/5.1/cjson.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cjson.so' no file '/usr/lib/lua/5.1/cjson.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: C: in function 'require' ./lua/groupbutler/config.lua:2: in main chunk C: in function 'require' ./lua/groupbutler/plugins.lua:1: in main chunk C: in function 'require' ./polling.lua:14: in main chunk

NotAFile commented 6 years ago

@fabston you have not sucessfully installed cjson

ghost commented 6 years ago

Thanks for the reply @NotAFile! Besides that error I also keep on getting:

`lua: ./lua/vendor/resty/redis.lua:31: module 'resty.socket' not found: no field package.preload['resty.socket'] no file './lua/resty/socket.lua' no file './lua/vendor/resty/socket.lua' no file './resty/socket.lua' no file '/usr/local/share/lua/5.1/resty/socket.lua' no file '/usr/local/share/lua/5.1/resty/socket/init.lua' no file '/usr/local/lib/lua/5.1/resty/socket.lua' no file '/usr/local/lib/lua/5.1/resty/socket/init.lua' no file '/usr/share/lua/5.1/resty/socket.lua' no file '/usr/share/lua/5.1/resty/socket/init.lua' no file './resty/socket.so' no file '/usr/local/lib/lua/5.1/resty/socket.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/resty/socket.so' no file '/usr/lib/lua/5.1/resty/socket.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file './resty.so' no file '/usr/local/lib/lua/5.1/resty.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/resty.so' no file '/usr/lib/lua/5.1/resty.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: C: in function 'require' ./lua/vendor/resty/redis.lua:31: in function <./lua/vendor/resty/redis.lua:25> ./lua/vendor/resty/redis.lua:34: in main chunk C: in function 'require' ./lua/groupbutler/main.lua:5: in main chunk C: in function 'require' ./polling.lua:15: in main chunk

ghost commented 6 years ago

I also googled resty.socket can't really find anything useful...

ghost commented 6 years ago

Was able to solve the issue in the telegram channel. Thanks.

lutsifer commented 6 years ago

Any idea how to make this up and running. I can't post any messages in the telegram channel. I have exactly same error... or pretty much :)

./launch.sh
lua: ./lua/vendor/resty/redis.lua:31: module 'resty.socket' not found:
    no field package.preload['resty.socket']
    no file './lua/resty/socket.lua'
    no file './lua/vendor/resty/socket.lua'
    no file './resty/socket.lua'
    no file '/usr/local/share/lua/5.1/resty/socket.lua'
    no file '/usr/local/share/lua/5.1/resty/socket/init.lua'
    no file '/usr/local/lib/lua/5.1/resty/socket.lua'
    no file '/usr/local/lib/lua/5.1/resty/socket/init.lua'
    no file '/usr/share/lua/5.1/resty/socket.lua'
    no file '/usr/share/lua/5.1/resty/socket/init.lua'
    no file './resty/socket.so'
    no file '/usr/local/lib/lua/5.1/resty/socket.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.1/resty/socket.so'
    no file '/usr/lib/lua/5.1/resty/socket.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './resty.so'
    no file '/usr/local/lib/lua/5.1/resty.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.1/resty.so'
    no file '/usr/lib/lua/5.1/resty.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'require'
    ./lua/vendor/resty/redis.lua:31: in function <./lua/vendor/resty/redis.lua:25>
    ./lua/vendor/resty/redis.lua:34: in main chunk
    [C]: in function 'require'
    ./lua/groupbutler/main.lua:5: in main chunk
    [C]: in function 'require'
    ./polling.lua:7: in main chunk
    [C]: ?

Installation script said everything was installed OK..

NotAFile commented 6 years ago

yeah install.sh is not up to date

lutsifer commented 6 years ago

Well I installed the master branch so... it should be this: https://github.com/group-butler/GroupButler/blob/master/install.sh

lutsifer commented 6 years ago

Actually I followed this one (same thing):

# Tested on Ubuntu 16.04

$ wget https://raw.githubusercontent.com/group-butler/GroupButler/master/install.sh
$ bash install.sh