boramalper / magnetico

Autonomous (self-hosted) BitTorrent DHT search engine suite.
http://labs.boramalper.org/magnetico/
GNU Affero General Public License v3.0
3.06k stars 344 forks source link

magneticow search is not working #161

Open skobkin opened 6 years ago

skobkin commented 6 years ago

I've just set up magneticod and magneticow but looks like search is not working at all.

I can get list of recent torrents using blank search text but if I try to search for anything results will be empty.

2018_03_01__001_selection 2018_03_01__002_selection 2018_03_01__003_selection

jackalblood commented 6 years ago

Restart the webui and your be able to search new torrents don't get pushed to search database until you restart the Web ui

skobkin commented 6 years ago

@jackalblood Thanks!

So magneticow does not updates DB state at all? Or how often does it do it?

UPD: May be it can be set up via command line option (which I do not see)?

jackalblood commented 6 years ago

No I'm afraid the only option I've seen is to kill it and restart it

skobkin commented 6 years ago

@jackalblood Also I don't understand why new torrents are showing when search request is blank if it only updates from DB when started?

And second question. Am I right that magneticow is not communicating with magneticod directly but uses same SQLite database file to get data from magneticod? If so then I can write my own web interface which will not have this problems.

donaldsteele commented 6 years ago

@skobkin yes you can write your own interface , I have a php interface i wrote for testing which you can see here https://github.com/donaldsteele/magnetico-php

skobkin commented 6 years ago

Nice.

I'll probably write the PHP interface for it too. Bust more likely after at least beta of Go version with MySQL/PostgreSQL support.

kescherCode commented 6 years ago

Workaround for Linux-based systems: Execute "crontab -e" as the user you're currently logged in as and add this line:

00 /1 systemctl --user restart magneticow Even if you connect while it's restarting, since the restart should go by fast, there's no downtime for the server.

kescherCode commented 6 years ago

(additionally, you could even do this every minute instead of every hour, but I don't know if this wouldn't trigger unintended side-effects)