magnetico icon indicating copy to clipboard operation
magnetico copied to clipboard

magneticow search is not working

Open skobkin opened this issue 6 years ago • 8 comments

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

skobkin avatar Mar 01 '18 14:03 skobkin

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

jackalblood avatar Mar 01 '18 14:03 jackalblood

@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)?

skobkin avatar Mar 01 '18 14:03 skobkin

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

jackalblood avatar Mar 01 '18 14:03 jackalblood

@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.

skobkin avatar Mar 01 '18 14:03 skobkin

@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

donaldsteele avatar Mar 04 '18 14:03 donaldsteele

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.

skobkin avatar Mar 04 '18 21:03 skobkin

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 avatar Apr 15 '18 13:04 kescherCode

(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)

kescherCode avatar Apr 15 '18 14:04 kescherCode