{"action":"created","issue":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/494","labels_url":"https://api.github.com/repos/vstakhov/rspamd/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/vstakhov/rspamd/issues/494/comments","events_url":"https://api.github.com/repos/vstakhov/rspamd/issues/494/events","html_url":"https://github.com/vstakhov/rspamd/issues/494","id":128202749,"number":494,"title":"Pre-built statistics and Redis","user":{"login":"bax-","id":7083188,"avatar_url":"https://avatars.githubusercontent.com/u/7083188?v=3","gravatar_id":"","url":"https://api.github.com/users/bax-","html_url":"https://github.com/bax-","followers_url":"https://api.github.com/users/bax-/followers","following_url":"https://api.github.com/users/bax-/following{/other_user}","gists_url":"https://api.github.com/users/bax-/gists{/gist_id}","starred_url":"https://api.github.com/users/bax-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bax-/subscriptions","organizations_url":"https://api.github.com/users/bax-/orgs","repos_url":"https://api.github.com/users/bax-/repos","events_url":"https://api.github.com/users/bax-/events{/privacy}","received_events_url":"https://api.github.com/users/bax-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-22T17:21:13Z","updated_at":"2016-01-31T13:36:17Z","closed_at":null,"body":"Is there a way to either convert the learned and the pre-built statistics from Sqlite to Redis?\r\nOr is there a sane way to combine both backends?"},"comment":{"url":"https://api.github.com/repos/vstakhov/rspamd/issues/comments/177503165","html_url":"https://github.com/vstakhov/rspamd/issues/494#issuecomment-177503165","issue_url":"https://api.github.com/repos/vstakhov/rspamd/issues/494","id":177503165,"user":{"login":"bax-","id":7083188,"avatar_url":"https://avatars.githubusercontent.com/u/7083188?v=3","gravatar_id":"","url":"https://api.github.com/users/bax-","html_url":"https://github.com/bax-","followers_url":"https://api.github.com/users/bax-/followers","following_url":"https://api.github.com/users/bax-/following{/other_user}","gists_url":"https://api.github.com/users/bax-/gists{/gist_id}","starred_url":"https://api.github.com/users/bax-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bax-/subscriptions","organizations_url":"https://api.github.com/users/bax-/orgs","repos_url":"https://api.github.com/users/bax-/repos","events_url":"https://api.github.com/users/bax-/events{/privacy}","received_events_url":"https://api.github.com/users/bax-/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T13:36:17Z","updated_at":"2016-01-31T13:36:17Z","body":"I now got this\r\n\r\n```\r\nroot@mail:/usr/local/share/rspamd/lua/ > rspamadm statconvert -d /var/db/rspamd/bayes.ham.sqlite -h 10.0.0.4:6379 -s BAYES_HAM\r\nCannot connect to 10.0.0.4:6379\r\nCannot send tokens to the redis server\r\nroot@mail:/usr/local/share/rspamd/lua/ > rspamadm statconvert -d /var/db/rspamd/bayes.ham.sqlite -h 10.0.0.4 -s BAYES_HAM\r\n2016-01-31 14:34:15 #10969(rspamadm) rspamadm_execute_lua_ucl_subr: call to adm lua script failed: (NULL)\r\n2016-01-31 14:34:15 #10969(rspamadm) glib; : g_string_free: assertion 'string != NULL' failed\r\n```\r\n\r\nIs there a symbol I need to use if I want to convert the cache too?"}}